Skip to Content

How to set Properties for Buttons in Standard MDM WebDynpro Components?

Hi All,

I want to hide "edit' button in standard Mdm webdynpro component from webdynpro java. I want to Hide/visible buttons based on conditions. Ho can I achieve this.

Thanks for your time!

Regards,

Manoj

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 05, 2015 at 10:32 AM

    Hi Manojkumar,

    The standard MDM catalog runs as a standalone WD java application and hence WD Java  personalization is not possible over it. So, you cannot hide "edit"  button in the Standard MDM application.

    Also as the application is SAP provided application, there is no possibility of Hide/visible buttons based on conditions.

    Regards,

    Karthika S.


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Karthika,

      The same applicable for WD Java application? I have a SAP Standard admin studio application; I want to hide the edit button on this.

      Can you please suggest any application parameters will help to hide the "Edit" button or complete application from end-user?

      Thinking parameters like,

      editMode

      canHide

      ....

      ...

      ..

      Regards,

      Deva

  • Dec 24, 2014 at 10:43 PM

    Hi,

    create a context attribute say called btnVisibility that has the type com.sap.ide.webdynpro.uielementdefinitions.Visibility

    After this bind the context attribute btnVisibility to the button(s) you intend to hide/show and then

    you can use the code to show it:

    wdContext.currentContextElement().setBtnVisibility(WDVisibility.VISIBLE);
    

    and to hide it:

    wdContext.currentContextElement().setBtnVisibility(WDVisibility.NONE);
    

    I hope this helps.

    Cheers,

    Ervin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 27, 2016 at 10:24 AM

    you can use below line of code

    wdThis.wdGetMasterItem_DetailInterface().setFieldProperty(CUST_HOUSE_NUMBER, FieldLayoutProperty.REQUIRED, true);

    where parameters are

    wdThis."MDM standard interface".setFieldProperty("String fieldCode", "FieldLayoutProperty property", "boolean");

    Add comment
    10|10000 characters needed characters exceeded