cancel
Showing results for 
Search instead for 
Did you mean: 

Display segmented horizontal bars in TableView column

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Alwyn

Thanks for the suggestion. I will try on those lines.

Regards

Venu

Former Member
0 Kudos

Hi Venu,

Is your problem solved?

Regards,

Alwyn

Former Member
0 Kudos

Hi Alwyn

I could not finish the coding as some high prio tasks had to be handled first.

Regards, Venu