on 09-07-2011 4:52 PM
Hi Experts,
I am on SRM 7.0 and in one of the standard webdynpro screen we have done a customization to disable a field in the screen and make it invisible. The enhancement was done through the standard BADI WD_BADI_DOMODIFYVIEW.
The question is not specific to SRM but more to WebDynpro. There are two input field: preferred supplier and supplier. The existing change was to disable the field preferred supplier but now after the upgrade there is a binding created for both the fields and both have been assigned to same attribute in the context element. Due to this the existing code causes both the fields to be disabled in the webdynpro screen.
Is there anyway i can set the property of only single field in the attribute without affecting the other?
You can control the behavior of the UI Element by getting the right ui element object from the view.
all the Ui element classes provides getter and setter methods for the UI property. Try to do a post_exit enhancement for the wddomodify view.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Baskaran,
In the existing functionality the class if_wd_component is being used to change the ui element property but now two elements have been binded to one context which is causing both the elements property to change when if_wd_component~set_enabled method is being used. Is there any other method that can be used to set the property of particular ui element of the context?
Praveen, thanks for the info, my current changes are in post exit only. I am looking for the right method to use to set the ui element property for bound context
The other method is already suggested. What happens here is that ui element property is controlled by the binding of the context attribute. When the attribute is binded to more than one UI element property and you want to have different behavior for each UI element then the options are
a) bind a new attribute to the UI element and control the behavior by setting the values to the context
b) directly manipulate the UI property as suggested by my earlier post
by the way, if_wd_component~set_enabled does not have such method. You probably meaning that the code call a component controller method.
Hi Saara,
My customization is restricted to only disabling one ui element, the ui element is determined during runtime from a configuration table as which should be disabled, I was hoping for a solution which can be used to disable only the required ui element else I would need to hardcore the effected ui element which is not desirable.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.