Skip to main content

Organizing the script code

ON THIS PAGE

RELATED LEARNING

Organizing the script code

You can divide your script into sections to organize the structure. The script is executed in the order of the sections from top to bottom. A script must contain at least one section.

Sections Main, Dictionary and Calendar in the Data load editor.

Sections in the Data load editor.

If you have added data using Add data, you will have a data load script section named Auto-generated section that contains the script code required to load the data.

To learn more about editing data load script, see Edit the data load script.

Working with script sections

There are several ways to organize scripting sections:

  • Click Create new to insert new script sections to organize your code. The new section is inserted after the currently selected section.
  • Click Cancel next to the section tab to delete it. You need to confirm the deletion.

    Note: Deleting a script section cannot be undone.
  • Click on the section name and type to edit the name. Press Enter or click outside the section when you are finished.
  • Put the cursor on the drag bars drag bars and drag the section to rearrange the order.