InputContact(CodeType: String, CodeValue: String, Prompt: String[, Title: String, DefaultValue: Number, Filter: String, FilterButtonVisible: Boolean, AllowInactive: Boolean]): String
Displays a prompt in a dialog box, User can enter or select a valid Contact Code, and returns the Contact Code.
Note, if User clicks OK or presses Enter InputContact function returns the Contact Code. If User clicks Cancel or presses Esc, function returns Null.
InputContact function syntax has these named arguments:
Parameter |
Description |
Code Type |
Required. Can be "ARCONTCT" for AR Contacts or "APCONTCT" for AP Contacts. |
Code Value |
Required. Can be blank for all contacts, or set to a Customer or Creditor code to limit to contacts for a particular Customer or Creditor, based on the Code Type. |
Prompt |
Required. String expression displayed as the message in the dialog box. |
Title |
Optional. String expression displayed in the title bar of the dialog box. If you omit title, the application name is placed in the title bar. |
Default Value |
Optional. Number with the default Contact ID. If you omit Default Value, the control will display empty. |
Filter |
Optional. String containing a filter value to apply to contacts available. |
Filter Button Visible |
Optional, defaults to False. Determines whether to display the Filter button. |
Allow Inactive |
Optional, defaults to False. Determines if Inactive Contacts are available. |
See also Scripted Form InputContact method.