CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 [RESOLVED] Filter by User Logged In

Print topic Send  topic

Author Message
tsgroman


Posts: 64
Posted: 04/30/2008, 12:14 AM

How do you filter a grid by the username of the person logged in?
View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.