You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Documents

A document is started by creating a Blueriq Studio Document element, or by using the RTF Import wizard. The contents of a document is stored in a tree of content items. Content items are the nodes in the tree representing the document. This means that content items can contain other content items. In addition, each content item can contain text or images.

A document is shown in two ways: as a tree of content items at the left hand side, and as text on the right hand side. Although this seems to be a preview pane, the view has no styling and in that sense doesn't look like the final result after rendering.

The two display forms are linked: when a node is selected in the tree on the left, the text is also selected at the right. In addition, the text of the child nodes of the content item is also selected.

The formatting of the text in a document is done by setting content styles and presentation styles to the content items. A content style determines the type of the content item, for example Paragraph, List, or Table. The presentation style determines the sub styling, for example RightAligned, TextEmphasis, or ListBullet (for a list).

Presentation styles can also be applied to pieces of text inside the content item.

Editing a document

A document is edited by manipulating the content items of the document.

Tree view

The actions for editing the structure of the document have to be performed in the tree view. Actions can be chosen from the context menu (right mouse button), or by using the keyboard (see the list of keyboard shortcuts). The icon that represents the content item looks different depending on what is set on the content item:

: generic icon for a content item;

: a content item with a condition;

: a content item with a repetition;

: a content item on which a content style is set;

: a content item on which a presentation style is set;

: a content item on which a content and a presentation style is set;

: a content item on which a condition, a content style and a presentation style is set.

More about content items, how to create, move and edit them, is explained below in the section Content items.

Collapse or expand parts of the tree

To navigate through a (large) tree, you can choose to expand or collapse part of the tree. To do so, select a node in the tree view and either select from the shortcut menu the Open/Close> sub menu and choose Expand node, Collapse node, Expand all or Collapse all

  These options are also available in the ribbon, tab Document and section Outline tools: 

Reusable items

Content items can be made reusable. Reusable means that the content item can be used in multiple documents, or more than once in the same document. The text part of a content item can be made reusable as well, this is called a text item. Text items can be used in multiple documents, and more than once in the same document. (Reusable) content items and text items are autonomous items, and can also be created and maintained separate from a document.

 

Text view

The text view allows editing individual texts within the document, which includes adding fields (filled with data from the domain model) and setting a condition and/or presentation style on specific pieces of text.

You can open the text editor from the tree view by double-clicking on a node in the tree, and from the text view by double-clicking on a piece of text.

At the top of the text editor, the name of the content item is shown. With the check mark or the cancel button the changes to the content item can either be committed or discarded. Both buttons close the text editor.

 

Images

An image can be used in a content item in place of a text item. The image first has to be imported into Blueriq Studio. Create a new image by clicking on the Image icon in the Documents tab of the ribbon. The following editor opens, and you can use the Image button to upload an image into Blueriq Studio. Supported file formats are: jpg, gif and bmp. .svg images are also supported (svg images do not work in IE8). The imported image is shown in the editor (a place holder is shown for svg images).


The presentation style of the image on the page (e.g. RightAligned), including the width and/or height are specified when the image is used in a content ite 

Text items

Text items are small indivisible blocks of formatted text. They are indivisible in the sense that only a whole text item is reusable, not a part of the text item. You can use a text item on pages and in documents. A text item can consist of multiple pieces of text and fields, each of which can have a condition and a presentation style.

Create a new text item

To create a text item:

  1. On the Home tab, in the document group, click the New text item icon.
  2. Or activate the Text item’s list view and use keyboard shortcut CTRL + N.
  3. Fill out the required fields. It is possible to set the text for each language set in the Global elements. To add text for different language than the default one, select the language just above the text area editor and click the new item button. A tab will be added to the text area for the selected language.
  4. Click Save or Save and close.

Edit text in the item

To add or edit text in a text item:

  1. Select the language tab in which you want to add text.
  2. Type your text in the text field. The lines you edit will be marked by a yellow block at the left of the text area.
the first language tab displayed in the text item editor is that of the specification language. You can change the specification language in your user profile. For more information, see user profile


Add or edit a condition in the text

You can add a condition to a part of your text, in order to display or hide this part under certain conditions.

Always consider reusability of your text item when you decide to add a condition to your text item. An alternative is to divide your text over several text items and use a content item to add your conditions. For more information on using content items, see Reusable items.

To add a condition to a text item:

  1. Select the text to which you want to apply the condition.
  2. Select the add condition button  just above the text area.
  3. Enter your condition in the expression editor that appears.
  4. Click OK to save your expression.

As a result, the conditional text is highlighted and a condition icon is placed in front of the highlighted text.

To edit the condition:

  1. Click the condition button just in front of the conditional text.
  2. Click Edit condition
  3. Change the condition in the expression editor.
  4. Click OK to save your changes.

To remove the condition:

  1. Click the condition icon just in front of the conditional text.
  2. Click remove condition.


Add or edit a presentation style in the text

You can add a presentation style to a piece of text.

To add a presentation style to a text item:

  1. Select the text to which you want to apply the presentation style.
  2. Open the list of presentation styles with the button  just above the text area.
  3. Select the presentation style, or choose Remove presentation style at the bottom of the list.


Using fields in your text

In Blueriq Studio text items, you can refer to information from your domain model. You can do this by inserting fields in your text. A field can contain an expression or a reference to an attribute. On generating your document, these fields are substituted by their actual values.

To add an attribute or expression field to your text:

  1. Select the Field button  just above the text area. Type a character after a field before adding the next field.
  2. Create an expression using the expression editor.
  3. Click OK to insert the expression

 

Content items

You can think of content items as a kind of sub-document. A content item contains both structure and content, just like a document. But, you cannot ‘generate’ a content item as you can a document. Content items can only be used as part of other content items or documents. In fact, reuse of content and structure is the sole purpose of a content item.

Both parts of the content item are visible in the content item editor:

  1. In the form of a tree, that shows the structure of the content items in a document.
  2. In a preview, the preview shows the content items in a document in a linear textual form.

Whenever a content node is selected in the tree, its content is highlighted in the document preview and vice versa.

The structure of a content item consists of:

  • content nodes of type text,
  • other content items or
  • content nodes of type image.

A content node can have the following properties:

  • Pre-condition, specifies under what conditions the content of the node should be displayed.
  • Repetition, specifies for which instances to display the content of the node, e.g. repeat a paragraph for all products in your application.
  • Content style, defines the layout of the content in the node, e.g. a chapter is always preceded by a page break.
  • Presentation style, defines the formatting of the content in a node, e.g. the font face, colour, etc.

Create a new content item

There are two ways to create a new content item, creating it from scratch or turn a content node into a content item. A content item is in fact a reusable content node.

To create a new content item:

  1. On the Document tab, in the document group, click the New content item icon.
  2. Or open the content item’s list view and use keyboard shortcut CTRL + N.
  3. Enter the content item’s name.
  4. Click Save or Save and close.

To turn a content node into a content item:

  1. Open a document or Content item.
  2. Select the node that you want to turn in to a Content item from the tree-view.
  3. Select Make reusable – as Content item from the shortcut menu.
  4. Click Save or Save and close.

The new content item will not be saved until you save the entire document or content item that contains this new content item.

Move a content node

  1. Select the node you want to move.
  2. On the documents tab, in the outline tools group, click one of the move icons. Or use one of the keyboard shortcuts ALT+I (up), ALT+K (down), ALT+J (left) or ALT+L (right).Or use one of the keyboard shortcuts CTRL+I (up), CTRL+K (down), CTRL+J (left) or CTRL+L (right).
  3. Or select one of the Move options from the shortcut menu. Repeat this until the node is in the desired position.

If you are not allowed to move a node to a specific location, either that specific move option will be read-only in the menu and ribbon or the not allowed icon will appear when you drag the node on such a target node.

Split the text in a content node

To split the text:

  1. Open the text in your document or content item.
  2. Select the text that you want to place in a separate node. Or position the cursor where you want to split your text.
  3. Select split text from the shortcut menu or the document tab, in the outline tools group. Or use the keyboard shortcut ALT+ENTER

You are not allowed to split reusable text items, this would affect multiple documents or content items. In these cases the “split text” option will be read-only.

Merge text from several content nodes

To merge text via the content tree:

  1. Select adjacent text content nodes in the tree.
  2. Select merge text from the shortcut menu or the document tab, in the outline tools group. Or use the keyboard shortcuts ALT+PAGE UP or ALT+PAGE DOWN.

To merge text via the content tree:

  1. Select a text content node in the tree that you want to merge with the previous or with the next text content node on the same level.
  2. Select Merge with next or Merge with previous from the shortcut menu or the document tab, in the outline tools group. Or use the keyboard shortcuts ALT+PAGE UP or ALT+PAGE DOWN.

To merge text via the text editor:

  1. Open a text in your document or content item.
    • Select Merge with previous from the document tab, in the outline tools group. Or use the keyboard shortcut ALT+PAGE UP.
    • Select Merge with next from the document tab, in the outline tools group. Or use the keyboard shortcut ALT+PAGE DOWN.

You are not allowed to merge reusable text or content items, since this would affect multiple documents or content items. In these cases the merge option will be disabled.

When you merge, be aware that properties of the top content node are preserved, while properties of the other node are lost. Any conditions and styles within the text are preserved. ‘Soft’ line breaks are inserted between the merged paragraphs.

Content node properties

You can view and edit several properties of a content node by opening the properties box, either by clicking on the small expand arrow at the top-left corner of the preview pane or by selecting Open properties on the documents tab, in the outline tools group.

Another way to adjust the properties of a content node is by opening the text editor in the text view (by double-clicking on a node in the tree view or on a text in the text view), and click on the icons right below the name of the node. 

 The icons represent from left to right: Content style, Presentation style, Condition and Repeat condition.

Apply a content style or presentation style to a content node

A content node can have a content style (e.g. Header, Table, TableRow, TableCell, AddressBlock) and/or a presentation style (e.g. TextEmphasis, Center, RightAligned). You can use pre-defined styles from a library, or add custom styles (that must be recognized by the renderer).

Set a condition on a content node

Click on the condition icon in the tree or in the pre-viewer. The condition editor will pop up in which the condition can be edited.

You can enter an expression in the Condition box. When the (boolean) expression evaluates to true, the content node will be displayed. The colour of the border around the condition icon indicates if the condition expression is a valid expression.

Set a repeat condition on a content node

Click on the condition icon in the tree or in the pre-viewer. The condition editor will pop up in which the condition can be edited.

You can also enter an expression in the Repeat Condition box. You can specify any expression that evaluates to a set of instances (e.g. ALL Customer, Policy.HasApplicants, COLLECT Customer FROM ALL Customer WHERE <condition>). 

For each instance in the set that results from the repeat expression, the content node (and all of its content) is repeated. With each repetition an instance from the set is activated.

Set image width and height

Image nodes have additional properties Width and Height. The width and/or height can be specified using a floating point number, using a period as decimal indicator. The unit is centimetres, and does not have to be specified. Neither width nor height is required. If only one of the two is specified, the picture will be proportionally resized. The scaling of the picture depends on the document renderer.

Insert a text item node or an image node

A (reusable) text item can be inserted as a child of a content item by dragging the text item onto the content item. A text item cannot be inserted as a child of an image.

An image can be inserted as a child of a content item by dragging the image onto the content item. When an image is dragged onto an image that is a child of a content item, the current image will be replaced.

Another way to insert new items is to select a node in the tree where you want to add something, then go to the Insert item part of the shortcut menu, select the type of item (content, text or image) and the item itself, and select one of three insertion possibilities: before, after or as a child of the selected node.

 

RTF Import wizard

You can create a Document from scratch in Blueriq, but you can also be off to a running start by importing an existing RTF document. Companies often already have detailed templates of the documents that are involved in their business processes. In that case, the easiest way to a new Document is to import an RTF-file into Blueriq Studio. During the import process, you can map the various styles that the import wizard detects in the source document onto pre-defined content styles and presentation styles in Blueriq.

You can save a lot of studio editing time by 'cleaning' the source RTF document before import: make sure all paragraphs, headings, ... that look the same, actually have the same style. In Word, you can use the Format Painter to copy and paste styles.

 

Import

<to do: describe the import process: From the import button to mapping styles to finish...>.

  • No labels