Hi, I am unable to save my data in the editable grid into the PV. Can

Hi,

I am unable to save my data in the editable grid into the PV. Can you help me out please?

In the interface code:
a!gridLayout(
                                                            headerCells: {
                                                                      a!gridLayoutHeaderCell(label: "Cost Element"),
                                                                      a!gridLayoutHeaderCell(label: "Project Manager"),
                                                                      a!gridLayoutHeaderCell(label: "Split %", align: "RIGHT"),
                                                                      a!gridLayoutHeaderCell(label: "Category Code"),
                                                                      /* For the "Remove" column */
                                                                      a!gridLayoutHeaderCell(label: "")
                                                            },
                                                            /* Only needed when some columns need to be narrow */
                                                            columnConfigs: {
                                                                      a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
                                                                      a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
                                                                      a!gridLayoutColumnConfig(width: "NARROW"),
                                                                      a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
                                                                      a!gridLayoutColumnConfig(width: "NARROW")
                                                            },
                                                            rows: a!applyComponents(
                                                                      function: rule!TRAVEL_SAIL_costElementItemRow(
                                                                                items: local!costElements,
                                                                                index: _,
                    ...

OriginalPostID-184398

OriginalPostID-184398

  Discussion posts and replies are publicly visible

Parents
  • Do the below changes, So that the values will store in "travelCostElementsList_cdt" rule input.
    In GridLayout
    items: ri!travelCostElementsList_cdt,

    In link Field
              saveInto: {
                        a!save(ri!travelCostElementsList_cdt, append(ri!travelCostElementsList_cdt, save!value)),
                        a!save(local!costElementsList, append(local!costElementsList, save!value))
                        }
    In your code, the values are local variables. And you are appending
Reply
  • Do the below changes, So that the values will store in "travelCostElementsList_cdt" rule input.
    In GridLayout
    items: ri!travelCostElementsList_cdt,

    In link Field
              saveInto: {
                        a!save(ri!travelCostElementsList_cdt, append(ri!travelCostElementsList_cdt, save!value)),
                        a!save(local!costElementsList, append(local!costElementsList, save!value))
                        }
    In your code, the values are local variables. And you are appending
Children
No Data