Hi all,

I need to "include" the same page but with different arguments and subsequently different results multiple times in a web page. Originally I tried this:

SOME HTML
<%
session{"f_bibIncludeValue"}:="vanschaik" ` Value to Find
session{"f_bibIncludeValueElement"}:="genbibl"
session{"f_bibIncludeValueComp"}:="equal"
Include("/database/bibliography_IncludeLoader.a4d")
%>
SOME MORE HTML
<%
session{"f_bibIncludeValue"}:="whitfield" ` Value to Find
session{"f_bibIncludeValueElement"}:="genbibl"
session{"f_bibIncludeValueComp"}:="equal"
Include("/database/bibliography_IncludeLoader.a4d")
%>

However this won't work because the session variables get over written via each call....

Therefore I thought about passing the arguments in an url so I tried this:

<%
$query := build query string(""; \\
               "value"; "whitfield_susan"; \\
               "element"; "genbibl"; \\
               "comparator"; "genbibl")

$query := '/database/bibliography_IncludeLoader.a4d$query'

include($query)
%>

Again this doesn't work because unfortunately the include command is not built to pass url arguments - I get an I/O error.

Has anyone any suggestions? Sure there is an obvious way to achieve this but I have brain freeze today!

Thanks, Michael.

A4D Latest version, Mac OS X 10.4.10, 4D 2004.5
_______________________________________________
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