Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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