Introduction

Changing the order in which details are printed in DesignStudio documents can be tricky to say the least. This is partially because DesignStudio hides a lot of stuff for us (and thus makes it easier to manage) and because not all functionality of the DCL language is completely aware of the way things are done in DesignStudio 7.x

Moving a Single section (fixed hight)

When you use a non repeating section it is possible to place repeating information on a specific place (e.g. at the end of a document) do this by :

  • Create a section on the input to map the information (call it ExtraLines)
  • Map the field and set 'Grow With Section' (do not forget the key field somewhere) call it SomeLines
  • Import the section on the on the format, set the 'When to Execute' to FALSE (it will be called ExtraLines1)
  • create a non repeating section on the output (call it ExtraLines2)
  • create a new variable text field on this section put in the context a reference to the original text field
=Layout.ExtraLines1{1}.SomeLines

Moving a Single section (flexible hight)

Using the above solution will in some cases give rise to problems because the height calculation is not taken care of for non-repeating sections, resulting in overprinting. The solution for this is a bit more tricky.

  • Create a Repeating section on the input to map the information (call it ExtraLines)
  • Map the field and set 'Grow With Section' (do not forget the key field somewhere) call it SomeLines
  • Create a Repeating section that will trigger on the spot you want to have the information on the output (e.g. look for TOTAL if you want the text to show up at the end of an invoice). (call it TriggerPos)
  • Import the section (ExtraLines) on the on the format, set the 'When to Execute' to FALSE (it will be called ExtraLines1)
  • Import the section (TriggerPos) on the output (it will be called TriggerPos1)
  • create a new variable text field on this section put in the context a reference to the original text field
=Layout.ExtraLines1{1}.SomeLines

Moving a section that has multiple instances

The above solutions work quite nicely if you are able to use Grow With Section on a field, but this is not alway's the case. e.g. you need to map lines individually creating a lot of separate instances of the text. Use the function from All Items In One Array and call it instead of

=Layout.ExtraLines1{1}.SomeLines

like this :

=IHSGetAllItemsFrom("ExtraLines1", "SomeLines")

if you are using a version of Design Studio prior to 7.x you can in all above cases just refer to the variable like

=SomeLines



Gesponsorde koppelingen