PHP and scriptcase

Hi all,

I have a few questions regarding custom PHP code.

I’ve written some PHP functions and i’ve figured out how to apply them and use them on forms etc, however how can i make a function available throughtout my applications ?

Also two of my functions are used for a custom encyrption scheme which i use before storing/retreiving certain data in a database. I’ve got that working OK as well except for in the case of using ‘lookups’.

What event is fired when a lookup on a form is appplied ? is it onload or some other.

Thanks in advance for any help.

Cheers

Open a project then go to Tools on top menu bar
Select “Internal Libraries”
A new screen comes up with options “New” & “Upload”
below there is a drop-down box to set the libraries that you can use

There are 4 types of libraries you can set or use
Scriptcase
Public
Project
User
I set mine up as “Public” so any of the projects can use them.

To create a new library click on New and paste your code there, give it a type and save

I believe a lookup on a form would start with the Load Event where it grabs the data from your database.

Also… go to Project->Default Values->Internal Libraries Tab and put a check next to the functions page so that it is Included in any New Application you make.

Thanks for the info, thats sorted the library code out :slight_smile: