cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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.


ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Good point Karthika, I wrote a solution for custom wd java applications.

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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");

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

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