Using functional option to show/hide some items in form

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Interested
Rating: 32
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

I need to hide some items in the form depending on functional option with parameter. I am using information register for storage and defining the parameter on form open with SetFormFunctionalOptionParameters(New Structure("Entidad",Object.Empresa));.

I have created some additional attributes in the table part of the form and declared functional option for them. But it seems like the option have no effect on this attributes.

Could you please be so kind and give me steps how to control visibility of some attribute in the table part of the form (it doesn't physically exist in the database).

Should I use GetFormFunctionalOption(<Name>)  to retrive FunctionalOption and control visibility manually?

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Alexey, to get parametrized functional option example see Sample application.
There is AccountingInCurrency functional option and Organization functional option parameter which affect Currency fields of other metadata objects. For example, GoodsExpence document for All for Home, LLC will have Settlement Payments Currency attribute and for All for Home, LLC it will not.

 
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.