CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 multiple fields in one box!

Print topic Send  topic

Author Message
montymoose


Posts: 85
Posted: 12/17/2004, 2:34 AM

Hello,

There is probably an easy answer to this, but if there is I can't find it.

I have a dropdown menu on which people choose people out of an adress book - I want the dropdown menu to display a user's first name and last name, but I can only select the firstname field on the Text Column property....

I thought perhaps FirstName+LastName would work but it doesn't I've looked for an answer and can't find one - any help woudl be most welcome

Cheers

Moose : :-/
View profile  Send private message
fsibaja


Posts: 10
Posted: 12/17/2004, 6:36 AM

Well, I don't know which database are you using. I'm using ORACLE.

In the listbox's DataSourceType property choose "Database Expression", and in the datasource type (FirstName||' '||LastName). (In Oracle the (||) is the concatenation operator, so just replace it with your database engine operator).

If you had built in database functions you could also use them here, for example the usefull "Decode" function.

Regards...
_________________

Fernando Sibaja
View profile  Send private message
peterr


Posts: 5971
Posted: 12/17/2004, 4:42 PM

Please refer to:
http://forums.codecharge.com/posts.php?post_id=11971
http://forums.codecharge.com/posts.php?post_id=34530
http://forums.codecharge.com/posts.php?post_id=15499
http://forums.codecharge.com/posts.php?post_id=20115
http://forums.codecharge.com/posts.php?post_id=23491
http://forums.codecharge.com/posts.php?post_id=43609
http://forums.codecharge.com/posts.php?post_id=44114
http://forums.codecharge.com/posts.php?post_id=44390
http://forums.codecharge.com/posts.php?post_id=44857
http://forums.codecharge.com/posts.php?post_id=49936
http://forums.codecharge.com/posts.php?post_id=50447

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

MS Access to Web

Convert MS Access to Web.
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.