on 12-23-2014 7:51 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.