Is there a sample of how to implement the login method checking the password from a database using a DA DataTable ?
Hello,
Yes, there is such sample in \RemObjects Samples\Data Abstract for Delphi\Old\Login Sample .
Hope this helps
Just one doubt: in the line
cmd := Schema.NewDataset(Schema.ConnectionManager.NewConnection(Schema.ConnectionManager.GetDefaultConnectionName), ‘ValidateLogin’, [‘UserId’, ‘Pass’], [aUserID, aPassword]);
calling Schema.ConnectionManager.NewConnection means that at every login request a new connection is opened with the database, or the connection pool is used ?
DA pools connections, NewConnection just grabs one from the pool, if available.
Is the mentioned example still around somewhere? Doesn’t seem to be in my installation at least. Can I find it somewhere else?
/Anders
I’ve attached this sample: Login Sample.zip (42.5 KB)
Note: it may require some corrections because it was created for DA6