Skip to main content
OCLC Support

ApplyOnlineCDByName

Find the syntax, use, parameters, return values, and an example for the ApplyOnlineCDByName macro command in Connexion client.
Syntax BOOL = CS.ApplyOnlineCDByName (sName, nOption)
Use to Apply a constant data record by name to the currently displayed bibliographic or authority record.

Same as using the menu command Edit > Constant Data > Online > Apply by Name.
Parameters
  • For sName, enter the name of the constant data record you want to apply.
  • For nOption, enter one of the following numbers to indicate which fields to apply:
    • 0 - Fixed field
    • 1 - Variable fields
    • 2 - Both
Comments You must have a list of constant data records open to use this command.
Return values TRUE if the action is successful, or FALSE if not.
Example Sub Main()

     Dim CS As Object
     Set CS = GetObject(,“Connex.Client”)

     If CS.IsOnline = False Then
          CS.Logon ““, ““, ““
     End If

     CS.Search “WC”, “#1”

     If CS.ApplyOnlineCDByName("MyCD", 2) = True Then
          MsgBox "Constant data successfully applied"
     Else
          MsgBox "Constant data not applied"
     End If
End Sub

What this example does
  • Logs on to Connexion if not already logged on, using the default authorization and password you selected in Tools > Options > Authorizations tab.
  • Searches WorldCat for record number 1.
  • Applies both the fixed field and variable fields of the constant data record named MyCD to WorldCat record number 1. If successful, returns the message: Constant data successfully applied. If not, returns the message: Constant data not applied.