Question

How to Hide a Custom BaseDataView

I want to Hide the GridDataViewB2B based on access right. How Can I do so?

 

 baseDataViews.GridDataViewB2B = {

                    name: "GridDataViewB2B",

                    caption: this.get("Resources.Strings.B2BButtonCaption"), 

                    hint: this.get("Resources.Strings.B2BButtonCaption"), 

                    icon: this.get("Resources.Images.GridDataViewIcon") 

                };

 

Can we add a visibility attribute which may we set to false when we want?

Like 0

Like

1 comments

Dear Mohammad,

 

Yes, it is possible to add the “visible” attribute to the element.

Please see an example of using the attribute in the article by the link below:

 

https://academy.creatio.com/documents/technic-sdk/7-15/displaying-contacts-time-zone

 

Best regards,

Norton

Show all comments