Skip to Content

Binding text ObjectAttribute Ui5

Hi, i'm new in SapUi5.

in my first page I have an input form, after I click search im going to set model like this:


After I call a new page I want to see the objects of the first row in ObjectHeader. I tried like this

  headerText="Dettagli vasca"
           <ObjectAttribute title="Materiale" text="" />
           <ObjectAttribute title="Partita" text="" />
           <ObjectAttribute title="Codice Campagna" text="{VascheDetails>/0/Zccam}" />
           <ObjectAttribute title="Data prod. vasca" text="{VascheDetails>/0/Datav}" />

but it doesn't work. How can I solve my problem?

Thank you


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 10, 2015 at 03:15 PM


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 10, 2015 at 03:18 PM
    1. this.getView().setModel(oJSONModel,"VascheDetails") // Declare your model in onInit

      method of controller and then write this

    1. <ObjectHeader
    2. headerText="Dettagli vasca"
    3. title="{VascheDetails>/0/Matnr}"> // why /0 here??
    4. <attributes>
    5. <ObjectAttribute title="Materiale" text="" />
    6. <ObjectAttribute title="Partita" text="" />
    7. <ObjectAttribute title="Codice Campagna" text="{VascheDetails>/0/Zccam}" /> // why /0 here??
    8. <ObjectAttribute title="Data prod. vasca" text="{VascheDetails>/0/Datav}" /> // why /0 here??
    9. </attributes>
    10. </ObjectHeader>

    Why you have used /0 here?? Is this the actual path?

    Is this an oDataModel or JSONModel??

    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.