Skip to Content
author's profile photo Former Member
Former Member

Need clarification on Item Binding Please

Hello Friends,

I tried to understand about binding subject in UI5 but didn't didn't grab much knowledge as of now.

In the below code for Item binding,

What does "/results" mean in the statement?

My side i have checked, results is no where is used or declared, But i could see output only when i use "/results" during binding.

Kindly explain its characteristics.

oTable.bindItems("/results", template, null, oFilters);

____________________________________________________________________________

var template = new sap.m.ColumnListItem({ id : "first_template", type : "Navigation", visible : true, cells : [ new sap.m.Label("ID", {

text : "{Empid}" }),

new sap.m.Label({ text : "{Empname}" }),

new sap.m.Label({ text : "{Empadd}" }),

new sap.m.Label({ text : "{Empdes}" })

]

});

var oFilters = null; oTable.bindItems("/results", template, null, oFilters);

__________________________________________________________________________

Thanks,

Prakash

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jul 19, 2016 at 01:48 PM

    Hi Prakash,

    In this example "/results" is nothing but the Entity-Set name which is available in your service/Mock data. Here they are using aggregation binding to bind the all the data inside the Entity-Set.

    to get better understanding Go Through the SAPUI5 SDK Documentation Data Binding Tutorials

    SAPUI5 SDK - Demo Kit

    Thank you,

    Regards,

    JK

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Jayakrishnan Chandramohan

      Hi Jaya,

      We are using back end server to fetch data.

      Dev tool (Eclipse) -> Gateway server (Hosts APP) -> SAP ECC system ( holds Transaction data)

      Thanks for your efforts for making to understand

      Thanks,

      Prakash

  • Posted on Jul 20, 2016 at 09:30 AM

    results is just the path. it is only for the following case.

    when you put the odata to jsonmodel, it will have that.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.