Skip to Content
avatar image
Former Member

initialization in wdDoInit( ) method to enable Input Fields on screen.

Hi all,

I have created a Web Dynpro Project with following Hierarchy in Controller and model.

Request_MI_FILE_MI_FILE (type Request_MI_FILE_MI_FILE)

|


MT_FILE ( Type ComplexType_DT_FILE)

|----Record (Type ComplexType_Line)

now to initialize these fields in the wdDoInit() method of controller...

I have written following code...

public void wdDoInit()

{

//@@begin wdDoInit()

//$$begin Service Controller(1769704131)

Request_MI_FILE_MI_FILE v1 = new Request_MI_FILE_MI_FILE();

ComplexType_DT_FILE v2 = new ComplexType_DT_FILE();

ComplexType_Line v3 = new ComplexType_Line();

wdContext.nodeRequest_MI_FILE_MI_FILE().bind(v1);

wdContext.nodeMT_FILE().bind(v2);

wdContext.nodeRecord().bind(v3);

v3.setCust(new String());

v3.setCustName(new String());

v3.setMaterial(new String());

//$$end

//@@end

}

This still keeps the fields not initialized and thus not available for input on view screen when the application is deployed and run..

Kindly give appropriate inputs ...

Thanks in advance,

Tejas Jani

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 28, 2007 at 11:47 AM

    hi,

    You have missed the wdContext.nodeRequest_MI_FILE_MI_FILE().execute();

    Please add this and try.

    Hope this will solve your problem.

    thanks & regards,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 28, 2007 at 11:55 AM

    Hi,

    Execute and invalidate the nodes using the following

    wdContext.nodeRequest_MI_FILE_MI_FILE().execute()

    wdContext.node<responseNode>().invalidate();

    Regards

    LakshmiNarayana

    Add comment
    10|10000 characters needed characters exceeded