Consultor Eletrônico



Kbase P182144: How to globally enable column sorting feature in an ADM2 SmartDataBrowse
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/8/2011
Status: Unverified

GOAL:

How to globally enable column sorting feature in an ADM2 SmartDataBrowse

GOAL:

How to globally disable column sorting feature in an ADM2 SmartDataBrowse

FACT(s) (Environment):

Windows
OpenEdge 10.x

FIX:

OpenEdge introduced a feature that allows a user, at runtime, to enable column sorting in a SmartDataBrowser (SDB) by right-clicking and toggling this functionality on. There must be code in the START-SEARCH triggers for the browsers you wish to enable sorting for which handles the actual sort activity, and no actual sorting will take place without this.

To enable browser sorting globally in your application follow the below steps:

Create the following two directory structures underneath a folder in your application's PROPATH:

<app-propath-dir>\src\adm2\custom
<app-propath-dir>\adm2\custom

- Copy <OE-install-dir>\src\adm2\custom\browsercustom.i into the first folder
- Copy <OE-install-dir>\src\adm2\custom\browsercustom.p into the second folder
- Open browsercustom.i and uncomment the following code (Main-Block):
/*IF NOT {&ADM-LOAD-FROM-REPOSITORY} THEN
RUN start-super-proc ("adm2/custom/browsercustom.p":U).*/
- Open browsercustom.p, add an initializeObject procedure, and paste in the following code:
{set ColumnsSortable TRUE}.
RUN SUPER.
- Recompile all browsers in your application.

For the browsers that have sort code in place the code should take over.