Retrieve primary key mode

Caution: You can enable primary key mode only after you have upgraded to Service Manager 9.32 applications or later. Otherwise, the following procedures may have unexpected results. If you are running Service Manager 9.34p4 or later (for 9.3x) or 9.40 or later (for 9.4x), the primary key feature is enabled by default.

You can run a script to verify whether Service Manager has the primary key feature enabled.

Application developers

Application developers can retrieve primary key mode information by using the sysinfo.get("PKMode") RAD function.  To do this, use the following example:

  1. Log in to Service Manager as an administrator.

  2. Navigate to Script Library.

  3. Create a new script named test.

  4. Copy the following code into the text box.

    var retValue;
    retValue = system.functions.sysinfo_get ("PKMode" );
    print ( "Current value of PKMode is " + retValue );
    
  5. Run the script.

If the primary key feature is enabled, the following message appears in the Messages pane of the SM client:

Current value of PKMode is true

Client Developers

Client developers can verify whether the primary key feature is enabled; To do this, use the following example:

  1. Log in to Service Manager as an administrator.

  2. Navigate System Navigator > System Definition > Tables.

  3. Double-click any table, and then click the Fields and Keys tab.

  4. Click any key in the Keys list.

  5. Click the Type drop-down list in the General section.

If the primary key feature is enabled, you should see Primary Key as an option in the Type drop-down list.

Note The legacy listener does not work when the primary key feature is enabled.