Page 1 of 1

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

Posted: Mon Sep 10, 2018 11:43 am
by Jay
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;
---------------------