Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Raphael_Sabbagh
Partner - Contributor II
Partner - Contributor II

ODAG - Get Selected field

Hello Community !

My understand of ODAG is that in the "Template app" we can retrieve selected fields from the "Selection app" in variable with this syntax :

SET FieldValues = $(odag_FieldName);

But does ODAG send the list of selected fields on the selected app, so we can programmaticly construct our field values.

 

What I would like to do is something like that :

 

FOR field in fieldList
        SET "$(field)" = $(odag_$(field))
        // DO SOMETHING WITH $(field)
NEXT

 

Thanks in advance for reading or responsing 🙂

Labels (1)
2 Replies
chriscammers
Partner - Specialist
Partner - Specialist

The short answer to your question is "no" ODAG does not pass all the selections rather you have to build your template so it knows what it needs and uses it. When you create the link you set the "Expression" and "Maximum Row Count" so that you can control weather or not the user has selected the right stuff to run your template. Although it is listed as an amount you really could just do it as a binary type value.

Raphael_Sabbagh
Partner - Contributor II
Partner - Contributor II
Author

That's what I tought. Thank you for your answer.