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

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

Macro Problem

Hi

i have a problem.I have taken a textobject on the sheet .but i wana apply text to that text object through

macros.what i want is when i click on the button ,the text should appear on the textobject before this event ,

the textbox should be empty?Can we use a button click event in macros?If yes then how?

Regards

Sikandar

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Remove the "if (BU01_Click) then" from your macro. There is no BU01_Click to test. Your macro is attached to the button, and will only get called when the button is clicked.

-Rob



View solution in original post

8 Replies
Not applicable
Author

Hi,

From where do u want to input the data to text box while clicking the button...?

- Sridhar

Not applicable
Author

Hi,

I`m not clear about your query, But still you dnt want to go for macro`s.

Use input box to enter data and use the same variable to display the data in textbox.

If you could explain your scenario clearly, i would be easy for us to suggest some thing...

- Sridhar

Anonymous
Not applicable
Author

Sikandar,
What do you mean "Can we use a button click event in macro?" If you want to call a macro by clicking a button just make this button a macro button. Or, am I missing what's the question about?

Not applicable
Author

Hi

I have attached a QVD file.plz look it and and help me finding the solution

Regards

Sikandar

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Remove the "if (BU01_Click) then" from your macro. There is no BU01_Click to test. Your macro is attached to the button, and will only get called when the button is clicked.

-Rob



Not applicable
Author

Hi Rob

Can u plz update my code and send me the QVD as it will be very helpfull for me....

Thanx

Regards

Sikandar

Not applicable
Author

Hi

I have resloved this issue.i was doing a very simple mistake...

Regards

Sikandar

Not applicable
Author

HI Sikand,

In your attachment in macro just comment that if statement,then u will get the result.

Regard,

Ravi kumar.