Search Support
-
Sidhartha PriyeJune 23, 2017 at 6:25 am #4404
Stephen,
Post our discussion on email, I am submitting the issue on the forum per your suggestion. Since our last exchange we noticed another inconsistent behavior. I will provide a background/setup first –
Background:
We have a Nested table with 3 levels which has complex controls such as Single Select and checkboxes that requires validation. When we click on the Submit button, it calls a <span style=”color: #000000; font-family: Calibri;”>validateLoanAndAdjustmentDecisions function on the table. The table records at each level of nesting is fetched using – </span>
var poolRows = poolTbl.getRecordCount(false);
However we are noticing couple of inconsistent behaviors either across different environments (DEV and SIT or within the same environment (DEV) when clicking the Submit button:
Issue 1: Inconsistent behavior between DEV (IBM BPM 8.5.7 Dec 2016 patch) and SIT (IBM BPM 8.5.7 March 2017 patch) both using Spark CE toolkit 4.5.0.2 –
For e.g. the same Submit button click that works fine in DEV started giving this error in SIT environment. The Submit button click called our validation function – “validateLoanAndAdjustmentDecisions” but threw an error while executing the code –
Error in [eventON_CLICK] event handling function for view /Submit (UID=1738)
TypeError: Unable to get property ‘getRecordCount’ of undefined or null reference
at validateLoanAndAdjustmentDecisions (/teamworks/fauxRedirect.lsw?zWorkflowState=2&zTaskId=t1912511&zComponentName=CoachNG&zComponentId=3028.991b858f-1c87-4528-90c5-5935460620d4&zDbg=0:19711:3)
at _instance.btn.onclick (/teamworks/webasset/2064.1b5a4a90-d39d-4eea-a18b-7788ce481dce/W/BPMExt-Control-Button.js?build=201612140536:14:426)
SCRIPT5007: Unable to get property ‘getRecordCount’ of undefined or null reference
Issue 2: Different behavior when the Table is paginated Vs when the Table is not paginated in the DEV environment (IBM BPM 8.5.7 DEC 2016 patch).
We also noticed that when the table is not paginated, the button click works fine and triggers the validate function attached to the onclick event.
However when the table is paginated, clicking the button on the first page of the table, DOES NOT trigger the Validate function. It forces us to visit the last page of the table and only then it triggers the validate function attached to the onClick event –
Error in [eventON_CLICK] event handling function for view /Submit (UID=1738)
TypeError: Unable to get property ‘getRecordCount’ of undefined or null reference
at validateLoanAndAdjustmentDecisions (/teamworks/fauxRedirect.lsw?zWorkflowState=2&zTaskId=t1912511&zComponentName=CoachNG&zComponentId=3028.991b858f-1c87-4528-90c5-5935460620d4&zDbg=0:19711:3)
at a.a.ob (</span>/teamworks/webasset/2064.1b5a4a90-d39d-4eea-a18b-7788ce481dce/W/BPMExt-Core.zip/com/salientprocess/bpm/views/bpmext.js?build=201612140536:55:78)
at _instance.btn.onclick (/teamworks/webasset/2064.1b5a4a90-d39d-4eea-a18b-7788ce481dce/W/BPMExt-Control-Button.js?build=201612140536:14:426)
SCRIPT5007: Unable to get property ‘getRecordCount’ of undefined or null reference
Per your documentation, the Boolean flag in the getRecordCount is only for Filtering and Sorting but is independent of Pagination, currently I am fetching the records using –
var poolRows = poolTbl.getRecordCount(false);
but that should not have any bearing on the pagination.
Any help would be greatly appreciated.
thanks
Sidhartha
SPARK SupportJuly 3, 2017 at 1:51 pm #4462Hi Sidhartha,
Are you using Table Pagination in Synchronous or Asynchronous mode?
Also, what is the content of your validation function, and how are you invoking the call?
Regards,
Stephen P.
-
|
You must be logged in to reply to this topic.