Consultor Eletrônico



Kbase P22650: How to set the SORT option in a DYNAMIC BROWSE (SDB).
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   25/11/2003
Status: Unverified

GOAL:

How to set the SORT option in a DYNAMIC BROWSE (SDB).

FACT(s) (Environment):

Progress 9.x

FIX:

You can affect a Browse's "SORT" Clause by invoking a DYNAMIC-FUNCTION in the Browse.

In the below example "h_bcustomer" is the handle to the SDB from the main window.


Syntax;

DYNAMIC-FUNCTION('setSort':U IN h_bcustomer,
INPUT pcColumnName /* CHARACTER */).

Sample Syntax;

DYNAMIC-FUNCTION('setSort':U IN h_bcustomer,
INPUT "CreditLimit").


Sample Syntax(Variable Value);

Define Variable varvalue as Character no-undo.
Assign varvalue = "CreditLimit".

DYNAMIC-FUNCTION('setSort':U IN h_bcustomer,
INPUT varvalue ).