Transfer list lexicon update for fusebox
I've just made a quick change to the Transfer ORM list lexicon so it takes the argument 'orderProperty'. This will allow you to order your query.
From fusebox call the lexicon like
Check out my other post for setting transfer up in fusebox.
The updated lexicon code is:
// usage: // <transfer:list
// object="dbObject"
// query="cfQueryVar"
// orderProperty="orderBy" />
if (fb_.verbInfo.executionMode is "start") {
// validate attributes // object - string if (not structKeyExists(fb_.verbInfo.attributes,"object")) {
fb_throw("fusebox.badGrammar.requiredAttributeMissing",
"Required attribute is missing",
"The attribute 'object' is required, for a 'list' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
}
// query - string if (not structKeyExists(fb_.verbInfo.attributes,"query")) {
fb_throw("fusebox.badGrammar.requiredAttributeMissing",
"Required attribute is missing",
"The attribute 'query' is required, for a 'list' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
}
// orderProperty - string. if (NOT structKeyExists(fb_.verbInfo.attributes,"orderProperty")) {
fb_.verbInfo.attributes.orderProperty = '';
}
// generate code: fb_appendLine('<cfset #fb_.verbInfo.attributes.query# = ' &
'myFusebox.getApplication().getApplicationData().transferFactory.getTransfer().list("#fb_.verbInfo.attributes.object#","#fb_.verbInfo.attributes.orderProperty#") />');
fb_appendLine('<cfset myFusebox.trace("Transfer","Listed Records") />');
} else {
}
</cfscript>




