12.07.2015 Views

Installing the EasyLobby / WinDSX Integration - DSX Access ...

Installing the EasyLobby / WinDSX Integration - DSX Access ...

Installing the EasyLobby / WinDSX Integration - DSX Access ...

SHOW MORE
SHOW LESS
  • No tags were found...

Transform your PDFs into Flipbooks and boost your revenue!

Leverage SEO-optimized Flipbooks, powerful backlinks, and multimedia content to professionally showcase your products and significantly increase your reach.

<strong>Installing</strong> <strong>the</strong> <strong>EasyLobby</strong> / <strong>Win<strong>DSX</strong></strong> <strong>Integration</strong><strong>EasyLobby</strong>, Inc.Company Map Field – If set to “Default”, <strong>the</strong> trigger will <strong>the</strong> name from <strong>the</strong> “CompanyDefault” field (below) as <strong>the</strong> company to assign to <strong>the</strong> card in <strong>Win<strong>DSX</strong></strong>. Set this to“Company” to use <strong>the</strong> company of <strong>the</strong> employee being visited as <strong>the</strong> company. Set this to“Category” to use <strong>the</strong> <strong>EasyLobby</strong> visitor category (from <strong>the</strong> category drop down on <strong>the</strong>visitor form) as <strong>the</strong> company, or “Clearance” to use <strong>the</strong> clearance value from <strong>the</strong>clearance drop down. Set it to “User Defined 1” to use <strong>the</strong> value of <strong>the</strong> user defined 1field as <strong>the</strong> company.Company Default – If <strong>the</strong> “Company Map Field” is set to “Default”, <strong>the</strong> trigger willalways use this value as <strong>the</strong> company assign to <strong>the</strong> card in <strong>Win<strong>DSX</strong></strong>. The initial value isblank.Location Group – This field must be set to <strong>the</strong> number of <strong>the</strong> location group to use in <strong>the</strong><strong>Win<strong>DSX</strong></strong> system. The default value is ‘1’. This value must be an integer.Output Linking Level – This field is optional and can be set to <strong>the</strong> output linking levelassigned when a visitor card is created. The default blank value specifies that no outputlinking level is assigned in <strong>Win<strong>DSX</strong></strong>. If non-blank, this value must be an integer.<strong>DSX</strong> UDF Index – This field must contain <strong>the</strong> User Defined Field # of <strong>the</strong> field where<strong>the</strong> <strong>EasyLobby</strong> visitor id is to be stored in <strong>Win<strong>DSX</strong></strong>. The default value is 7. This valuemust be an integer.<strong>DSX</strong> Record Type – Set this to specify whe<strong>the</strong>r <strong>the</strong> cardholder record will be set to be avisitor or a standard employee record.Output Directory – This field must contain <strong>the</strong> path to <strong>the</strong> database folder of <strong>the</strong><strong>Win<strong>DSX</strong></strong> installation where <strong>the</strong> import files are written (this is typically <strong>the</strong> mainprogram installation folder, C:\<strong>Win<strong>DSX</strong></strong>). If you want to run <strong>the</strong> <strong>EasyLobby</strong> database ona different server than <strong>the</strong> <strong>Win<strong>DSX</strong></strong> import service, <strong>the</strong>n you must share <strong>the</strong>“C:\<strong>Win<strong>DSX</strong></strong>” folder from <strong>the</strong> <strong>Win<strong>DSX</strong></strong> system and, on <strong>the</strong> <strong>EasyLobby</strong> database server,save <strong>the</strong> .txt files to that share instead.Send Photo – Check this box to send <strong>the</strong> visitor photo, if <strong>the</strong>re is one, to <strong>Win<strong>DSX</strong></strong>.Photo Directory – If Send Photo is checked, this field contains <strong>the</strong> path to <strong>the</strong> directorywhere <strong>the</strong> photo files will be written. You may click <strong>the</strong> Browse button to browse to andselect a directory.Utility ButtonsThe selections in this section describe <strong>the</strong> behavior of <strong>the</strong> buttons at <strong>the</strong> bottom of <strong>the</strong>configuration utility.Help – Displays <strong>the</strong> help document in WordPad.10/1/2009 Page 4


<strong>Installing</strong> <strong>the</strong> <strong>EasyLobby</strong> / <strong>Win<strong>DSX</strong></strong> <strong>Integration</strong><strong>EasyLobby</strong>, Inc.Factory Settings – Will reset all <strong>the</strong> settings on <strong>the</strong> current form to <strong>the</strong> factory settings.Note that <strong>the</strong>se settings will not be saved to <strong>the</strong> trigger file unless you click <strong>the</strong> “SaveSettings” button.Save Settings – Will save all <strong>the</strong> current trigger parameter settings and windowscredentials to <strong>the</strong> current script file (as indicated by <strong>the</strong> “<strong>Integration</strong> Trigger Script” fieldat <strong>the</strong> top of <strong>the</strong> form).Remove Trigger – Removes <strong>the</strong> trigger from <strong>the</strong> <strong>EasyLobby</strong> database. Note that thisfunction uses <strong>the</strong> script file called “RemoveTrigger.sql” from <strong>the</strong> config utilityinstallation folder.Install Trigger – Will save <strong>the</strong> current settings and install <strong>the</strong> trigger to <strong>the</strong> <strong>EasyLobby</strong>database as selected in <strong>the</strong> “Target Database” section.Exit – Quit <strong>the</strong> applicationVI) Format of <strong>the</strong> <strong>Integration</strong> Trigger SQL Script FileNote: Normally you will use <strong>the</strong> <strong>EasyLobby</strong> <strong>Win<strong>DSX</strong></strong> Configuration utility to install <strong>the</strong>integration trigger, as described in <strong>the</strong> section above. This section documents <strong>the</strong> formatof <strong>the</strong> trigger script file should you need to edit it directly and install it manually.To manually install <strong>the</strong> integration solution, you edit and run <strong>the</strong> script file called“Trigger<strong>Win<strong>DSX</strong></strong>.sql”, which adds a trigger to your <strong>EasyLobby</strong> 9.0 database. This triggerruns after <strong>the</strong> Check In, Check Out and Delete actions in <strong>EasyLobby</strong> SVM, and isresponsible for moving <strong>the</strong> visitor information to <strong>the</strong> <strong>Win<strong>DSX</strong></strong> system.Before running <strong>the</strong> Trigger<strong>Win<strong>DSX</strong></strong>.sql script you will need to set some specific optionscontrolling <strong>the</strong> behavior of <strong>the</strong> integration. You don’t have to worry about getting <strong>the</strong>configuration exactly right <strong>the</strong> first time, as you can always edit <strong>the</strong> script and load itagain.You may edit <strong>the</strong> Trigger<strong>Win<strong>DSX</strong></strong>.sql script with Notepad or similar text editor. Afteryou open <strong>the</strong> script in Notepad, locate <strong>the</strong> line that reads “[Start Variables Section]” alittle way down in <strong>the</strong> file. You may edit any of <strong>the</strong> variables between <strong>the</strong> [Start VariablesSection] comment and <strong>the</strong> [End Variables Section] comment. The following describes <strong>the</strong>variables and <strong>the</strong>ir behavior:@USE_PROXCARD – Set this to 0 if you wish to use barcodes printed on <strong>the</strong><strong>EasyLobby</strong> badges, or 1 (<strong>the</strong> default) if you will use prox cards to give to some or all ofyour visitors. Note that when using prox cards, visitor records are only transferred to<strong>Win<strong>DSX</strong></strong> when <strong>the</strong> prox card field of <strong>the</strong> visitor form is populated with a numeric value.@ACCESS_LEVEL_MAP_FIELD – The default is a blank string (‘’), in which case<strong>the</strong> trigger will use <strong>the</strong> access level in <strong>the</strong> @ACCESS_LEVEL_DEFAULT variable as<strong>the</strong> access level to assign to <strong>the</strong> cardholder in <strong>Win<strong>DSX</strong></strong>. Set this to 'CATEGORY' to use10/1/2009 Page 5


<strong>Installing</strong> <strong>the</strong> <strong>EasyLobby</strong> / <strong>Win<strong>DSX</strong></strong> <strong>Integration</strong><strong>EasyLobby</strong>, Inc.<strong>the</strong> <strong>EasyLobby</strong> visitor category (from <strong>the</strong> category drop down on <strong>the</strong> visitor form) as <strong>the</strong>access level in <strong>Win<strong>DSX</strong></strong>, or 'CLEARANCE' to use <strong>the</strong> clearance value from <strong>the</strong> clearancedrop down. Set this to 'COMPANY' to use <strong>the</strong> company of <strong>the</strong> employee being visited as<strong>the</strong> access level. Set it to 'USERDEF1' to use <strong>the</strong> value of <strong>the</strong> user defined 1 field as <strong>the</strong>access level.@ACCESS_LEVEL_DEFAULT – Used when @ACCESS_LEVEL_MAP_FIELDvariable is blank (‘’). In this case, <strong>the</strong> trigger will always use this value as <strong>the</strong> access levelto assign to <strong>the</strong> visitor (cardholder) in <strong>Win<strong>DSX</strong></strong>.@COMPANY_MAP_FIELD – The default is ‘COMPANY’, which uses <strong>the</strong> companyof <strong>the</strong> employee being visited. When a blank string (‘’) <strong>the</strong> trigger will use <strong>the</strong> companyin <strong>the</strong> @COMPANY_DEFAULT. Set this to 'CATEGORY' to use <strong>the</strong> <strong>EasyLobby</strong> visitorcategory (from <strong>the</strong> category drop down on <strong>the</strong> visitor form) as <strong>the</strong> company in <strong>Win<strong>DSX</strong></strong>,or 'CLEARANCE' to use <strong>the</strong> clearance value from <strong>the</strong> clearance drop down. Set it to'USERDEF1' to use <strong>the</strong> value of <strong>the</strong> user defined 1 field as <strong>the</strong> company.@COMPANY_DEFAULT – Used when @COMPANY_MAP_FIELD variable is blank(‘’). In this case, <strong>the</strong> trigger will always use this value as <strong>the</strong> company to assign to <strong>the</strong>visitor (cardholder) in <strong>Win<strong>DSX</strong></strong>.@<strong>DSX</strong>_LOCATION_GROUP – This variable must be set to <strong>the</strong> number of <strong>the</strong> locationgroup to use in <strong>the</strong> <strong>Win<strong>DSX</strong></strong> system. The default value is '1’.@<strong>DSX</strong>_OLL – This variable is optional and can be set to <strong>the</strong> output linking levelassigned when a visitor card is created. The default value of ‘’ (empty string) specifiesthat no output linking level is assigned.@<strong>DSX</strong>_UDF – This variable must contain <strong>the</strong> UDF # of <strong>the</strong> field where <strong>the</strong> <strong>EasyLobby</strong>visitor id is stored.@<strong>DSX</strong>_VISITOR – Set this variable to ‘1’ to specify that <strong>the</strong> cardholder record added to<strong>the</strong> <strong>DSX</strong> database is a visitor, o<strong>the</strong>rwise set it to ‘0’.@<strong>DSX</strong>_OUTPUT_DIR – This variable must contain <strong>the</strong> path to <strong>the</strong> database folder of<strong>the</strong> <strong>Win<strong>DSX</strong></strong> installation (this is typically <strong>the</strong> main program installation folder,C:\<strong>Win<strong>DSX</strong></strong>). If <strong>the</strong> <strong>EasyLobby</strong> database is running on <strong>the</strong> same system as <strong>Win<strong>DSX</strong></strong>,<strong>the</strong>n <strong>the</strong> default value of 'C:\<strong>Win<strong>DSX</strong></strong>' would be correct (note that this path must be in 8.3name format).For each check in (or check out) in <strong>EasyLobby</strong> that will result in a cardholder recordbeing created (or deleted), a .txt file will be created in this folder. This file contains <strong>the</strong>information that tells <strong>the</strong> <strong>Win<strong>DSX</strong></strong> import service <strong>the</strong> information about <strong>the</strong> cardholderand card. Once <strong>Win<strong>DSX</strong></strong> has processed to information in <strong>the</strong> import file it will delete it.10/1/2009 Page 6


<strong>Installing</strong> <strong>the</strong> <strong>EasyLobby</strong> / <strong>Win<strong>DSX</strong></strong> <strong>Integration</strong><strong>EasyLobby</strong>, Inc.If you want to run <strong>the</strong> <strong>EasyLobby</strong> database on a different server than <strong>the</strong> <strong>Win<strong>DSX</strong></strong> importservice, <strong>the</strong>n you must share <strong>the</strong> “C:\<strong>Win<strong>DSX</strong></strong>” folder from <strong>the</strong> <strong>Win<strong>DSX</strong></strong> system and, on<strong>the</strong> <strong>EasyLobby</strong> database server, save <strong>the</strong> .txt files to that share instead. In this case youmust determine <strong>the</strong> proper 8.3 format path to <strong>the</strong> share, and set this variable accordingly.@USE_PHOTO – The default value is 0, set this variable to 1 to enable transfer of <strong>the</strong>visitor photograph to <strong>Win<strong>DSX</strong></strong>.If you set @USE_PHOTO to 1, <strong>the</strong>re is some fur<strong>the</strong>r setup required. Transfer of photosrequires <strong>the</strong> SQL Server utility file textcopy.exe, which must be located in <strong>the</strong> SQLServer Binn folder (typically C:\Program Files\Microsoft SQL Server\80\Tools\Binn).This is typically present in full SQL Server installs but not in MSDE installs. If this file isnot present on your system, we have provided it with <strong>the</strong> solution files in <strong>the</strong> folder called<strong>Integration</strong> Files. Copy this file to <strong>the</strong> Binn folder of your SQL Server or MSDEinstallation. The utility textcopy.exe also requires <strong>the</strong> DLL file called ntwdblib.dll. SQLServer typically installs this file into <strong>the</strong> Windows System32 folder. If this file is notpresent on your system, copy it ei<strong>the</strong>r to <strong>the</strong> System32 folder or to <strong>the</strong> Binn folder.@PHOTO_TEMP_DIR – Set to a directory on <strong>the</strong> server to hold <strong>the</strong> temporary imagefiles. The images are placed here before <strong>the</strong> import into <strong>Win<strong>DSX</strong></strong> and <strong>the</strong>n removed when<strong>the</strong> visitor is checked-out or deleted (although <strong>the</strong> images are only needed until after<strong>Win<strong>DSX</strong></strong> has processed <strong>the</strong> cardholder add operation). The path in this variable must bein 8.3 filename format.Providing a proxy accountYou must supply <strong>the</strong> credentials of an account with enough privileges on <strong>the</strong> <strong>Win<strong>DSX</strong></strong>system to be able to write out <strong>the</strong> .txt import files or photos. You set <strong>the</strong>se accountcredentials toward <strong>the</strong> bottom of <strong>the</strong> trigger script. You will see <strong>the</strong> following lines ofcode:EXECUTE xp_sqlagent_proxy_account N'SET', N'', N'', N''GOYou must replace , and with<strong>the</strong> appropriate values for your account. The domain name can be <strong>the</strong> name of <strong>the</strong> localsystem or <strong>the</strong> name of your domain. The account and password are <strong>the</strong> same as those youwould use to log in to <strong>the</strong> system.VII) Manual Loading of <strong>the</strong> <strong>Integration</strong> Database TriggerNote: Normally you will use <strong>the</strong> <strong>EasyLobby</strong> <strong>Win<strong>DSX</strong></strong> Configuration utility to install <strong>the</strong>integration trigger, as described in <strong>the</strong> section V above. This section describes how toinstall <strong>the</strong> trigger manually.10/1/2009 Page 7


<strong>Installing</strong> <strong>the</strong> <strong>EasyLobby</strong> / <strong>Win<strong>DSX</strong></strong> <strong>Integration</strong><strong>EasyLobby</strong>, Inc.After modifying <strong>the</strong> script, you run <strong>the</strong> script to load <strong>the</strong> trigger and associated storedprocedures into <strong>the</strong> <strong>EasyLobby</strong>9 database. Note that if you need to change one of <strong>the</strong>parameters, you may edit <strong>the</strong> script and run it again without any problem.If you are using Microsoft SQL Server for <strong>the</strong> <strong>EasyLobby</strong> database, run <strong>the</strong> MS QueryAnalyzer tool, sign in as “sa”, load <strong>the</strong> “Trigger<strong>Win<strong>DSX</strong></strong>.sql” script and execute it byclicking <strong>the</strong> right-pointing green triangle icon on <strong>the</strong> toolbar or by choosing <strong>the</strong> Query |Execute menu command.If you are using <strong>the</strong> <strong>EasyLobby</strong> MSDE you can use <strong>the</strong> MSDE OSQL utility, typicallyfound in <strong>the</strong> C:\Program Files\Microsoft SQL Server\80\Tools\Binn folder. You must runOSQL from <strong>the</strong> DOS command prompt. Note that with OSQL, you will need to use <strong>the</strong>“sa” account and password (default is “doorman”) assigned when you installed <strong>the</strong><strong>EasyLobby</strong> MSDE. The command line is:> OSQL –U sa –P doorman –S [server]\EASYLOBBY –i [path]Trigger<strong>Win<strong>DSX</strong></strong>.sqlNote that <strong>the</strong> arguments to this command are case sensitive. You must replace <strong>the</strong> valuesfor password and server. You must also supply <strong>the</strong> [path] to <strong>the</strong> trigger file unless it is in<strong>the</strong> Binn directory, in which case you can omit <strong>the</strong> path.VIII) Operation of <strong>the</strong> SolutionWhen a visitor is checked in using <strong>EasyLobby</strong> SVM, <strong>the</strong> trigger in <strong>the</strong> <strong>EasyLobby</strong>9database is executed which generates <strong>the</strong> import .txt file. <strong>Win<strong>DSX</strong></strong> checks for new importfiles every 15 seconds and when if finds <strong>the</strong> new file it creates a new cardholder and cardin <strong>Win<strong>DSX</strong></strong>. The card number will be ei<strong>the</strong>r <strong>the</strong> custom id or <strong>the</strong> prox card number from<strong>the</strong> <strong>EasyLobby</strong> visitor record, depending on <strong>the</strong> configuration of <strong>the</strong> solution.Note that when using prox cards, <strong>the</strong> cardholder record is only created when <strong>the</strong> proxcard field is populated in <strong>the</strong> <strong>EasyLobby</strong> visitor form. <strong>EasyLobby</strong> has support for twoUSB attachable prox card scanners: The RF Ideas pcProx device and <strong>the</strong> Hirsch HIDdevice. These can be used to scan <strong>the</strong> card number directly into <strong>EasyLobby</strong>, and also <strong>the</strong>card can be scanned for check out.When using barcodes, <strong>EasyLobby</strong> offers two options for how <strong>the</strong> barcode number isgenerated. You can set <strong>the</strong>se options in <strong>the</strong> Edit | Program Options, Defaults tab.The default setting, “Auto Increment Custom Id”, will create an id number that increasesby one with each visitor. This number is generated by taking <strong>the</strong> visitor record id andadding <strong>the</strong> site id number plus 100. Thus, if <strong>the</strong> site id is 101, and <strong>the</strong> record id is 1, <strong>the</strong>n<strong>the</strong> custom id number will be 101101. This number will increase by one for each newvisitor.If you would like to confine your custom id numbers to an assigned range, change thissetting to “Generate custom id in range” and set <strong>the</strong> numeric values for <strong>the</strong> range of ids10/1/2009 Page 8


<strong>Installing</strong> <strong>the</strong> <strong>EasyLobby</strong> / <strong>Win<strong>DSX</strong></strong> <strong>Integration</strong><strong>EasyLobby</strong>, Inc.that you would like to assign to visitors. <strong>EasyLobby</strong> will map <strong>the</strong> visitor record id intothis range of numbers, wrapping when it reaches <strong>the</strong> top.When a visitor is checked out in <strong>EasyLobby</strong> SVM, <strong>the</strong> trigger is also executed, whichgenerates a .txt file that, when imported, deletes <strong>the</strong> visitor and badge from <strong>the</strong> <strong>Win<strong>DSX</strong></strong>database.If a visitor record is deleted in <strong>EasyLobby</strong> SVM before <strong>the</strong> visitor has been checked out,this action also causes <strong>the</strong> trigger to remove <strong>the</strong> cardholder and card from <strong>Win<strong>DSX</strong></strong>.IX) Technical SupportFor more information or support on this solution, please contact <strong>EasyLobby</strong>, Inc. atsupport@easylobby.com or at 781-455-8558.10/1/2009 Page 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!