Skip to Content

How to pass columns dynamically into table through JSON ?

Hi UI5 Experts,

How can i pass columns dynamically into table through JSON..for ex: i've one table but nt create column fields, while executing pro,

column fields ll come dynamically into table through JSON..how can i do tis? . Give solu wit bit f sample code, it ll help me lot.

Thanks & Regards,

Pal

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jul 25, 2014 at 04:50 PM

    HI Pat

    Are you using the sap.m.Table or sap.ui.table.Table?

    -D

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2014 at 02:09 PM

    Hi Pal,

    Below post creates dynamic column based on Odata's metadata

    The same could be used for a JSON model

    Thanks and Regards, Venkatesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2014 at 11:42 AM

    hi pal Saran,

    Did you try using Binding Concepts???

    Check this out

    • Set your data into the model,
    • create a template with columns,
    • create a table and assign the template
    • bind the model to the table.

    Regards,

    Madhumahesh.

    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.