DragonRAD Forum
June 19, 2013, 06:41:06 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Filter Records after logon  (Read 550 times)
skater007
Member
**
Posts: 80


View Profile
« on: April 26, 2012, 07:37:09 AM »

I'm soooo close.  How can I save my logon data so it can be used in a get new query when the main app is launched?

Thanks

Andy

P.S.  Yes I'm back
Logged
Rob Nicol
Seregon
****
Posts: 82


View Profile
« Reply #1 on: April 26, 2012, 11:25:59 AM »

There are a few options. If you have many login parameters that are fetched from the database during login, then it's best to use the "logged On Data Row" concept. An example is in the LoginScreen example.

If you simply want to save the username and password. You can use the client.username and client.password variables.

To use either of the above in your "Get New" query, you can reference them as:
1) Logged On Data Row values are always accessible using the tablename and field name in the query string:
:tableName.fieldName:

2) Username and password variables stored in client.username and client.password are available with :USER: and :PASS:
Logged
skater007
Member
**
Posts: 80


View Profile
« Reply #2 on: April 26, 2012, 12:26:40 PM »

That was far to simple.

 Thank you
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!