Browser Column view-as property

karikalanr

New Member
Hi All,

I have found the way to set the view-as property for browser column. but still I need to find out how we could assign the values to the browser coloumn using List-Item-pairs or Add-Last method. FYI, here i am giving code samples,
assign​
h_w_buffer:​
buffer-field("Empno"):view-as = "COMBO-BOX"

h_w_buffer:​
buffer-field("Empname"):view-as = "COMBO-BOX"

h_w_buffer:​
buffer-field("Gender"):view-as = "TOGGLE-BOX"

h_w_buffer:buffer-field("disabled"):view-as = "TOGGLE-BOX".

Above code works fine, further I wanted to know how to initialize/assign the values to the browser combo-box property?

Could any one please help me on this?

Thanks,
Karikalan R

 

jongpau

Member
Have you tried:

<table-name>.<field-name>:LIST-ITEMS IN BROWSE <browse-name> = "<comma-separated list>"

after you have set the view-as for the column?

Paul
 

karikalanr

New Member
Hi Paul,

I have tried this way too. But unable to set this property for temp-table based dynamic browser. Still I am doing R&D on this. Here is the code sample,

assign
h_w_buffer:buffer-field("form_item"):view-as = "COMBO-BOX"
h_w_buffer:buffer-field("variable"):view-as = "COMBO-BOX"
h_w_buffer:buffer-field("mandatory"):view-as = "TOGGLE-BOX"
h_w_buffer:buffer-field("sensitive"):view-as = "TOGGLE-BOX".

/* h_w_buffer:buffer-field("form_item"):list-items = "COM-CONTROL":U. + chr(1) + 1.0.
h_w_fld_hdl = h_w_buffer:buffer-field("form_item"):buffer-handle. */
/* h_w_buffer:buffer-field("form_item"):LIST-ITEMS = "COM-CONTROL,FILL-IN". */

/* h_w_fld_hdl:add-last("COM-CONTROL",1.0).
h_w_fld_hdl:add-last("TOGGLE-BOX",2.0). */

/* tt_form.form_element:LIST-ITEMS IN BROWSE {&browse-name} = "COM-CONTROL,FILL-IN".
*/

Thanks,
Karikalan
 
Top