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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Documentation on setting triggers in macro?

I am trying to upgrade some old macros

The old logic contained the following

    set fprop = ActiveDocument.GetField("Measure").GetProperties

    fprop.OnSelectMacro = "MeasureDefaults"

    ActiveDocument.GetField("Measure").SetProperties fprop

which, of course, doesn't work in QV10.  From what I gleaned from various forum posts, I have the following:

    set fprop = ActiveDocument.GetField("Measure").GetProperties

    set actions=fprop.OnSelectActionItems

    if actions.Count<1 then

        actions.Add

        actions.Item(0).Type = 13

        ActiveDocument.GetField("Measure").SetProperties fprop

    end if

Which does get the trigger set to fire a macro, but I can't seem to find the command in order to set the macro name to "MeasureDefaults".

Can anyone point me to any documentation on what commands I need to do?

(I will also need to do a similar thing to variables, once I get this to work.)

Thanks.

1 Solution

Accepted Solutions
Not applicable
Author

1 Reply
Not applicable
Author

found my answer in another forum post.

http://community.qlik.com/message/11306#11306