Hi All, hope you all are doing great, I'm getting the following error:Error Evaluating UI Expression Expression evaluation error [evaluation ID = PNO05] in rule 'abs_clientsearchresponse2' (called by rule 'abs_clientsearchrequest2') : A null parameter has been passed.
When trying to invoke a process model inside a!gridColumn as follows:
a!gridColumn( label: "BUC", value: a!richTextDisplayField( label: fv!row.IDE_CLIENTE, value: a!richTextItem( text: fv!row.IDE_CLIENTE, link: a!startProcessLink( processModel: cons!ABS_CLIENT_REQUEST2_PM, processParameters: { buc: fv!row.IDE_CLIENTE } ), linkStyle: "STANDALONE", color: "NEGATIVE", size: "STANDARD", style: "STRONG" ) ), align: "CENTER" )
The rule: 'abs_clientsearchresponse2' is displaying the row without any error:
But when I click over the BUC link, the above error is displayed, the pv is declared as Parameter with the same name in the PM, I haven't been able to find the root cause of the error. Could you please help me?
Any help will be greatly appreciated.
Thanks and regards,
Jose Castellot
Discussion posts and replies are publicly visible
Do you pass the value into the start form of that process?
Did you consider to use a record action?
Hi Stefan Helzle ,Can we pass multiple parameters into the process model if we are triggering it via Record Actions or related actions instead of using startProcessLink() function?
When you click on the link is there any process instance triggered in the backend? When you test the process by passing a value in the process model (using start process for debugging) is it working properly?
No, but for my connecting the process to the right record typically does the trick.
Hi Stefan / All,Thanks for your soon response, originally the buc search page of the Site's navigation menu was configured as a process, so the form was part of the process, however it was decided to change the configuration of the page as an Interface, to avoid creating new threads every time the user clicks on the buc search page.
The BUC is entered by the user in the form and that value is passed to the process model, on the other hand the table where the buc value is stored doesn't have a record type, we are using a DSE.The situation is that the client wants to navigate between the different pages of the Site once the buc value is selected in the buc search page. So we created a table to store the buc value associated with the session of the user. Before that change it was working as expected, I think the issue is the way we are calling the process.
Hi Harsha,
Yes when the BUC link is clicked we are calling a process triggered in the backed, but we are using a!startProcessLink inside the a!gridColumn and is when we are getting the error: A null value has been passed
if we run the process for debugging it is working fine, so the issue is at the moment to invoke the process from the interface. For any reason the value is not being passed.
Hi All,
For those who have the same issue, here you go how I fixed it: a!gridColumn( label: "BUC", value: a!buttonArrayLayout( buttons: { a!buttonWidget( label: fv!row.IDE_CLIENTE, style: "LINK", size: "SMALL", color: "NEGATIVE", saveInto: a!startProcess( processModel: cons!ABS_CLIENT_REQUEST2_PM, processParameters: { buc: tostring(fv!row.IDE_CLIENTE) } ) ) } )