cfwindow with scaffolds, data not populating

0 views
Skip to first unread message

Chuck Savage

unread,
Dec 19, 2009, 7:09:27 PM12/19/09
to model-glue
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)

Chuck Savage

unread,
Dec 20, 2009, 3:30:40 PM12/20/09
to model-glue
Ok, a caveat to it,

it shows up in IE but not Firefox. Its strange cause I use another
cfwindow for the login, and that works fine in both...

Chuck Savage

unread,
Dec 20, 2009, 9:29:50 PM12/20/09
to model-glue
using Firebug, the table that has the elements is grayed out.  Its real strange, I haven't a clue.  Works fine with IE.
--
Chuck Savage
http://SeaRisen.com

Ezra Parker

unread,
Dec 20, 2009, 11:08:53 PM12/20/09
to model...@googlegroups.com
Hi Chuck,

It looks like the edit scaffold contains some invalid (X)HTML, and it
seems that IE is being a bit more forgiving in its rendering. I noted
a few problems, but it looks like the real deal-breaker is the fact
that the form and table are not properly nested -- if you move the
<cfform> tag above the <table> tag so that the form wraps the table
then the form should display.

Would you mind raising a bug for this so we can be sure to get it fixed?

--
Ezra Parker

> --
> 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 model...@googlegroups.com
> To unsubscribe from this group, send email to
> model-glue+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en

Chuck Savage

unread,
Dec 20, 2009, 11:29:15 PM12/20/09
to model...@googlegroups.com
Ah, yep - that's what fixed it.  Thanks Ezra, I'll post a bug report now.
Reply all
Reply to author
Forward
0 new messages