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

 Link to image in grid

Print topic Send  topic

Author Message
Trevor
Posted: 05/17/2005, 11:31 PM

What I want to do is have a grid of products and the last column would
contain a link to a picture of the specific product. On clicking the
link, a popup would appear with the picture.

I presume that I should have a link to a picture table in the products
table. The picture table would have an id and the url to the specific
picture e.g. ../assets/images/db_images/db_Bottle_stopper.jpg. So far so
good ...... I think?

If anyone can tell me if I am correct in the above and then shed some
light on the popup window and how to implement it I would be very grateful!

best regards,
Trevor
Trevor
Posted: 05/18/2005, 9:51 PM

Trevor wrote:
> What I want to do is have a grid of products and the last column would
> contain a link to a picture of the specific product. On clicking the
> link, a popup would appear with the picture.
>
> I presume that I should have a link to a picture table in the products
> table. The picture table would have an id and the url to the specific
> picture e.g. ../assets/images/db_images/db_Bottle_stopper.jpg. So far so
> good ...... I think?
>
> If anyone can tell me if I am correct in the above and then shed some
> light on the popup window and how to implement it I would be very grateful!
>
> best regards,
> Trevor
Nicole

Posts: 586
Posted: 05/19/2005, 5:02 AM

Trevor,
I think you’re on the right way. You need to pass image ID to a second page that contains a grid/record form that is filtered on passed image ID.
Just in case, pop up window sample code could be found in this CCS example
http://examples.codecharge.com/ExamplePack/PopUpList/PopUpList.php

_________________
Regards,
Nicole
View profile  Send private message
Trevor
Posted: 05/20/2005, 8:58 PM

Nicole wrote:
> Trevor,
> I think you’re on the right way. You need to pass image ID to a second page
> that contains a grid/record form that is filtered on passed image ID.
> Just in case, pop up window sample code could be found in this CCS example
> http://examples.codecharge.com/ExamplePack/PopUpList/PopUpList.php
>
> _________________
> Regards,
> Nicole
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
Hi Nicole,
Thank you for this. I will get the popup info from the example you gave
but I am still having a bit of a hassle trying to put the link into the
grid. The column is going to display either the key integer or the 'url'
to the image picked up from the joined table. How do I make this column
a link and even better, how would I simply put 'see picture' into the
column which would then link to the picture when clicked?
Sorry to be such a pain but really need a guiding hand in this.
Regards,
Trevor
Nicole

Posts: 586
Posted: 05/23/2005, 2:30 AM

Trevor,
Just add CCS Link control to a grid form and configure it as described in Pop Up list example. To display "Show Image" text as Link on a live page put this text into Default Value property of a Link

_________________
Regards,
Nicole
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.