Maybe someone has encountered this before.
If I click a link to a record normally, it fills just fine.
But if I click a link that calls,
ColdFusion.Window.create('window', title, url, windowConfig);
It populates all the template code, but none of the database fields
fill in.
Is there something basic I'm missing? The id shows up just fine in
the link, because I've used it for the
title below...
Some code:
The link:
<cfset query = userRecord.getphoneIterator().getQuery()>
<cfif IsQuery(query)>
<cfloop query="query">
<cfset event.SetValue('id', id)>
<cfoutput>
<a href="javascript:DoWindow('Phone Editor',
'#event.linkTo(xe.phone,'id')#')">#phone#</a><br />
<!---<a href="#event.linkTo(xe.phone,'id')#">#phone#</a><br />---
>
</cfoutput>
</cfloop>
<cfelse>
<cfdump var="#query#" />
</cfif>
The javascript:
function DoWindow(title, url) {
try {
ColdFusion.Window.destroy('window',true);
} catch(e) { }
ColdFusion.Window.create('window', title, url, windowConfig);
ColdFusion.Window.onHide('window', WindowCleanup);
}
PS using Reactor if it matters (and you couldn't tell)
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en