Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to hide "Edit Script" button even if new document created

hello everyone

I want to hide "Edit Script" button. I know I can hide it in "document properties"→"security" tab.

but when I click the "New" button in "File" menu , that will display "Edit Script" button again.

can I hide the "New" Button , or is there something other way to do that.

Thanks for any help in advance

laughsmile

1 Solution

Accepted Solutions
Not applicable
Author

I finish it by editing qlikview's registry.

View solution in original post

13 Replies
prieper
Master II
Master II

The Edit-Button will be greyed anyway for all USERs, only ADMINs can open script-editor. Please check your access-scripts.

HTH
Peter

Not applicable
Author

thank you so much.

the following is my access-script. even whenI login with USER(in this time Edit-Button is greyed),but if I click "New" Button in the File Menu to create a new document , the Edit-Button will be enabled.

what is wrong with it?

CONNECT TO [Provider=ADsDSOObject;Password=xxxx;User ID=xxxx;Encrypt Password=False;Data Source=192.168.0.162;Mode=Read;Bind Flags=0;ADSI Flag=-2147483648];

TAB1:

select sAMAccountName , physicalDeliveryOfficeName

from

'LDAP://mydomain.com'

WHERE objectCategory='person';

SECTION ACCESS;

Load if(upper(physicalDeliveryOfficeName) <> 'ADMIN','USER', 'ADMIN') as ACCESS ,upper(sAMAccountName) as NTNAME resident TAB1;

SECTION APPLICATION;

Drop table TAB1;

prieper
Master II
Master II

The "New"-option has nothing to do with USER/ADMIN, think it is related to the version/licence. All users having developer-licence can create new documents.
Check the OL-Help for taskbar and how to add/remove icons there.

HTH
Peter

Not applicable
Author

Thank you again for reply

I know how to remove New icon from taskbar , like the following:

but I dont know how to remove the New Button in File Menu.

Not applicable
Author

I finish it by editing qlikview's registry.

prieper
Master II
Master II

How? Can you post the entry?

Peter

Not applicable
Author

sorry for so late

I modify the following in registry:

HKEY_CURRENT_USER\Software\QlikTech\QlikView\Settings 7\DisableScripting=1

marcel_olmo
Partner Ambassador
Partner Ambassador

Hey Laughsmile, could you show me how you use this registry function?

I assume that is a macro function, but I can't make it work!!!

I've been trying something like this :

sub reg

Set WshShell = CreateObject("WScript.Shell")
WshShell.RegWrite "HKEY_CURRENT_USER\Software\QlikTech\QlikView\Settings 7\DisableScripting","1"

end sub

Any ideas to make the button of "edit script" unavailable???

Thank you!!

Not applicable
Author

Hi,

how i can modify the registry and where is it located in my system ?

Regards

Venkat