-
1. Re: Can forms creation be automated ?
George Florentin Apr 30, 2014 6:44 AM (in response to aufer)I think it's possible and here is how I would do it:
1. you create a table in designer, with header and 1 repeated row, minimum instance = 0;
2. you create an XML file where you store the data that should be inserted into the table;
3. you store the XML from step 2 in a global variable (File -> Form Properties -> Variables). The global variable has a limit of ~32.000 chars so I recommend a minified XML;
4. you create a function (or ask me nicely ) that parses the XML and retrieves the data;
5. you loop on that data and for each entry you add an instance of the Row in table from step 1 and populate it with data extracted from the XML.
Step 5 can be called at initialize or form:ready.
-
2. Re: Can forms creation be automated ?
aufer Apr 30, 2014 7:25 AM (in response to George Florentin)George,
Thanks for the answer.
I would greatly appreciate the code that parses the XML & retreives the data.
Can you send me examples for step 5.
i.e. Code to add an instance of the Row in a table & populate it with data extracted from the XML.
My preference would be to skip the XML altogether & auto generate the code for Step 5 outside of LiveCycle as I am comfortable with other coding ( specifically VBA ) which would allow me to generate code directly from a spreadsheet. ( I will post the solution with code after ).
I am relatively new to LiveCycle so excuse this question.
Does the initialize or form:ready execute during the form creation ?
Will the text, rows, textfields etc be prebuilt & prepopulated if I were to open this PDF if Adobe Reader or some other app ?
Thanks again
Aubrey
