I'm trying to figure out what the best way is to add an image to an EXT grid
column. Here is what my setup code currently looks like:
$map := new collection
$map{"ProdNum"} := ->[Table]ID
$map{"Descrption"} := ->[Table]Description
$map{"CustProdNum"} := ->[Table2]CustProdNum
$map{"Thumbnail"} := ???
$map{"a4d.json.callback"} := "query([Table2];[Table2]ID = [Table]ID)"
$json := a4d.json.new
$jason->addSelection(->[Table];"count";"data";$map)
$result:= "success"
I need to pass a path name for the Thumbnail column, but I'm not sure how to go
about this? In my EXT script I have a renderer function that takes the path and
returns an IMG tag. The Thumbnail path is based off a session value and the
[Table]ID number, so for example the path would look something like the
following:
"graphics/orders/session_value/ID.jpg"
Christian Cypert
[email protected]
"A common mistake that people make when trying to design something completely
foolproof is to underestimate the ingenuity of complete fools. " - Douglas Adams
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/