Scripting functions let you configure and automate custom actions in planning. You can run these actions during initial load, when data changes, or when a user selects a button or toggle.
Use scripting functions while configuring action parameters to define the actions you want to execute in response to the events.
Some scripting functions operate at the ROOT level, while others operate at the planning sheet level. The function descriptions below summarize the purpose of each function.
The following table lists the scripting functions available in planning in Fabric.
| Function | Description |
|---|---|
| HIDE_VISUAL | Hides a visual or visual group in an intelligence sheet. |
| OPEN_LINK | Opens a specified URL from a planning sheet. |
| OPEN_SHEET | Opens a specified sheet in a planning sheet. |
| REFRESH_REPORT | Refreshes a report in a planning sheet. |
| REFRESH_VISUAL | Refreshes a specific visual in an intelligence sheet. |
| SETBOTTOMN | Displays the bottom N records based on a selected category and ranking criterion. |
| SETLAYOUT | Applies a layout to a planning sheet, including Hierarchy, Table, Tree, default, measures-on-rows, and measures-on-columns layouts. |
| SETNUMBERFORMATTING | Switches the number formatting applied to values in a planning sheet between Native, Uniform, Measure Level, and Auto modes. |
| SETSCALING | Scales measure values in a planning sheet to a specified unit, such as thousands or millions. |
| SETTOPBOTTOMN | Displays the top and bottom items in a category based on a specified count or percentage. |
| SETTOPN | Displays the top N records based on a selected category and ranking criterion. |
| SETVISIBILITY | Shows or hides rows, columns, and measures in a planning sheet. |
| SHOW_MESSAGE | Displays a custom message to users as a toast notification. |
| SHOW_VISUAL | Shows a visual or visual group in an intelligence sheet. |
| SHOWCLOSEDFORECAST | Shows or hides forecast values for closed periods in a planning sheet. |
| SHOWMEASURES | Shows or hides all measures in a planning sheet. |
You can use scripting functions in parameter actions to control planning sheet behavior and manage visuals in intelligence sheets. For example, configure a toggle parameter to show or hide measures, display a visual, or change the layout when a user changes the parameter state.
Each function has its own syntax, parameters, and configuration requirements. This overview summarizes the available functions.
