Kbase P7218: ADM2 - How to programmatically change the value of a particular field and change the SmartToolbar st
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  9/28/2004 |
|
Status: Unverified
GOAL:
How to change the status of a SmartToolbar?
GOAL:
How to change the status of a SmartPanel?
GOAL:
Why a field value changed programmatically is not saved to the database?
GOAL:
What does the setDataModified function do?
FIX:
When the value of a desired field is changed using its SCREEN-VALUE property, the SmartToolbar or SmartPanel status will not be changed and the field value will not be saved in the database.
The field value is changed in the following ways:
SmartDataViewer:
ASSIGN customer.custnum:SCREEN-VALUE IN frame {&frame-name} = "xxx".
SmartDataObject:
ASSIGN customer.custnum:SCREEN-VALUE IN BROWSE {&browse-name} = "xxx".
The above code changes the value of the field but it does not change the SmartToolbar/SmartPanel status.
Use setDataModified method with the parameter TRUE as follows:
DYNAMIC-FUNCTION('setDataModified':U, INPUT TRUE).