cancel
Showing results for 
Search instead for 
Did you mean: 

How data is inserted into table?

dhananjaysanap
Explorer
0 Kudos

I have Create one webdynpro java application with two views.In first view i enter the details like Id,Name,& date of joining and in second view i have taken a table to save the data which user entered.

How I can save that data into the table?

Edited by: DhananjaySanap on Dec 16, 2011 12:44 PM

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

just create a element of the Node which is bind to your table.

set the element with value you got from the first view.

the node you bind to the table should be in Component controller originally, then both first and second view can be mapped to that node. and you can manipulate the same data in both views.

dhananjaysanap
Explorer
0 Kudos

I have done that.I have taken three buttons save,clear,Display.I want to insert the entered data into the table when i click on save button?

junwu
Active Contributor
0 Kudos

i have told you, you cannot follow?

or you want to save data to DB?

dhananjaysanap
Explorer
0 Kudos

Here Now I got the Error as IDetailsElement & IEmployeeDetailsElement can not resolved.

IDetailsElement newelement = wdContext.nodeDetails().createDetailsElement();

IEmployeeDetailsElement element = wdContext.nodeEmployeeDetails().currentEmployeeDetailsElement();

newelement.set(element.getID());

newelement.set(element.getName());

newelement.set(element.getDateofjoining());

wdContext.nodeDetails().addElement(Detailselement);

junwu
Active Contributor
0 Kudos

ctrshiftO to import the missing object

dhananjaysanap
Explorer
0 Kudos

I have insert one record in table,but when am trying to insert 2nd record first will be not there in table.It only shows the current inserted record.

How it is?

Former Member
0 Kudos

Hi

Instead of "IDetailsElement newelement = wdContext.nodeDetails().createDetailsElement();"

use

IDetailsElement newelement = wdContext.createandAddDetailsElement();

Best Regards

Suresh

dhananjaysanap
Explorer
0 Kudos

Can u please tell me how to perform search operation?

Former Member
0 Kudos

Hi

Iterate through the size of array and search what you want at that instance

For example you want to seach employee name

for(int i=0;i<wdcontext.nodeNodename.size();i++)

{

if(wdcontext.nodeNodename.getnodeNodenameelementat(i).getEmployeename.equals(search parameter))

return i;//or print details of i

}

thanks and regards

Suresh

dhananjaysanap
Explorer
0 Kudos

Can We add the web dynpro component in eclipse?

Answers (0)