Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

VB macro message box in AJAX

Hi,

I have a macro that gets triggered via an Action Button. At the end of the macro a message box displays a message.

It works when executed from the Desktop client but the message box doesn't seem to work in AJAX.

The VB code is:

Sub MessageBox

  vAnswer = MsgBox("Export Address Data Request Sent")

End sub

Should this work in AJAX? If No, what would be a good work around?

Thanks, Maria

4 Replies
trdandamudi
Master II
Master II

Hope the below link will help you:

Macro on AJAX or IE Plugin

marcus_sommer

Most macros won't work within the ajax-client but if it's only a message-box you could use a textbox with a variable within the visibility-condition for it and your button switched simply these variable.

- Marcus

jerrysvensson
Partner - Specialist II
Partner - Specialist II

Marcus solution is the best. Your macro will actually stop running at the line where you have MsgBox.

Colin-Albert

As  marcus_sommer has suggested, using a variable and textbox is likely to be a better solution than a macro.

Not all macros are supported in the Ajax client and Actions can be used for many of the tasks you think would require a macro.

Have you read this blog in relation to macros & QlikView server? Macros are Bad