Grid Plus Configuration error

Certified Associate Developer

I have configured the plug-in but every time I try to submit changes I get the following error: Incorrect configuration: Please set up the ‘submitChangesValue’ and ‘submitChangesSaveInto’ parameters. Kindly refer to the documentation for configuration details. I assumed that the problem was due to the rule configuration entered in the ‘colConfigRuleName’ parameter. Does anyone know how to configure the parameter?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to marcom0706

    All the configurations looks good! This component has specific expectation for configuration including no extra commas or not changing the of fields in the gridcolconfig components. For now I can see only two things which are not explicitly mentioned as causing the error but might! 
    firstly in line 14, if you do the need hidden values either remove it or make the curly braces proper there without any spaces. You can try making it null as well to see if it works. Similarly try removing validations as well as you are not using jt.  Secondly in the col configs rule extra commas is there. Get rid of that too and retry

Children
  • 0
    Certified Lead Developer
    in reply to Harsha Sharma

    I'm seeing a similar error after clicking Submit Changes. See code below.

    Also Process model contains a pv called record (multiple + parameter), fully chained

    a!localVariables(
      local!submitChanges:{},
      local!creates: {},
      gridPlusLayoutField(
        enableCreate: true,
        enableEdit: false,
        enableDelete: false,
        queryRuleName: rule!FOS_getPPSBasisGridPlusWithFields,
        queryRuleInputs: null,
        columnConfigs: rule!FOS_PPSColumnConfigGridPlus(),
        createDataValue: local!creates,
        createDataSaveInto: local!creates,
        editDataValue: {},
        editDataSaveInto: {},
        deleteDataValue: {},
        deleteDataSaveInto: {},
        submitChangesValue: local!submitChanges,
        submitChangesSaveInto: a!save(
          target: local!submitChanges,
          value: gridsubmitchanges(
            queryRuleName: rule!FOS_getPPSBasisGridPlusWithFields,
            colConfigRuleName: rule!FOS_PPSColumnConfigGridPlus,
            createData: local!creates,
            editData: null,
            deleteData: null,
            createModel: cons!FOS_write_PPS_BASIS,
            editModel: null,
            deleteModel: null
          )
        )
      )
    )

  • 0
    Certified Lead Developer
    in reply to Guy

    I have removed the null parameters in the gridPlusLayoutField(). Can you try with this 

    a!localVariables(
      local!submitChanges:{},
      local!creates: {},
      local!edits: {},
      local!deletions:{},
      gridPlusLayoutField(
        enableCreate: true,
        enableEdit: false,
        enableDelete: false,
        queryRuleName: rule!FOS_getPPSBasisGridPlusWithFields,
        columnConfigs: rule!FOS_PPSColumnConfigGridPlus(),
        createDataValue: local!creates,
        createDataSaveInto: local!creates,
         editDataValue: local!edits,
        editDataSaveInto: local!edits,
        deleteDataValue: local!deletions,
        deleteDataSaveInto: local!deletions,
        submitChangesValue: local!submitChanges,
        submitChangesSaveInto: a!save(
          target: local!submitChanges,
          value: gridsubmitchanges(
            queryRuleName: rule!FOS_getPPSBasisGridPlusWithFields,
            colConfigRuleName: rule!FOS_PPSColumnConfigGridPlus,
            createData: local!creates,
             editData: local!edits,
            deleteData: local!deletions,
            createModel: cons!FOS_write_PPS_BASIS,
            editModel:null,
            deleteModel: null
          )
        )
      )
    )

  • 0
    Certified Lead Developer
    in reply to Harsha Sharma

    New error now using your updated code

  • 0
    Certified Lead Developer
    in reply to Guy

    Looks like the ediDataValue and deleteDataValue are required. I have updated code in my earlier comment. Try and update accordingly. 

  • 0
    Certified Lead Developer
    in reply to Harsha Sharma

    thanks, made those changes and now back to my original error I previously shared.

  • 0
    Certified Lead Developer
    in reply to Guy

    Oh wow!

    In that case I would suggest to get in touch with Appian Support team. All the configuration is as per documentation and should work. 

  • 0
    Certified Lead Developer
    in reply to Harsha Sharma

    I have a solution that works from Support:

    The product team has confirmed that this is a bug.

    It seems that the griddatecolconfig() is expected as one of the column config but in reality it is not required.

    The product team is working on the fix.

    Meanwhile, you can just add griddatecolconfig() on createdOn field as a column config and let me know if this works.

    I have tested this myself, and it does indeed fix the error

  • 0
    Certified Lead Developer
    in reply to Guy

    Good to know! Thank you for sharing this  

       would be good if you to click Verify Answer for Guy’s latest comment so that others can get quickly refer it if they face similar issue.