Static Resources
A static resource is a file containing code that enables advanced features in FieldFX.
FieldFX uses a number of different static resources, as indicated below.
Name the Language static resource files the same as the ISO language locale value (xx_XX). |
Ensure the resource file is named en_US.js , not en_US with no file extension.
|
FieldFX Static Resources
Name | Usage | Downloads | ||
---|---|---|---|---|
en_US |
Translate FieldFX Mobile and Classic Item Builder user interface text for English language users.
|
|||
es |
Translate FieldFX Mobile and Classic Item Builder user interface text for Spanish language users
|
|||
FX_Mobile_Filters |
Add lookup filters in FieldFX Mobile |
|||
FX_Mobile_Rollups |
Enable roll-up summary fields in FieldFX Mobile |
|||
FX_Mobile_Rules |
Add validation rules in FieldFX Mobile |
Step-by-Step Guides
You can:
Setup the New Static Resource file
The Document Template Editor should be handling any changes to the XML. Any manual changing in an XML editor outside of the Document Template Editor, if not done correctly, could present issues and cause the report template to not work properly. If editing the XML is required, be sure that the individual editing has the skills to properly format the XML correctly. |
-
Log into your org and access Setup.
-
Enter
static
in the Quick Find box. -
Select Static Resources under Custom Code.
-
Click New.
-
Enter a unique name for the new static resource file in the Name field. This field is required.
-
Enter a description in the Description field.
Set up the FXL Data Grid Conditional Cell Highlighting
In the FXL Data Grid, a user can define the cell background within the grid based on a condition. The user can define the color, when the cell is highlighted, and the condition when the background color changes.
Users can’t define multiple conditions for the same cell but can define a condition with multiple criteria and color values for the same cell.
Configure the Static Resource Conditions
The Document Template Editor should be handling any changes to the XML. Any manual changing in an XML editor outside of the Document Template Editor, if not done correctly, could present issues and cause the report template to not work properly. If editing the XML is required, be sure that the individual editing has the skills to properly format the XML correctly. |
-
Using a text editor, enter the XML commands for the specific highlighting you want.
Example 1. Sample formatting - Ticket Items conditional cell highlightingfx_Gridv2_ActionFields.xmlwindow.fx_Gridv2_ActionFields = {} TIBGRID: { (1) version: 2, onetestperfield: "true", actions: [ { setResultFromSource: true, targets: [ { type: "ISEMPTY", action: "bg_color", results: ["yellow", "lightgray"], fields: ["FX5_Contact_c"], }, ], sources: [ { field: "Check_Box_Test__c", test: { type: "TF", }, }, ], }, }, }, };
1 Grid UID You can customize the above code to the specifics of the highlighting you want. The Grid UID may be different depending on the Unique ID field in the FXL Data Grid Configurable Fields. -
Save the file with the name
fx_GridV2_ActionsFields
.
Examples
The following examples show the types of conditional cell highlighting you could use.
You can customize the above code to the specifics of the highlighting you want. The Grid UID may be different depending on the Unique ID field in the FXL Data Grid Configurable Fields. |
Use this code to highlight the Price column in light blue background and a red outline with price between 5 and 7. Values within the range of 5 to 7 have text in purple on a yellow background, outlined in red. Values outside the range of 5 to 7 are in blue text, have a light blue background, and are highlighted in red.
window. fx_GridV2_ActionFields = {
TIBGRID: {
version: 2,
onetestperfield: "true",
actions: [
{
targets: [
{
type: "BETWEEN",
values: [5, 7],
action: "style",
results: [
{
background: "lightblue",
color: "blue",
border: "2px solid red".
},
{
background: "lightyellow",
color: "purple",
border: "2px solid brown",
},
],
fields: ["FX5_Price_c"],
},
],
},
],
},
};
Use this code if the CHECK BOX TEST column is checked, make the cell background lightgray, If unchecked, make the cell background in yellow.
window.fx_GridV2_ActionFields = {
TIBGRID: {
version: 2,
onetestperfield: "true",
actions: [
{
setResultFromSource: true,
targets: [
{
type: "ISEMPTY",
action: "bg_color",
results: ["yellow", "lightgray"] ,
fields: ["FX5_ Contact c"],
},
],
sources: [
{
field: "Check_Box Test__c",
test: {
type: "TF",
},
},
],
},
],
},
};
This is an example of trying to attach multiple test conditions to the same column. An error is produced.
Use this code to show the status of the CHECK BOX TEST and whether its checked or not. If checked
window. fx_GridV2_ActionFields = {
TIBGRID: {
version: 2,
onetestperfield: "true",
actions: [
{
setResultFromSource: false,
targets: [
{
type: "TF",
action: "bg_color",
results: ["yellow", "lightgray"],
fields : ["Check_Box_Test c" ],
},
],
sources: [
{
field: "Check_Box_Test_c",
test: {
type: "TF",
},
},
],
{,
}
setResultFromSource: false,
targets: [
{
type: "TF",
action: "bg_color",
results: ["red", "blue"],
fields : ["Check_Box_Test c" ],
},
],
sources: {
{
field: "Check_Box_Test_c",
test: {
type: "TF",
},
},
],
},
],
};