on 2006 Nov 07 1:17 PM
Hi,
I have a table which is populated using a BAPI.
The fields are diaplayed as InputFileds(editable) so that the user can edit them.
Whenever a field of a row is edited, the user has to click a CheckBox next to it, to indicate that he/she has edited that particular row.
Each row of the table should have such a CheckBox.
The problem is how to integrate these CheckBoxes in the table.
Since I have used 'Apply Template' for the table, for adding the CheckBox column I used 'Insert Column' and then using TableCellEditor I have integrated the CheckBox.
In the Context I have created a node, and under that have created a context variable of type Boolean. This variable is then mapped to the 'checked' property of the CheckBox.
But the problem is that when one CheckBox is clicked , all get clicked......as they are bound to a single context variable......
What do I do so that each CheckBox gets clicked individually??????...........
Also, I want to get the contents of the row selected depending upon the clicked CheckBoxes.
Thx in adv!
Regards,
harshada.
hi
thanx all u guys.......
ur solution really worked!!....
now theres a separate checkbox for each row nd the yget clikced individualy...
hurray!!.yippee!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there,
Dont bind the checkbox to the new attribute in another node. Create a value attribute of type boolean under the same node which is the datasource for the table. Then, each line will get selected individually, and you just have to see whether this checkbox is selected by looping through the table node, to get all the selected items.
By this method -however- you cannot map the node to any model node directly. You have to fill this node and copy data from this node programmatically.
Tell me if its not clear, and I will explain in detail,
Regards,
LM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can loop at the Context of the Bapi and write the value in a new Context Node.
There you can add a Value to the Tablestructure with a boolean.
Than each Table record has his own checked or not-checked Status.
Regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.