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

WAD 7 - make HTML dynamic XHTML (call function module, display/hide button)

Dear,

I would like to know how a button in a web template can be displayed or hidden based on the user that executes the template.

We have a lot of web templates for Integrated planning. All users should be able to execute all functions in the template, but only some of them should be able to save the changed/added data. (There is a good reason for this, but I am not going to elaborate on this).

This means that the only difference would be that the SAVE button is hidden for some users.

Until now the only thing we can do is copying the complex web templates and delete the SAVE button. This means that we have to maintain twice as much web templates, while only one simple button makes the difference.

Does somebody know whether it is possible to call a function module in a WAD 7 web template? This function module could generate CSS code with property "display:none" based on some logic?

If somebody has another idea to make the display of a button dynamic, it would be a great help!

Thanks in advance!

Kind regards,

Bart

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 10, 2009 at 12:35 PM

    Hi Bart,

    I don't have any direct solution for your requirement but you can think on these lines...

    Use a ButtonGroup-Item and a Script Item, hope you can call FM or other relevent classes there as per your business requirement...

    [Help button in WAD 7.X|help-button-in-wad-7x;

    Regards,

    Ashish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2009 at 07:26 PM

    You could create a custom web item as per link below and set the value for the user and using JavaScript read the value set by the custom web item and hide the button. Make sure you also have security in place so that users cannot save data by accident.

    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/a056340cfd3b8be10000000a421937/content.htm

    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.