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

 gird with image link's

Print topic Send  topic

Author Message
jccondor

Posts: 1
Posted: 01/26/2005, 8:08 AM

Basicly y have a form wich lets users save along with each record up to 3 files.

Now I have a grid wich displays all the records, and if they uploaded the image a link to view the image.

id, name,lastname,image1,image2,image3 with an image link control. ( bullets )

the grid should display

1 jhon appleseed circle square traigle
2 jhon dow square
3 paul bunion circle

in this case 1 uploaded the 3 images, 2 uploaded only image2 and 3 uploaded only image 1....

Solution up to this point. I have an image folder with 3 sub folders file1, file2, file3. where images are saved. This all works fine.
I've had 2 problems:
1st linking the image link control to the files didn't pick up the folder path. (SOLUTION: modified html and just added it to each image link)
2nd.. (SOLUTIN UP TO NOW: for each image link control on before show added code to check if the image had content (if strlen(x->image1->getvalue())>0) { x->image1->Visible=false;} And very important set the image with "Extended HTML" right click, edit.
Now it's all most working but in the example above record 3 wont show image1. Now I figured out what CodeCharge does. If the row above it dosen't show an image, the row bellow won't eighter. So if record 2 shows image1 then record 3 will show it as expected. In the same line if record 1 dosen't have images, no record will show.. Funny it depends on how records are orderd... as you sort the records, images appear or disapear.. I know I could just chage the "image link" for another control. But Shouldn't this work....

Thanks.
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.