Announcements
I want to hide the default EDIT button on my customized form "Purchase order created by me", I changed all data sources allow edit property to NO, also I set the ViewEditMode property on design to View but the button is not hiding I also tried to put the code on Run() method but it is not affecting too, here is my code.
public void run() { super(); //To hide the edit button on form. this.design().viewEditMode(enum2int(ViewEditMode::View)); if (RetailSMB::IsRetailSMBEnabled()) { RetailUtils::HidePart(element, identifierStr(PurchEncumbranceSummaryPart)); } }
Hi Muhammad,
Have you tried to set the Max access right property on the data source to View?
Hi Muhammad ,
Did you delete or comment on standard codes. It contains "viewEditMode" in some standard codes such as PurchTableInteraction and PurchTableInteractionhelp
Hi Gunjan,
Yes exactly.
Hi Muhammad Bilal,
Did you duplicate the existing Purchase order form to create the customized form?
I did nothing happens
Can you try before super
André Arnaud de Cal...
294,079
Super User 2025 Season 1
Martin Dráb
232,860
Most Valuable Professional
nmaenpaa
101,158
Moderator