column visible

KaysarSoze

New Member
Hi,

in a procedure a set the attribute 'visible' of a certain column to false in my browser the column disappears. so far so good, but if i try to set the attribute 'visible' of the same column to true it won't work.

any suggestions?

sample code:

DO WHILE VALID-HANDLE(hanCol):

IF hanCol:LABEL = "Email" THEN

hanCol:VISIBLE = YES.

IF hanCol:LABEL = "Fax" THEN

hanCol:VISIBLE = FALSE.

ASSIGN hanCol = hanCol:NEXT-COLUMN.

END.
 
We have recently experienced a similar problem.

The column was being made visible, but because the browser was set to be expandable, it was made visible outside of the viewport and the horizontal scrollbar was not displayed.

Our solution was to set the expandable attribute to false, then set the visible attribute of the column to true, and finally reset the expandable attribute of the browser to true.

ASSIGN hColumn = ip-hBrowse:FIRST-COLUMN
lExpand = ip-hBrowse:EXPANDABLE
ip-hBrowse:VISIBLE = FALSE
ip-hBrowse:EXPANDABLE = FALSE.

/* Code to make browser columns visible */

IF lExpand THEN
ASSIGN ip-hBrowse:EXPANDABLE = TRUE.
ASSIGN ip-hBrowse:VISIBLE = TRUE.

I'm not sure if this is the same problem you're having, but it could be worth a try.
 
Top