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: 
hugmarcel
Specialist
Specialist

Get variable "on input" / "on change" action via macro

Hi

I want to extract the "oninput" / "onchange" action expression of a variable via macro.

However, using the type returns a type number only.

set v = ActiveDocument.Variables("vReportOnOpenSelfFilter")

prop = v.GetProperties

msgbox prop.OnInputActionItems.Item(0).Type ' 13 -> ?

How can I get the real expression (macro to be called if expression is a macro).

Thx - Marcel

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

If prop.OnInputActionItems.Item(0).Type = 13 Then

  macro = prop.OnInputActionItems.Item(0).Parameters.Item(0).v

  Msgbox "Macro: " & macro

End If

View solution in original post

1 Reply
petter
Partner - Champion III
Partner - Champion III

If prop.OnInputActionItems.Item(0).Type = 13 Then

  macro = prop.OnInputActionItems.Item(0).Parameters.Item(0).v

  Msgbox "Macro: " & macro

End If