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
  • 0
    Certified Lead Developer

    Looks like the issue is with 'queryRuleName' and 'colConfigRuleName' configuration in your code. Those should have rule! prefix. Please refer below for syntax reference. 

     gridsubmitchanges(
            queryRuleName: rule!RE_queryRule,
            colConfigRuleName: rule!RE_columnConfig,
            createData: local!creates,
            editData: local!edits,
            deleteData: local!deletions,
            createModel: cons!RE_CREATE_OR_UPDATE,
            editModel: cons!RE_CREATE_OR_UPDATE,
            deleteModel: cons!RE_DELETE
          )
  • 0
    Certified Associate Developer
    in reply to Harsha Sharma

    i see the configuration in other thread. Nevermind i change but now the result it's this (i'l do the creation, the other action if you see it's disabled).

  • 0
    Certified Associate Developer
    in reply to Harsha Sharma

    now, i'll do all the raccomandation but now i have another error after the submit:

    "{""errorOccurred"":""class [Lcom.appiancorp.suiteapi.type.TypedValue; cannot be cast to class [Ljava.util.Map; ([Lcom.appiancorp.suiteapi.type.TypedValue; is in unnamed module of loader com.appiancorp.tomcat.loader.AppianWebappClassLoader @2a49fe; [Ljava.util.Map; is in module java.base of loader 'bootstrap')""}"

  • 0
    Certified Associate Developer
    in reply to Harsha Sharma

    I think that the real problem, it's how to configure the rule instead colConfigRuleName (i don't have information abut appian in the documentation). Can you help me?

  • 0
    Certified Lead Developer
    in reply to marcom0706

    In line 13 of your code you have columnConfigs, try to replace the expression there with rule!TNSM_columnConfig() . Also is it possible do share the code if the rule if the above doesn't work and errors out still!

  • 0
    Certified Associate Developer
    in reply to Harsha Sharma

    I have now this situation:

    the rule that i recall it's this:

    But i have the error : 

    Can you help me?

  • 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

  • 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.

Reply Children