Creating and Using a library in Scriptcase

Creating and Using a library in Scriptcase

We'll take a step-by-step look at how to create and make use of a library in Scriptcase.

1. To create an library go to: Tools > Internal Libraries


2. In this first window you should select what level you want to create/upload your library.

 



3. You can upload a file with your script or create a new one.

Click in New.


4. Type the name for the new library, an description and put your code.

 

In this example we will check if some field is empty.




5. Now you have to enable the library to be used in your app.

Do it in: FORM-->PROGRAMMING-->LIBRARIES


6. In the event ONVALIDATE of the form we will call the function create in our library.

 

7. Run the application and see the output of the function.


    • Related Articles

    • Creating Your Credentials for the Google Sheets API

      Creating your credentials 1 - Log in with your Google account in the reserved area where you can configure Google APIs, from this URL: https://console.cloud.google.com/apis/library 2 - If you already have projects created, just click on the selected ...
    • Creating Custom Buttons

      The Scriptcase allows the user customize buttons created or to be created. Therefore, making the experience of creating themes even more exciting. Giving also the option to customize the original themes of Scriptcase. Follow the tutorial below and ...
    • PHPSpreadSheet library with Scriptcase

      1- We download the external library PHPSpreadSheet without composer https://php-download.com/downloads/phpoffice/phpspreadsheet/1.8.2.0/phpoffice_phpspreadsheet_1.8.2.0_require.zip 2- Then we proceed to load the external library in the scriptcase: ...
    • Using Languages in Scriptcase

      In Scriptcase you have the option to standardize the language information quickly and uncomplicated. Using the feature you can change LANGUAGES entire textual structure of the project, since this native messages Scriptcase own name to fields and ...
    • Creating new themes for Scriptcase

      In this article, we will show how to create and edit new themes for your applications. Scriptcase afford a complete tool for creating themes, can change the layout of buttons, all the CSS application, and the application's menu bar menu. With a ...