Skip to Content
0
Apr 09, 2012 at 05:19 AM

Dynamic Prog. in WDA need to know exactly which input field user has selected and to which node is that input field binded to

27 Views

Hi All,

Greetings.

I am developing an application in web dynpro abap.The application has structure like this

(Lable) (Toggle link) (Input-Field1)

when user presses "enter" in the input field another input field should appear and the structure should be like this

(Lable) (Toggle Link) (Input Field1)

(Input Field2)

ANd so on i mean, when user presses enter on input field 2 , third input field should appear. I was able to achieve this as whichever input field i created dynamically had an action written for it.

Now the problem is that user wants the structure like this

(Lable1) (Toggle Link1) (Input field 1) " This area is binded to node1 and then attributes are binded in it

(Input field 2)

(Lable2) (Toggle Link2) (Input Field 3) " This area is binded to node 2 and then attributes are binded in it

(Input Field 4)

" NOte that in this case the number of nodes and attributes are also dynamic i.e there can be 1 node or many nodes based on scenario.

To achieve this i have created two nodes and two attributes in the modify view. i successfully got the following on screen

(lable1) (toggle link1) (input field1)

(lable1) (toggle link2) (input field 3)

all the input fields are dynamically created and hence i have only one action for them where i can code to add one more input field on screen.but that input field should be added in that particular node wherein the user presses enter. for eg.. user presses enter in "input field1" "input field 2" should be created as shown above and if user presses enter "input field3" "input field 4" should be created. how to acheiev this is a problem for me because i need to know exactly which input field user has selected and to which node is that input field binded to.

I hope i am clear in communicating my problem.

Any help will be appreciated.

Thanks and regards,

Sahai.S