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
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 )
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).
Great! So your earlier issue is resolved. Would be good if you verify the above answer. as for this error- The error says some issues lies within a foreach expression where you have a!fromjson(). So can you check the related code block or share here so that we can get some insights and help
This error it's not related to the code that i wrote. After the click on the submit changes in the local!variable "local!submitChanges" i have the error (it's return from the plug-in code).
"{""errorOccurred"":""Expression evaluation error at function a!forEach [line 5]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function a!fromJson [line 8]: The jsonText parameter was not valid JSON.""}"
okay so lets check few things:
1. Is the processModel mentioned against createModel, has activity chaining enabled across all nodes?
2. Does the processModel has process variable named 'record' in it and has 'Multiple' set to true()?
3. Is the 'colConfigRuleName' mentioned in gridsubmitchanges() same as the columnConfigs in gridpluslayoutField()?
Also As you have disabled edit and delete, you can remove the related attributes from the gridSubmitChanges code. Earlier code I shared was for reference to show the syntax of queryRuleName and colConfigRuleName.
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')""}"
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?
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!
I have now this situation:
the rule that i recall it's this:
But i have the error :
Can you help me?