cancel
Showing results for 
Search instead for 
Did you mean: 

records not displayed on the table view

Former Member
0 Kudos

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..

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanx for ur reply

But we have created the WSDL and r using Web service model

All methods for show and inserting records are already defined in session bean.

Now cud u provide us the appropriate coding for it.

PradeepBondla
Active Contributor
0 Kudos

Hi,

Did you invalidated the node right after executing the model?

After executing your model write wdcontext.node<model table node>.invalidate();

PradeeP

PradeepBondla
Active Contributor
0 Kudos

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