Sean, I tried your XSL tweak and in fact it worked. The generated
PersonRecord.load() method looks like this:

<cfset variables.UserRecord.load('PersonID,') />

As you can see there is a comma in there. When I tweaked the XSL to put the
comma outside the quote, CF balked (understandably) because there is a
missing 2nd argument. 

Anyways, this in fact works and down the line when Reactor calls
"get/setPersonID,()" it must strip out the comma, because it does work.
Interesting side-note. Like you said, who knows what this breaks, so its a
temporary fix and I will see what else it affects.

/cody

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean
Corfield
Sent: Tuesday, February 21, 2006 5:03 PM
To: [email protected]
Subject: Re: [Spam] RE: [Reactor For CF] [Spam] Mapping question

Argh! that should be line 227 not 127!

On 2/21/06, Sean Corfield <[EMAIL PROTECTED]> wrote:
> If the answer is YES, then record.project.xsl needs to change to 
> generate the fieldlist in the load() call for any relationships that 
> are defined. Changing line 127 from this:
>
> &lt;cfset variables.<xsl:value-of select="@alias"/>Record.load() /&gt;
>
> to this:
>
> &lt;cfset variables.<xsl:value-of
> select="@alias"/>Record.load('<xsl:for-each
> select="relate"><xsl:value-of select="@to" />,</xsl:for-each>') /&gt;
>
> has the desired behavior in this case but I've no idea what it would 
> break in other cases. (and, yes, it's a fugly hack but I don't know 
> enough XSL (yet) to come up with a more elegant solution)

 

-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/





 

-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/


Reply via email to