Quantcast
Channel: SCN : All Content - Business Server Pages (BSP)
Viewing all articles
Browse latest Browse all 296

Modifiying Column in ITERATOR to include image?

$
0
0

I've been playing around with this all morning, I have an Iterator for my tableView and I would like to add a refresh image to one of the column headers.

 

What I have been trying to use the DISPLAY_BEE property of the columndefintion

 

In the "IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS" here is what I'm trying.

 

DATA: colhead_bee TYPE REF TO CL_BSP_BEE_TABLE.
DATA: txt TYPE REF TO CL_HTMLB_TEXTVIEW.
DATA: image TYPE REF TO CL_HTMLB_IMAGE.

image = cl_htmlb_image=>factory( id = 'mnu_refresh'                             src = '@42@'                             alt = 'Refresh'                   onClick = 'myConfirmAlert' ).               
txt = cl_htmlb_textView=>FACTORY( text = 'Status' ).               
CREATE OBJECT seats_bee.
colhead_bee->ADD( image ).
colhead_bee->ADD( txt ).

APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.  <def>-COLUMNNAME  = 'STATUS'.  <def>-TITLE       = 'Status'.  <def>-WIDTH       = '10%'.  <def>-SORT       = 'X'.  <def>-DISPLAY_BEE = colhead_bee.

 

But I get no error and no image, is it even possible and if so am I barking up the wrong tree?

 

I checked the SBSPEXT_TABLE example but I didn't see maybe I missed it where someone has done something similiar??


Viewing all articles
Browse latest Browse all 296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>