on 10-11-2008 9:22 AM
Hi Experts,
Generally what has wdDoInit() Method of any View to contain in order
to have the UIElements (inputfield) enabled .
My View wdDoInit() looks like and same as the Custom Controller's wdDoInit() :
wdContext.current__I_Rf02_Ial_Query_InputElement().setI_Valdat(wdThis.getCurrentDate());
wdContext.currentContextElement().setOrgUnitSearchCalled(false);
__I_Rf02_Ial_Query_Input input = new __I_Rf02_Ial_Query_Input();
wdContext.node__I_Rf02_Ial_Query_Input().bind(input);
input.setI_Iepva_Selcrit(new Cciht_Ipeva());
input.setI_Incident_Selcrit(new __Is_Rfc_Iasel());
wdContext.current__I_Rf02_Ial_Query_InputElement().modelObject().setI_Iepva_Selcrit(new Cciht_Ipeva());
II_Iepva_SelcritElement ipe = wdContext.currentI_Iepva_SelcritElement();
Nevertheless it is disabled !
Regards
sas
Hi,
The above method which i had posted is a manually way to enable the input field. I had suggested this because i had seen many posts by you on the same issue. I dont know why your input field is disabled. If you map your UI to any attribute in the context with 1..n or 1..1 cardinality then that UI should be enabled. Try to delete the model and also all your context attributes and reimport the model with adaptive RFC. Then the cardinality of your node custom controller will be by default 1..n, just bind the UI to that model attribute.
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it is model attribute
Regards
sas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Just try once to do this, your input field will be enabled.
1) create a context attribute of Binary type
2) bind the Enable property of inputfield UI element to that attribute of Binary type and
3) In WDdoInit() enable the input field UI element by setting the binarycontext attribute true like..
wdContext.currentContextElement.set<<attr>>(true);
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Bind the input field to some attributr in the context. then ur input field will be enabled,
Check that ur value node should have carrdinality 1-1 or 1-n.
Thanks,
Raju Bonagiri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
I mean to make e.g. an input field enabled which
coding must be inserted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
wdDoInit() method is the first method excuted before view is loaded it is the same method as sevlet init() method
Regards
Ruturaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.