To start, my environment is on prem Laserfiche Forms Professional Version 11.0.2307.40556. I am using the new layout designer for development.
The issue I'm trying to solve...
I've been using a stored procedure to dynamically establish a customized set of approvers based on organizational hierarchy. Essentially pick whatever using a database lookup, feed a number of fields with organizational data, and use that information to fill the stored procedures parameters, which brings back a table of the necessary approvals. The thing is the stored proc fires a lot (once at the beginning and once each change event), and overwhelms form, so I built a calculated field that tests to see if all the data needed is there and sends an Ignore parameter that returns the table with no rows, this results in a table with one blank row on the Forms side.
This works well excepting for sometimes the initial load, the timing gets befuddled and sometimes brings back and earlier request after the last change event's request. Since he empty table always results in a blank row which is not ideal. When the timing gets out of sync it'll append that blank row to the real table, and sometimes when this happens, it sometimes throws a console error, something about .split() which stops the form from being able to submit.
I would love to be able to have fine control the timing of database lookups, but until that functionality is added, I was wondering if anyone out there has a better way, best practices or recommendations of getting a stored procedure to produce a 100% reliable table using field variables in the forms layout designer. Or recommendations on handling or removing the blank rows, everything I try seems to not work out. Overall this process works beautifully about 90% of the time and my users are generally happy with it, I just would be thrilled to get to that elusive 100%.
Any help or suggestions are much appreciated.