cancel
Showing results for 
Search instead for 
Did you mean: 

Hi

Former Member
0 Kudos

Hi All,

I'll explain my simple requirement. I want a webdynpro with 4 fields upon entering some data it should update a database in R/3.So i created a Remote Function Module with Four input parameters entering which it'll create a entry in Database.RFC is working Perfectly i tested it in R/3.

Now i created a Java web Dynpro in NWDS in the models i have imported the adaptive RFC model of my function module.It has come Perfectly.

I have created a custom controller and context binding i have mapped the fieldsof the model.I have also binded the context elements of custom controller to view controller.

I have used the Form tenmplate for the 4 input fields .I have deployed it in the SDM.When i try to run it all the input fields are disabled.

Please help me what to do??

Thank You all In Advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

you have binded the the node elements to input felds of form temlate.

create anelement of node in init method.

//Creation of element of Emp node at context

l_emp = wdContext.nodeEmp().createEmpElement();

//bind the element to node

wdContext.nodeEmp().bind(l_emp);

Former Member
0 Kudos

Hi SHEFALI GANGRADE ,

It worked because of your statement can explain why we have to do this thing.

Thanks All.

Thanks in Advance.

Regards,

Mathivanan.G

Former Member
0 Kudos

Hi,

For every Model , you need to create an instance in your code.

You will be binding the Input/Request modelnodes to your UIElements. So one should instantiate the Request_XYZ and bind it to Nodes .

when you have instance of the modelObjects created then automatically the UIElements will get enabled.

Regards, ANilkumar

Former Member
0 Kudos

Thank You Very Much .... I'll Keep In mind.

Answers (4)

Answers (4)

Former Member
0 Kudos

Mathivanan G ,

I have done the same example just now and it is working fine.

Please recheck the Binding and also mapping of input feilds to proper contect variables.

you can also go through a detailed PDF in below mentioed site

https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-d...

example 4 and 9.

regards

Anil Dichpally

Former Member
0 Kudos

Hi,

Check the thread

You need to create model instance in your component/Custom controller.

Regards,ANilkumar

Former Member
0 Kudos

Hi,

the four inputfields are under any node or invidually in context.

If individual then go to the properties and check the with bound to Context value attribute or not .

If these are in node the cardinality make it 1..1

Thanks,

Lohi.

Former Member
0 Kudos

Hi Mathivanan,

Did you assisgn the four InputFields with their respective context variables?

To do that, go to properties of InputField, then in text link the respective context variable.

Regards,

Vaibhav