Introduction
Here we describe how you can call a type script function from a grid panel header
How-to:
- Open the screen in designer, in which you want to include the TS function
- Click
Open events file
- Go to the gitpod environment and see the relevant file already open
- Add a new function (you can use the shortcut
b1-eventFunction
) to create the functionmyFunction()
- Implement your logic
- Go back to the Build.One App and create a new Action
- Fill
Function Name
Function Code
Module
Images
- Important fields
Action Type
= RUNAction Parameter
= $ #.myFunction(self);- Create also a new menu entry for that action, e.g. in your application menu structure
Panel Menus -> [Your Screen] menu -> [Your function]
- Open your screen in the designer and set the attribute
EventNamespace
to#
- Now add the
[Your Screen] menu
to the attributepanelMenu