cancel
Showing results for 
Search instead for 
Did you mean: 

Color picker control for WD

Former Member
0 Kudos

Hi!

Is there some sort of color picker control for WD?

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

There is no color picker UI element in the Web Dynpro element set. If you are on 7.01 you could use FlashIslands and pretty easily build a color picker UI element in Adobe Flex.

Answers (1)

Answers (1)

yesrajkumar
Active Participant
0 Kudos

Hi,

You can give color to any of your text UI or buttons using the following example .

data: l_amountuielement type ref to cl_wd_text_view,

l_layoutdata type ref to cl_wd_matrix_data,

io_container type ref to cl_wd_uielement_container,

iv_amount type string,

iv_attributevisibility type string,

iv_color type wdy_uie_library_enum_type,

iv_design type wdy_uie_library_enum_type,

iv_indextoinsert type integer ,

iv_id type string.

call method cl_wd_text_view=>new_text_view

exporting

bind_visible = iv_attributevisibility

design = iv_design

text = iv_amount

semantic_color = iv_color -


>eg: '02' for green color

receiving

control = l_amountuielement.

call method cl_wd_matrix_data=>new_matrix_data

exporting

element = l_amountuielement

receiving

control = l_layoutdata.

l_layoutdata->set_h_align( cl_wd_matrix_data=>e_h_align-forced_right ).

io_container->add_child(

exporting

index = iv_indextoinsert

the_child = l_amountuielement ).

Thanks,

Rajkumar.S