on 2005 Jul 19 11:02 PM
Hi
I need to display segmented horizontal bars in each row of Table view for certain column (the bars and the segements on the bars - both size and length - vary for each row depending on some values). So the bar can have 3 or 4 segments, each with different color and size and these segments together make them a bar.
Can anyone please let me know how I can achieve that.
Thanks
Hi Venupriya,
1. You need to use tableview iterator.
2. Use tag to create your segements.3. You should have fields in your itab like seg_width1, seg_color1, seg_width2, seg_color2 and so on.
fieldsymbol fs_width, fs_color.
L_HTML_OBJ TYPE REF TO CL_BSP_BEE_TABLE
L_HTML TYPE STRING
x = 1
if x <= 10. "loop thru 10 times
+ depending upon the value of x assign the appropriate col to the fieldsymbols and read width & color+
CREATE OBJECT L_HTML_OBJ
create a string that looks something like this, with width & color concatenated and moved to L_HTML.
</span>
x = x + 1.
endif.
L_HTML_OBJ->ADD_HTML( HTML = L_HTML ).
P_REPLACEMENT_BEE = L_HTML_OBJ.
I hope these tips will help you to write the final code.
Regards,
Alwyn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
11 | |
10 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.