CardExchange Solutions Documentation

Producer Help - Net2Exchange

Net2Exchange requires two DLLs: Net2Exchange.dll and Paxton.Net2.OEMClientLibrary.dll. The first, a product of CardExchange® Solutions, is the data-source plug-in that needs to be called from CardExchange® Producer. The second is the Paxton Access Net2 SDK, which forms the interface between Net2 and Net2Exchange. Both DLLs are included in the installer of CardExchange® Producer and are found in the CardExchange® Producer installation folder, which is C:\Program Files (x86)\CardExchange Solutions\CardExchange Producer by default.

If CardExchange runs on a different computer than the one where Net2 is installed, it is necessary to install the Net2 runtime, which is distributed by Paxton Access as part of the Net2 SDK.

Configuration

Net2Exchange is both a data-source plug-in and an external plug-in. The data-source plug-in part manages the reading and writing of user data and the creation of new card records upon printing. The external plug-in part makes it possible to view and manage the user’s card records. Both need to be configured separately.

Creating a new card

  1. Start CardExchange and click Configuration – New card.
  2. Provide a template name and optionally a category.
  3. Click Next to go to the second wizard page.
  4. Select I want help to make my card by using this wizard and click Next.
  5. Specify whether the card is double-sided, set its orientation and click Next.
  6. Select Please connect my new card to my own database.
  7. Click (add a new database…) to open the database-connection wizard.

Creating a database connection

  1. Click Add to add a new connection.
  2. Set the connection’s name to Net2Exchange.
  3. Set the database type to Data-source plug-in.
  4. Type the name or IP address of Net2 server. Use localhost if Net2 is installed locally.
  5. Set the port used by the Net2 server. Normally, you should type 8025 as the port.
  6. Click on the browse button to select a database, navigate to the CardExchange installation folder and select the Net2Exchange.dll.
  7. Enable Login with username and password and supply the correct login information.
  8. Click Next to go the second wizard page.
  9. Enable Read data-items from this database.
  10. Choose Users as view name and UserId as the primary key.
  11. Click Next to go the third wizard page.
  12. Choose Net2Exchange as the database, Surname, FirstName, MiddleName and UserId as record look-up fields.
  13. Click Next to go the fourth wizard page.
  14. Select Allow editing database records and allow both adding, updating and deleting.
  15. Select Primary keys generated by the database.
  16. Click Next to go the fifth wizard page.
  17. Unselect the option Visible for the following database columns: AccessLevel, Department, UserGuid, and UserImage.
  18. Unselect the option Editable for the following database columns: Global, LastAccessTime, LastArea, LastAreaId, and LastUpdated.
  19. Select Drop-down menu with lookup table for the column AccessLevelId with AccessLevels as table name, Key as storage value and Value as display value.
  20. Select Drop-down menu with lookup table for the column DepartmentId with Departments as table name, Key as storage value and Value as display value.
  21. Click Next to go the last wizard page.
  22. Click Add to create a new storage item and call it Photo.
  23. Set the table name to Users, the primary key to UserId and the column name to UserImage.
  24. Click the Photos/Signatures tab and select Store the cardholder’s photo.
  25. Click Add to create a new storage item and call it CardTypeId.
  26. Set the table name to Cards, the primary key to CardNo and the column name to CardType.
  27. Click Add to create a new storage item and call it UserId.
  28. Set the table name to Cards, the primary key to CardNo and the column name to UserId.
  29. Click Advanced options… and select Supply value for primary key and Always insert (uniqueness primary key not guaranteed).
  30. Click OK to close the storage-item properties and Finish to close the database-connection wizard.

Creating a new card (continued)

  1. Click Next to go to the next wizard page.
  2. Choose a background image or color and a logo and click Next.
  3. Select Use a combined name field on my new card with FirstName UserImage (Net2Exchange) as the first name and Surname UserImage (Net2Exchange) as the last name.
  4. Select Use a photo on my new card with UserImage (Net2Exchange) as associated database column.
  5. Click Next.
  6. Choose the database columns you want to show on the card layout and click Next.
  7. Configure a barcode if desired and click Next.
  8. Leave the option After Finish, start the Designer for modifying the layout… selected and click Finish to open the designer.

Mapping the storage items

  1. In the designer, open the Properties window and go to the Manual entries tab.
  2. Click Add manual entry, call it Card-type ID and set its value to 1 (or another value of choice).
  3. Select the Data tab on the left-hand side and Storage items on the bottom of the tab.
  4. Select CardTypeId in the Data tab and select the Content tab in the Properties window.
  5. Map the storage item CardTypeId to the manual entry Card-type ID.
  6. Select UserId in the Data tab and map it to the database column UserId.
  7. Select Storage-item keys on the bottom of the Data tab.
  8. Select Cards in the Data tab.
  9. Choose the desired mapping in the Content tab of the Properties window. The mapping will determine the card numbers created in Net2. It is possible to use a manual entry, or a global counter to generate successive card numbers. It is also possible to use the chip-serial number as card number, in which case the storage-item key of the Cards table needs to be mapped as chip-serial number.
  10. Finish the graphical card design according to your wishes. Them save and close the card template.

Configuring the external plug-in

  1. Back in the main window, click Configuration – Advanced options.
  2. Select Show advanced mappings and click OK.
  3. Click Configuration – Card-definition wizard to open the card-definition wizard.
  4. Select Do you want to use external functions or plug-ins? and click Edit.
  5. Click Add to add a new plug-in definition and call it Cards.
  6. Click on the browse button to select the Net2Exchange.dll file.
  7. Unselect Call when printing and select Call using a button.
  8. Click Finish to close the external-functions wizard.
  9. Click Next to go to the mappings window.
  10. Select Cards.UserId (no mapping) in the External-function input tab.
  11. Select Database column in the type-of-data drop-down menu.
  12. Select the database column UserId (Net2Exchange) and click Finish.

Usage

Back in the main CardExchange window, you should see the Net2 users listed in the name list. If you open database-edit window, you can view and edit the user details, using drop-down menus for the access level and the department.

When you click on the Cards button on the right-hand side, you enter a dialog that lists the card records for the current user, showing the card number, the card type, and the lost-card flag respectively. In this window, you can change the card type, mark a card as lost and delete cards from the database.

As soon as you print a card for a specific user, CardExchange will create a new card record in Net2 for that user, setting the new card number to whatever you have mapped for the storage-item key in the designer.

If the card number needs to be shown on the card, as text or in a barcode, you have to make sure that the corresponding text object or barcode is mapped the same way as the storage-item key.