I have the following modules, when I run mod1.cfm, it throws runtime
exception caller[attributes.rtnVar] doesn't exist.

it works in ACF,  but this doesn't seem to be happening for me in
OpenBD. Can someone confirm this for me?

Thanks.

Allen
=============
mod1.cfm :

<CFSCRIPT>
        foo = StructNew();
        foo.bar = StructNew();
        foo.bar.id = 1;
        foo.bar.title = 'title1';
        foo.bar.desc = 'desc1';
</CFSCRIPT>

<CFMODULE TEMPLATE="mod2.cfm" rtnVar="foo.bar">
<cfdump var="#foo#">
=====================
mod2.cfm :

<cfscript>
        targetStruct = caller[attributes.rtnVar];
        targetStruct.name = 'name1';
        targetStruct.desc = 'desc2';
</cfscript>


-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to