Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

copy value in a variable

Hello,
I need to copy the actual value of one field in a variable.

load * inline [
salesman , qty
paul , 10
peter , 50
Alan , 30

];

I put this values in a table

Now, if I select one Item in a table I would to copy the value of Salesman field
I selected in the variable . In this way I could to use the variable also ina a SQL
scrpt.
How to do this?

Thabk you .
Regards,

-
slash

Labels (1)
15 Replies
Not applicable
Author

Hi

if you create a variable vTest and put the value to field (=salesman) the variable will assume the field value when it is uniqely identified and null if it isn't

elsewhere if you want to have ever a value in variable you can use an aggragation value in variable (=Max(salesman))

Not applicable
Author

Could you post the example file ?

The value of salesman myst be ? what I selected in a table.

Thanks for your support.

Regards,

--

Slash

Not applicable
Author

HI

Not applicable
Author

Thanks but is not what I'm looking for to obtain.

Please look the example I attached in this post.

The value New is empty. I nedd tocopy the value in th variable by sql. look in the scrpt.

thanks

Regards,

--

Salsh

Not applicable
Author

Maybe by Api ?

Not applicable
Author

I attached a new file,

the variable is now built by API and I need to copi into a varable the value I selected.

When I press the button I verify the value of variable. Please someone could to complete the script?

I need to set the content ( what is selected in a field salesman.

Thankyou

--

Slash

Not applicable
Author

Hi Slash,

Please check the attached file.

Help this one helps!

Regards,

Nadsky

Not applicable
Author

Many Tahnks., but I add a "feature". I need the che is mad in the text object (

TX01 ) and not in a field . the value must be JUSt one selected. if I selct a null value the msgbox have to show "please select a value" .

find file in attachement

Tabk you

Slash



Not applicable
Author

Please have you time to help me to add the features?

Many Thanks

Regards,

Slash