cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed on Web DynPro

Former Member
0 Kudos

Hi all,

I have done the tutorial on " <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#16">Accessing an Email Web Service</a> " but encountered 1 error, it seem that the whole form is disable and i can't key any value in it. I ensure the element property of the Container, TextEdit & InputField have the Enable property set to True and the ReadOnly is set to False and test it again but the result is still the same, cannot input any value. Any ideas what causes the error?

I have another colleague also trying the same tutorial but the strange thing is that she can't create the model of the web service. She try to create but there is no model created. Any help on this?

Thank in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rayden,

Perform the contextMapping and databinding once again

regards

ambicasony

Former Member
0 Kudos

Hi Ambicasony ,

I have delete the whole web dynpro tutorial and re-try with contextMapping and databinding but the result is still the same.

regards

Rayden

Former Member
0 Kudos

Hi,

Check if you have initialised the Email web service node with the

model class instance in the wdDoInit of the component controller as below.

public void wdDoInit() {

//@@begin wdDoInit()

// create a new instance of the Web Service ModelClass

Request_SendEmailPortType_sendEmail req =

new Request_SendEmailPortType_sendEmail();

// bind new instance of the Web Service ModelClass to the

// independent Model Node &#8242;WebServiceEmail&#8242;

wdContext.nodeWebServiceEmail().bind(req);

//@@end

}

Answers (2)

Answers (2)

Former Member
0 Kudos

HI Rayden,

If u bind InputFiled to a variable from a node of Cardinality 0.N, then it will appear as disabled, because there is no element in the node. If this is the case, make the cardinality of Node as 1..N or 1..1

Regards

Fahad Hamsa

Former Member
0 Kudos

Hi Rayden,

Have you done Context Binding?

If not , you have to bind a value attribute to the inputfield in the form.

For doing this, right click input field -


> Goto properties -


>

set the <b>Value</b> property to a value attribute of context.

Regards

Madhu

Former Member
0 Kudos

Yes.. i have done the context binding. Somehow the whole form is disable which i'm quite puzzle.