cancel
Showing results for 
Search instead for 
Did you mean: 

wdDoInit() Method of any View

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (5)

Answers (5)

Former Member
0 Kudos

it is model attribute

Regards

sas

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

I mean to make e.g. an input field enabled which

coding must be inserted.

Former Member
0 Kudos

Hi

wdDoInit() method is the first method excuted before view is loaded it is the same method as sevlet init() method

Regards

Ruturaj