The Fields tab of the sObject editor helps you to review the properties of any field in an object and easily to create new fields. Open a necessary object file and navigate to the Fields tab in the editor.
The Fields tab represents all the fields of an object file in a table view. In case, if the object file does not contain any fields, you'll see a message, that there is no data to display.
The fields are present in rows, and the columns display the field's properties:
- API Name,
- Field Label,
To have the ability to edit a field, you need to click on a necessary row. After this action, the Fields tab will be split, and you will get the list of the field's properties in the right part of the window.
Here you will see the field's general properties, such as Label, API Name, and Type. Also, there are the specific properties for the given type of a field, for example, a length, decimal places, and the default value for the fields with 'number' type, and so on. Using the 'details' section, you can also edit the field definition.
NB: You have the ability to edit only the custom fields, not the standard ones.
Make all needed changes in the field's properties using the inputs and drop-down lists. Red vertical lines mark the required properties for this field. All your changes are immediately displayed in the object file in the lower part of the split editor and vice versa.
NB: Currently, if you change the
API namein the field, you won't edit the current field but create a new one. Also, if you delete the field from the editor, these changes won't be displayed in the Fields tab.
NB: All changes in the file are not saved until you use the Save or Save & Deploy options.
To add a new field, just click the Add field button at the top panel of the tab and select the necessary type for the new field from the drop-down list. You'll get a new row for a field with empty inputs on the right.
NB: When adding a new field, it's strongly recommended to add the
__cending to its name.
The Welkin Suite offers you two ways how to save your changes in the object file:
- Save via standard IDE options — saves your changes locally in the object files,
- the Save & Deploy button — saves your changes and deploys the changed file to your organization.
If you left the required fields empty, the deployment process will fail and you will get an error message in the Error List panel.
NB: In cases where the deployment has failed, you'll see an appropriate message in the Error List panel and in the status bar. At the same time, the changes in the object file will be saved. To revert your changes, you need to use the standard Undo option of the editor via the Cmd+Z hotkey.
The Welkin Suite is always ready to lend you a hand if you ever have questions about some functionality of the Fields tab or the process of accomplishing some tasks here. When you need to learn more about this tab or its elements, click on the Help icon in the top right corner of the window. You will get an opened page of The Welkin Suite's Documentation related to this functionality in your default browser.
In this section:
This also may be useful: