CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 auto select userid from drop down menu

Print topic Send  topic

Author Message
grivers

Posts: 28
Posted: 07/03/2006, 7:59 AM

I need to show the user id in a drop down menu in a record form. I know how to do this in non codecharge studio using the session variable UserID. No success replicating this in Codecharge Studio yet.
View profile  Send private message
peterr


Posts: 5971
Posted: 07/03/2006, 1:16 PM

Maybe I didn't understand your question but the "UserID" session variable contains only one value, therefore the dropdown would also display only 1 value and would not be needed. Why show dropdown with only 1 value?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
DonB
Posted: 07/03/2006, 4:00 PM

You would have to connect the Listbox Data Source to whatever table contains
the userid values, so that these populate the listbox.

--
DonB

http://www.gotodon.com/ccbth
grivers

Posts: 28
Posted: 07/04/2006, 1:40 AM

I didn't explain very well did I.

I have a table with a list of users and their user IDs. The drop down list contains the names of all the users. What I want to happen is that if User 1 for example logs in and then goes to add a record that in the drop down list of users their name is selected automatically with the option to change to another user.
View profile  Send private message
peterr


Posts: 5971
Posted: 07/05/2006, 12:49 AM

You can use the Action "Retrieve Value for Control". Or CCGetUserID() may also work in the "Default Value" property.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
grivers

Posts: 28
Posted: 07/05/2006, 1:06 AM

Thanks that works very well.
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.