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
  • ...                                                            }
                                                      ),
                                                      a!linkField(
                                                                label: "Add Link",
                                                                labelPosition: "COLLAPSED",
                                                                links: a!dynamicLink(
                                                                          label: "+Add Item",
                                                                          /*
                                                                          * For your use case, set the value to a blank instance of your CDT using
                                                                          * the type constructor, e.g. type!PurchaseRequestItem(). Only specify the field
                                                                          * if you want to give it a default value e.g. due: today()+1.
                                                                          */
                                                                          value: {splitPercentage: null},
                                                                          saveInto: {
                                                                                    a!save(local!costElements, append(local!costElements, save!value)),
                                                                                    /*` When modifying the size of the array used in a!applyComponents, */
                                                                                    /* make the same change in the "token" array variable */
                                                                                    a!save(ri!travelCostElementsList_cdt, append(local!costElementsList, save!value))
                                                                          }
                                                                )
                                                      )

    I am unable to save it into the ri!travelCostElementsList_cdt that will eventually put into the PV that I mentioned. Somewhere that I have missed out??
Reply
  • ...                                                            }
                                                      ),
                                                      a!linkField(
                                                                label: "Add Link",
                                                                labelPosition: "COLLAPSED",
                                                                links: a!dynamicLink(
                                                                          label: "+Add Item",
                                                                          /*
                                                                          * For your use case, set the value to a blank instance of your CDT using
                                                                          * the type constructor, e.g. type!PurchaseRequestItem(). Only specify the field
                                                                          * if you want to give it a default value e.g. due: today()+1.
                                                                          */
                                                                          value: {splitPercentage: null},
                                                                          saveInto: {
                                                                                    a!save(local!costElements, append(local!costElements, save!value)),
                                                                                    /*` When modifying the size of the array used in a!applyComponents, */
                                                                                    /* make the same change in the "token" array variable */
                                                                                    a!save(ri!travelCostElementsList_cdt, append(local!costElementsList, save!value))
                                                                          }
                                                                )
                                                      )

    I am unable to save it into the ri!travelCostElementsList_cdt that will eventually put into the PV that I mentioned. Somewhere that I have missed out??
Children
No Data