When creating online forms for salesforce with the Table element you can create a simple table, that only allows to read data from SF, work with in a flat mode (with no hierarchy) and connect to only one SF object, FormTitan still provides the capability to create a more powerful table which allows you to:
1- Read from SF objects as well as write to SF objects.
2- work with many SF object at once.
3- work with hierarchy - data that has parent-child relationships. Create as many levels as you want in the table.
A table is considered advanced once you start adding to the "simple" table - adding levels, adding SF objects, adding "writing" to SF objects.
Creating an advanced table is done in 3 phases:
First Phase: Creating the table, it's levels and columns
Second Phase: Setting up the Salesforce integration
Third Phase: Setting filler permissions to View, Edit, Add, Delete, Export data
1- | Enter a new / your form in the form builder |
2- |
Drag a table element from “Elements” panel > Salesforce > Table |
3- |
|
4 |
Once selected, the table’s properties will open in the “Properties” panel (on the right side). |
5- | Change the default column values from Col1, Col2, Col3 to the SF object fields you would like to display in the table. For example: if you wish to display information from the “Account” SF object you could set the following columns: Account Name, Account Phone, Account Website. * Please notice that this is the configuration for the first level of the table - displaying the parent object data. |
6- |
You can, of course, add more columns, or remove columns according to your requirements. |
7- |
You can add a filter row to the table, just below the headers, to help the user search for specific data - by turning on the "Show filter" checkbox. |
8- |
|
9- |
The 'Rows per page' property allows you to define how many rows will the table display in each page. |
10- |
|
11- |
make the style changes in the relevant categories. For example: Choose “Table” in the “Apply style to” dropdown, and specify a pale blue color in the background. |
12- |
|
13- |
Set the fields of the child SF object. "Properties" panel > "Element" > "Settings" option > "Basic" category > change column names. For example: if you wish to display the Contacts of each account you could set the following columns: Contact last name, Contact first name, Birth date. |
14- |
Start by going to the Salesforce integration. Go to the “Properties” panel > “Form” tab > “Settings” > open the “Salesforce Integration” category * Notice that there are two sections here: the top one is “Push to Salesforce”, in which you configure the “writing” operations (creating, updating, upserting, deleting data in SF objects). and the bottom section is “Get from Salesforce”, in which you configure the “Reading” from Salesforce objects. Choose the “"Get from Salesforce” section and press on the “Map Fields” button. |
|
|
16- |
|
17- |
Turn on the “execute on form load” checkbox - this will “pull” the data from SF and populate the table once the form is loading. |
18- | There is no need to set a condition in this case, however, we will choose to display “All” matches found. As well as limit the number of accounts we show to 200. |
19- |
|
20- |
|
21- |
|
22- | Select the "Contact" object from the drop down. You will now need to add a condition in order to set the parent-child relationship like so: Choose to display “All” matches found. As well as limit the number of accounts we show to 200. |
23- |
|
24- |
|
25- |
|
26- |
|
27- |
You can restrict the number of rows in the table by mapping the "MaxRows" property of the table in the GET operation. If you map that then the user can only add rows as long as the total rows in the table are less than the MaxRows set to. |
28- |
|
29- |
|
30- |
If you have a hidden field in your form, you will be able to store the relevant record ID in it - the record id of the viewed record, the edited record or the added record (depending on which window you are doing this from). |
31- |
|