EquipmentPlanningEditor Custom Editor Setup

Use the EquipmentPlanningEditor to make adding/editing equipment planning records easier.

The EquipmentPlanningEditor changes how lookups work on the Equipment Planning tab.

How to Use the EquipmentPlanningEditor

You can either use an Equipment Lookup or a Price Book Item Lookup.

Equipment Lookup

Setting Value Impact

Lookup Filter

{!FXNamespace}Out_of_Service__c=false AND ({!FXNamespace}Office__c=null OR {!FXNamespace}Office__c='{!FXUserInfo.Contact.Office__c}')

Impact: Only equipment that doesn’t have Out of Service selected and is linked to the job’s Office displays available for selection.

Fields for Available Records

Id, Name, Serial Number, Unit Number, Office, In Service Date

The listed fields display for equipment in search results.

Fields Analyzed for Keyword Searches

Name, Serial Number, Unit Number

Keyword searches analyze the name, serial number, and unit number of equipment.

Sort Order of Available Records

Name

Equipment sorts in alphabetical order by name.

Price Book Item Lookup

Setting Value Impact

Lookup Filter

{!FXNamespace}Ticket_Item_Record_Type__c='Equipment' AND {!FXNamespace}Price_Book__c='@@{!FXNamespace}Job__c.{!FXNamespace}Price_Book__c@@'

Impact: Only equipment items from the job’s price book display available for selection.

Fields for Available Records

Id, Name, Catalog Item Code, Catalog Description

The listed fields display for price book items in search results.

Fields Analyzed for Keyword Searches

Catalog Description, Catalog Item Code

Keyword searches analyze the description and item code of price book items.

Sort Order of Available Records

Catalog Item Code

Price book items sort in numerical order by item code.

Switch to Use the EquipmentPlanningEditor

Configure the EquipmentPlanningEditor

  1. From Setup, enter object in the Quick Find box, then select Objects.

  2. Click Equipment Planning.

  3. Under Buttons, Links, and Actions,

    Features CrewPlanning Clone Edit Selection

    Even though this image is for the CrewPlanningEditor, the Edit option is located in the same location.

    Action Clone row Edit row New row

    In the Override With, select

    VisualforcePage

    Select

    EquipmentPlanningEditor

    1. Click Save.

  4. Continue on with Add a RESTEndPoint Remote Site Setting.

Add a RESTEndPoint Remote Site Setting

  1. Open the Equipment Planning tab.

  2. Open an equipment planning record.

  3. Click Edit.

    1. If the EquipmentPlanningEditor displays, proceed to step Grant Permission to the EquipmentPlanningEditor.

    2. If an error message displays, continue with the next step.

  4. Copy the domain listed in the error message.

    Example 1. Sample domain name to copy

    Use your customized my domain URL that is specific to your org instead of your instance specific URL. You can find your my domain here.

    Don’t use instanced URLs when logging in to Salesforce with code or as a user. When your org is moved to another Salesforce instance, code using the instanced URL breaks. If you find instanced URLs in your code, replace them with your My Domain login URL or the default Salesforce login URL. See Log In to Salesforce with Code for more information.

  5. From Setup, enter remote in the Quick Find box, then select Remote Site Settings,

  6. Click New Remote Site

    1. In Remote Site Name, enter RESTEndpoint.

    2. In Remote Site URL, enter the listed domain.

      The Remote Site URL field is case-sensitive so make sure the URL you enter uses the correct capitalization.

  7. Click Active.

  8. Click Save.

  9. Continue with [Grant Permission to the EquipmentPlanningEditor].

Grant permission to the EquipmentPlanningEditor

  1. From Setup, enter permission in the Quick Find box, then select Permission Sets.

  2. Open a permission set for Visualforce pages.

  3. Under Apps, click Visualforce Page Access.

  4. Click Edit.

  5. Add FX5.EquipmentPlanningEditor to Enabled Visualforce Pages.

  6. Click Save.

  7. Repeat these steps for other permission sets as needed.

Setup Other Custom Editors (if needed)