Dynamic browse

jmac13

Member
Hi All,

I'm using 10.2b

I've got a Dynamic browse where I add-columns on the fly at the start of a program. My question is how do I enable all these columns so I can edit them.

As with a normal browse i would just put enable <field name> in the display trigger of the browse.

Cheers
 
You need a handle to the columns that you want to enable and enable them that way.
 
yeah I loop through the columns

Code:
   assign hanCol = browse {&browse-name}:first-column.         
     
    do while valid-handle(hanCol):                     
         hanCol              = hanCol:next-column.                     
    end.

but doing hanCol:enable doesnt seem to work.
 
i can see theres a &Scoped-define ENABLED-FIELDS-IN-QUERY-BRDetail but i have no idea how to do this for a a dynamic browse
 
Hi Jmac13, try it.

Code:
    do while valid-handle(hanCol):                     
        hanCol:READ-ONLY  = false.
        hanCol                  = hanCol:NEXT-COLUMN.
    end.

Regards.
 
Hi SergioC,

thanks for the reply.

I've tried that but it doesnt seem to enable the fields so i can get in and edit them.
 
hanCol:READ-ONLY is the attribute you want to set to enable the browse column. If it's not working then I'd suggest you're not setting it at the right point. You need to enable the columns after the browse is fully realised AFAIK.
 
just seen it... the browse was read only....dear me its not my day...too busy trying to look at the display when it was the read only all the time...thanks for the help guys..I had the right attribute at the start just not the browse one grrrrr


Thanks again
 
Back
Top