I have added an action button in the Page with the name 'Send to Database'.
There is a field in the table Updated in Database of Boolean datatype.
Initially Updated in Database is kept False but once the button is 'Send to Database' clicked the above field Updated in Database is True.
The function of the above button is working fine.
But I want to disable this button after checking the Boolean field (Updated in Database).
If the field Updated in Database is false then the button will be enabled else if the Updated in Database field is true the Send to Database button field will be disabled.
Let me give you an example if there is any record in the Table the Refresh button in the action tag is enabled and if there is no record in the table the Refresh button is disabled.
Thanks in advance.
0
Comments
Assign your field to it in OnAfterGetRecord() trigger
like
UpdatedinDatabase := "Updated in Database";
Set NOT UpdatedinDatabase in Send to Database action Enabled property
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
if I get it right -
When Updated in Database is set to true you want to disable "Send to Database".
Create a Boolean variable in page say - enablesendtodatabase.
set its property Include in Dataset to TRUE.
on click of "Send to Database" set "Update in Database" to TRUE and set enablesendtodatabase to FALSE.
Put enablesendtodatabase in the Enabled property of "Update in Database.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
Did what you told to do.
"Send to Database" is still not disabled.