tsgroman
Posts: 64
|
Posted: 04/30/2008, 12:14 AM |
|
How do you filter a grid by the username of the person logged in?
|
|
|
wkempees
|
Posted: 05/01/2008, 5:34 AM |
|
Normaly one would do this not by the name (as it canchange) but by the
assigned userid.
Assuming your user table has an id, and that id is the one used in the login
process.
If above is true and your grid table has the userid in it's layout, you
would apply a Where to your grids SQL, the where being:
userid = UserID, type Session
I would also set the default value of that Where to -1 causing the grid to
be empty of no UserID available.
Walter
"tsgroman" <tsgroman@forum.codecharge> schreef in bericht
news:848181c660b201@news.codecharge.com...
> How do you filter a grid by the username of the person logged in?
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
tsgroman
Posts: 64
|
Posted: 05/01/2008, 9:31 AM |
|
Thank you. Worked like a charm.
|
|
|
|