on 07-29-2008 11:23 AM
We have a scenario as follows :
I am working on webdynpro project in which i have table on one of my second view.
when i insert a records in the table by entering its values from the Form on the startView, it is being shown as populated on the table.
But once I insert my second record(s) also, the first or the previous records are not visible once i click on the display button.
Can anyone help me to solve my problem as to how to see all the records inserted in the table on this view.
Also plz let me know how to physically check the records on the database side.I am using the dictionary tables as my datasource and using SAPDB database.
Thanx in advance..
hi
Try this code.
Node-->Person
Attributes of Person-->FirstName,LastName(String)
ComponentController-->FirstCompController
FirstView:
onActionDisplay(...){
String fname= wdContext.nodePerson().currentPersonElement().getFirstName();
String lname=wdContext.nodePerson().currentPersonElement().getLastName();
wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().setFirstName(fname);
wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().setLastName(lname);
wdThis.wdFirePlugOut1();
}
SecondView:
onPlug<plugname>(..)
{
String fname=wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().getFirstName();
String lname=wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().getLastName();
IPrivateSecondView.IPersonElement elem=wdContext.nodePerson().createPersonElement();
elem.setFirstName(fname);
elem.setLastName(lname);
wdContext.nodePerson().addElement(elem);
}
you have to do navigationlinks from FirstView to SecondView and viceversa and also context mapping between ComponentController and views.
In the second view also create actionbutton for navigating to the firstview and
Fire the oubound plug also.
Regards
sowmya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi pankaj,
At the end of the table method ( where you are populating the table data) write invalidate method. I mean invalidate the table node.
wdContext.node<tablenode>.invalidate();
PradeeP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.