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 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
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.
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);
}
I Agree with master Mahmoud Hakim
just disable it from design as the below
i need to disable the Delete button from Sales Order from Sales Order grid for only those sales order whose site field is blank.
To disable it disable deletion on salestable datasource:
salesTable_ds.allowDelete(false);
Hi AXBOY, can you please specific? do you want permanet disable delete button or during selections only?
André Arnaud de Cal...
294,261
Super User 2025 Season 1
Martin Dráb
233,017
Most Valuable Professional
nmaenpaa
101,158
Moderator