Kbase P100197: When hiding and viewing a browse that is currently in add mode the new template record disappears.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/19/2005 |
|
Status: Unverified
SYMPTOM(s):
When hiding and viewing a browse that is currently in add mode the new template record disappears.
When hiding an updatable browse that is currently being used to add a record, when the browse is viewed again the new record is placed at the end of the browse results set.
CAUSE:
After hiding and viewing the browse the new record does not disappear, it is represented by the instance of the template record at the end of the browse. At this point the toolbar is still waiting for a save or cancel update, so the record can still be updated.
The fact that the record moves to the end of the browse is because it has lost focus and this is expected browse behavior.
FIX:
If you want to reposition to this record you need to do this manually with fetchrowIdent.
1. Get the new record rowObject.rowident value in the SDO.
2. In the smartDataBrowse reposition the SDO to this record with:
DYNAMIC-FUNCTION('fetchRowIdent':U IN h_SDO, cRowIdent, '':U).