Open topic with navigation

Tools - Libraries

This features allows you to import complete libraries and create files from any extension(.JS, .CSS, .PHP...).
These libraries can be used within your Scriptcase projects, facilitating code reuse.

To use this new feature, you must understand two new macro operations, specifically created for this feature:
sc_url_library() and sc_include_library()

Creating a new library

1 - Access the menu Tools > Libraries


2 - Click on Create a new library.


3 - In this step, we must inform the library name and select the level to create it.

     Public - Available for all projects within Scriptcase.
     Project - Available only for the project in which it was created.


Libraries List

     After the creation, the libraries will be listed as below.
     The Libraries management interface allows us to select which one will be part of the project, you can also create a new library or delete existing ones.

     Save the project libraries - Save the libraries selected to be used within the project.
     Create a new library - Creates a new library
     Edit - Allows the creation of upload files within the library.
     Rename - Rename the library.
     Delete - Deletes the library.


Creating files

1 - Click edit, to open the library.


2 - You can create several extensions using this library, you can also create an architecture of folders in order to better organize your files.


3 - To create a file or folder, simply enter a name.
     Note: It is not required to inform an extension for files.


Files Upload

      To access a library, it is also possible to upload any extension files (.html, .zip ...)
     In this way, it is possible to upload complete libraries, that can be used within Scriptcase projects.

1 - Click Upload.


2 - File upload screen.
     Note - To upload the compressed files, first you must uncompress it inside the current folder.


3 - This is how we will see the files inside the library.
     The files are displayed with its extensions.


Project Libraries


After the whole process for libraries and its files creation, you should inform which libraries will be used in the project.

For this we must check the library name and save the project libraries.

So they will be available for use within the projects, with the specific macros help: sc_url_library() and sc_include_library()

1 - Click to use or remove a library in the project. Then click on "Save the project libraries".