Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Run Macro Script?

Hi,

Can I know why some or most of  the "Macro" scripts are not working on web interface?

is there any way to make it work?

eg;

macro such as;

* RELOAD

* FitToScreen

sub max_zoom

set mysheet=ActiveDocument.ActiveSheet

set sp=mysheet.GetProperties

sp.ZoomFactor = sp.ZoomFactor + 0.1

mysheet.SetProperties sp

end sub

sub mini_zoom

set mysheet=ActiveDocument.ActiveSheet

set sp=mysheet.GetProperties

sp.ZoomFactor = sp.ZoomFactor - 0.1

mysheet.SetProperties sp

end sub

8 Replies
tresesco
MVP
MVP

In Ajax? The limitation is known. Read this: macros-are-bad

ashfaq_haseeb
Champion III
Champion III

Hi,

You need to know how macros run and where.

The Internet Explorer PlugIn (OCX) or Ajax (JS).

The Plugin runs client side and is quite capable,

whereas the Ajax client is a thin client that cannot run client side macros,

so it is very limited when it comes to the macro functionality.

That's the reason not all macros work in ajax.

Regards

ASHFAQ

Not applicable
Author

Hi,

Thanks every one!

well instead of macros functions is there any other functions I can use, which is work on all the platforms?

ashfaq_haseeb
Champion III
Champion III

Yes.

You want to fit zoom to window Right?

Then use this extension.

Regards

ASHFAQ

Not applicable
Author

Hi,

you want me to ass the .qar file on server?

well, am not only talking about fit screen. I want to is there any other function than macro which will work on other platforms so that I can use it...

ashfaq_haseeb
Champion III
Champion III

Yes you need to deploy the same on server.

Mafaz Jaufer wrote:

well, am not only talking about fit screen. I want to is there any other function than macro which will work on other platforms so that I can use it...

It depends on what are you trying to do or implement.

May be there is some other or easier way you can achieve that.

It really depends on what are you trying to achieve.

Regards

ASHFAQ

Not applicable
Author

@ Ashfaq: can I create a TOGGLE MENU in QlikView?

ashfaq_haseeb
Champion III
Champion III

Hi,

What exactly you are trying to achieve.

Toggle between chart type is native function of Qlik.

Regards

ASHFAQ