cancel
Showing results for 
Search instead for 
Did you mean: 

Dynpro fields are disabled

Former Member
0 Kudos

Hi there,

I want to call a Remote function, but before that i want to set some fields by the values typed in by a web dynpro application.

I imported the RFC model, defined a view but when the view comes up for some reason all the fields are disabled.

Can anybody tell me what i should do in order to get the fields enabled

thanks

Bertil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If the rfc imported is zabc_input, I hope you have done the following.

zabc_input inp=new zabc_input();

wdcontext.nodezabc_input().bind(inp);

Suppose you have to input some String value and the attribute is name and mapped to an input field try out the following.

inp.setName(new String);

Hope it would help.

Do pls send in feedback.

Regards

Noufal

Former Member
0 Kudos

Hi Noufal,

This was indeed the problem.

Thanks a lot!

Bertil

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Check out the cardinality of the node which you want to show it as an inputfield.In case the cardinality is 0..n then Change the cardinality to 1..1 .

Hope it helps.

Kumar

Former Member
0 Kudos

Hi,

If you are doing in component controller the that should be fine.

Check the Model attributes.I mean Readonly properties !!

And verify the context mapping also once again.

Regards, Anilkumar

Former Member
0 Kudos

Hi,

Create a instance of the model an bind the context once.

Ex : If you modelContext name is "RFC_FM1" then

in the init create a instance of the class and bind it to the model like following

Modelclass newinstance=new ModelClass();

wdContext.nodeRFC_FM1().bind(newinstance);

Regards, Anilkumar

Former Member
0 Kudos

Hi,

In the wdDoInit of the component controler this is already done!

Should i do something with wdContext inside the viewcontroler?

Bertil