Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problems with Table View Iterator

In my MVC model I have a table view with single select mode. I render the table view with the table view iterator.

In my table view for a particular column I need to change the traffic color signal. Initially the column must render red color light.

I can do the same using the code

<!code> when p_column_key

<!code>case ICON.

<!code> data: light type string.

<!code> light = = cl_bsp_mimes=>sap_icon( id = 'ICON_RED_LIGHT' ).

<!code> p_replacement_bee = CL_HTMLB_IMAGE=>FACTORY( id = p_cell_id src = icon_light ).

Now If I click on any of the row in table view the color of the icon has to change to yellow in color.

Please suggest me how to accomplish this with iterator

Not what you were looking for? View more on this topic or Ask a question