Posted: 2 Sep 2016 2:43 EDT Last activity: 19 Oct 2016 13:01 EDT
Error while adding a new row to a repeating grid Lay
Im facing an issue when trying to add a row in a repeating grid. Actually I want to prefill a field(numeric) in repeating grid layout when another property value is true.
The value I give in the first row for that field should appear for the subsequent rows when the other property value is true. I have added an activity in the repeating grid on row add to prefill the rows with the same value. I can see the activity getting executed in the tracer, but the new row is not added. Below is the error message. Can someone suggest ways to fix this.
"Looking for instance Rule-Message SECTION 'XXXX-XXXX' EXECUTION ERROR ON PAGE 'PYWORKPAGE' OF CLASS 'XXXX-XXXX-XXX-XXX'. : FOR INPUT STRING: "" in the Rule Resolution cache "
***Updated by Moderator: Lochan. Removed user added helpme tag. Apologies for confusion, shouldn't have been an end-user option; added Category***
Are you using run activity on row add present in the operations tab ? If so to pre-populate, configure "Run activity after grid update" and in the activity have a step with when condition as param.gridAction == "INSERTAFTER"(refer @baseclass.pyPostGridUpdate first and second step) and in step add default values (do a Property-Set) to the row. Activity runs on the newly added row context.
If you don't find "Run activity after grid update" in the grid's property panel, then save-as "@baseclass.pyPostGridUpdate" into grid row class and set default value.