on 04-29-2010 7:43 AM
Hi All,
I have created a dictionary project with a database table TMP_TABLE1 with fields ID,FNAME and LNAME.
I have declared it as a public part.
I have another web dynpro DC whcich will use dictionary DC.
I have done the steps till this point
Now I want to know as to how can we insert new records and read those records from web dynpro DC view?
Please let me know the steps for the same using web dynpro java (not using Java Beans or EJB).
HI Radhika,
Try the following:
1. Create a Context Node with a structure mapping with your dictionary table in Dictionary DC.
2. Populate the values in the Dictionary DC.
3. Use this DC in the other DC
4. U can then access the node for adding and reading the values.
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Radhika,
Create a method in the Dictionary DC for adding and reading and create an instance of the node and add the values i.e
<node Object> = wdContext.createandAdd<NodeName>Element();
<nodeobject>.set<attribute>(<input>);
this will populate the data in the node.
once u populate the node, add this to the Interface controller of the Dictionary DC. Add this DC in the second DC and access the node and perform the operations.
Regards,
Poojith MV
I am not getting what you are saying.
See I have created 2 DCs
DC1 - Dicionary Project - Public Part pp_dictionary
DC2 - Web dynpro Project - Used DCs->pp_dictionary
that means web dynpro DC is using Dictionary DC (where I have created database table)
Now I want to read and write data to this table.
How do I do it?
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.