Sweet!
...
Guess everyone else has already gone home for the weekend. :-)
Nice to see that revision number go up. Real nice.
--
I've got a great ambition to die of exhaustion rather than boredom.
Thomas Carlyle
... Posts = reactor.getByFilter(
Erm.. I think this may have introduced a bug
When I try to load a record, I get this error:
Invalid CFML construct found on line 198 at column 38. |
|
|
ColdFusion was looking at the following text: contains The CFML compiler was processing:
|
|
|
|
|
|
The error occurred in C:\sites\
xxxxxxxxxx\reactor\base\abstractGateway.cfc:
line 198 |
|
196 : 197 : <!--- Do the contains ---> 198 : <cfloop collection="#contains#" item="cont">199 : <cfset Where.isLike(TableName,cont, contains[cont])>200 : </cfloop> |
|
This is on Coldfusion 8. My guess is that 'contains' is a reserved word in adobe CF, but not in Railo. Commenting out the loop fixes things, but obviously I lose the new feature.
I think I've found another CF bug, and a small enhancement.
Line 176 of abstractGateway.cfc was:
var TableName = this.getObjectMetadata().getName();
I had to change this to:
var TableName = getObjectMetadata().getAlias();
First, the 'this' keyword caused problems in cf. I think it referred to the sub-class (userGateway in my case) scope, as I got a message that it couldn't find getObjectmetadata() in UserGateway.cfc.
Secondly, I changed getName() to getAlias() so it works for aliased table names too.
-----Original Message-----
From:
reacto...@googlegroups.com [mailto:reacto...@googlegroups.com] On Behalf Of Mark Drew
Sent: 10 July 2009 16:07
To: reacto...@googlegroups.com
Cc: reacto...@googlegroups.com
Subject: [reactor-users]
Gateway.getByFilter - new function... OMG!
Dear Users
****************************************************
This email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority.
CONFIDENTIALITY
This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.
For more information about Halliwells LLP visit www.Halliwells.com.
****************************************************
This email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word “partner” to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority.
CONFIDENTIALITY
This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.
For more information about Halliwells LLP visit
****************************************************
This email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority.
CONFIDENTIALITY
This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.
For more information about Halliwells LLP visit
. . . The order by close you can add various fields with either DESC and
ASC on it to order it . . .
<set name="orderedby.FIR_NAVN" value="ASC" />
<set name="orderedby.PST_STED" value="ASC" />
<invoke object="Application.VfiGateway"
methodcall="getByFilter(orderby=orderedby)" returnvariable="qry" />
generates the following SQL under ....\reactor\project\....
SELECT "V_FIRMA"."FIR_ID" AS "FIR_ID", "V_FIRMA"."FIR_ORGNR" AS
"FIR_ORGNR", "V_FIRMA"."FIR_NAVN" AS "FIR_NAVN", "V_FIRMA"."FIR_FADRESSE"
AS "FIR_FADRESSE", "V_FIRMA"."FIR_FADRESSE_POSTNR" AS
"FIR_FADRESSE_POSTNR", "V_FIRMA"."PST_STED" AS "PST_STED",
"V_FIRMA"."FIR_TELEFON" AS "FIR_TELEFON",
"V_FIRMA"."FIR_KONTAKTPERSON_NAVN" AS "FIR_KONTAKTPERSON_NAVN" FROM
"DROPBOX"."V_FIRMA" "V_FIRMA"
ORDER BY "V_FIRMA"."PST_STED" ASC , "V_FIRMA"."FIR_NAVN" ASC
How can I controll the sequence of the elements in the generated ORDER BY
statement?
Olav A. Antonsen
Developer, Oslo, Norway
On Tue, 4 Aug 2009 09:38:59 -0500, Rand Thacker <rand.t...@gmail.com>
wrote:
****************************************************
This email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word “partner” to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority.
CONFIDENTIALITY
This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.
For more information about Halliwells LLP visit
****************************************************
This email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority.
CONFIDENTIALITY
This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.
For more information about Halliwells LLP visit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Reactor" group.
To post to this group, send email to reacto...@googlegroups.com
To unsubscribe from this group, send email to reactor-user...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/reactor-users?hl=en
-~----------~----~----~----~------~----~------~--~---
--
You received this message because you are subscribed to the Google Groups "Reactor" group.
To post to this group, send email to reacto...@googlegroups.com.
To unsubscribe from this group, send email to reactor-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reactor-users?hl=.