Skip to Content

Display odata values in Fragments

Hi,

I have a button in my xml view which displays a popup on button click. I am able to display the popup using the concept of fragments. Now I want to display the data to these fragment from the odata dynamically. I have attached my fragment code (PFA).

Since this is the first view for my app I am not able to display data here but I am able to see the data if I bind it to a table.

Please provide your valuable suggestions. Waiting for a quick reply.

Thanks,

Srinivasan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jul 28, 2016 at 11:46 AM

    Hi,

    You need inherit models from view.

    try: this.getView().addDependent(oFragmentInstance)

    Regards,

    Pau

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2016 at 12:57 PM

    Hi Srinivasan,

    Did you bind the element or the property in the controller and also how you have included the fragment in your code in the view or in the controller?

    Thanks

    Viplove

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 03, 2016 at 03:08 PM

    Hi,

    I tried to bindElement with the id of the record I want to display. Still the data does not display in the fragment. Is there any other control where I can display some fields with their labels?

    Regards,

    Srinivasan

    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.