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.
|
 |
 |
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 |
 |
 |
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.
|
 |
 |
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 |
 |
 |
grivers
Posts: 28
|
| Posted: 07/05/2006, 1:06 AM |
|
Thanks that works very well.
|
 |
 |