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 -> ASP

 Data Source filtering

Print topic Send  topic

Author Message
Joe
Posted: 06/03/2004, 11:16 AM

How can i use the Session to control the data source filter

Table Name= Information
I assign a Usr_ID to each user that signs up, i know also that when i session is created a UserID is created also,
I want to filter all recoreds based on their User_ID, now i know you can do this through Data Source, Then use expressions with sessions, but i have no luck any hint would be great thanks
peterr


Posts: 5971
Posted: 06/03/2004, 3:05 PM

You can click on the "+" sign in the Data Source to create a parameter:


, then enter "UserID" as the Paramater Source and select "Session" as the Type.
The Field Name would need to be the database field that contains your user ids (Usr_ID) and the Field Type usually should be Integer.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Joe
Posted: 06/04/2004, 9:43 AM

That worked Great! ! !

But now i have another one,I have a table call ProDetail, Which contains a field called SCAC, and i need them to data source filter with field called SCAC, Which is in the Information Table along with all of the other users Information, I have tried to set the Field as SCAC and the Parameter Source to UserID and Type to Session but nothing, i have also tried Field as SCAC and Parameter Source as SCAC but again no luck, am i doing something wrong????? Thanks Again Peter
peterr


Posts: 5971
Posted: 06/04/2004, 5:29 PM

Yes, comparing two different fields shouldn't work. Your best bet may be to create a new SCAC session variable when users login, so that later you can use it when needed.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
peterr


Posts: 5971
Posted: 06/06/2004, 11:52 PM

Joe,
Please contact our support at http://support.codecharge.com or send me a PM as I have a question for you.
Thanks
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Rosario


Posts: 54
Posted: 06/13/2005, 1:05 PM

I , I tried following the example Posted: 06/03/2004, 3:05 PM using bolth the UserID as well as the CCGetUserID and It still dose not sort. The Field name is INPUT_BY , that matches the user id that is logged in. When the user logs in, is still bulls up all records. What could i be missing?:-(
View profile  Send private message
Rosario


Posts: 54
Posted: 06/13/2005, 1:10 PM

Also on the same page i get the session id to display the name of the person logged in in a lable via :

'Custom Code @63-73254650
' -------------------------
TASKSearch.Label1.Value =CCGetUserID()
' -------------------------
'End Custom Code

So i guess the session is ok, just the way i am trying to sort records is hosed.
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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