on 06-01-2009 2:20 PM
Hi,
I have the status field in my table .it contains 0 and 1.
I bpund the table into grid in my view and chnage that column to CheckBox.
but its showing always checked.
I dont want to do any coding for this.
I am ready to change my column datatype.
so please let me know which datatype is sutable for bind correct
data into Checkbox column.
Regards,
Kumar K
Hi,
You might have taken char1 as datatype.
Initillay on what basis this column shuld be checked/unchecked.
for ex: if the status is 1 you want to check the checkbox, if the status is 0 then uncheck the checkbobx.
On what basis/column value you want the checkbobx to be shown initially.
When you bind the table you need to set this CHECKBOX column.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you want the checkobxes to be unchekd then use this code before binding-
Pass the values space(abap_false) or X(abap_true).
X means checked, space means unchecked.
Loop at lt_table into ls_table
ls_table-flag = space .
modify table....
endloop....
lr_node->bind_table( lt_table ).
flag is char(1).
this flag is a context attribute that is inside the node to which the table is bound.
Regards,
Lekha.
You can use Boolean for checkboxes.
Radhika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.