Kbase P20281: How to dynamically change the sort condition in a SmartDataObject
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Verified
GOAL:
How to dynamically change the sort condition in a SmartDataObject
GOAL:
How to dynamically change the query in a SmartDataObject
FIX:
To change the sort condition for a SmartDataObject set the QuerySort attribute by invoking the setQuerySort function. For example, assuming that in a SmartWindow has a SmartDataObject pointed to by h_SDO, code similar to the following can be used to change the sort condition:
DYNAMIC-FUNCTION('closeQuery' IN h_SDO).
DYNAMIC-FUNCTION('setQuerySort' IN h_SDO, INPUT "NewSortConditionGoesHere").
DYNAMIC-FUNCTION('openQuery' IN h_SDO).