gINT Rules is a facility within the gINT Input and Library Data applications that allows you to write VBA-like code to run checks on your data entry and perform calculations and other data manipulations. These are called database rules. You create them to meet your unique and changing requirements.
The gINT Rules example gra005 has a set of videos posted with it that describes how to use the example gINT Rule to make calculations and populate fields in the database with a gINT Rule (Procedure on Save option), and also details the newly-added Import Add-In option with videos that describe; Introduction, Process, and Setup; Direct Text File Import; Direct Excel File Import; and Mapped Text File Import.
The full documentation on the facility is under the gINT Help:Contents menu anywhere in the program. gINT Rules has its own book in the table of contents. On this page we will post sample code that you can use as starting points for your own code modules.
gINT Rules require gINT Professional or gINT Professional Plus. gINT Logs can run Add-in gINT Rules, but does not have access to the code editor.
Each of these downloads are in the form of a ZIP file. To install, download to any folder and unZIP. Then open the file with the "TXT" extension in any text editor or word processor for further instructions. (See [[Using gINT Downloaded Examples]].) You can also use the unarchiving utility built into gINT version 6 and later. See the Utilities:Extract from ZIP application.
NOTE: Code samples are provided free of charge and as-is. gINT Software makes no claim or warranty as to the accuracy of the samples. It is the responsibility of the user to ensure that the code performs as it should. Comments, suggestions, and error reports are appreciated.
Description | Download | Last Update |
Code samples described in gINT Rules Help topic. | gr001.zip | 05 Jan 2004 |
Extension of some of the gINT built-in lab testing capabilities. | gr002.zip | 01 Sep 2012 |
Build your own moisture content calculations and checking. | gr003.zip | 03 Nov 2003 |
Component description checking. | gr004.zip | 03 Nov 2003 |
Preload data into an empty dataset and then remove unused preloaded data on save. | gr005.zip | 19 Feb 2004 |
Calculates a number of parameters from CPT data. | gr006.zip | 07 Nov 2003 |
Determines the percent passing the 0.425mm sieve from the gradation results and copies that value to the parent record. | gr007.zip | 08 Dec 2003 |
Generates project statistics and keeps track of the last date/time any data was modified in the project and the last date/time any data was modified in every borehole. | gr008.zip | 05 Jan 2004 |
Illustrates the use of gINT Rules to restrict modification of particular tables in a project database by reading the network user name of the currently logged-in user and looking up his department in the organization. Each table allows different categories of personnel to perform edits. If the current user does not belong to one of the categories that has modification rights to the current table, the modifications are not saved. | gr009.zip | 10 Apr 2004 |
Illustrates a method to determine if a field has changed value on the Save event. This is important if there are dependency on the field data in other tables. | gr010.zip | 22 Mar 2007 |
Creates a profile of effective overburden stress at fixed intervals of depth based on a profile of densities with depth and the depth to groundwater. The resultant stress versus depth values are stored in another table for plotting on graph reports or plot vs depth entities. | gr011.zip | 11 May 2005 |
If there are exactly two liquid limit tests, a warning is given if the two extrapolated liquid limits are more than 1% apart. | gr012.zip | 08 Dec 2005 |
This rule populates the sample storage location from the sample table into the test scheduling table. | gr013.zip | 03 Jun 2006 |
Hides or shows applications based on the person using the library. | gr014.zip | 28 May 2007 |
Hides or shows table groups, tables, and fields in a project based on the project type. | gr015.zip | 28 May 2007 |
Populates the GintPointSort field with numbers reflecting the desired sort order for PointIDs during the saving of the POINT table (see GRA007 for Add-In version). | gr016.zip | 20 Mar 2010 |
Illustrates the use of the SoilClass object of gINTRules to perform soil classifications in the Input application based on lab test results. | gr017.zip | 11 Sep 2008 |
Colors cells, rows, and columns in the Input grid based on user-defined criteria. | gr018.zip | 11 Sep 2008 |
Determines the coordinates from station and offset along an alignment and station and offset along an alignment from coordinates. | gr019.zip | 11 Sep 2008 |
For any number of raw data numeric fields required to calculate a value stored in a result field, this rule ensures that all the raw data fields have values or none do. If they all have data, the result value is calculated. If none have data, no calculation is performed. This allows the user to type in a final result only. If some but not all the raw data fields have data, an error message is returned. | gr020.zip | 27 Jul 2011 |
Add-In | gra001.zip | 12 Apr 2012 |
Add-In | gra002.zip | 19 Dec 2007 |
Add-In | gra003.zip | 02 Apr 2005 |
Add-In | gra004.zip | 11 Sep 2005 |
Add-In | gra005.zip | 30 Apr 2012 |
Add-In | gra006.zip | 05 Feb 2007 |
Add-In | gra007.zip | 30 Jan 2008 |
Add-In | gra008.zip | 18 Mar 2009 |
Add-In | gra009.zip | 12 Apr 2012 |
Add-In | gra010.zip | 15 Jul 2011 |
Add-In | gra011.zip | 12 Apr 2012 NEW! |
Add-In | gra012.zip | 12 Jun 2012 NEW! |