on 05-23-2013 8:32 AM
Hi experts,
I am creating a webdynpro application, in that there are two buttons 'SHOW ALL' and 'SHOW CURRENT'. Is it possible to change the design of these buttons using program? If yes pls give the solution.
Thanks in advance,
Pradeep
Hi Pradeep,
There is a design property of the button. You can bind the design property with context attribute of type WDUI_BUTTON_DESIGN. It has following values -
00 standard
01 emphasized
02 previous
03 next
Set the attibute value to one of these and you can change the design at runtime. Thanks!
Regards
Abhinav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I have created the following context attributes.
Of type
And I have done the following code also.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS NOT INITIAL.
lv_emphasise_all = 01.
lo_el_context->set_attribute(
name = `EMPHASISE_ALL`
value = lv_emphasise_all ).
ENDIF.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS NOT INITIAL.
lv_emphasise_current = 00.
lo_el_context->set_attribute(
name = `EMPHASISE_CURRENT`
value = lv_emphasise_current ).
ENDIF.
Still it is not working, I am getting the same output.
Please help.
Hi Pradeep,
It should work. Where you have written this code. Also can you replace your code with following
lo_el_context->set_attribute(
name = 'EMPHASISE_CURRENT'
value = '00' ).
lo_el_context->set_attribute(
name = 'EMPHASISE_ALL'
value = '01' ).
There should be a round trip to change the design. Thanks!
Regards
Abhinav
Hi Pradeep,
In addition to Abhinavs reply, you can change image source property by adding some icons. Press F4 on image source you will get all icons. check once.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep
Yes its possible.
You need to create context attribute and bind the text (or image whatever you want to change at run time) property with the context attribute.
Then you can assign the value of the context attribute at run time.
Regards
Swati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.