cancel
Showing results for 
Search instead for 
Did you mean: 

Blocked inputFields

Former Member
0 Kudos

Hello,

we have a web dynpro testapplication with only two views:

On the first view there are some inputFields, the values of these fields are written to a database using a web service.

This happens if the user clicks a button. In the same action of this button the user of this view is redirected to the second view.

On the second view we have a simple button which leads back to the first view.

After coming back from the second view all the input fields on the inputFields are blocked - but i cannot find a reason for this.

Does anyone have an idea why?

Thanks for help,

André Siegling

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Let me guess:

1. Blocked == disabled

2. You are using model generated from WebService. Your input fields bound to model node responsible for accepting request parameters.

If this is true, it seems that this node get invalidated after WebService invocation, therefore you input fields has no underlying context element to be bound to.

So you have to re-create necessary element in context.

VS

Former Member
0 Kudos

Hi Valery,

i think your idea is the right one - can you give me a hint how i have to recreate the context?

Regards,

André

Former Member
0 Kudos

Well, let us call top-level model node MyService (it has 2 subnodes for input & result).

Then re-creation is as simple as wdContext.nodeMyService.bind(new MyService()).

VS

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

It seems in the first view ur inputting values after clicking the button u will b directed to second view in second view if you click button it should come back to first view in your case all input fields are disabled. The reason may be after creating a model(Backend/database)have you mapped right input attributes to the view in turn to UI elements check this first then check your action , and what actually ur action will do, genarally mapping between model to coustom controller then coustom controller to views will takes place depending on the requirement check your binding of UI elements to th right context elements.

Hope this helps you

RK

Former Member
0 Kudos

Are you tring to reset the context when you are triggering the second view.

It would be better if you could tell us the cordinality which you have provided on your inputfield of the first view.

Cheers,

Kumar