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?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156