cancel
Showing results for 
Search instead for 
Did you mean: 

Fetching data from the table and displaying it in another view.

Former Member
0 Kudos

Hi,

By clicking on a particular Reg.No. in the Reg.No. column, its navigating to next view, where i need the data to be populated by fetching from the corresponding row of table.

Please help me out what i have to do.

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Suresh,

If you are reading data from model, then map context of model to Component controller context. From controller context you can map to Ist and IInd view context. In this way data is aviable in both view, except that in Ist view

you are displayin all data and in second view you want to view selected row data. For this you need to pass Reg No from Ist view and in second view, loop through records and select the entry corresponding to selected Reg No.

best of luck,

Ganga.

Former Member
0 Kudos

Hi

1.Create contextnode and context attribute RegNo in the component controller and map it to the context of both the views.

2.Bind this context to the table of the first view.On table properties onLeadSelect creat an event.

When a row is selected this event is triggered,In this event

add the code to

Create a new window which contains the second iview .

3.On the second view bind the attribute to the textview.It automatically gets populated.

Regards

Akshaya

Former Member
0 Kudos

hi Akshaya,

its working.. but its fetching only the integer datas and populating in the next view its not populating the string. but its not showing any error.

help me out..

thanks..

Former Member
0 Kudos

Hi Suresh,

Can you just brief what exactly you are trying to do and what attributes you have and data types of those attributes.May be context mapping is not done properly.

Regards

Akshaya

Former Member
0 Kudos

Hi SureshKumar Arumugam,

Please follow the steps as given below:

1) Map context of First view to Controller context.

2) Map controller context to second view.

By this point, you have data vaialable in second view, which you can use to display.

Regards,

Ganga.