cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign images dynamically

Former Member
0 Kudos

Hi all

I added couple of .bmp images to my WDA.

I like to assign these emages dynamically.

I used following code in Servicec call method of Component.

I am getting data to lt_c_dashboard. In this Internal table one of the filed is Status. I Like to assign the added image to the Status field.

Please correct me.

  • the invocation - errors are always fatal !!!

CALL FUNCTION 'Z_DATA'

TABLES

dashboard = lt_c_dashboard.

LOOP AT lt_c_dashboard INTO ls_c_dashboard.

ls_c_dashboard-status = Image1.bmp

MODIFY lt_c_dashboard FROM ls_c_dashboard

INDEX sy-tabix.

ENDLOOP.

  • store output to context

IF lt_c_dashboard[] NE lt_c_dashboard_cp[].

lo_dashboard->bind_table( lt_c_dashboard[] ).

ENDIF.

Thank you all.

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_szcs
Active Contributor
0 Kudos

Hello Rama,

displaying an variable number of images can be achieved by placing the image ui element

inside of MultiPane ui element and binding the dataSource attribute of the MultiPane

ui element to the context node where the data resides. That way, all images will be

displayed.

Best regards,

Thomas