changing dynamic browse fields at runtime

marcia

New Member
We have a dynamic browser on a container, and would like to be able to change the browse fields at run time.

I have tried the following (in a button trigger):

lch_displayedfields = "da_MoveDate,ch_name".
DYNAMIC-FUNCTION('setDisplayedFields':U IN h_dynbrowser, INPUT lch_DIsplayedFields).
RUN initializeObject IN h_dynbrowser NO-ERROR.
IF ERROR-STATUS:ERROR THEN MESSAGE RETURN-VALUE.

and nothing happens, no errors, no change of browse fields.

Does anyone have any suggestions, has anyone successfully done this?
 
In answer to my own question, we have found a way to do this using the "visible" attribute on the columns.
 
Back
Top