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

    • 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: ...
    • 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 ...
    • 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 ...
    • Using friendly URL

      The friendly URL was included from Scriptcase 7, in order to make the URL, of the applications generated by Scriptcase, cleaner and easier to associate them with applications. For example, using friendly URLs the link to a Scriptcase application ...