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
#49429 - 09/23/14 04:45 AM XML iteration
Stecher Offline
OL Newbie

Registered: 09/23/14
Posts: 2
Loc: Amsterdam, The Netherlands
Hi All,

Currently new to PlanetPress Design and having some problems with hooking up and displaying an XML file properly, hope this is the place to get some help and/or guide me in the right direction.

I have an xml file with a various ammount of data.
I have created a 'group' which include an element from the XML-file "Section"; currently setup with a 'line repeat' from 1 till 10. However I would like to have this nr. flexible and depending on the xml. If the XML contain 3, it should only show 3, if xml is containing 100, it should display 100.

Within this 'Section' there's also a section 'Dispatches' which actually should do the same. When above is working, this should be no problem.

Hope it is possible to guide me in the right direction.

Thanks Tom

Top
#49434 - 09/23/14 07:22 AM Re: XML iteration [Re: Stecher]
Dennis vd Meer Offline
OL Newbie

Registered: 10/01/13
Posts: 16
Hi,

Use a line repeat, Make sure that XPath is set to the top of your iteration block. So, I have an XML that has several orders that are defined as:
<ORDERS> <ORDER> </ORDER> <ORDER> </ORDER> </ORDERS
So set it to point at the first <ORDER>
From Iteration is set to 1 and To Iteration to 0. Condition to exit and overflow determines when the result needs to overflow to a new page. If you are sure that this will never happen then you can just set it to False. Otherwise use something like =&physical.y > xxxx, where xxxx is the max y position on the page, or whatever condition you want

Top
#49471 - 09/25/14 07:57 AM Re: XML iteration [Re: Stecher]
Stecher Offline
OL Newbie

Registered: 09/23/14
Posts: 2
Loc: Amsterdam, The Netherlands
Dear Dennis, many thanks for the feedback and iteration issue seems to be ok now.

For the overflow "=&physical.y > xxxx", where can I include this?
Within the group I can only set "True" or "False"; others I cannot enter. Do I need to create a condition for this? Or else?

Thanks Tom

Top
#49497 - 09/29/14 04:25 AM Re: XML iteration [Re: Stecher]
Dennis vd Meer Offline
OL Newbie

Registered: 10/01/13
Posts: 16
Like I said in my reply you should put your overflow on the same page as where you define the rest of the repeat settings. At the bottom you have the field "Condition to exit and overflow". Here you put in the =&physical.y > xxxx.
Note that you'll have to include the = sign otherwise it will be processed as text and that will not be accepted by the system since it will only accept True or False.

Top