How to disable Output right from the Script

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 22, 2013
Company:

Hello,

Can we change the Output property/role setting by code ?

For a Catalog ListForm... Also for a specific role !?

Edited: Veli Bıçakçı - Apr 17, 2014 05:31 AM
 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Just to make sure that I got your question: you need to let some user to output lists as spreadsheets for most objects, but disallow doing this for some particular object, right?

 
#3
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 22, 2013
Company:

We found it.

Code
If IsInRole("...") Then
     
    Controls.FormActions.Buttons.Actions.Buttons.TableImport.Enabled = False;
       
EndIf;

Thank you for response...

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.