Custom Editors Setup
Introduction
An Edit page displays when you edit a record in FieldFX Back Office
To make editing records easier, you can replace regular Edit pages with Custom Editors.
Prerequisites
To set up the Custom Editors feature, you need the following permissions:
-
Minimum permissions for the FieldFX modules you are using
-
System permissions:
-
Customize Application
-
Manage Profiles and Permission Sets
-
View Setup and Configuration
-
How Custom Editors Works
With Custom Editors as Visualforce pages, you can:
-
Limit the records that display available in lookups
-
Define the fields that display in lookups
-
Define the fields analyzed for keyword searches in lookups
There are five Custom Editors included in the FieldFX Base Package:
Name | Object | Description |
---|---|---|
Crew Planning |
Changes how lookups work when you add/edit a crew planning record. |
|
Equipment Planning |
Changes how lookups work when you add/edit an equipment planning record. |
|
Job |
Changes how lookups work when you add or edit a job. |
|
Rule Action |
Changes how lookups work when you add or edit a rule action. |
|
Rule |
Changes how lookups work when you add or edit a rule. |
You can also define your own Custom Editors for any FieldFX object.
Set Up the Custom Editors Feature
-
Complete these sections:
Add an SFDCToolingAPI Remote Site Setting
-
From Setup, enter
remote
in the Quick Find box, then select Remote Site Settings. -
Click New Remote Site.
-
In Remote Site Name, enter
SFDCToolingAPI
. -
In Remote Site URL, enter the domain in which your org runs.
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.
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 Permissions.
Grant Permissions
-
From Setup, enter
permission
in the Quick Find box, then select Permission Sets. -
Open a permission set.
-
Under Apps, click Object Settings.
-
Click CustomFieldInfo.
-
Click Edit.
-
Under Object Permissions, select Read.
-
Under Field Permissions, select Read for every field.
-
Click Save.
-
At the top of the page, click the arrow next to CustomFieldInfo and select CustomObjectInfo.
-
Click Edit.
-
Under Object Permissions, select Read.
-
Under Field Permissions, select Read for every field.
-
Click Save.
-
Repeat these steps for other permission sets as needed.
-
Continue with Run Scripts.
Run Scripts
-
Open a new tab in your browser.
-
Select Utilities | Apex Execute.
-
Enter the following script:
System.debug(FX5.FXWorkerLauncher.DoWork('FX5.CustomObjectInfoHandler', null));
-
Click Execute.
-
Delete the script entered in step 5.d and replace it with the following script:
System.debug(FX5.FXWorkerLauncher.DoWork('FX5.CustomFieldInfoHandler', null));
-
Click Execute.
-
Continue with Complete Setup of the Other Custom Editors.