Patrotest Wiki

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
reporting_engine_template_edition_rules [2018/12/06 12:06]
admin [Template Edition Rules]
— (current)
Line 1: Line 1:
-=====Template Edition Rules===== 
- 
-Data to the template can be imported in two ways: 
-  * $var_name$ - variable with $$ 
-  * Bookmarks ​ 
- 
-Data of any format can be imported: number, picture, date, string, boolean, etc.\\ 
-The value can be formatted according to the program settings or by using formatting strings in the template.\\ 
-Data can be inserted in any locations: headers, tables, strings, etc. 
- 
-====$var_name$==== 
- 
-$var_name$ - variable in $$ that will be replaced with formatted value. All $var_name$ with same name will be replaced in all part of documents.\\ 
-Library use current font settings of the $var_name$ during filling. For example, if there are several variable with same name but with different fonts, each variable use particular font settings. ​ 
- 
-====$var_name%%m.%d.%y%$==== 
- 
-$var_name% %m.%d.%y%$ - variable with formatting string. There are some cases when user need to filled current data in different part of doc and with different format: 01.01.20018 or 01/01/18. 
- 
- 
- 
- 
-====Bookmarks==== 
-\\  
-<WRAP left round info 50%> 
-Set bookmark visible in MS Word settings 
-</​WRAP>​\\ ​ 
-\\  
-\\  
-\\  
-Bookmarks have two style: 
-  * Simple ​   
-  * Ranged – select range of text 
-Simple bookmark is filled by value beginning from right.\\ 
-Range bookmark is filled by values beginning from right bracket. 
-Text in bracket will be deleted from the report if there is no import. It’s very useful when customer use big template with a lot of fields and tables which can be deleted if it’s not filled. ​ 
- 
-====Description==== 
- 
-There are four options available for value placement: 
- 
-^Name ^Description ^Example^ 
-|variable |text designation of variable enclosed by %%'​$'​%%\\ \\ %%$var_name$%% - any phrases in %%$$ %%will be replaced with string data or picture\pictures. All %%$var_name$%% with same name will be replaced in all part of the template.\\ \\ Font formatting settings will be saved |%%$var_name$%%| 
-|formatted variable |Variable with string format.\\ String formatted variable overwrites the software settings.\\ \\ $var_name%<​%m.%d.%y>​T%$ - variable with string format.\\ Very useful when you need to fill current date in various part of the doc and with different format: 01.01.20018 or 01/​01/​18.|%%$var_name%<​%m.%d.%y>​T%$%%\\ %%$var_name%.;​%d%$%%| 
-|bookmark |You can use Word bookmarks to import data into the protocol.\\ There are two modes of data import available:​\\ -String\\ -Cell in table\\ \\ Place bookmark with string mode in any part of template to export values from the software.\\ “Cell in table” is used to fill several closed cells in any table.\\ \\ Set bookmark visible in MS Word settings |{{ :​reporting_engine:​template-edition-rules1.png?​nolink&​200 |}}| 
-|ranged bookmark |Range bookmark is a part of the text selected by a bookmark. It will be deleted if there is no data imported from the program.\\ There are two modes of data import available:​\\ -String\\ -Line in table\\ \\ It is very useful when you want to use a single template for different tests. If the table is empty, they will be deleted. |Text will be deleted in case no import:\\ \\ Table name\\ {{ :​reporting_engine:​template-edition-rules2.png?​nolink&​200 |}}| 
- 
-\\  
-<WRAP left round info 50%> 
-All variables\bookmark available and format strings you can find in the “Report Data” settings in the software. 
-</​WRAP>​ 
-\\  
-\\  
-\\  
-\\  
- 
- 
-====Examples==== 
-^Variables\bookmarks ^Description^ 
-|$TR_Number$ |Test report number with value format specified in the software| 
-|$TR_Number%.;​%eвв%$| |  
-|$TR_Date%<​%m.%Y>​T%$| | 
-|$TR_Date%<​%d.%m.%Y>​T%$ | | 
-|$TR_Date$| |  
-