Getting Data into editable grid

Hi,

I have written the following code where sampleData is a DataStore entity, but I am not getting any data in the front end:

rows: a!forEach( items: ri!sampleData,
expression: a!gridRowLayout(
contents: {
a!textField(
value: ri!sampleData.Account,
saveInto: fv!item.Account,
readOnly: true
),
a!textField(
value: fv!item.jan,
saveInto: fv!item.jan
),
a!textField(
value: fv!item.feb,
saveInto: fv!item.feb
),
a!textField(
value: fv!item.mar,
saveInto: fv!item.mar
)
}
)
),

But when I open the front end I see the following table:

What should I do so that the front end shows the data?

  Discussion posts and replies are publicly visible

Parents Reply
  • I want to extract the data from the database in an editable grid so that I add data or update the existing data.

    Steps taken for this:

    1. Created a DataType, which corresponds to the target table in the database

    2. Added DataType in DataStore

    3. Created a constant of the DataType

    4. In the interface created a rule input (sampleData) which is DataStore

    5. Create an editable grid which shows the data (Stuck Here)  

    Experiments:

    1. Try to create expression rule name (Add_budget)

    2. Try creating a process model

    Hopefully this helps

Children