Skip to Content

Step:20 Aggregation Binding. How to bind data without Descriptor.

Dear friends,

Working with Ui5 tutorial step 20: Aggregation Binding.

I have no clue to start as mention below.

This message is described in Step 20 walkthrough.

Please help me to come through.

Thanks in advance,

sudarshan

error14.GIF (25.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Apr 11, 2016 at 04:52 PM

    You just need to define the model in the onit of the component.js as

    var myModel = new JSONModel();

    myModel.loadData("filepath.json");

    this.setModel(myModel,"invoice");

    Regards,

    Jamie

    SAP - Technology RIG

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 12, 2016 at 06:36 PM

    Hi Friends,

    Thank a lot friends. I have got the Output.

    This is my final question.

    Below line get the output

    Output

    but If I add below line, it not displaying data.

    It show the blank Output.

    <<<this question I had from since step 8 walkthrough>>>

    This question is final..I will make the final statement, which will help other in Future.

    Thanks Friends,

    sudarshan


    pro1.GIF (3.6 kB)
    out1.GIF (20.5 kB)
    pro.GIF (4.6 kB)
    out.GIF (21.7 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Apr 12, 2016 at 03:05 PM

    Hi friends,

    Jamie this is my InvoiceList view below.

    Jun Wu, I tried to insert the data model inside the hello pannel View which is the first view, it show "NO DATA".

    The is output is below,

    Thanks & Regards,

    sudarshan


    listview.GIF (10.5 kB)
    data.GIF (110.1 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Apr 13, 2016 at 10:30 AM

    Hi Jun,

    I understand why we are using the line in our code.

    But its not changing the output,

    Any suggestion brother.

    sudarshan


    index.GIF (13.4 kB)
    Add comment
    10|10000 characters needed characters exceeded