Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rustyfishbones
Master II
Master II

Remove the Edit Script option using Macro

Hi All,

I want to create a Macro that enables me to remove the option for the Edit Script.

This will be part of an include file that will remove lots of different options. But right now I need to know why this is currently not working.

here is what I have, I got it from the API Guide, can anyone see why this is not working, I am not getting any error message and I have allowed system access

2014-04-11_1455.png

2014-04-11_1450.png

1 Solution

Accepted Solutions
Anonymous
Not applicable

Attached is the latest I have.  Anyway, I don't expect this part to change.

Notice that if you select class IDocumentUserPermissions, all members there are read-only except Reload and PartialReload.

Regards,

Michael

View solution in original post

6 Replies
datanibbler
Champion
Champion

Hi Alan,

I'm no expert in writing macros - but might I inquire why you want to do this so complicated?

There is the option of adding a SECTION_ACCESS, either based on logon_tickets or on the Windows_logon. You can define different levels of access, ADMIN and USER and you can restrict the users'  access rights to an app - e.g. you can disable the "edit script" option for anyone classified as user.

Best regards,

DataNibbler

Anonymous
Not applicable

Alan,

My version of API Guide (11.00 as of 03/14/2012) says that EditScript member is read-only - can detect if it is on or off, but can't change (?)

rustyfishbones
Master II
Master II
Author

Hi DataNibbler,

I understand that, however on occasions I may give access to an individual on the fly and I want to be able to run a macro that will clear off lots of different options quickly.

And I would also like to know a few different ways of doing things!

But thanks for your input

Regards

Alan

rustyfishbones
Master II
Master II
Author

Hi Michael,

mmm..I have macro's working to remove the option to Reload and Partial Reload and it's working no problem.

Where can I get the most recent API Guide?

Regards

Alan

Anonymous
Not applicable

Attached is the latest I have.  Anyway, I don't expect this part to change.

Notice that if you select class IDocumentUserPermissions, all members there are read-only except Reload and PartialReload.

Regards,

Michael

rustyfishbones
Master II
Master II
Author

Thanks Michael