GNA – Resource File Editor

Resource File Editor

Overview

Resource files typically contain data that is intended to be deployed with applications. This data can be in the form of text strings, and occasionally images. The Resource File also allows the storage of different language versions used for localization of the user interface.
The Govern Resource File contain text, headings, labels, exceptions and error messages that appear in the applications within the suite. Other areas and applications that access resource files are the, Mobile Inspector, the eComponents Web pages and their respective Help files.
To access the Resource File Editor, in the Govern New Administration (GNA):

  1. Select Editors (tab) > Resource File Editor…

Resource File Structure

The resource file hierarchy is as follows:

(ROOT) Resource File Name (1) > Module (2) > Function (3) > Key (4)

Read More...

Resource File Module

The Resource File Editor allows you to access and make modifications to the contents of the Govern Resource File. In the file each item or Module is saved containing one or more Functions.
The modules are organized as follows:

NEW: New modules are indicated with a NEW!.

 

Module Type of information
AR Electronic payment transactions
BE Text and messages for the Business Entity Designer (BED)
BP Batch Process text and messages.
BR Bankruptcy messaags
BW Web audit and Web translation error messages
CC Credit Card Processor error messages
CI Text for the DeployEZ™ Installer
CO eComponent error messages
CR Cadastral Renewal text
CX Text and messages for the Govern Security Manager (GSM)
DE Property Control messages and text
ES Text and messages for the Dynamic Search pane in Govern.NET
GI Text and messages for the embedded Search pane in Govern.NET
GL Text and messages for Govern FMS module
IN Inspection business rules
MA Text and messages for the Govern.NET Mass Appraisal module.
MB Text and messages for the Govern.NET Miscellaneous Billing module.
MD Text and error messages for the Govern Model Designer (MoD).
ME MelissaData business rules
MO Inspection Scheduling messages
NA Business rules for Name and Address records
OD OpenForms Designer
OF Text and messages for OpenForms.
PC: Business rules for Property Control records
PM ePermit business rules
QT Text and messages for Govern QueryTool
RB Text and messages for the Govern.NET ribbon menu interface.
SB Subscription Plan business rules and renewal notices
SC Data Synchronization process text and error messages.
SF Authentication messages
SL GIS Application text and messages
SM Text and messages for the Govern Security Manager . module.
ST Messages and labels for the Govern.NET Self-Reported Tax module.
SY System wide messages and error messages
TE Test translation text
TX Tax business rules
UB Business Rules for the Utility Billing searches
UL UEL Table related text (Quebec)
US Entries for the Govern User Registry
WB Text and error messages for the Web pages
WD Text and error messages for the Govern New Administration (GNA) and DeployEZ™ Publisher
WF Business rules for the Permit Activities
WM Workflow Management
WP Web Profile business rules
WZ Text and messages for the Data Access Block and Web Configuration

Resource File Function

Records are resource files that are organized by module. For example, text that might be related to payments might appear under AR (Accounts Receivable) and permit text under PM (Property Management). The modules are further subdivided according to the type of information they may contain.

Resource File Keys

Each separate Record, may contain multiple Key’s. Each key will contain three (3) columns titled, Key (this is the key name), English (or your first language), and French (a second language). Each of these fields is a text field. Typically, keys are grouped by Function and Module.
The Key is a unique identifier for the text within the function, and should not be modified. You can, however, modify any of the French or English text, in order to create customized Web pages. For example, you can change labels, headings and error messages to match your organization’s Web site.

WARNING: It is critical that the name of a Key should never be modified. Modifying the name of a key can potentially disable the correct functioning of a module.
Modifying Text in the Resource File Editor

Use the following procedure to modify any of the text that is saved to the Resource File Editor. This includes all the labels, headings, exceptions and error messages that appear on a Mobile Inspector, eProfile and eComponent Web pages.

An ampersand (&) before a word or letter displays an underline; for example, &File, E&xit, &Help appears as File, Exit and Help. The F, x and H in this example are hotkeys; i.e., Alt + F displays the File menu, Alt + H displays the Help menu and Alt + F, X closes the application.
To display an ampersand on the Web, you need to enter two ampersands (&&) in the Resource files; for example to display Cat & Dog Licenses, enter Cat && Dog Licenses.
To modify the text:

  1. In the Govern New Administration (GNA), select Editor (tab) > Resource File Editor…
  2. Select File > Open (Ctrl + O)
  3. Navigate to the directory where GovernNet.en.resources and GovernNet.fr.resources are located. By default, these files are located in a folder called ResourceFiles. This folder is created in the root of the MS Govern installation; the folder is called ResourceFiles.
  4. Select and open one of these files. Both files will open in the Editor.
  5. Click File > Find on the .NET Resource Editor main menu bar or click Ctrl + F on your keyboard, to locate the text you want to modify.
  6. Enter the text string that you want to locate in the Find textbox.
  7. Check Exact Match if you want to locate the whole word or phrase exactly as entered.
  8. Click Find to locate the text or click Cancel to close the Find form without any further actions.
  9. If the text was found, right-click on the text string to display a floating menu; select Edit… (1) to open the Resource Files Text Editor.
  10. Make your modifications directly in the English String (2) and French String (3) text boxes, as required.
NOTE: You should not modify the Label or Key, Function, or the Module.

11. Click OK.

NOTE: When you click OK, this closes the text box. You need to save the file in order to save your changes.
Click File > Find Next, on the .NET Resource Editor, or F3 on your keyboard, to locate the same text in another file, if required.

12. Click File > Save, or Ctrl + S, when you have completed your modifications. Both the French and the English files are saved.
13. Click File > Close the file. A confirmation message appears if there are any unsaved modifications. You need to save the file in order to save your modifications.

Similarly, when you click Exit, a confirmation message appears if there are any unsaved modifications.

Upgrading Resource Files

NOTE: The Resource File Merge feature is required for upgrades only.

Merging Resource Files

Performing an upgrade to the next version of one of MS Govern’s eGovern – Public Self Service Portal can lead to loss of modifications made to the resource file. In order to avoid losing these modifications, you will need to run the Resource Files Merge process.
In running the resource file merge process, new Keys, containing the new text and features, are added to your existing file while existing keys are left untouched.
To merge two resource files together:

  1. Click File > Merge on the .NET Resource Editor main menu bar, or click Alt + F, M, to open the Merging Resource Files process.
  2. Click Browse beside the Base File parameter and navigate to the new file that you want to merge with your existing file.
  3. Click Browse beside the File to include text box and navigate to your existing file.
  4. Click OK. All the new keys will be added to your existing file. All existing text is left as is. If the merge was successful a confirmation window will appear; click OK.

Click Cancel to close the form without merging the files.

Resource File Locking and IIS

Users of Govern’s eGov should note that when the Internet Information Services (IIS) is running, resource files cannot be maintained by the Resource File Editor. IIS locks the files making it inaccessible. In order to access the resource file, you must stop the IIS service. This can be performed through the Control Panel; Control Panel > Administrative Tools > Services > Internet Information Services (IIS) Manager

Managing User Changes to Resource Files

Internally the Govern system uses the following methodology to maintain resource files and manage any user modifications.

The Methodology

The methodology for updating the resource files located in the ResourceFile folder of the deployment directory is as follows:
When changes are made to the Resource file by the user, the modifications are not saved directly into the GovernNet.xx.resources files (xx = 2 letter culture language, e.g. en = English, fr = French, etc.). A new file called GovernNetClient.xx.resources is created that holds all user modifications.
When a new deployment is prepared and is ready for installation a three (3) step process occurs:

  1. The old GovernNet.xx.resources files on the client are deleted.
  2. A new empty file called GovernNet.xx.resources is created on the client, and the user changes within the GovernNetClient.xx.resources files are appended to these newly created files.
  3. Now a second append is performed by combining the new GovernNet.xx.resources file located on the server to the one on the client (this is the one with the appended user changes). The resulting resource file is then updated on the server.

This process will ensures that all client changes are kept when the resource file is updated, in addition the server will always maintain a version of the resource file with all user changes.

But what happened to my resource changes?

Modifications that are made to a resource node will be updated the next time a deployment is regenerated in the DeployEZ application.

NOTE: User modifications to resource files should be made to the GovernNet.xx.resources file. The system will internally manage the changes. Users should NOT modify the GovernNetClient.xx.resources file.

 

NOTE: Users of the eGovern – Public Self Service Portal should note that the resource files containing the content of the eGovern menu Help text, i.e. GovernNetHelp.en.resources and GovernNetHelp.fr.resources are separate from the main system resource files. These files are also maintained with the GNA Resource File Editor, but should be backed up in a separate location.

 

 

103-ED-012

 

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this.
Loading...

 

GNA – Field Mask Editor

Field Mask Editor

Overview

With the Field Mask Editor, you can define a set of Field Masks that can then be applied to fields in the Business Entity Designer (BED). Applying a field mask automatically formats the data entered in the field according to a defined pattern. For example, you can define a pattern for telephone numbers and apply it to a Telephone field in the BED. When the user enters 18005551212 in an OpenForm, this is automatically formatted as 1-800-555-1212.

Use this editor for phone numbers, postal or ZIP codes, Tax Map Numbers, Social Security Numbers, etc.

NOTE: By default the fields on a form are “collapsed”, i.e. they are not fully visible. This is to give the form a cleaner appearance. Additional fields can be displayed with a click on the Collapse/Expand button.

Multi Box Field Masks

NEW! Along with the single box field masks, it is possible to specify Multi Box field masks. Field masks can be displayed in a single long field, or displayed over multiple fields. The Multi Box Field Mask Control takes a custom Govern mask and transforms each part into separate Text Box Masks that are parsed individually. This display option is available during the mask set up in the Field Mask Editor in the Govern New Administration (GNA). Govern’s set of mask rules and characters that apply to the control are below. See the  Validation Rules for Multi Box Masks on the 103-ed-002 page.

Govern Mask Preview

103-SY-003-GNA60-(FieldMskEdtr_PrevwBx00).png
Click image to display full size.

NEW! In the GNA Field Mask Editor there is a preview option that can aid the design and prototyping process. After designing your mask, you are able to get a preview of how it will appear. Entries can be made in the preview fields for further confirmation. This preview feature is valid for single box or the multi box field masks section of 103-ed-002.

NOTEUsing MaskedTextBox (developers can either bind the mask to the preview textbox or call the Initialize directly). This feature is available as of GNA Release 6.0.1502.0083,

Field Mask Editor Command Buttons

New
Click New to clear the screen so you can create a new Field Validation Mask.

When you click on New, the button changes to Cancel ; this will allow you to cancel the creation of the current record. The Cancel button is present until the new record is saved.

Save
Click Save to save a new record or modifications to an existing one.

Delete
Click Delete to remove the current record.

Closing the Editor
To close the editor, click the Close Window button in the upper right hand corner of the form.

Field Mask Editor – Format Tab Parameters

Name
Enter a name for the field mask. This appears in the drop-down list that is displayed when you apply the mask.
NOTE: Only alphanumeric entries are permitted incode parameters. This means that names for codes can only be made up of letters and or numbers. Special characters such as the underscore “_”, the dash “-”, the ampersand “&” , etc. are not recognized.
English Short Description
Enter a short description to identify the department. This is useful for fast data entry and look-ups if space is limited on the forms.
English Long Description
Enter a long description to identify the department. This will be displayed for look-ups on forms and will be normally used for reporting.

Second Language Fields

When there is a 2nd language, or multiple languages, ensure that these description fields are also completed.
Is System
This flag / option is reserved for constants that are designated as Govern system constants.
Display as multiple text boxes
Select this option to display your Field Masks as a multiple box; the default is single box.

GNA60_FieldMskEdtr_00.png
Click image to display full size.

System Reserved Values

Only users with Super-User access will be able to select and deselect the Is System option. In addition Super Users can also create new values and flag them for Govern system use.

NOTESystem constants are reserved for use by the Govern.NET system and as such should not be modified or deleted without a full understanding of the implications. Deletions of system values can damage the Govern.NET system, rendering it inoperable. Modifications that are made to System values should always be noted. When a system wide update is performed, these modifications may be overwritten.

Field Mask
In this parameter, enter the text string that will be used for your field mask.

The following tables list the symbols that can be used in field masks. The second table lists symbols that can be used for Tax Map Numbers only:

Valid Field Masks

Symbol Description
#

Numeric value. Exact number of digits must be entered as defined in the “New Database Field Creation”.

You can use the “-” (Dash) to separate the values.

9 Numeric value left justified compressed with trailing zeroes.
d Numeric value left justified compressed with trailing zeroes.
Z Numeric value right justified compressed with leading zeroes.
0 Numeric value right justified compressed with leading zeroes.
>

Alpha & Numeric values. Alphabetic characters must be in uppercase. If only ONE “>” is entered, then the number of digits entered can be LESS than defined in the “New Database Field Creation” Size.

Otherwise, the exact number of characters must be entered as defined. You can use the “-” (Dash) to separate the values.

< Alpha & Numeric values. Alpha in lowercase. If only ONE “<” is entered, then the number of digits entered can be LESS than defined in the “New Database Field Creation” Size. Otherwise, the exact number of characters must be entered as defined. You can use the “-” (Dash) to separate the values.
A

Alpha character in Uppercase. Number of characters entered must be as defined in “New Database Field Creation” Size.

The Dash “-” or Hyphen can be used to separate values.

^ When present in mask will present each option as a Combo box for selection.
NEW! – This symbol is no longer recognized as an “OR” clause.
! Alpha and numeric values as entered, both uppercase and lowercase. You can use the dash, — to separate values.
“ “ Leaves a blank space before the next series of characters, in the same text box.

EXAMPLE: A zip code should have 5 digits but may have a dash and 4 other digits.
The pattern could be: #####^#####-####

NOTE: NEW! – The “^” symbol is no longer recognized as an “OR” clause; when used in this context, the masks will be displayed in a combo box, (drop down menu), for selection.

Valid Masks for Tax Map Number Fields Only

(To use with the “0”, “9”, “d” and “Z” masks only):

Symbol Definition
. Displays the next series of characters in another text box with the period in between.
: Displays a single “.” Inside the series of characters, in the same text box.
“” Displays the next series of characters in another text box.
Displays a “-” (Dash) inside the series of characters, in the same text box.

=

=

NEW! Validation Rules for Multi Box Masks

Symbol Definition
^ When present in mask will present each option as a Combo box for selection. This symbol is no longer recognized as an “OR” clause.
# Numeric value. Exact number of digits must be entered as defined in the “New Database Field Creation”.
9 Numeric value left justified compressed with trailing zeroes
d Numeric value left justified compressed with trailing zeroes
Z Numeric value right justified compressed with leading zeroes.
0 Numeric value right justified compressed with leading zeroes.
A Upper case Alpha (transform lower case to upper case on key up)
a Case insensitive Alpha
? Any
! Case Insensitive Alphanumeric
> Upper case any
< Lower case any
. Separator
Separator
space Separator
: This character in the multi box field mask will function the same as a “ . ” separator in the single box field mask.

Other standard characters remain as is.

NOTE: The following rules apply for a Multibox

Parsing rules for areas with Read Only and Edit permissions

When parsing Read Only areas where masks are applied to, e.g. in the Treeview, and areas where the Edit permission is permitted, e.g. forms, the following rules will apply:

  1. The user will be prevented from entering invalid characters.
  2. If the mask contains a single “/”, it is validated as if the mask was the same length as the text
Symbol Definition
# Numeric
d Numeric, remove / add trailing 0
9 Numeric, add / add trailing 0
0 Numeric, add / add leading 0
Z Number, remove / add leading 0
> Upper case any => Transform lower case
< Lower case any => Transform Upper case
A Upper case Alpha => Transform Lower case
a Case insensitive Alpha
! Case Insensitive Alphanumeric
? Any

Other standard characters remain as is.

A Note to Users accessing Govern Remotely

NOTE: Users should note that parameters with field masks that are designed to accept hyphen separated entries entries, e.g. Telephone Numbers, Tax Maps, will display in OpenForms as a parameter with individual fields. These individual fields can be accessed with the tab key (A).
GNA60_GloblValMaskEdtrGovRemote.jpg
The Field Mask for the above would look like the like the following “XXX-”XXX-XXX-X”, each of the grouped X’s are separated. Users that are accessing Govern over a Remote Link, e.g. VPN should pay attention to the tab sequence when pressing the Tab key to jump to the next parameter. Over a remote connection, in the Tax Map parameter, the tab key will not move the cursor to the next field of the Tax Map number, rather it will jump to the Include Inactive parameter (1). This behavior only applies to remote connections to Govern.

 

TUTORIAL

Create a Zip Code Field Mask

In the following example we will create a custom Zip Code Number. This field mask will accommodate the United States zip code format, and the Canadian postal code format. The background information required is that US zip codes can be 5 numeric digits, or in a format called ZIP+4. ZIP+4 includes the standard five digits plus a hyphen and four more digits. The Canadian postal code uses six alpha-numeric (6) characters; the Alpha and Numerical characters alternate starting with and alpha character. For example H8T 2M3. The first character is always an alpha, and there is a space between the first three characters and the last three.

To create our custom mask…

  1. In Govern New Administration (GNA), select Setups/Editors > Editors > Field Mask Editor…
  2. In the Field Validation Mask Editor form, click New.
  3. In the name field, enter zippostalcode.
  4. Enter a Short Description of US Zip & Cdn Post in the field.
  5. Click into the Long Description field, the Short Description will be copied into the Long Description, add any additional information to the name.
  6. In the Field Mask field, enter the following mask pattern:
    #####^#####-####^A#A#A# NEW!Note:The “^” symbol is no longer recognized as an “OR” clause; when used in the context of Field Masks, the masks will be displayed in a combo box, (drop down menu), for selection
  7. Click Save to save the mask.

Based on the information that was provided, the mask will format the following:
Five (5) numerical characters OR 5 characters a dash and then four (4) more numerical characters, OR six (6) alternating alpha and numerical characters.
NEW! – The Caret symbol, “^“, is no longer recognized as an “OR” clause; when used, the masks will be displayed in a combo box, (drop down menu), for selection.

 

 

103-ed-002

 

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this.
Loading...

GNA Profile Editor

Profile Editor

Overview

In Govern, a Profile is the equivalent of a department in Govern for Windows. Inside a department there would be Functions and Reports. In Govern for OpenFormsTM, this same analogy can be applied in the sense that Functions are referred to as OpenForms. With this analogy, in a Profile, we would have OpenForms and Reports. In Govern for Windows, inside a department we can have Functions for tasks like Permitting, Complaints, Offences or obtaining Property Information. Within Profiles are OpenForm Zones; these are the tabs that appear under the profiles. These tabs can have additional command buttons.
The Profile Editor is the interface used to configure profiles and access to OpenForms. Administrators that are familiar with MS Govern’s user access interface will notice similar parameters

Profile Editor tab

The Profile Editor interface is divided into three (3) sections, Properties, Links, and Queries. Each section can be accessed by selecting either one of the tabs below the Profile tab.

Command Buttons

New – On the Profile tab, click New to remove all parameter entries in the currently selected profile. When saved, this will add your profile to the list of profiles. (Table: USR_PROFILE)
When you click on New, the button changes to Cancel ; this will allow you to cancel the creation of the current record. The Cancel button is present until the new record is saved.
Save – Click Save to save the current parameters to the List of Profiles or to update an existing profile.

Copying a Profile

When creating one or more profiles that are similar in forms, a good strategy is to create a “base” profile, then make copies of the profile. The minor modifications can then be made to each copy.
Copy – Click Copy to create a copy of the currently selected record. When the record is copied, it is given a random name that is based upon the original Profile Code.
Delete – Select a profile from the List of Profiles, click Delete to remove it from the list.

Closing the Editor

To close the editor, click the Close Window button in the upper right hand corner of the form.

Profile Editor – Properties tab parameters

The Properties tab is used to configure details of the tab that are displayed in Govern.NET. Parameters such as the label displayed on the tab, the department that it is linked to, warnings and the fiscal year that the user may be restricted to. The Links tab is used to link Models to OpenForms, and Reports that are linked to the Profile.

Code – Enter the code that will be used for this profile. This is a unique number that cannot be shared with another existing profile.
There is an Expand/Collapse button located below this field; when entering parameters, ensure that you click on this button to display the additional fields.
English Short Description – Enter the English description that will be used for fast data entry and look-ups where space is limited on forms.
English Long Description – Enter the English description that will be displayed for look-ups on forms, and normally used for reporting.

Dataset Type Code – Select the Dataset Type code from the drop down menu. This refers to the key that the profile will be using. This value will also serve to filter the options that will be displayed in the Default eGroup and Default eStyle parameters.

NOTE: For example if a Dataset Type Code of Name ID is selected, only the eGroups or eStyles that return a Name ID will be displayed in the Default eGroup and Default eStyle parameters.

View for Dataset TreeView
Specify the view that will be used for the Dataset TreeView; available options provide additional Treeview information.

eStyles and eGroups

Search Styles and Search Groups that are created in the Web Search Styles Management and the Web Search Group Management forms can be applied to the profiles through the Profile Editor. Either individual styles or groups can be configured.

Default eStyle – Select a default syle from the drop-down menu.

Default eGroup – Specify the default group that will be used for this profile. This group is a collection of styles

Department – Choose a department from the drop-down menu that this profile will work by, for example a permitting related profile might work with the Building Department. Click the ellipsis button to display the Department maintenance form.

Current Fiscal Year – This parameter allows you to specify the fiscal year that this profile will have access to.

Properties tab parameters – Options

Approved Subdivision – Choose this option to restrict access to only approved subdivisions.
Overwrite Calendar – When selected, the user will be able to overwrite a calendar.

Make Profile Available for Govern Mobile Option

During the Initialize Mobile Database process, a subset of a Source database is created to be used for a mobile deployment. The Available for Mobile Application option, when selected, will allow the the user to control whether the currently selected profile is added to the subset database. By default this flag is not selected, i.e. will not be added to the Mobile database that is generated.

Available for Mobile Application – When selected, this flag will indicate that the system should include the currently active profile in the subset, i.e. Mobile database that is generated from the Initialize Mobile Database process.

NOTE: First time users must run the GNA Verify Database process in order to make the Available for Mobile Application option visible for selection.

 

WARNING: When the Initialize Mobile Database process is initiated, if no profile is selected, the following error will be displayed:
Handled Error – There are no available profiles for Mobile. Please select at least one in the Profile Editor.
This due to the fact that during the Verify Database process, the flags for inclusion of all profiles were deselected. Always ensure that at least one profile has been selected.

 

Available for Desktop Application – Select this flag to indicate that the system should make the currently active profile available.

Profile Editor – Links Queries tab parameters

Click Add to display the list of available forms that are required to be added to the profile. Select one or more forms; click OK to accept the forms.
To remove one or more forms, click to select the form(s); click Remove to remove the form.

Forms (group)

Appearing in this list are the Business Models that users can be given access to.

Reports (group)

Click Add to display the list of available reports that are required to be added to the profile. Select one or more reports; click OK to accept the reports.
To remove one or more reports, click to select the report(s); click Remove to remove.

A/R Subsystems (group)

As with Reports and Forms above, click Add to display the list of available items. Select one or more from the list and click OK to accept their addition.
To remove one or more batch processes, click to select the batch process(es); click Remove to remove.

Batch Processes (group)

As with Reports and Forms above, click Add to display the list of available batch processes. Select one or more from the list and click OK to accept their addition.
To remove one or more batch processes, click to select the batch process(es); click Remove to remove.

External Commands (group)

As with Reports and Forms above, click Add to display the list of available items. Select one or more from the list and click OK to accept their addition.
To remove one or more batch processes, click to select the batch process(es); click Remove to remove.

Profile Editor – Queries tab parameters

On Click (group)

A click on the radio button to select the action that will be executed when the user clicks on the icon. Options are as follows:

  • None – The result of the query that has been configured in the Query parameter is displayed, using the configured Control Type, i.e. Pie Chart, Line Chart, and so on.
  • Execute Command – Click Execute Command to display the combo box. This parameter will list command that are available. Alternatively, click the ellipsis “” to display the External Command editor, and enter an expression.
  • Open Batch Process – A click will launch a configured batch process.
  • Open Form – Launch a specified OpenForm.
  • Open Modal Form – Launch a specified OpenForm, but display the form in a modal window. See When to use a Modal Window in Govern
    below.
  • Open Query Tool – When installed, this option will launch the Govern Query Tool.
  • Open Report – This option will launch a configured report.
  • Open View Query – Select this option to display a screen that will be populated by the results of a View Query.

 

When to use a Modal Window in Govern

A modal window is a graphical control element that disables the main window and keeps whatever window that is displayed visible. The users must complete the actions required by the modal window before they are allowed to return to main application. Use this option when you want the user to address the requirements of the window before moving on.

See Also

Govern New Administration (GNA)

 

 

103-ED-001

 

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this.
Loading...

GNA – Constant Value Editor

Constant Value Editor

Overview

The GNA Constant Value Editor is used to define and maintain values that are constant within the Govern system. Constants can be used in formulas, logical expressions and expressions for values that change on a yearly basis or varies baseare different based on the . Constants are saved by year, as a result you only need to edit the constant definition in order to update your formulas and logical expressions.

NOTE: By default the fields on a form are “collapsed”, i.e. they are not fully visible. This is to give the form a cleaner appearance. Additional fields can be displayed with a click on the Collapse/Expand button (A).

What’s New

[6.1] User Constants have undergone changes to implement new concepts introduced in Version 6.1.
see Version 6.1

Command Buttons

Copy to Next Year
Click Copy to Next Year when you need to copy the constant value, code and value, and initialize a new year.
New
Click New to clear the form so that you can enter new data.

NOTE: When you click on New the button changes to Cancel ; this will allow you to cancel the creation of the current record. The Cancel button is present until the new record is saved.

Save
To save a new record or any modifications to an existing one, click Save .
Delete
Click Delete to remove the current record from the database.

Parameters

Filter group

In the Filter group (A), select the fiscal year that you would like to use as a filter for displaying available constants.
Year
Constant tables are created by fiscal year; by default this parameter displays the current fiscal year.

Constant Value Editor – Constant tab

Name
Enter the name for this constant.

NOTE: Only alphanumeric entries are permitted in code parameters. This means that names for codes can only be made up of letters and or numbers. Special characters such as the underscore “_”, the dash “-”, the ampersand “&” , etc. are not recognized.

Short Description
Enter a short description. This is used for fast data entry and look-ups if space is limited on forms.
Long Description
Enter a long description. This is displayed during look-ups and on forms and reports.
When there is a 2nd language, or multiple languages, ensure that these description fields are also completed.

Is System
This flag / option is reserved for constants that are designated as Govern for .NET system constants. (SYSTEM_FLAG in USR_CONSTANT table)

NOTE: When the Verify Database Objects Existence utility is run on the database, a new column called SYSTEM_FLAG of type smallint is added to the USR_CONSTANT table. When selected SYSTEM_FLAG=True. This option can only be modified by users with Superuser administrative rights.

System Reserved Values

Only users with Super-User access will be able to select and deselect the Is System option. In addition Super Users can also create new values and flag them for Govern.NET system use.
System constants are reserved for use by the Govern.NET system and as such should not be modified or deleted without a full understanding of the implications. Deletions of system values can damage the Govern.NET system, rendering it inoperable. Modifications that are made to System values should always be noted. When a system wide update is performed, these modifications may be overwritten.

Value
Enter a value for the constant. for example a Sales tax of 15% would be entered as 0.15.

TUTORIAL

In the following we will create a constant value for a specific fiscal year…

When no Fiscal Year has been defined…

For this example we will create a Sales Tax for the fiscal year 2015.

  1. In the Constant Value Editor form, enter 2015 in the Year: parameter.
  2. Click the Expand button to display the hidden parameters that need to be completed.
  3. Enter a Name for the constant value; use saleTax2014.
    NOTE: When naming the constant in the name parameter, avoid the use of underscore characters “_” and spaces.
  4. Next enter a Long Name for the constant; Sales Tax 2014
  5. Click inside the English Short Description field; the Long Name will be automatically copied into both the English Short Description and English Long Description field. Select and change the text if modifications are required.
  6. Enter names into the Short Description and Long Description fields of the second language parameters.
  7. Any incomplete fields will result in the display of an error screen.
  8. Click OK and complete any required fields.
  9. Save the newly created constant with a click on Save.

When a Fiscal Year has been defined…

  1. When there is a fiscal year already defined, click New; all parameters will be voided.
    NOTE: If you are dealing with multiple years, ensure that the correct year has been selected in the filter group.
  2. Enter a name in the Name field; complete all Short and Long Description fields.
  3. Enter the value for the rate in the Value parameter; click Save.

Once created, the constant value will appear on the left hand side under the Constant List (B) When saved this constant will be accessible for use in formulas and logical expressions. See the following for details:

  • Formula Editor
  • Logical Expression

About System Reserved Values

Only users with Super-User access will be able to select and deselect the Is System option. In addition Super Users can also create new values and flag them for Govern.NET system use. System constants are reserved for use by the Govern.NET system and as such should not be modified or deleted without a full understanding of the implications. Deletions of system values can damage the Govern.NET system, rendering it inoperable. Modifications that are made to System values should always be noted. When a system wide update is performed, these modifications may be overwritten.
ValueEnter a value for the constant. for example a Sales tax of 15% would be entered as 0.15.To create a constant value for a specific fiscal year…When no Fiscal Year has been defined…For this example we will create a Sales Tax for the fiscal year 2014. Enter 2014 in the Year: parameter.Click the Expand button to display the hidden parameters that need to be completed.

 

 

103-ED-003

 

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this.
Loading...

GNA – Formula Editor

Formula Editor

Overview

The Formula Editor (A) creates customized formulas that can be used in, Mass Appraisal, or Permit fee calculations. These calculations can be added to a logical expression created through the Logical Expression Block Editor, and added to a customized database field or linked to any field. See Logical Expression Editor on page 186 for details.

Command Buttons

New
Click New to clear the form so that you can enter new data.

When you click on New the button changes to Cancel ; this will allow you to cancel the creation of the current record. The Cancel button is present until the new record is saved.

Save
To save a new record or any modifications to an existing one, click Save .

Delete
Click Delete to remove the current record from the database.

Closing the Editor

Read More...

To close the editor, click the close window button in the upper right hand corner of the form.

Formula Tab Parameters

Name of Formula
Enter a name for the new formula.

Only alphanumeric entries are permitted incode parameters. This means that names for codes can only be made up of letters and or numbers. Special characters such as the underscore “_”, the dash “-”, the ampersand “&” , etc. are not recognized.

English Short Description
Enter a short description for the formula.

English Long Description
Enter a long description for the formula.

Second Language Fields

When there is a 2nd language, or multiple languages, ensure that these description fields are also completed.
Is System
This flag / option is reserved for constants that are designated as Govern.NET system records.

System Reserved Values

Only users with Super-User access will be able to select and deselect the Is System option. In addition Super Users can also create new values and flag them for Govern.NET system use.

System constants are reserved for use by the Govern.NET system and as such should not be modified or deleted without a full understanding of the implications. Deletions of system values can damage the Govern.NET system, rendering it inoperable. Modifications that are made to System values should always be noted. When a system wide update is performed, these modifications may be overwritten.

Algebraic Formula
The Algebraic formula is created as the information is entered. This formula can also be modified in this space.

Add Function group

The following functions can be used to create formulas:

ABS Absolute Value Function ATN Arc Tangent Function COS Cosine Function
EXP Exponential of e Function (e= 2.718282) FIX Integer part of a number (not rounded) INT Integer part of a number (rounded)
LGN Natural Logarithm Function LOG Base 10 Logarithm Function SGN Sign Function (results to 1 or –1)
SIN Sinus Function SQR Square Root Function TAN Tangent Function
RN0 Rounded to 0 decimal places RN2 Rounded to 2 decimal places RN6 Rounded to 6 decimal places

 

Add Operator group

The following digits and operators can be used when creating formulas.To add any of the functions or operators, ensure that your cursor is placed in the Algebraic Formula parameter.

BS Back Space CE Clears Last Entry C Clear the Algebraic Formula Textbox
7 Inserts the Digit 7 8 Inserts the Digit 8 9 Inserts the Digit 9
4 Inserts the Digit 4 5 Inserts the Digit 5 6 Inserts the Digit 6
1 Inserts the Digit 1 2 Inserts the Digit 2 3 Inserts the Digit 3
0 Inserts a zero . Inserts a decimal point

 

Integer Division Operator / Division Operator * Multiplication Operator
Subtraction Operator + Addition Operator ^ Exponential Operator
( Insert an Opening Parenthesis ) Insert a Closing Parentheses
[ Insert an Opening Bracket
The Brackets are used for enclosing
database tables and fields.
] Insert a Closing Bracket

 

TUTORIAL

Create a Custom Formula with the Formula Editor

In the following example we will create a formula that will be used to convert Square Footage into Acres. After some research, we find that the formula for this conversion is as follows:

Acres = (Area) / 43560

Where… Area = Length x Width (i.e. Size of the lot)

For this conversion we will need to include a SQL query that will retrieve the Lot Size for our calculation. A query called LOTSIZE was created in a SQL Definition Setup example. See Create a Simple SQL Query on page 248 in the SQL Definition Setup section of this guide for instructions.

To create a custom formula…

  1. In the Govern New Administration (GNA), select Setups/Editors > Editors > Formula Editor…
  2. In the Formula Editor form click New.
  3. Enter CNVRTACRS (i.e. Convert Acres), in the Name of Formula field (2).
  4. Click the Expand button to display the hidden parameters that need to be completed.
  5. For the Short Description field, enter Convert Acres (3).

Consider Null as 0
Select this option to consider Null as 0 during the calculation process. Null represents the absence of a value and normally if one operand within the formula is Null, the result of the formula is Null. When this option is selected, Null is recognized as 0 and the formula returns a numeric value.

NOTE: The location of this option is outside of any of the groups in the form.

Is System
This flag / option is reserved for constants that are designated as Govern.NET system constants.

About System Reserved Values

Only users with Super-User access will be able to select and deselect the Is System option. In addition Super Users can also create new values and flag them for Govern.NET system use.

NOTE: System constants are reserved for use by the Govern.NET system and as such should not be modified or deleted without a full understanding of the implications. Deletions of system values can damage the Govern.NET system, rendering it inoperable. Modifications that are made to System values should always be noted. When a system wide update is performed, these modifications may be overwritten.

6. Click in the Long Description field (4) to copy the Short Description; you may add additional descriptive information to the name.
7. Under the Algebraic Formula field (5), click inside; you will see your flashing cursor.

NOTE: Ensure that your cursor is placed inside the field before selecting the Add Query field.

8. In the Insert in Formula group, look for the Add Query: field; click the drop-down menu and select LOT_SIZE from the list; the LOT_SIZE variable will be added to the Algebraic Formula field.
9. Under Add Operator click the Divide symbol “/”.
10. Next, manually type 43560 into the field or enter it with the numeric pad in the Add Operator group.

Your formula will now look like the following… {LOT_SIZE}/43560

The resulting value from this calculation will need to be rounded; the rounding will be dependent upon the number of decimal places required. In this instance we will round to two (2) decimal places.

11. Place your cursor at the beginning of the formula and click RN2 in the Add Function group. The following character will be added RN2(.

NOTE: When functions are added, ensure that opening and closing brackets are matching.

12. Enter a closing bracket “)” at the end of the equation.
13. The final requirement is to add an additional bracket around the whole equation so as to avoid any errors when it is used with other formulas that may not have brackets around them.
14. The final formula will look like this, (RN2({LOT_SIZE}/43560)) (5); click Save (6)

The formula will appear on the left hand side under the Formulas List (B). These formulas can be added to a logical expression created through the Logical Expression Block Editor, and added to a customized database field or linked to any field. See Logical Expression Editor on page 186 for details.

Insert in Formula group

To include a value from a database field, query, keyword or constant, in a formula, select the item from the drop-down list in the Insert In Formula group. You can include as many of these values as needed, by making multiple selections. The item is added where the cursor is placed in the Algebraic Formula edit box. For example, you could retrieve two values from the database, using Selection Queries, and add these values together.

The following restriction applies:

All fields, selected from the Fields list, must be associated with the same function.

Add Function

You can include functions to your formula by selecting the drop down menu (A) for a list of available functions.

The queries need to be defined through the SQL Query Editor. To include a query, select it from the list. The query name is displayed in the Algebraic Formula edit box between braces, { }. To create a new query, click “…” beside the Add Query drop-down menu, and display the SQL Definition Setup form. See SQL Query Editor for more information.

Add Query

You can include one or more queries in a formula (B). These queries must be Selection queries; i.e., used to retrieve data from one or more fields.

For example, in the following formula:
{depr_year}-[MA_BUILDINGS.EYB]
The Effective Year Built (EYB) of the current building record is subtracted from the Depreciation Year, the year used in calculating the depreciation (depr_year).

The Depreciation Year query {depr_year} retrieves the depreciation year from the SY_RETRY table, by specifying values for the SECTION_ NAME and KEY_NAME fields:
Select KEY_VALUE From SY_RETRY Where SECTION_NAME=str(Year Id,4) and KEY_NAME=’depreciation year’
The queries need to be defined through the SQL Query Editor. To include a query, select it from the list. The query name is displayed in the Algebraic Formula edit box between brace brackets, { }. To create a new query, click “…” beside the Add Query drop-down menu, and display the SQL Definition Setup form. See SQL Query Editor on page 245 for more information.
Tables

To include a database field in a formula, you need to select the table first, from the Tables drop-down list.

Consider Null as 0
Select this option to consider Null as 0 during the calculation process. Null represents the absence of a value and normally if one operand within the formula is Null, the result of the formula is Null. When this option is selected, Null is recognized as 0 and the formula returns a numeric value.

NOTE: The location of this option is outside of any of the groups in the form.

When there is a 2nd language, or multiple languages, ensure that these description fields are also completed.

Add Keywords
Select a keyword from the drop-down list to include it in the formula. Keywords are used to retrieve a value currently in memory; such as ~ parcel id ~ to retrieve the parcel id of the current record. Keywords are displayed in lowercase, between tildes, ~ ~.
For example, to include the building sequence for the current building record, in the formula, select the ~building sequence~ keyword.

Govern Keywords

The following table lists the available keywords for the formulas.

Code Keyword Description
ar_id Account Receivable ID Unique identification number of the current Account Receivable record
key_counter Activity ID Identification number of the current Activity record
ac_id Aircraft ID Unique identification number of the current Aircraft Excise Tax record
br_id Bankruptcy ID Identification number of the current Bankruptcy record
bt_id Boat ID Unique identification number of the current Boat Excise Tax record
bldg_id Building ID Identification number of the current Building
bldg_seq Building Sequence Sequence number of the current Building
cc_id Cash Collection ID Identification number of the current Cash Collection record
co_id Complaint ID Identification number of the current Complaint record
*date Current Date The Current Date
dept Department The Department code
frozen_id Frozen ID Identification number of the current Frozen record
haz_id Hazard ID Identification number of the current Hazard record
h_id Hearing ID Identification number of the current Hearing record
in_id Inspection ID Identification number of the current Inspection record
land_id Land ID Unique identification number of the current Land
mb_id Misc. Billing ID Identification number of the current Miscellaneous Billing account
misc_id Miscelleaneous ID Identification number of the current Miscellaneous Billing account
mv_id Motor Vehicule ID Identification number of the current Motor Vehicle Account
na_id Name ID Unique identification number of the current Name
of_id Offence ID Unique identification number of the current Offense record
p_id Parcel ID Unique identification number of the current parcel
pm_id Permit ID Unique identification number of the current Building Permit, Electrical Permit, General Permit, Plumbing Permit, Permit to Name, Animal License, Business License, License to Name, Approval, Bond, Decision, Prosecution or Appeal record
pp_id Personal Property ID Identification number of the current Personal Property account
pp_det_id PP Detail ID Unique identification number of the current Personal Property Item
folio_id Project Folio ID Identification number of the current Project Folio
prj_id Project ID Identification number of the current Project record
tax_id Real Estate ID Identification number of the current Real Estate Tax record
sale_id Sale ID Identification number of the current Sale record
st_acct_id Self Reported Tax Acct ID Identification number of the current Self Reported Tax Account record
st_id Self Reported Tax ID Identification number of the current Self Reported Tax record
si_id Site ID Identification number of the current Site
sa_id Special Assessment ID Identification number of the current Special Assessment record
tax_map Tax Map Number Tax Map Number of the current record
usr_id User ID Unique identification number of the current user
ub_id Utility Billing ID Unique identification number of the current Utility Billing account
year_id Year ID Year identification of the current record

Add Constants
Select a constant from the drop-down list, to include it in the formula or click “…” to create a new constant. Constants are displayed between ampersands (& &). See Constant Value Editor on page 157 for more information.
Fields
After selecting the table, select the field from the Fields drop-down list. The value of this parameter for the current record is included in the formula. These selected tables and fields are displayed in uppercase, between square brackets; for example, [AC_ EXEMPTIONS.FROZEN_ID].

Executing Formulas and Logical Expressions

When formulas and logical expressions that include keywords or database columns, are executed, all the applicable functions need to be open.
Alternately, you can add a Selection Query to the formula or logical expression, in order to retrieve values from database fields.

Business Entity Developers and Defining Formulas

Developers that are designing Business Entities should note that when defining a formula, take note all fields used in the formula. These fields will need to be included when designing the Entity in the Business Entity Designer (BED). For example, you are designing a formula that will use the following 6 fields from the MA_BUILDINGS table:

Appearance in Formula (Fields) Table Attribute Name Used

Appearance in Formula (Fields) Table Attribute Name Used
[MA_BUILDINGS.BA8010_VA] MA_BUILDINGS BA8010_VA
[MA_BUILDINGS.BA8020_VA] MA_BUILDINGS BA8020_VA
[MA_BUILDINGS.BA8030_VA] MA_BUILDINGS BA8030_VA
[MA_BUILDINGS.BA8040_VA] MA_BUILDINGS BA8040_VA
[MA_BUILDINGS.BA8050_VA] MA_BUILDINGS BA8050_VA
[MA_BUILDINGS.BA8061_VA] MA_BUILDINGS BA8061_VA

In the BED you will need to enter each of the 6 field names as Attributes, and configure each one accordingly.
Refer to the Business Entity Designer Release 5.0 user guide for details about designing Entities.

Best Practices for Creating Formulas

When creating formulas in the Formula Editor, constants should be defined in the Constant Value Editor rather than entered as a “hard coded” value. This methodology allows constants, to be quickly updated when a rate change is authorized. In addition as a constant, there are no issues with using it in other formulas.

Troubleshooting Business Tax Formulas

When creating formulas that are to be configured for use in the SRT module, issues may arise with formulas that explicitly use floating point numbers, i.e. numbers with decimal points. For example the number “0.07”, as a result of the presence of the decimal point has been known to cause issues in SRT calculations.

Workaround for Decimal Point error in SRT Formula

For a situation where a floating point number must be used in an SRT formula, a practical workaround is to define the number as a fraction. For example, the number (0.07) can be represented fractionally as (7/100).

i.e. (7/100) = 0.07

The formula to calculate the value of the item after Sales Tax can be written as follows…
totItemVal = [itemVal + (itemVal * (0.15))]

where…
Sales Tax = 15% Value of Item = itemVal Total Value of Item = totItemVal

This formula, when rewritten in the prescribed workaround format, would appear as follows:

totItemVal = [itemVal + (itemVal * (15/100))] Note: 15/100 = 0.15

Alternate Method using Constants

The above example of defining constants as a fixed number is often referred as “hard-coding”. Instead of “hard-coding” a constant it is recommended that the constant be expressed with a name; in the above example the name salesTax would be used. If a value is to be reused in numerous locations, it is preferable to define it as a constant.

The formula would then be written as follows:
totItemVal = [itemVal + (itemVal * salesTax)]

Now salesTax is defined in the system with a value. Constants are defined in Govern with the Constant Value Editor that is found in the Govern New Administrator (GNA).

The salesTax constant would be defined in the Constant Value Editor as having a value of “0.15”.

NOTE: Fractional values are not accepted by the Value field in the Constant Value Editor.

The end result of using constants is that the formula will be easier to “read”. In addition, when a change to the salesTax value is required, the change to the value is made in one location in the Constant Value Editor; all locations that use the constant will be automatically adjusted. Refer to the section for the Constant Value Editor of the Govern New Administration (GNA) release 5.1 user guide.

 

 

103-ED-005

 

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this.
Loading...

GNA – Logical Expression Editor

Logical Expression Editor

Overview

Create customized logical expressions, using the Govern New Administration (GNA) Logical Expression Block Editor. Logical expressions can be used in Mass Appraisal and Permit Fee calculations; when created they can then be linked to any field.

Uses for Logical Expressions

In the previous generation of Govern, i.e. Govern for Windows, Logical Expressions were used in two (2) principal areas, on calculated values, and
for validation. Logical Expressions may now also be used to obtain the status of a control in the OpenForm Designer (OFD).

Read More...

Calculated Values and Logical Expressions

When a logical Expression is used on a calculated value, the logical expression is attached to a field. The expression is interpreted and returns a value. For example, you could say that if a user selects a check box in the application, the Logical Expression could return one value, but if the check box

is not selected, then another value is returned.

Using Logical Expressions in Validations

In the Business Entity Designer (BED), you are able to attach a Logical Expression to a field. The result of the Logical Expression can be TRUE or
FALSE. Any condition can be entered in the Condition section, The IF section is used to validate one field against another. These sections are strictly for Field Values. After constructing your Logical Expression, it will return a TRUE, 1, or FALSE, 0; when TRUE the field is valid, If FALSE the field is invalid.

Logical Expressions in the Model Designer (MoD)

This is the third way to use Logical Expressions, and is only possible with the NET architecture. In the Model Designer (MoD), we can get the status of a control. Controls that are updated or executed can be made to return a value as part of the Business Rules. The returned values can be attached to a Logical Expression that can say that if there is a value in a field, set that field to be viewable. This is similar to the status flags that are set in the Govern Security Manager (GSM).

NOTE: These flags, when set, override any flags that may be set by the Govern Security Manager (GSM). For example if an entity is set not to be visible through a flag in the OFD, if this entity is used in a Business Model that is now set to be visible through the GSM, parameters that are attached to that entity will still not be visible.

 

In the OFD there are flags specifically for Logical Expressions. Flags such as, CanAddLogExp, CanExecuteLogExp, CanUpdateLogExp, CanDeleteLogExp allow for User Interface (UI) validation.

For example, inspections with a status of complete, i.e. all data parameters have been completed, a Logical Expression query can be used to say that the status of the inspection is FALSE. If parameters are incomplete, the status can be set to TRUE. In this example, the Logical Expression can be used to enable or disable a UI field.

To access the Logical Expression Editor, in the Govern New Administration (GNA)…

  1. Select Setups/Editors > Editors > Logical Expression Editor…

In a Logical Expression, a Temporary Field can be specified that can hold any value. For example, a temporary field can be used to hold a value generated from a query, a database field, or from user input. See Using a Temporary Field on page 199.

Logical Expression Editor Command Buttons

New: Click New to clear the form so that you can enter new data.

NOTE: When you click on New, the button changes to Cancel; this will allow you to cancel the creation of the current record. The Cancel button is present until the new record is saved.

 

Save: Click Save to save a new Logical Expression or any modifications to an existing one. Logical expressions are saved to VT_USR_LOGEXP.
Delete: Click Delete to remove the current record from the database.

Closing the Editor

To close the editor, click the close window button in the upper right hand corner of the form.

Logical Expression Editor – Expression Tab Parameters

Expression Name: Enter a name or code for the logical expression.

NOTE: Only alphanumeric entries are permitted incode parameters. This means that names for codes can only be made up of letters and or numbers. Special characters such as the underscore “_”, the dash “-”, the ampersand “&” , etc. are not recognized.

 

English Short Description: Enter a short description. This is used for fast data entry and look-ups if space is limited on forms.
English Long Description: Enter a long description. This is displayed during look-ups and on forms and reports.

Second Language Fields

When there is a 2nd language, or multiple languages, ensure that these description fields are also completed.
Is System: This flag / option is reserved for constants that are designated as Govern.NET system data.

About System Reserved Values

Only users with Super-User access will be able to select and deselect the Is System option. In addition Super Users can also create new values and flag them for Govern.NET system use.

NOTE: System constants are reserved for use by the Govern.NET system and as such should not be modified or deleted without a full understanding
of the implications. Deletions of system values can damage the Govern.NET system, rendering it inoperable. Modifications that are made to System values should always be noted. When a system wide update is performed, these modifications may be overwritten.

Message: If required, when your logical expression returns an error enter a text string that will be displayed on the error message.
Logical Expression Block: Compose your logical expressions in this edit box. There is no limit to the number of statements you can add.
The following operators can be used:

Insert in Formula group – Add Query

It is under the add query parameter that the types of query to be inserted into the expression block is selected.
Add Query: There are two (2) drop-down menus under the Add Query parameter. The first parameter acts as a filter for the types of queries that will be displayed in the second parameter. The displayed queries can then be added to the Logical Expression Block.
Selection options for the filter are:

  • All – Select this option to display all queries that are available.
  • Select – When selected, this option will display only selection queries.
  • Action – This option display only action queries, i.e. update and delete type queries.

Building Logical Expressions

You can compose your logical expressions in the Logical Expression Block edit box, or copy and paste an expression from another file. Your logical
expression can be made up of an unlimited number of statements, constants, formulas, keywords, queries, database fields, numeric values and strings.

Logical Expression Statements

The logical expression can be built from the following types of statements: IF… THEN… ELSE, DO, RETURN and IN.

IF… THEN… ELSE… Statements

This type of statement executes a group of statements, conditionally, depending on the value of the logical expression.

The following rules apply:
1. IF, THEN and ELSE must be written in uppercase.
2. A space must be entered between the statement and the action.
3. Only Select Queries can be used with the IF statement. For more information on queries, see SQL Query Editor on page 243.

The syntax is as follows:

IF condition THEN
statement
ELSEIF elseifcondition THEN
elseifstatement
ELSE elsestatement
ENDIF

DO Statement

This type of statement executes an action.
The following rules apply:
1. DO must be written in uppercase.
2. A space must be entered between the statement and the action.
3. It must be followed by an action.
4. The action must be followed by a “;” (semi-colon).
5. Only Action Queries can be used with the DO statement. For more information on queries, see SQL Query Editor on page 243. Also refer to the Insert in Formula group – Add Query on page 188 for selection options.

The syntax is as follows:

IF condition THEN
DO action;
ELSEIF elseifcondition THEN
DO action;
ELSE
DO action;
ENDIF

RETURN Statement

This type of statement returns a value.
1. RETURN must be written in uppercase.
2. A space must be entered between the statement and the action.
3. The action must be followed by a “;” (semi-colon).

The syntax is as follows:

IF condition THEN
RETURN value;
ELSEIF elseifcondition THEN
RETURN value;
ELSE
RETURN value;
ENDIF

You can enter any of the following, after the RETURN:

  • Select Query: from the Add Query group drop down list. The query name must be entered between braces, { }; Refer to the Insert in Formula group – Add Query on page 188 for selection options.
  • Formula: from the Formulas drop down list. A formula must be entered between bar delimiters, “| FORMULA |”.
  • String: ‘text’. A string is entered between single quotation marks,” ‘ ‘ ”.
  • Date: #2004#
  • Value: 999
  • Keyword: from the Keywords drop down list. A keyword must be placed between tildes, ” ~ ~”.
  • TRUE: in uppercase
  • FALSE: in uppercase
  • A database field name must be entered, with the table, between square brackets, [TABLE.FIELD]. IN Statement

The following rules apply to the IN Statement:

1. An item list separated with a comma (,) must be placed after the IN operator.
2. The item list must be delimited with quotation marks (“)
3. The item list must contain at least two items.
4. The items in the list must be of the same type; i.e., numeric OR string
5. If the list contains items of different types, the items must be delimited with single quotation marks, noting that the type will be converted to a string.
6. All lists must be terminated with a semicolon in order to be valid.

Logical Expression Comparison Operators

<TABLE>

Logical Operators

<TABLE>

Adding Formulas, Database Fields, Queries, Keywords and Constants
To include a value from a formula, database field, query, keyword or constant, in a logical expression, select the item from the drop-down list. You can include as many of these values as needed, by making multiple selections. The item is added where the cursor is placed in the Logical Expression
Block edit box. For example, you could make a comparison of two values, retrieved through Selection Queries.

The following restriction applies:

All fields, selected in the Fields list, must be associated with the same function.

To create a new formula, query or constant, from the Logical Expression Block Editor, click the drop-down list for the item.
Add Formula: To include a value calculated through a formula, select the formula from the drop-down list. Formulas are displayed between bar delimiters, ex. |FORMULA_NAME|.

IF |IMP_VALUE| > 0 THEN
RETURN |IMP_VALUE|;
ELSE
RETURN 0;
ENDIF

To create a new formula, click “…” to display the Formula Editor. See Formula Editor on page 162 for more information.

NOTE: When the logical expression is run, the functions, associated with the formula must be open.

Add Keyword: Select a keyword from the drop-down list to include it in the logical expression. Keywords are used to retrieve a value currently in memory; such as ~ parcel id ~ to retrieve the parcel id of the current record. Keywords are displayed in lowercase, between tildes, ~ ~.

For example, to include the building sequence for the current building record, in the logical expression, select the ~building sequence~ keyword.

For example,
IF ~parcel id~ > 0 THEN
RETURN ~parcel id~;
ELSE
RETURN 0;
ENDIF

You can also include the keyword, ~textbox value~, in a logical expression, to include a value entered by the user in a text box:

For example,
IF ~textbox value~ > 100000 THEN
RETURN False;
ELSE
RETURN TRUE;
ENDIF

The following table lists and describes available keywords.

<TABLE>

NOTE: To validate data entry in a Logical Expression, you can use the keyword ~text box value~

For example,
IF ~textbox value~ > 100000 THEN
RETURN False;
ELSE
RETURN TRUE;
ENDIF

Tables: To include a database field in a logical expression, you need to select the table first, from the Tables drop-down list.

Add Query: You can include either Action Queries, i.e., queries that perform some action, such as updating records in one or more tables, adding records to a table or deleting records from a table, or Selection queries; i.e., used to retrieve data from one or more fields, in a logical expression.

For example, in the following logical expression:
IF {APP_VALUE} > 0 THEN
RETURN |APP_VALUE|;
ELSE
RETURN 0;
ENDIF

The Appraised Value of the current record is retrieved, through the {APP_VALUE} Selection query, and if the value is positive it is returned by the
logical expression.

The queries need to be defined through the User-Defined Queries Setup form. To include a query, select it from the list. The query name is displayed in the Logical Expression Block edit box between braces, { }. For example, {AG_ VALUE}.

To create a new query, click “…”. This opens the SQL Definition Setup form. See SQL Query Editor on page 243 for more information.

The following conditions apply:

  • Only Select Queries can be used with the IF statement.
  • Only Action Queries can be used with the ACTION statement.

Fields: After selecting the table, select the field from the Fields drop-down list. The value of this field for the current record is included in the logical expression. These selected table and field are displayed in uppercase, between square brackets; for example [AC_ EXEMPTIONS.FROZEN_ID].

IF [PC_PARCEL.P_ID] > 0 THEN
RETURN [PC_PARCEL.P_ID];
ELSE
RETURN 0;
ENDIF

Add Constants: Select a constant from the drop-down list, to include it in the formula or click “…” to open the Constant Value Editor and create a new constant. Constants are displayed between ampersands (& &). See Constant Value Editor on page 155 for more information.

IF &TAX_RATE& > 0 THEN
RETURN &TAX_RATE&;
ELSE
RETURN 0;
ENDIF

Message: Enter a message to be displayed if the validation fails.

Dates, Numeric Values and Strings: You can also include dates, numeric values and strings, as follows:

  • Dates are displayed between crosshatches: IF A = #2004111# THEN
  • Numeric values are displayed: IF A = 999 THEN
  • Strings are displayed between single quotation marks: IF A = ‘text’ THEN

Using a Temporary Field

You can include a temporary field in a logical expression. This field can hold any value, such as one generated from a query, database field or user input.

To include a temporary field, add the following to the beginning of the logical expression:

SET ?TMP1? = <value>, where <value> is the value you are using

To include multiple temporary fields, enter each value separately:

SET ?TMP1? = <value1>
SET ?TMP2? = <value2>
where <value1> and <value2> represent the values you enter

In the following example we see that within our IF/ELSE block, we have the following:
The following logical expression is based on a keyword and database field:

IF (~year id~ – [MA_BUILDINGS.YEAR_BUILT]) <= 10 THEN
RETURN 6;
ELSEIF (~year id~ – [MA_BUILDINGS.YEAR_BUILT]) <= 20 THEN
RETURN 5;
ELSEIF (~year id~ – [MA_BUILDINGS.YEAR_BUILT]) <= 30 THEN
RETURN 4;
ELSE
RETURN 3;
ENDIF

When written as above, the statement line is executed repeatedly. Should the IF statement contain one or more queries system performance could be severely impacted.

The above logical expression can be written using temporary fields, as follows:

SET ?TMP1? = ~year id~
SET ?TMP2? = [MA_BUILDINGS.YEAR_BUILT] IF (TMP1 – TMP2) <= 10 THEN
RETURN 6;
ELSEIF (TMP1 – TMP2) <= 20 THEN
RETURN 5;
ELSEIF (TMP1 – TMP2) <= 30 THEN
RETURN 4;
ELSE
RETURN 3;
ENDIF

Best Practices for Logical Expressions

Logical Expression Structures

For our example we would like to execute a logical expression with the following structure…

IF |FORMULA| > {Query} THEN
RETURN |FORM2|;
ELSEIF |FORMULA| < {Query} THEN
RETURN |FORM2|;
ELSEIF |FORMULA| = {Query} THEN
RETURN = 3;

Best Practices dictates that the above structure be rewritten as follows:

SET ?Formula_Result? = |FORMULA|;
SET ?Query_Result? = {Query};
IF ?Formula_Result? > ?Query_Result? THEN
RETURN |FORM2|;
ELSEIF ?Formula_Result? < ?Query_Result? THEN
RETURN |FORM2|;
ELSEIF ?Formula_Result? = ?Query_Result? THEN
RETURN = 3;

When the logical expression is written using temporary fields as above, the initial results are “cached”, as a result the same query and results are not run repeatedly in each statement line. As a result of this method, system performance is not impacted.

Improve Performance by Improving Design

When a Logical Expression is not written to run efficiently, the design of the expression could potentially impact the performance of the Govern application.

EXAMPLE:
IF ({BA1} = -1) AND ({BA2} = -1) AND ({BA8240} = 0) THEN RETURN
|PBR1|;
ELSEIF ({BA1} = -1)
AND ({BA2} = -1)
AND ({BA8240} > 0)
THEN RETURN |BA_PARK|;
ELSEIF ({BA1} = -1)
AND ({BA2} > -1)
AND ({BA8240} > 0)
THEN RETURN |BA_PRK_OV|;
ELSEIF ({BA1} = -1)
AND ({BA2} > -1)
THEN RETURN |PBR2|;
ELSEIF ({BA2} = -1)
AND ({BA1} > -1)
THEN RETURN |PBR3|;
ELSEIF ({BA2} > -1)
AND ({BA1} > -1)
THEN RETURN |PBR4|;
ENDIF

In the above example, although the logical expression is valid and will run, as a result of the design, the {BA1} and {BA2} queries are run six (6) times, and the {BA8240} query three (3) times. Each time a query is run, system resources are required, this potentially impacts system performance. To prevent this situation from occurring, instead of calling the queries directly, Variables can be declared to hold the result of the queries.

Using Variables when constructing Logical Expression

The above example can be rewritten is as follows:

EXAMPLE:
SET ?V_BA1?={BA1};
SET ?V_BA2?={BA2};
SET ?V_BA8240?={BA8240};
IF (?V_BA1? = -1) AND (?V_BA2? = -1) AND (?V_BA8240? = 0)
THEN RETURN |PBR1|;
ELSEIF (?V_BA1? = -1)
AND (?V_BA2? = -1)
AND (?V_BA8240? > 0)
THEN RETURN |BA_PARK|;
ELSEIF (?V_BA1? = -1)
AND (?V_BA2? > -1)
AND (?V_BA8240? > 0)
THEN RETURN |BA_PRK_OV|;
ELSEIF (?V_BA1? = -1)
AND (?V_BA2? > -1)
THEN RETURN |PBR2|;
ELSEIF (?V_BA2? = -1)
AND (?V_BA1? > -1)
THEN RETURN |PBR3|;
ELSEIF (?V_BA2? > -1)
AND (?V_BA1? > -1)
THEN RETURN |PBR4|;
ENDIF

In the above optimized version of the original example, using the SET statement the results of the three (3) queries were declared as variables called ?V_BA1?, ?V_BA2?, and ?V_BA8240?. The queries would be run once, the results would then be cached in memory and reused. An advantage here is that should the value be changed in the system by another user the result of our code fragment would not be impacted as we are still using the cached result.

NOTE: In release 5.1 of the Logical Expression editor in GNA, when a variable is used multiple times in a query, formula, or data field, the system will display a warning.

Executing Formulas and Logical Expressions

NOTE: When executing formulas and logical expressions that include keywords or database columns, ensure that all database columns have been mapped to an attribute.
Alternatively, you can add a Selection Query to the formula or logical expression, in order to retrieve values from database fields. See Selection Queries.

 

 

103-ed-006

 

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this.
Loading...

GNA – External Command Editor

External Command Editor

Version 6.0 | Version 6.1

Overview

The External Commands Editor is used for opening an external application and passing a parameter from Govern directly to that application. Parameters include Govern attributes, Govern IDs, such as the parcel ID, P_ID, and e-mail addresses. External commands can be linked to the Profile Editor, and added to the Govern Ribbon, or added as a link to a Govern form, through the OFD.

  • Examples include:
    • Opening Google Maps to a specific address from the Govern Ribbon in the Property Control Profile.
    • Opening a Real Estate application to a specific address from the Sales Information form in Govern.
    • Sending an e-mail to a property owner directly from the Tax Billing form in Govern.
    • Opening a saved map in Google Drive to a specific location from the Govern Ribbon in the Appraisal Profile.
  • The syntax for these commands is provided under Examples of Commands . In Govern OpenForms, version 6.1, external commands are added through expressions. In version 6.0, the syntax is different and in version 5.1, both the syntax and the setup are different.

Creating a Command

Read More...

To create a new external command in 6.1:

  1. Launch GNA.
  2. Select Editors > External Commands Editor.
  3. Enter a code in the Code field to uniquely identify the command.
  4. The code must start with a letter.
  5. Enter descriptions in the English and FrenchShort and Long Description fields.
  6. Enter the command in the Command list box.
  7. You can select predefined Govern IDs, Contants, Formulas, Logical Expressions, Queries, Entities, and Attributes from the respective combo boxes in the Insert section of the form.
  8. Click Save.
  9. Follow the instructions for adding the command to the ribbon or to a form. When the command is added to a form or to the Ribbon, it is displayed in the Used In text box.

Examples of Commands

  • The following example provides the syntax for opening Google Maps to a specific location. Enter the following expression in the Expression Selector:
cmGglMaps ‘https://maps.google.com/maps/?q=’+query(‘syMaps‘)

 

NOTE: The query must be predefined in the Select Queries Editor in GNA. The query for this expression is:
SELECT ISNULL (PC_ADDRESS.FORMATED_ADDRESS,’aa’) +’ ‘+ ISNULL
(PC_ADDRESS.CITY,”) +’ ‘+ ISNULL (PC_ADDRESS.ZIP_POSTAL,”), ‘”Map this Location”‘ as Label
FROM PC_ADDRESS INNER JOIN PC_PARCEL ON PC_PARCEL.P_ID=PC_ADDRESS.P_ID WHERE PC_PARCEL.P_ID=Parcel ID

Adding an External Command to the Govern Ribbon

External Commands are added to the Govern Ribbon through the Profile Editor in GNA. To add a command to the Govern Ribbon:

    1. Launch GNA.
    2. Select Editors > Profile Editor.
    3. Select the Profile to which you want to add the command.
    4. Select the Links tab.
    5. Click the Add button in the External Commands list box.
    6. Select the command or commands that you want to add from the Select the External Commands window.
    7. Click Save.
  • The command appears in the Tools menu in the Govern Ribbon for the Profile.
  • Adding an External Command to a User Form
  • External commands are added to a Govern user form through the OpenForms Designer, as a link. To add a command to a Govern form.
    1. Launch the Govern OpenForms Designer (OFD).
    2. Select the Link control from the tree view on the left.
    3. Drag it to the required position on the form. The link is displayed in the selected cell in the OFD Editor.
    4. The Action property is automatically selected and outlined in red. This is a required property.
    5. Configure the properties as described in this section.
    6. Click Save.
NOTE: If the logged-in user does not have the required security permissions for the application, form, or batch process, a message appears and the item does not appear.

Defining Properties for a Link in the OFD

  • Select the link on the OFD Editor and modify the properties in the Properties Explorer. When the Link is selected the word Link appears at the top of the Properties Explorer. Element ID: As with all items, the User Tab Item has an element ID property. This provides reference in the log files. Layout: Adjust the height and width of the label in the Layout property under Properties. Display Type: You can display the link in one of the following formats:
    • Hyperlink
    • Button
  • Action: Select Execute Command from the drop-down list. Link to: Select the command from the drop-down list. Icon: Click the ellipsis button and select the icon, you want to add, from a computer or network directory. The icon is saved to the database. There is no need to retain a copy of it. Is enabled: Click the ellipsis button to open the Expression Selector. Enter an expression to make the link read-only under certain conditions. Is visible: Click the ellipsis button to open the Expression Selector. Enter an expression to hide the link under certain conditions. Expressions evaluate to true or false. You could write False in the Expression Selector to make the link read-only or invisible under all conditions. Alternatively, you could write an expression to do this under certain conditions, such as when another value on the form is equal to a certain amount. Text: The text entered in this field appears on the form. By default, it reads Link. You can modify this with an expression. Click the ellipsis button to open the Expression Selector. To display text, you need to enter it inside single quotation marks; for example, ‘Your Text’. You can add other expression syntax to the text in order to make it more specific. Tooltip: Enter a tooltip, in English, French, or both, to display additional information when the mouse hovers over the link. The command is launched from a link on the form.

Documentation

For complete details on external commands see:

version 6.1

External Commands, version 6.1

version 6.0

External Commands, version 6.0

version 5.1

External Commands, version 5.1

Technical Information for Developers

For Technical Information also refer to govern DEVELOPER’S 101-std-fea-020

| Technical Information for Developers

 

 

103-ED-007-V6-0

 

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this.
Loading...