Retrieve primary key mode

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 SMA-SM 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 SMA-SM 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.