|
|
Recent News
|
Hotel Software DocumentationParser Template Designer
Parser Template Designer is used for creating templates for importing text drag-and-drop data (parsing). You can open the Parser Template Designer in one of the following ways:
The Parser Template Designer window is split in two parts:
Three tabs of the left pane (1) are used to edit the parser. In the right pane (2) the imported text is displayed. Select a part of the text and click the right mouse button to open the quick insert menu. You can test the operability of the template by clicking the Test Parser
button. If the parser configuration is correct, the message describing the
data fields will be displayed:
General Tab
Keywords TabThis tab contains two lists: These lists contain the words used by the parser to define if the current template is applicable to parsing of the incoming text. For example, if the list of allowed keywords contains the phrase "Price List", which is not available in the text, the text will not be parsed by this template. It is recommended that you specify the keywords that are always available in the imported text of the given type. For example, when importing a list of books it is not appropriate to define the book titles as keywords (otherwise, another set of books won't be recognized as a set of books). Please select the titles of the fields instead, e.g. "Price:" and "Pages:". Disallowed keywords is an optional field. If the keywords specified in this field can be found in the incoming text, the text won't be parsed. It is recommended that you use this list to differentiate incoming texts for a number of similar parsers. You can use special symbols here. You can provide the lists of keywords by using the quick insert function. Fields/Variables TabIntroductionThis tab is the background of any parser. It specifies how the text being
imported will be transferred to the database fields:
The upper part of the window contains the list of boundaries to be considered when parsing the incoming text and transferring it to the database. To enter the data into one field specify the right and the left boundary of the text to be inserted. For example, for a database of books with fields Book Title, Author and Cost, and with the following incoming text: Book: The Lord of The Rings; Author: J.R.R. Tolkien; Price: 30$ we can extract the data from the following fields:
If this data is split into strings, you can use the line break tag [BR]. Accordingly, for the incoming text:
The set of fields will be as follows:
The rules described above can be defined using the Field Editor that can be
opened by clicking the Add... button or the Change... :button: If the data is parsed not into fields, but into variables, in this window you can specify the name of the variable into which the data is imported. Further these variables can be used in the script (see Actions Tab). Actions Tab
In this tab you can indicate the script that will be executed when the data has been recognized. If the top check-box is selected, fields will not be filled and records will not be created automatically during parsing. Only variables will be initialized and the specified script will be executed. Thus, you can preliminarily check the data or change relational fields. For more details see Script Designer. Quick Insert Menu The Quick Insert Menu allows you to easily fill in various template
fields with the data from the incoming text.
To open the Quick Insert menu select a part of the text and click the right
mouse button:
See Also: |
Today"s Poll What software do use for your inn/b&b/hotel/etc? |
Home Page | Contacs | Terms and Conditions | Copyright (C) 2001-2010 Binary Brilliant Inc | |