Previous Topic

Next Topic

InputContact - Scripted Form Method

method InputContact(ControlName: String, CodeType: String, CodeValue: String, Prompt: String[, Filter: String, FilterButtonVisible: Boolean, AllowInactive: Boolean])

Define a lookup control on a scripted form that allows input of a Contact.

InputContact method syntax has these named arguments:

Parameter

Description

Control Name

Required. Name of the control. Must be a valid MaxBasic identifier.

Code Type

Required. The contact table name. Use "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. Prompt text to display to left of the control.

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.

InputContact has the following method:

Method

Description

SetSubset

Use the SetSubset method to filter the list of contacts shown, such as to show the contacts for a particular Customer or Creditor. For example:

   eContact.SetSubset(eCustomer.Value)

InputContact has the following property:

Property

Description

IndexName

Use the IndexName property to index the contacts shown in the list. Valid values are the IndexName values for the table specified in the Code Type parameter (ARCONTCT or APCONTCT).

For example:

   eContact.IndexName = "CodeLastFirst"

To see other Methods and Properties for the InputContact object, use the MaxBasic DocumentObject function. For example:

  DocumentObject(eContact)

For an example of a using an InputContact object on a scripted form to prompt for a customer, then set the InputContact to match the Customer selected, see InputContact Scripted Form Example.

See also MaxBasic InputContact function.

In This Section

InputContact Scripted Form Example

See Also

ScriptedForm Object

Book Contents

Book Index