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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
amars
Specialist
Specialist

Checking if a selection of value is allowed or not

Hi all,

I am writing a macro, in which I have to send Territory (US, ASIA, Europe) wise reports to each Manager. Now in a macro when I select a manager & suppose for him no selection for a Territory (i.e. ASIA) is allowed still When I use

ActiveDocument.GetField("Territory").Select "APAC"

it clears the Manager's selection & send all the data for that Region to the manager for that selection. Now I want to check in a macro if a particular selection of value is allowed at an instance(with some selection already) or not . How to do that?......... Thanks in advance.

Cheers

Amar[:(]

1 Solution

Accepted Solutions
Not applicable

you could use ActiveDocument.GetField("Territory").GetPossibleValues to get the list of all values of the Territory field compatible with the current selection, and then check the value you want to select is contained in this list before doing the selection

View solution in original post

3 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

Hi Amar,

Why don't you use Section Access to reduce the data? Why Macro?

Not applicable

you could use ActiveDocument.GetField("Territory").GetPossibleValues to get the list of all values of the Territory field compatible with the current selection, and then check the value you want to select is contained in this list before doing the selection

amars
Specialist
Specialist
Author

Thanks george,

Already impleted that.