cancel
Showing results for 
Search instead for 
Did you mean: 

How can I convert a array of a memberinfo to a singlevariablevalue

Wolf_P_aus_L
Explorer
0 Kudos
266

Hi there,

I'm not that familiar with SAC yet. My goal is to get selected values (customer numbers) from different InputControls (different hierarchies) into a dynamic text via a script variable. There should only be one text passage in the report where the selected customer number appears.

In the first attempt I used this coding, which does not work due to this error message.

var KH1 = InputControl_1.getInputControlDataSource().getActiveSelectedMembers();

var KH1_T = cast(Type.SingleVariableValue, KH1); // --> this error message appears here: Invalid argument at Index 2: Cannot convert from "Array of Memberinfo" to SingleVariableValue

vCustomerNumber1 = KH1_T; // vCustomerNumber1 --> Script Variable

Does anyone have an idea how I could solve this problem?

Many thanks in advance!

VG
Wolf

View Entire Topic
William_Yu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Wolf_P_aus_L

   Have you tried define your script value as string?

Best regards, William 

Wolf_P_aus_L
Explorer
0 Kudos
Hi Wiliam,
Wolf_P_aus_L
Explorer
0 Kudos
Hi William, thanks for your answer. Yes, I did. I defined the type of string in the structure of the Script Variable. Is there another possibilty to define it? BR Wolf