Kbase P18478: SmartSelect and SmartDataField are not refreshing when a record is added.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/25/2008 |
|
Status: Unverified
SYMPTOM(s):
SmartSelect is not being refreshed when a record is added.
SmartDataField is not being refreshed when a record is added.
Add record and invoke save on the UpdateSave panel.
The SmartSelect linked to the same SDO does not reflect the change.
FACT(s) (Environment):
Windows
Progress 9.1x
OpenEdge 10.x
CAUSE:
The query needs to be reopened after the record is added.
FIX:
A solution to accomplish this task:
1. Publish a named event in updateRecord of the SmartDataViewer: Publish 'NameOfEvent'.
2. Create an initializeObject override for the SmartDataViewer where the smartSelect is instantiated: Subscribe to 'NameOfEvent' ANYWHERE.
3. Create a procedure in that SmartDataViewer that has the same name as the event. When this runs, it will reopen the query of the SmartDataObject and thus refresh the SmartSelect.
DYNAMIC-FUNCTION('openquery' in h_SDO).