Check out some options within Scriptcase that will work as facilitators that developers can use before and while they are creating projects.
We already know that Scriptcase is an excellent tool that promotes faster development of websites and systems. What most don’t know is that beyond doing this, it will make simple options available, which makes all the difference to us developers, and that’s what I’m going to show you guys on today’s post.
Let’s take a look at some facilitators that can be used before and while creating a project.
1 – Default Values – With this option we will be able to standardize the creation of applications on our project, which results in productivity increasing. An example on how to use this option: click on the “General Data“ tab and set the number of paging records.
By doing so, whenever you create an application with paging, it will automatically load the paging defaults applied in “Default Values“.
Explore the other tabs to define default settings for your projects before starting the development.
2- Data Dictionary – An important tool used to internationalize a project. When you use this feature it’s possible to create a data repository,and to associate it to one or more tables.
Check the example below:
Define the label for the tables and click “Next” , then “Add”.
When you do this, all tables will be added to the Data Dictionary and you will be able to start creating your own definitions, as we can see below:
In the picture above, we can see that the fields were given different labels and sizes. By doing this, it’s not necessary to change the field’s label each time you use that table. Whenever you use the “categories” table, the fields are given the name defined in the Data Library. So you won’t waste any time adjusting the name of each field in the table.
It’s possible to define some more information by clicking the Button “ x “, check it below:
Now we can see that more definitions have appeared for the selected field (categoryname), we can still define if the field is mandatory, define a minimum and maximum number of characters, add a mask and a help message so the user understands what should be Inserted in that field. Then just click the “back” button and if you’re done making changes click on “Update”.
Okay, now you already have a data dictionary and you can create applications without worrying about the fields.
3 – Internal Library – Tool that allows the creation of php routines or upload files that can be reused in various project applications or other projects, depending on the level of access in which they are saved. There are 3 levels of access: user, project and public.
User – Only the user will have access to the script created.
Project – All users linked to that project will have access to that script.
Public – All Scriptcase users have access to script.
Select the access level of the library you want. To add a new one just click on the “New” button after entering a name for the library and if you want to, add a brief description. Then just insert your PHP routine, you can also insert other languages into the internal library, for example: CSS, HTML, JS…
Now every time you call this function “changeColorButtonInsertForm ()” in the form, the include button will be stylized.
4 – External Library – This feature allows you to import complete libraries and create files of any extension (.JS, .CSS, .PHP …) that can be used in your projects facilitating reuse of code. To take advantage of this functionality, we must use the macro, sc_url_library () to import libraries into applications.
Select the level of inclusion, either Project or Public, and enter the name of the new library. After the inclusion, you will see in the list of libraries the new library created, to edit just click on the right side of the name in the “Edit” option. You will have a few options:
New directory: You will create a folder, it is to organize the files.
New file: You can create a new file, it being javascrit, css, php.
Upload: Here you can import an existing file to use inside the projects, such as importing the bootstrap files so you do not need to be stuck with the server’s link.
Once you have included the files you want, just click close, then click “Use library” and then “Save project libraries”. Ready now just make the library call through the macro, see the example:
5 °. Insert code: This option is great because it allows you to get codes almost ready for use, as well as showing you which macros can be used within the application and event in use. It is positioned within each application event, in a sidebar on the right side.
In the example below, I clicked the option “Difference between two dates” and the tool gave me the code, just need to adapt now, see below:
It works for the macros like this:
By default it is enabled, but if you require to disable it, simply access this path (Settings> My Scriptcase) and disable the option: Show INSERT CODE to events.
6 °. Auto-complete: Another excellent feature available in Scriptcase, many people do not know this. Generally when we are creating an extensive code it is kind of tiring to keep repeating the name of the fields, or even looking for macros, right? By pressing the Ctrl + Space key combination on the keyboard, you can see a list with all field names, also some macros and Variables that can be used in the event. Excellent hint for those who do not like to be using mouse and clicking here and there. See how that goes:
You can test it yourself, just scroll the list with the mouse or the UP and DOWN keys on the keyboard, after choosing the desired item press ENTER and you no longer need to enter field name or Macros.
Well guys, i shared with you the main options that I use inside the Scriptcase to enhance and speed up my development. I believe that now you will also be able to adapt these tips to future projects.
And if you have not yet purchased Scriptcase, click here and take the 20-day trial, I guarantee you will not regret it.
For more videos, live presentations, downloads and more, check our website: http://www.scriptcase.net