views/assetcustomer
Asset Customer Fields Component
Manages the selectable options for the Customer and Asset fields on Transactions, Project, Case, and Task forms. When an Asset or Customer is selected, the other field will filter to options that are valid for that value. The first field the user selects will initiate filtering of the other field. To remove filtering of the second field, the user must clear the first field.
Over time, an Asset and Customer relationship may change and an old record may have values that are no longer valid. When these records are edited, the form will not clear the invalid values unless the Asset or Customer is changed.
The options that are available to select are firstly defined by the models/asset.map.customers property and the models/customer.map.assets property. When true, all options are available and no filtering is applied. When false, no options can be selected and filtering will be applied with no options. When any other value, filtering will be applied with the options defined by models/asset.customers and models/customer.assets.
Members
assetFilter
Type |
Description |
---|---|
String |
Name of the filtered Asset select field that is shown when filtering is applied. |
Default
{
"assetFilter": "custpage_nx_asset"
}
assetOption
Type |
Description |
---|---|
Object |
Asset option map. |
Default
{
"assetOption": {
"id": "internalid",
"label": "name"
}
}
customerFilter
Type |
Description |
---|---|
String |
Name of the filtered Customer select field that is shown when filtering is applied. |
Default
{
"customerFilter": "custpage_nx_customer"
}
customerOption
Type |
Description |
---|---|
Object |
Customers option map. |
Default
{
"customerOption": {
"id": "internalid",
"label": "formulatext:nvl(nvl(trim({firstname}||' '||{lastname}),{companyname}), {entityid})"
}
}
hidden
Type |
Description |
---|---|
Boolean |
This view will be active when the form is in create/edit/copy mode and the Asset and Customer fields are visible. |
Default
{
"hidden": false
}