Call User Class Methods
In this procedure, you will edit the ProjectFrame frame script to call the methods in the ProjectObject user class.
You must have the ProjectFrame user frame opened from the previous procedure.
To reference the user class in the frame script
1. Click Tools, Script on the Frame Editor's floating menu bar.
The Script Editor opens.
2. Replace the SQL for selectbutton and updatebutton with the following code:
on click selectbutton=
{
project.LoadProject();
field(project).updfield();
}
on click updatebutton=
{
project.SaveProject();
}
3. Save the script and close the Script Editor.
4. Click Tools, Compile to compile the script.
Note: If compilation errors are displayed, double-check your code to ensure that you have entered it correctly, and then try again.
Leave the frame open. You can now run the application.