on 06-10-2007 6:53 PM
Hello All,
Happy Monday morning...!
My requirement : Pass a variable to the iterator class's RENDER_CELL_START method...such that it should change dynamically for every ROW...
O.K. i did my part of searching and found
And as mentioned, I chose to create a public attribute(RG_ID) of my iterator class, and then in my layout called it as follows :
<%
loop at itab into wa.
clear wa.
read table itab into wa index sy-tabix.
lw_iterator->RG_ID = wa-RG_ID.
endloop.
%>
<htmlb:tableView id = "TV1"
table = "<%= gt_exc_tab_mod %>"
iterator = "<%= lw_iterator %>"
selectionMode = "MULTILINEEDIT"
keepSelectedRow = "TRUE"
filter = "SERVER" />
But the problem with this is that it is just passing the last RG_ID to the RENDER_CELL_START...!
I understand that the logic used by me is incorrect...but right now can't think of anything else...!
Please help..!! a bit of URGENT..!!
Thanks,
Tatvagna Shah.
hello Tatvagna,
u can set the value of public attribute inside RENDER_ROW_START method. u can say
me->RG_ID = sy-tabix. This will set its value per new row and u can use the same inside ur RENDER_CELL_START.
Regards
Rajeev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.