The Explorer_Add_GoTo_Item procedure defined in the SmartList dictionary adds a new Go To item to a SmartList object.
Explorer_Add_GoTo_Item, Object_Dict_ID, Object_Type, GoTo_Prompt, GoTo_Dict_ID, GoTo_Item, GoTo_Default, Error
• Object_Dict_ID – An integer specifying the dictionary that defines the SmartList object to which a Go To item is being added. For SmartList objects defined in the core application, use the constant DYNAMICS.
• Object_Type – An integer indicating the SmartList object in the specified dictionary to which the Go To item is being added. For SmartList objects defined in the core application, use one of the constants described in SmartList objects.
• GoTo_Prompt – A string that specifies the prompt to display in the Go To button drop list. The string can be up to 50 characters long.
• GoTo_Dict_ID – An integer specifying the dictionary that contains the code to process the Go To item.
• GoTo_Item – An integer that uniquely identifies the Go To item. Often, the resource ID of the form used to process the Go To item will be used.
• GoTo_Default – A boolean that specifies whether the Go To item will be the default Go To action for the specified SmartList. There should be only one default item for each SmartList object type.
• Error – A returned integer containing the database error that was returned by SmartList when the Go To item was added. The following table lists the typical values returned:
Constant |
Value |
Error type |
---|---|---|
OKAY |
0 |
No Error |
DUPLICATE |
17 |
Duplicate Record |
When a new Go To item is added to a SmartList object, the information about the item is written to the ASIEXP60 table. If incorrect parameter values were used when you wrote the Go To item, you will have to manually remove the record from this table. If you leave the existing record and try to rewrite the Go To information with parameter changes, you will receive a dupliate record error.