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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Stored Procedure/Macro

Hi guys,

Is it possible to execute a stored procedure with a variable via a button within a document?  I've been trying to do this via a macro button but I can't figure this out

Thanks!

3 Replies
Not applicable
Author

Hi,

I tried to do so and it run successfully.

This is what I did-

1.Created a variable vdemo and set it's value to 0

2.Created a button and  allow it to change the value of variable(vdemo) to 1 using action on it.

3.Go to document properties and go to variable event triggers and apply action to run macro on changing value of variable.

4. Click on button and check value of variable, it will change to yes(as my macro is changing it)

It seems like this is the only way I know.

Attaching the required snapshots.

Cheers

Saurabh

Anonymous
Not applicable
Author

Hi Saurabh,

Thanks very much for your help.

Would you be able to post a sample QVW file with these steps in please?

That would be a great help

Anonymous
Not applicable
Author

Also i cannot see that your macro is running a stored procudure?  Would you be able to help with this as getting the macro to run the stored procedure is where i am struggling..

thanks!