IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#56539 - 12/10/18 01:38 PM Loop Too Long recovery...
Wolfgang Offline
OL Toddler

Registered: 02/10/14
Posts: 34
Loc: Dallas, TX
In the recent past, I was shown how to prevent "Loop To Long" errors while in design mode (&printermode = 0).

If I open a pp7 and encounter a "Loop Too Long", is it possible to add my &printermode code (5 lines of code) and save the change, or does the loop too long error effectively lock up the doc?

Top
#56558 - 12/13/18 04:19 PM Re: Loop Too Long recovery... [Re: Wolfgang]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Hi Wolfgang,

If the loop is making the form unresponsive as soon as you open it, here's something you can try. Rename the .pp7 file to .zip, and open it as a zip file. Look for the file "Form.xml", and extract it. This contains all the layout for your form in XML format. Do a search for your PressTalk code that you need to modify, and then add the &printermode exception to it. Or, alternatively, remove the code that's causing the loop too long. Save the form.xml file, and then put it back into the .zip file, overwrite the old one. Change the .zip back to a .pp7, and open it with PlanetPress. Your changes will take effect, and hopefully that will allow you to work in your template once more!

NOTE: I strongly recommend that you make a backup of the .pp7 file before trying this, because if you accidentally break the form.xml file, it could render your template unuseable.

Regards,
Raphaël Lalonde-Lefebvre

Top