Notifications
Announcements
No record found.
Hi Everyone ,
can someone pls tell me how to disable the delete button through code which is present at SalesOrder Tab-> Maintain..at the ActionPane.
Thanks in Advance
*This post is locked for comments
Hi AXBOY, can you please specific? do you want permanet disable delete button or during selections only?
To disable it disable deletion on salestable datasource:salesTable_ds.allowDelete(false);
i need to disable the Delete button from Sales Order from Sales Order grid for only those sales order whose site field is blank.
just disable it from design as the below
I Agree with master Mahmoud Hakim
But anyway you mentioned "through code"
here's the example how to manipulate enable and disable
if( YOUR_STATEMENT_CONDITION_HERE )
{
ButtonName.enabled(true);
}
else
ButtonName.enabled(false);
If it is conditional, then don't use the property on the form design like mentioned above. The example provided by Jii is better.
However, "site field is blank" sounds odd to me as condition.
another thread in parallel, for same issue, i guess.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2