FSM Asset Project and Task Button Configuration
This topic is intended for administrators and developers who configure New Project and New Task buttons on asset forms.
The views/asset/project and views/asset/task configurations add New Project and New Task buttons to existing assets in view or edit mode. Each button opens an entry form in the same window and supplies the Asset link. Save the entry form to create the project or task.
Both web address templates use the Asset's internal ID (id) and record type (record). Preserve the parent-field parameters to retain the Asset link, and use the entry web address resolved in the current account. Don't copy an address resolved for another account.
For shared view requirements, see FSM NetSuite View Configuration. For editing and activation instructions, see Updating and Validating FSM Configuration.
This topic includes the following sections:
New Project Button
The views/asset/project configuration adds New Project to recmachcustentity_nx_asset, the related Projects sublist.
The following table lists the button properties, accepted values, standard defaults, and effects.
|
Property |
Accepted Value |
Standard Default |
Effect |
|---|---|---|---|
|
|
Boolean value |
|
Prevents the button from appearing when |
|
|
Page-button ID string |
|
Identifies the button. |
|
|
Text or translation identifier |
Translated New Project label |
Sets the button text. |
|
|
Web address template string |
Account-resolved Project entry web address plus |
Opens the entry form with the parent Asset context. |
Complete Standard Object with Dynamic Values
The following JavaScript object shows the complete standard defaults, including the expression that resolves the Project entry web address. Use it as a reference, rather than pasting it as custom JSON.
{
"views/asset/project": {
hidden: false,
name: "custpage_nx_project",
label: "custcollection_fsm.asset_newproject_button_label",
parent: "recmachcustentity_nx_asset",
url: nlapiResolveURL("record", "job") + "&pf=CUSTENTITY_NX_ASSET&pi=${ id }&pr=${ record }",
}
}
The parent property records the standard sublist placement and isn't an additional supported override documented by this topic.
New Task Button
The views/asset/task configuration adds New Task to recmachcustevent_nx_task_asset, the related Tasks sublist. The button opens the CRM task entry form.
The following table lists the button properties, accepted values, standard defaults, and effects.
|
Property |
Accepted Value |
Standard Default |
Effect |
|---|---|---|---|
|
|
Boolean value |
|
Prevents the button from appearing when |
|
|
Page-button ID string |
|
Identifies the button. |
|
|
Text or translation identifier |
Translated New Task label |
Sets the button text. |
|
|
Web address template string |
Account-resolved Task entry web address plus |
Opens the entry form with the parent Asset context. |
Complete Standard Object with Dynamic Values
The following JavaScript object shows the complete standard defaults, including the expression that resolves the CRM Task entry web address. Use it as a reference, rather than pasting it as custom JSON.
{
"views/asset/task": {
hidden: false,
name: "custpage_nx_task",
label: "custcollection_fsm.asset_newtask_button_label",
parent: "recmachcustevent_nx_task_asset",
url: nlapiResolveURL("record", "task") + "&pf=CUSTEVENT_NX_TASK_ASSET&pi=${ id }&pr=${ record }",
}
}
The parent property records the standard sublist placement and isn't an additional supported override documented by this topic.