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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

function with parameters in botton

I need to create a function with parameters that are run when clickingon a button, the idea is

function detalleActiva (mihoja)

====> MACRO

          if ActiveDocument.Variables("v_muestra_ventas").GetContent.String="1" then

                         ActiveDocument.ActivateSheetByID (mihoja)

          else

                         muestra_ventas

                         ActiveDocument.ActivateSheetByID (mihoja)

          end if

end function

===>botton

detalleActiva ("SH04")

how can i execute this function in the clic botton???


Labels (1)
1 Reply
johnw
Champion III
Champion III

I hope there's an easier way, but you could have the first action of the button set a variable, and then retrieve the value of the variable in the macro.  Even it that works, though, I believe that tecnically it could fail, because on machines with parallel processors, I don't believe QlikView guarantees the order of execution of the actions.