I’m upgrading our Taffy install to 3.1, and I was curious if it was
possible to create a script version of this function
<cfreturn variables.AnythingToXML.toXml(variables.data) />
to something like
function getAsXml() { … }
So far no luck. Any suggestions? Thanks!
I suppose I should ask,
If you already figured out the script equiv, were you having other issues
in regards?On Thursday, March 10, 2016 at 2:36:22 PM UTC-5, Tony Junkes wrote:
The conversion would be:
function getAsXML() output=“false” taffy:mime=“application/xml” taffy:
default=“false” {
return variables.AnythingToXML.toXml(variables.data);
}
The conversion would be:
function getAsXML() output=“false” taffy:mime=“application/xml” taffy:
default=“false” {
return variables.AnythingToXML.toXml(variables.data);
}
Ah, thanks. I was using the same format as the component parameter for the
taffy properties, namely
component extends=“taffy.core.resource” taffy_uri=“/registrants” { … }
so I used the underscores in the function definition. Thanks for the
correction.On Thursday, March 10, 2016 at 2:36:22 PM UTC-5, Tony Junkes wrote:
The conversion would be:
function getAsXML() output=“false” taffy:mime=“application/xml” taffy:
default=“false” {
return variables.AnythingToXML.toXml(variables.data);
}