CrewPlanningEditor Custom Editor Setup
To make adding or editing crew planning records easier, you can use the CrewPlanningEditor.
The CrewPlanningEditor changes how lookups work on the Crew Planning tab as follows.
How the CrewPlanningEditor Works
You can use the Crew Member Lookup and the Role on Job Lookup.
Crew Member Lookup
Setting | Value | Impact |
---|---|---|
Lookup Filter |
Impact: Limits the list of contacts to show only those who:
|
|
Fields for Available Records |
|
The listed fields display for contacts in search results. |
Fields Analyzed for Keyword Searches |
|
Keyword searches analyze the name, email address, and phone number of contacts. |
Sort Order of Available Records |
|
Contacts sort in alphabetical order by name. |
Role on Job Lookup
Setting | Value | Impact |
---|---|---|
Lookup Filter |
Impact: Only labor items from the job’s price book display available for selection. |
|
Fields for Available Records |
|
The listed fields display for price book items in search results. |
Fields Analyzed for Keyword Searches |
|
Keyword searches analyze the description and item code of price book items. |
Sort Order of Available Records |
|
Price book items sort numerical order by item code. |
Switch to Use in Salesforce Classic
Prerequisite
-
Set up the following:
Configure the CrewPlanningEditor
-
From Setup, enter
object
in the Quick Find box. -
Click Crew Planning.
-
Under Buttons, Links, and Actions, click Edit for these columns:
Action Clone row Edit row New row In the Override With, select
VisualforcePage
Select
CrewPlanningEditor
-
Click Save.
-
-
Continue with Add a RESTEndPoint Remote Site Setting.
Add a RESTEndPoint Remote Site Setting
-
Open the Crew Planning tab.
-
Open a crew planning record.
-
Click Edit.
-
If the CrewPlanningEditor displays, proceed to Grant Permission to the CrewPlanningEditor.
-
If an error message displays, proceed to the next step.
-
-
Copy the domain listed in the error message.
Example 1. Sample domain name to copyUse 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.
-
From Setup, enter
remote
in the Quick Find box, then select Remote Site Settings. -
Click New Remote Site.
-
In Remote Site Name, enter
RESTEndpoint
. -
In Remote Site URL, enter the domain you copied before.
The Remote Site URL field is case-sensitive so make sure the URL you enter uses the correct capitalization.
-
Click Active.
-
Click Save.
-
Continue on with Grant Permission to the CrewPlanningEditor.
Grant Permission to the CrewPlanningEditor
-
From Setup, enter
permission
in the Quick Find box, then select Permission Sets. -
Open a permission set for Visualforce pages.
-
Under Apps, click Visualforce Page Access.
-
Click Edit.
-
Add "FX5.CrewPlanningEditor" to Enabled Visualforce Pages.
-
Click Save.
-
Repeat these steps for other permission sets as needed.
Switch to Use in Salesforce Lightning
Prerequisite
-
Set up the following:
Configure the CrewPlanningEditor
-
From Setup, enter
object
in the Quick Find box. -
Select Object Manager under Objects and Fields.
-
In the Object Manager, enter
Crew
in the Quick Find field. -
Click Crew Planning.
-
Under Buttons, Links, and Actions,
Action Clone row Edit row New row In the Override With, select
VisualforcePage
Select
CrewPlanningEditor (FX5__CrewPlanningEditor)
-
Click Save.
-
-
Continue with Add a RESTEndPoint Remote Site Setting.
Add a RESTEndPoint Remote Site Setting
-
Open the Crew Planning tab.
-
Open a crew planning record.
-
Click Edit.
-
If the CrewPlanningEditor displays, proceed Grant permission to the CrewPlanningEditor.
-
If an error message displays, continue with the next step.
-
-
Copy the domain listed in the error message.
Example 2. Sample domain name to copyUse 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.
-
From Setup, enter
remote
in the Quick Find box, then select Remote Site Settings. -
Click New Remote Site.
-
In Remote Site Name, enter
RESTEndpoint
. -
In Remote Site URL, enter the domain you had copied from the error message.
The Remote Site URL field is case-sensitive so make sure the URL you enter uses the correct capitalization.
-
Click Active.
-
Click Save.
-
Continue with Grant permission to the CrewPlanningEditor.
Grant permission to the CrewPlanningEditor
-
From Setup, enter
permission
in the Quick Find box, then select Permission Sets. -
Open a permission set for Visualforce pages.
-
Under Apps, click Visualforce Page Access.
-
Click Edit.
-
Add "FX5.CrewPlanningEditor" to Enabled Visualforce Pages.
-
Click Save.
-
Repeat these steps for other permission sets as needed.