-
1. Re: Delete Data Connection for merged record form via scripting
radzmar Aug 11, 2014 12:57 PM (in response to Jo_2013)Hi,
there is no scripting method to delete a data connection I'm afraid.
The only thing that will work is printing the form as a new static PDF:
-
2. Re: Delete Data Connection for merged record form via scripting
Jo_2013 Aug 11, 2014 3:29 PM (in response to radzmar)Thank you for your reply.
With the "while" loop I have found it will iterate through the records remove the buttons and save the form but does not stop at the last record, it wants to continue and the following error message appears in the console.
GeneralError: Operation failed.
XFAObject.next:28:XFA:form1[0]:RFT1[0]:MailMerge[0]:click
next operation failed. [Microsoft][ODBC Excel Driver] Cannot update '(expression)'; field not updateable.
Can you advise how I would revise the while loop statement please?
I am not sure what I am going to do about the data connection, the form fields need to stay live as the client needs to fill in the pdf form, but the data connection cannot stay live as this information is not for the client.
If I canot think of a solution I may need to redo the form in the front end of Adobe professional and use the "import data" scripting method.
thanks again for taking the time to help.

