on 12-08-2010 11:45 AM
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
thanks for your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it's up to you.
you can use jdbc to persist your data,
caf is also an option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
Regards
Nizamudeen SM
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
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
User | Count |
---|---|
73 | |
26 | |
10 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.