cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the input field value to another string

Former Member
0 Kudos

Hi all,

I am new to web dynpro java,

How to get the inputfield data into the another string.

can any body pls let me know the solution.....

thanks&regards

Viswa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

i think we have created one attribute which bind to input field.now u have to create one method on which you wil get the input field data.create one more attribute say<getinputfldvalue> of type string.

and write a code.

wdContext.currentContextElement().set<getinputfldvalue>context(wdContext.currentContextElement().get<yourinputfieldcontext attribute>();

Thanks

Abhilasha

Former Member
0 Kudos

Hi abhi,

I have created one inputfield and one text view.

while running what ever data we have given in the input shield that sould be display in the textview.

for this where we have to paste the code in the modifiedview() or init().

thanks in advance.

thanks&regards

viswa

Former Member
0 Kudos

Hi,

For that you have take ui element Button and for this button create a method.

and write the code in method



wdContext.currentContextElement().set<textviewcontext_attribute>(wdContext.currentContextElement().get<yourinputfieldcontext attribute>());

let me knw if any issue.

Thanks

Abhilasha.

Former Member
0 Kudos

Thankyou..........

No issues my problem is solved.........

thanks,

Viswa

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

write the code inthe init90 method or in a button .

if you are going with dynamix programming you can use wddomodify method

Former Member
0 Kudos

hello....

if your new...try these examples....will help you with the basics of WD

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94a...

Thanks