Skip to Content
author's profile photo Former Member
Former Member

How to change the design of a button programatically in WDA?

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on May 23, 2013 at 07:56 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 23, 2013 at 08:21 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 23, 2013 at 08:36 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.