Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

rudywelvaert
Contributor

Macro doesn't work in WebView

Hello,

I wrote this Macro that works perfectly in normal view.

But when I go to WebView it doesn't work

Any idea if I need to check or uncheck certain things in order it to work also in WebView?

Once it is on the server, won't it work either?

I added an example Macro_Macro_WebView.qvw

Thanks

7 Replies
MVP
MVP

Re: Macro doesn't work in WebView

Macros have limitations in ajax client (web view). And most of them won't work. Read it here : macros-are-bad

antoniotiman
Honored Contributor III

Re: Macro doesn't work in WebView

Hi Rudy,

Macro doesn' work in WebWiew and/or Ajax Mode.

They work in QV Desktop Normal Wiew Mode andiIn QV Server with IE Plugin.

Regards,

Antonio

rudywelvaert
Contributor

Re: Macro doesn't work in WebView

Thanks

But this leaves me with the problem that what I want to achieve can't be solved with Macros.

I need to find an other way to change the Y-pos of an sheet object depending on e.g. the value of a variable.

Any idea how that can be done without macros?

R.W.

antoniotiman
Honored Contributor III

Re: Macro doesn't work in WebView

Rudy,

this macro should work in WebWiew as well, because they are native APIs.

So should work also in Ajax mode.

rudywelvaert
Contributor

Re: Macro doesn't work in WebView

Thanks Antonio,

but it doesn't work in WebView

see the attachment Macro_WebView.qvw in original question

R.W.

antoniotiman
Honored Contributor III

Re: Macro doesn't work in WebView

Rudy,

I have tried in WebWiew. It Works.

rudywelvaert
Contributor

Re: Macro doesn't work in WebView

Antonio,

Even in your image I can see it doesn't work. Look at the position of the buttons behind the menu.

In the image below you see on the left when the Web View is off, on the right side when Web View is on.

It's clear that de macro is not executed when Web View is on: the buttons don't change their Y-pos.

WebView.png