4D V 2004.7
A4D 4.5r1
Mac OSX 10.5.8
the image.a4d file and the order.a4d files are in the same level.

I am scratching my head since I had this working last week and then all of a sudden it did not and I am not sure how I messed it up.

A4D code in the page(order.a4d):

 td><%
$puzzint:=Substring([Order_Log]Puzzle_Num;1;4)
QUERY([PuzzleImages];[PuzzleImages]PuzzleInt=$puzzint)
$piRIS:=Records in selection([PuzzleImages])
If ($piRIS#0)
        

$qry := build query string(""; "img_field"; "[PuzzleImages]web_image"; \\
"qry_field"; "PuzzleInt"; \\
"qry_value"; $puzzint; \\
"size"; 120)




%>
  <img src="image.a4d<%=$qry%>" alt="image" /><% end if%></td>


When I dump the variables, $qry:
"?img_field=%5BPuzzleImages %5Dweb_image;qry_field=PuzzleInt;qry_value=8209;size=120"

View Source : <img src="image.a4d?img_field=%5BPuzzleImages %5Dweb_image;qry_field=PuzzleInt;qry_value=8209;size=120" alt="image" />

I also did a View source of the A4D Demo and got this:
<img src="/controllers/image.a4d?img_field=%5Bimages %5Dimage;qry_field=id;qry_value=103;format=png;size=-0.5" alt="Image not available" />

The two source lines seem similar.

Any hints as to what the problem is would be appreciated.

Mike Goldsmith

PS The image does exist in the table in that field.

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to