Products

Price/Order

Support

Partners

Testimonials

Test Results

About us

Contact
 Login with
Bottom
 
Total posts: 2
 Author Login with
Kevin Morris

16.07.2008 00:33:13
Registered user
Environment:  RTC SDK, D7, XP Pro
Application:  3T C/S,  Server: Windows .Exe, DB: Firebird 2.0.3
RTC Experience level: Lowest level beginner

Working my way through the examples, I'm looking at DBDemo 5.  In the login function, there are 2 parameters being assigned to the Data.newFunction: "Who" and "Action".  I'm going to get the user to supply a login "ROLE" so that I can pass that along to the database, which can use ROLE based security.

I've experimented with the LogOn function in the DBDemo 5, I just added another line  (Line 137 in DBDemoFunc.pas of the DBDemo 5 client source code) as follows:

   asString['Role'] := 'VIEWER';

However when I run the client and connect it to the server, the LogonFuncExecute function finds only an empty string when I add the line:

  var: role: String;


  role := Param.AsString;

(role at this point = '')

What am I doing wrong?

Thanks in advance for any help.
Danijel Tkalcec [RTC]

16.07.2008 20:26:49
Registered user
I don't have the example source code in my head and I'm about 1000 km away from my Office PC with that example code, but if you have assigned a value to asString['Role'] on one end (client), then you will find it in asString['Role'] on the other end (server). For more information on using RTC stuctures for working with remote functions, please check this FAQ topic:
http://www.realthinclient.com/forum/?cmd=viewtopic&topic_id=24&section_id=1

Best Regards,
Danijel Tkalcec