cancel
Showing results for 
Search instead for 
Did you mean: 

Records maintain in table

Former Member
0 Kudos

Dear Experts,

How to maintain all records in to Table through webdynpro java with out using R/3.

If i gave the values in input fields, i want to store in to table and i want to maintain previous record also.

Can u please help me anyone..

Regards

Kalyan

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thanks for your help

junwu
Active Contributor
0 Kudos

it's up to you.

you can use jdbc to persist your data,

caf is also an option.

former_member185879
Active Contributor
0 Kudos

Hello kalyan,

First of All, Webdynpro is not an database to store values, but webdynpro give you the opportunity to store the values untill the lifecycle of the component, so you can store any number values in the Context Node, but once the appliation closed your values will be destroyed.

To store values in the node,

1. Create a node with 0...N Cardinality.

2. Create attributes to store the values

3. Create an element for the node,

4. add the element to that node.

SDN will give you the snippet on how to create node/attributes/element/add element.

Regards

Nizamudeen SM

Former Member
0 Kudos

Hi,

I already created node and attributes. When i give the values in input fields. then i want to save that record into table.

Like this ia want to maintain allrecords in that table.

After that i want to save that table into KM.

For this can u please provide me code.Help ME

Regards

Kalyan

former_member185879
Active Contributor
0 Kudos

Hello Kalyan

Keep two input fields and below to that provide a button namely "Add".

InputNode - 1...1

-


Name

-


Age

Table Node - 0...N

-


tabName

-


tabAge

On click of that.

iprivateabcView.itablenodeelement element = wdContext.createTableNodeElement(); //Creating Element

element.settabName(wdContext.currentInputNodeElement().getName()); //Assigning name from inputfield

element.settabAge(wdContext.currentInputNodeElement().getAge()); //Assigning age from inputfield

wdContext.nodeTableNode().addElement(element); //Adding that element to node.

wdContext.nodeInputNode().invalidate(); //Invalidating the input node.

Now the values you have entered will be available in TableNode.

Regards

Nizamudeen SM.

Former Member
0 Kudos

Hi,

THnx for giving Code. But i wanto save this data into KM.

I want that code. Can u please help me..

Regards

Kalyan

former_member185879
Active Contributor
0 Kudos

Hello Kalyan,

I am not sure saving data into KM, but uploading of files is possible in KM. but why you want to store that in KM? any specific reason? instead why can't you use R/3 to store data.

The following link is to uploading a file into KM

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af...

Regards

Nizamudeen SM

Former Member
0 Kudos

Dear Nizamudeen,

First of all Thnax for your help. My client requirment is with out R/3.

we need to provide 3 input fields and one button. when the user clicks on input they want to store entire record into km with table. this is my requirment..

Once again Thanx for ur promt Responce.

Regards

Kalyan

Edited by: Kalyan@bcone on Jan 27, 2011 6:52 AM

Former Member
0 Kudos

HI Kalyan,

You can use the portal database to store the data (create a table in DB and use JDBC connection to insert/update/delete).

Please search in sdn to know more about using jdbc connector in WD Java.

To store the data in KM you can maintain an excel sheet and keep on adding data to it. Because KM gives you option to save a file but not the raw data.

Regards

Deepak