When/when not to script.

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Joe Blake
Ebase User
Posts: 44
Joined: Sun Sep 15, 2013 6:26 pm

When/when not to script.

#1

Postby Joe Blake » Sun Sep 22, 2013 6:24 pm

I know this may seem to be a silly question, but how is someone/person new to ebase and javascripting supposed to know when they need a script instead of just using ebase?

In the tutorials, there is an explanation of what is being done with the script. For example, in the BUILDING A FORM WITH DATABASE CONNECTIVITY there is a script SHOW_COURSE_ NAME. And the tutorial does say, "because we have initially set the COURSE_NAME field on page COURSE to be display only, we need to make this field enterabe once a selection has ben made from the course_providers list.

So, is this an example of a situation which will always required a script?

Is there a complete/partial list of situation which will always require a script?
0 x
New Potential User.

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Sep 23, 2013 8:40 am

Most of the things that you design can be changed dynamically at runtime - this is particularly true of controls which have properties like display only and hidden, but also many many more. So in the designer you are setting up the initial state for everything: sometimes this is all you need e.g. you're building a data collection form, but other times you might need everything to be dynamic e.g. you're creating a complex application.
0 x

Joe Blake
Ebase User
Posts: 44
Joined: Sun Sep 15, 2013 6:26 pm

When To Script

#3

Postby Joe Blake » Mon Sep 23, 2013 5:30 pm

When using a script to change a field state, when does the field's state return to the original value?

Is it when the script is exited? When the form is exited?
0 x
New Potential User.

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Tue Sep 24, 2013 8:20 am

The form, as designed, never changes at runtime. So the question doesn't really apply. Instead, all dynamic changes e.g. setting field values, loading tables, hiding fields etc, are stored in local memory for that user/session. This design is intended to minimize memory use.
0 x


Who is online

Users browsing this forum: No registered users and 19 guests