Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Display datasource in a form

    I know this is very basic stuff, but I just want to make sure that I'm going the right way.

    I've made a custom datasource, that can return a list of records. These I display in a tree. When a node is selected I would like to display the details of the row in a new panel.

    The data returned by the datasource are complex, containing all kinds of datatypes, and also arrays of subdata. I'd like to display these data using different components, e.g. TreeGrid for the array, checkboxes for boolean fields etc.

    How should I do this? My initial thought was to create the gui, then fetch data from datasource manually and then field by field initialize the gui. But I'm guessing that the framework can ease things for me?

    I've seen that it's possible to attach my datasource to a DynamicForm, then calling fetchData(). but I'm not sure how to utilize this feature? Can I get the DynamicForm to automatically update the gui components?

    I expect the arrays in the datasource to be displayed as TreeGrid. But when using a DynamicForm I add DataSourceTextxxxxxField's - so I guess I can't bind a Tree to the datasource within the DynamicForm?

    I'm sorry - I see that my question is not quite clear. What I really need is a good understanding of how to bind data to a panel of multiple guicomponents.

    Thanks in advance,
    Barsum

    #2
    Hi Barsum,

    Were you able to bind your UI data to datasource?

    If so could you provide me an idea abourt hot to do that since I am pretty new to this idea.

    My need was to get all data from UI form fields and populate a custom java model.

    Ex: If UI form has fields for firstName and lastName, after submit, I would like to get those values in Person java model.

    Regards,
    Satya

    Comment

    Working...
    X