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

 setting default dir for pictures

Print topic Send  topic

Author Message
Justman
Posted: 12/16/2004, 4:05 AM

Hi ,

I am wondering if anyone could tell me how to set the default directory for picture columns. Just a bit confused if it has to be setup in the design properties or before_show event.

Cheers,
Justman
DonB
Posted: 12/16/2004, 4:34 AM

You can change the control source type from "database column" to "database
expression". Then you will be able to enter a concatenation, of whatever
path you need and the column name. Whatever you type in there goes straight
into the SQL for the query.

--
DonB

http://www.gotodon.com/ccbth
Justman
Posted: 12/16/2004, 4:42 AM

Good DonB. Do you have any sample for me to follow please?

Justman

Quote DonB:
You can change the control source type from "database column" to "database
expression". Then you will be able to enter a concatenation, of whatever
path you need and the column name. Whatever you type in there goes straight
into the SQL for the query.

--
DonB

http://www.gotodon.com/ccbth[/quote]
peterr


Posts: 5971
Posted: 12/16/2004, 12:06 PM

Justman,

I suspect that Don meant to reply to a different post.
You can use both methods to specify an image path, either in design properties or via events. It should be simpler to do this in design properties, for example by changing the "src" property from "{picture}" to "images/{picture}".
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Justman
Posted: 12/17/2004, 10:28 PM

Thanks Peterr.

I have got it working. I actually put the code in before_insert event so that the login name of the user will be concatenated with the path of the image directory to make a complete path for the user picture.

Cheers,
Justice


Quote peterr:
Justman,

I suspect that Don meant to reply to a different post.
You can use both methods to specify an image path, either in design properties or via events. It should be simpler to do this in design properties, for example by changing the "src" property from "{picture}" to "images/{picture}".

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.