cancel
Showing results for 
Search instead for 
Did you mean: 

TableView Model (Help needed)

Former Member
0 Kudos
71

Hello Everybody

This is my situation.

I am getting table data of 2 tables from R/3 using JCA and displaying one table in a dropdown list and the other table in the TableViewModel.I have a submit button at the end in the JSP page. So when I click the submit button I am displaying another jsp page where I have a button to go back to the first page. When I am displaying the first page again the data in the Dropdown is displayed but the tableview data is not displaying only the table with heading is displayed. Can somebody please help me.

I tried several forum postings but not getting this problem resolved.

I am also having problem with getting the data from the selected row of this table(It is set to singleselect).

Any help or suggestion will be greatly aprreciated.

Thanks

Renu.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Since you are moving between pages, the problem should be in the management of sessions. Check the bean model and the session attributes you are setting.

Regards,

Vijai

Former Member
0 Kudos

Thank you very much for your answers. The scope of my bean is application. Do you think I should make it session. I had problems before with session beans thats why I am using application scope. Please let me know.

Thanks

Former Member
0 Kudos

Renu, most commonly used scope is session but again it depends on why you want to make is application scope if there is a reason. Making it session scope should not be a problem.

Even if you have it at application scope level, try debugging and see if the table model object is removed or modified when you click go back button.

If you still have issue, could you post your let us know how you are retrieving the table model object in the JSP.

Regards

Siva

Former Member
0 Kudos

Hi Renu,

From the scenario you described it looks like you have lost the data in the model bean. If you are using session object to store the data make sure the session object is not cleared when you click back button.

Regards

Siva