cancel
Showing results for 
Search instead for 
Did you mean: 

how to extract the data next page?

Former Member
0 Kudos

Hi Experts,

I have one doubt about how to extract the data to next page.for ex, i have two views, first view i have table like below screen shot

when i select the row it will open next page with extract the first column cell data like below screen shot

how can i do that..i have done while select the row it will move to next page through below lines

  Nameselection : function(oEvent){

  var oTable = sap.ui.getCore().byId("Table");

  oTable.attachSelectionChange(),

  app.to("idSecondview");

  },

but i cant get extract the Name column field data.Please anyone explain that.

Thanks,

Palsaran

Accepted Solutions (1)

Accepted Solutions (1)

former_member182862
Active Contributor
0 Kudos

Hi Pal

Will this example help?

Example

-D

Former Member
0 Kudos

Thanks Dennis,

Now its working..

Answers (1)

Answers (1)

jmoors
Active Contributor
0 Kudos

Hi,

Have you read the developer guide? The application best practices section includes overview of routing and passing the context between views.

https://sapui5.hana.ondemand.com/sdk/#docs/guide/688f36bd758e4ce2b4e682eef4dc794e.html

Regards,

Jason

Former Member
0 Kudos

Hi Jason,

Ya, but i'm not understand clearly because they not explained that much of extract the data method..can you please explain with small piece of code.

Thanks,

Palsaran

jmoors
Active Contributor
0 Kudos

Hi Palsaran,

In your example, you need to pass the context of the selected item of the list to the other view, you don't need to pass the data as it's stored in the model.

If you look at the master and detail view examples these include the necessary code

Master view

Have a look at the onSelect and showDetail methods at the bottom of page, which gets the selected item and passes as parameter.

https://sapui5.hana.ondemand.com/sdk/#docs/guide/a425399ec2fe47a8b9ba9653ab4f6623.html

Detail View

Have a look at the onInit method which retrieves the product id and binds the new view to the context.

https://sapui5.hana.ondemand.com/sdk/#docs/guide/08887a263aa94c14838593aecddf1529.html

Many thanks,

Jason

Former Member
0 Kudos

Thanks Jason,

I'm trying but i didn't get exact one. above i mentioned some lines so now i have to write the code with in the function while select the row extract the Name column field data set to be a title to second view..Please anyone help me.

Thanks,

Palsaran