Skip to Content
0
Jul 22, 2016 at 08:55 AM

DS_1.getVariableValueText - only the text without the key?

380 Views

Hello,

I use the function getVariableValueText to display the selected value of a query variable in a design studio report. I solved this like this:

TEXT_1.setText(DS_1.getVariableValueText("VAR_CUSTOMER"));

The result is, that the text of TEXT_1 is: "12345678 Test Customer".

That means the method getVariableValueText delivers key and text of the query variable "VAR_CUSTOMER".

But I only want the text "Test Customer" without the key. Is there an easy way to fulfill this requirement?

Thank you very much!

Jens