Consultor Eletrônico



Kbase P71095: ADM2: How to show or hide a certain column for a Dynamic Sma
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/9/2004
Status: Unverified

GOAL:

How to show or hide a certain column for a Dynamic SmartDataBrowser

FACT(s) (Environment):

Progress 9.x

FIX:

Use this code:
DEFINE VARIABLE hColumn AS HANDLE NO-UNDO.
DEFINE VARIABLE cDisplayedFields AS CHARACTER NO-UNDO.
DEFINE VARIABLE cFieldHandles AS CHARACTER NO-UNDO.

/* Find The Handle Of The Column We Want to show hide */

ASSIGN cDisplayedFields =
DYNAMIC-FUNCTION('getDisplayedFields' IN h_dynbrowser)
cFieldHandles = DYNAMIC-FUNCTION('getFieldHandles' IN h_dynbrowser)
hColumn =
WIDGET-HANDLE(ENTRY(LOOKUP('Cust-Num', cDisplayedFields),cFieldHandles)).

/*Hide the column*/
hColumn:VISIBLE = NO. /* or YES in case you want to Show it*/