cancel
Showing results for 
Search instead for 
Did you mean: 

wdDoInit() is not called

Former Member
0 Kudos

Hi,

I am running an example from SAP WebDynpro tutorial (A Simple Input form) and I got a null value error from the checkMandatory method.

The method throws the null exception beacuse a field value is NOT initialized. The initialization should have been set in the wdDoInit() method but The wdDoInit() method is not executed.

I thought wdDoInit is called automatically before a form is rendered. Pls help me trouble shoot this error. Do I miss a setting a flag or variable ?

Thanks in Advance

-Viliandy

Accepted Solutions (1)

Accepted Solutions (1)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

First make sure that you have included the view into the window.

Regards,

Rich Heilman

Former Member
0 Kudos

The view is already included in the window. Is there anything else?

Thanks

-Vili

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Please be sure that any input fields on your view are bound to a view context attribute.

Regards,

Rich Heilman

Former Member
0 Kudos

Thanks Rich....I rename the context attribute name and the input field is not bound to the new attribute.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Right, when you change the name of the attribute, you must re-bind the layout field to the context. Glad that it worked out for ya.

Regards,

Rich Heilman

Answers (0)