Skip to main content
Skip table of contents

An example


An example

The following is a short example demonstrating the application of this interface.

Initialization of the interface for a shopping cart document:

Initialization of the text generation with determination of the output document:

Open the first text component, which will also provide the information for the document template:

Evaluation of additional DocVariable fields for the offer header that are not set automatically through the evaluation of the parameter group parameters (if necessary):

Update of DocVariable fields in the first text component (including all DocVariable fields from the parameter groups that are queried by logic at this point in time):

Editing the first text component is thereby finished. Now further text components can be processed in a loop, whereby special parameter evaluations have to be carried out before copying the according text component.

Copy the parameters from the indexed array of the shopping cart positions to a non-indexed parameter group that is used in the text component (with this procedure, the same text component can be used independently from the position in the shopping cart):

In a loop through the shopping cart contents, the aforementioned index 1 can also be substituted by the loop counter, e.g. ’wkpos[i]’

Insert a text component for this position and update all DocVariable fields:

After dealing with all relevant shopping cart positions using this method and eventually adding an offer footer the text document can be finished:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.