Logo

    Home

    Documentation

    Use Cases

    Training

    Applications

    Release Notes

    How-To: Call Typescript function from grid panel header menu

    How-To: Call Typescript function from grid panel header menu

    Introduction

    Here we describe how you can call a type script function from a grid panel header

    How-to:

    1. Open the screen in designer, in which you want to include the TS function
    2. Click Open events file
    3. Go to the gitpod environment and see the relevant file already open
    4. Add a new function (you can use the shortcut b1-eventFunction) to create the function myFunction()
      1. Implement your logic
    5. Go back to the Build.One App and create a new Action
      1. Fill Function Name Function Code Module Images
      2. Important fields
        1. Action Type = RUN
        2. Action Parameter = $ #.myFunction(self);
    6. Create also a new menu entry for that action, e.g. in your application menu structure Panel Menus -> [Your Screen] menu -> [Your function]
    7. Open your screen in the designer and set the attribute EventNamespace to #
    8. Now add the [Your Screen] menu to the attribute panelMenu
    Logo