Chris, Thanks for the offer of help but I found a work around for what I am pretty sure is a bug. There was a subform ( CaseInfo.ApplicationPage.Information.CaseInfo ) through trial and error I found that if I removed that subform from the pdf the code worked correctly. I renamed the form to CaseInfo.ApplicationPage.Information.CaseInformation and everything worked correctly.
I do have another problem with this form. I have an ODBC data connection with fields on a subform bound to it. The subform is set to repeat for each data item. When the form loads if there are multiple data rows returned. I only get a single instance of the subform. If I add additional instances, subform.instanceManager.addInstance(1), the new intanstance is also bound to the first row. I know I have multiple rows because calling next on the source then shows the next rows values in both instances of the subform.
Am I missing something. How can I get this to show all the rows? Do I have to write code to bind each row to an instance of the subform? I can email you a simple form that demonstrates this.
BTW - I also tried calling addNew on the source but this seemed to have no effect.
Rich Ruiz
BPM Consultant
Novanis