Is there any way to use jademethod when first initialize the form?

Forums for specific tips, techniques and example code
Jay
Posts: 25
Joined: Mon Jul 23, 2018 10:15 am

Is there any way to use jademethod when first initialize the form?

Postby Jay » Mon Sep 10, 2018 11:43 am

When the app was initialized I want to upload file to the dictionary so users account can be checked with the file.
Is there any way to use jadescript? Is there any good example of getandvalidate user with the database?
-------------------------------------------------------------------------
getAndValidateUser(usercode: String output; password: String output): Boolean;

vars
form:LoginForm;
jadeScript:JadeScript;
user:User;
begin


if not app.applicationType=Application.ApplicationType_GUI then
return true;
endif;

create form transient;
form.showModal();
jadeScript.createUserFromFileAutomatically;



if form.txtLoginID.text.toLower()="secret" then
return true;
else
app.msgBox("Incorrect password or ID", "logon Error",MsgBox_OK_Only);
return false;
endif;

end;
---------------------

Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 9 guests