Display data from database view into interface

Hello Everyone,

I would like to display data from database view into interface without using grid. Can anyone please help me how to achieve this, the displayed must be editable as well.

Thank You.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    You could display the data in box layout where each box could hold the data of one row of the view. Inside the box you could have these view columns as editable text field, dropdown field or any field of your choice.

    Consider the below example code:

    a!localVariables(

    local!data: *Query the view*,

    a!forEach(

    items: local!data,

    expression: {

    a!boxLayout(

    label: fv!item.labelField,

    contents: {

    a!textField(

    label: *field name*,

    value: fv!item.field

    ),

    //All the fields you want for that row

    }

    )

    }

    )

    )

Reply
  • 0
    Certified Senior Developer

    You could display the data in box layout where each box could hold the data of one row of the view. Inside the box you could have these view columns as editable text field, dropdown field or any field of your choice.

    Consider the below example code:

    a!localVariables(

    local!data: *Query the view*,

    a!forEach(

    items: local!data,

    expression: {

    a!boxLayout(

    label: fv!item.labelField,

    contents: {

    a!textField(

    label: *field name*,

    value: fv!item.field

    ),

    //All the fields you want for that row

    }

    )

    }

    )

    )

Children