Hi,
Just trying to understand this issues, maybe I have missed something
I created a many-to-many relationship in ORM (see below). When I add an account
to a scape i.e. addAccount(account) the second time I add the 'same' account to
the scape I 'should' get an error because of the
thanks i have posted in the orm group as suggested and asked for a little more
help understanding what I did wrong.
link here:
http://groups.google.com/group/cf-orm-dev/browse_thread/thread/bb644ecbe4da3214
~|
Order the
Can someone tell me the difference between this...
property name=POIs fieldtype=many-to-many fkcolumn=actionID cfc=pPOI
type=array singularname=POI linktable=pLinkActionsToPOIs;
VS
property name=POIs singularname=POI fieldtype=many-to-many cfc=pPOI
fkcolumn=actionID
?
On Tue, Aug 9, 2011 at 7:29 PM, Glyn Jackson glyn.jack...@newebia.co.ukwrote:
No issues really. I was just going back in my code I noticed that at some point
I started using the inversejoin version for many-to-many i.e. without array.
the codes works both ways. I have no idea why I started using
I am joining on these IDS from the other side, other than that there is
no real differences.
On Tue, Aug 9, 2011 at 9:37 PM, Glyn Jackson glyn.jack...@newebia.co.ukwrote:
Tanks Andrew ;)
~|
Order the Adobe Coldfusion
Hi,
quick question, if anyone can help.
below you can see a entity for Campaign model. I want to get all campaign that
have a company id of x (1 to many relationship) so i tried this
returnobj = EntityLoad(Campaign,{company='1'},#sortColumn# #sort#);
however this gives me the following
are simple variables and not complex
variables ?
Russ
On Tue, Oct 19, 2010 at 6:50 PM, Glyn Jackson
glyn.jack...@newebia.co.ukwrote:
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology
value instead of a key value pairs.
On Tue, Oct 19, 2010 at 10:50 AM, Glyn Jackson
glyn.jack...@newebia.co.uk wrote:
Hi,
quick question, if anyone can help.
below you can see a entity for Campaign model. I want to get all
campaign that have a company id of x (1 to many relationship
in CF9 using CFGRID, for some reason I cannot get it to be 100% the width of
the cflayout. I know you can set the width in px but it seems I cannot make the
width just 100% as its not supported.
any other way to make the with of a grid 100% when inside a cflayout?
in CF9 using CFGRID, for some reason I cannot get it to be 100% the width of
the cflayout. I know you can set the width but it's in px which is no good to
me. i would like it i could make the width just 100% but its not accepted. any
other way to make the with 100% of when inside a cflayout
I have posted about this on my blog, but if anyone here could give their
opinion I would very much like to hear it.
I am trying to understand if I am looking at ORM correctly in terms of a
many-to-many relationship.
blog post is here
Thanks Gabriel,
o, ok so data is not pre loaded so to speak? if I just wanted to get the data
its treated as an array which is what confused me, i.e. like the array is
waiting...
cfloop array=#rc.userbean# index=user
cfloop array=#user.getMonsters()# index=monster
PS thanks for the group link
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
Just want to make sure I am on the right path with my first jump into CF9 ORM.
below are two tables. I user can have many monsters assigned to them, and a
monster can belong to many users.
is there anything wrong with below so far?
/**
* monsters
*/
component output=false persistent=true {
I assumed that tried it but get
Variable USERSERVICE is undefined.
when using inject=userService:user
i also trted just inject;
Should this
property name=userService inject=entityService:user;
be
property name=userService inject=userService:user;
??
Hi, can anyone help.
I
Hi, can anyone help.
I am playing around with CB 3 and CF9 ORM. I am not sure its wiring
everything up correctly as I get the message...
Error Messages: Mapping for component user not found.
Either the mapping for this component is missing or the application
must be restarted to generate the
Hi
Having more issues with a JSON request. the page calling the service is case
sensitive, this was solved using the bracket structure syntax: i.e.
response['hotspots'] = []; to preserve the case of the key. however I have an
array I have tried added the array different ways to the struct but
does not matter about this now this seems to work...
obj['actions']= [];
arrayAppend(obj.actions, 'some value');
~|
Order the Adobe Coldfusion Anthology now!
Hi I am trying to create a JSON response it needs to be like the one below. I
have created a CFC that returns a validate JSON response but not in the format
needed I think I am not understanding something can anyone help? Thanks
Response needs to look like this
{hotspots: [
{distance:
simply things! thanks that is something I missed yes. one last thing looking at
what they want back it seems that 'hotspots' needs to be an array can you do
implicit Arrays in CF like this would this not give me an error?
~|
cool so something like this would work?...
response['hotspots'] = [{
distance ='100',
attribution=This is a test layer POI provider,
title= My layer - snowy4,
lon= 53.472696,
can anyone tell me what I am doing wrong here as as the hotspots does not seem
to like this array i.e. the web service responses back Required field 'title'
etc for all fields
cfscript
var response = StructNew();
not an array issues must be to do with the upper-case conversion again, how do
i get around that with...
response['hotspots'] = [
{
distance =100,
Looking for some advice on which method is best for the following scenario...
My clients 99% .NET guys. Myself about 50% now. I have been asked to maybe
create a new web service in ColdFusion that allows other members of our team
and our clients (none CF'ers) to integrate using .NET or any
Hi thanks, some very good advice on security :0. I just wanted to make sure I
was not missing something here. will do more research but thanks. any other
comments welcome
~|
Order the Adobe Coldfusion Anthology now!
5 years of CF and this is the first time I have been asked to do something with
MS exchange and CF. not being 100% if its possible with cfexchange tags can
someone thats used them answer the following questionsthanks
My client has his exchanged server on a hosted server and I have CF on a
Having a strange issue since we upgraded our server from CF8 standard to CF9
Enterprise. if any one has any idea I would be very grateful :)
Since this upgrade a number of sites using the ColdFusion with the ColdSpring
framework have been acting strange. which ever CB site gets loaded first
and suggested looking at Server
Settings Caching Cache web server paths to make sure it's
unchecked (I believe it's checked by default?).
Sean
On Thu, Jun 10, 2010 at 11:32 AM, Glyn Jackson
glyn.jack...@newebia.co.uk wrote:
Having a strange issue since we upgraded our server from CF8
I no nothing about PHP. can any one reverse engineer this following in CF?
?
switch($_REQUEST['op']){
case 'load':
$ff=join('',file(stripslashes($_REQUEST['reportname']).'.'.$_REQUEST['reportid'].'_sql'));
echo $ff;
break;
case 'save':
Thank yes I have made a start and got below dont understand this line tho...
case 'load':
$ff=join('',file(stripslashes($_REQUEST['reportname']).'.'.$_REQUEST['reportid'].'_sql'));
echo $ff;
break;
cfset path = ExpandPath(/)
cfdirectory action=list directory=#path#
@ Jason
sorry yes just spotted your post, thanks
don't seem to get reportFile on save any idea why not?
I don't know PHP either, but this looks pretty straightforward.
I'm assuming that the request in this case is a form post, and I don't
know if the save action should do an APPEND or a
cool final is below...
cfparam name=reportName default= /
cfset reportFile = expandPath(/Powerbase) / reportName .
reportID _sql /
cfswitch expression=#op#
cfcase value=load
cffile action=READ file=#reportFile# variable=ff /
cfoutput#ff#/cfoutput
cool
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332415
Subscription:
cfdiv id=questionWindow should be
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Hi could someone take a look at the following domain...
http://www.she-says.net/
In Firefox, Chrome etc the cfdiv works however in IE 8 when you click submit,
read answer then it brakes coming back i.e. does not display.
any reason why this happens in IE8?
code below
cfajaximport
yep the error was because of a users firewall not sending the http_referer so
the value was - which mid function does not like.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of
I have been asked to looked as some code within this page is below. I have no
idea what its doing however I was told its needed but keeps giving me errors.
is your opinion why does this exists?
cfparam name=referer_itemID default=0
cfparam name=referer_popupID default=0
cfif
I have always had problem with the way ColdFusion reports errors in stored
procedures and I was wondering how other CFâers go about debugging the same
sort of errors (without costly software).
For example, the following ColdFusion error is generated on a stored
procedure...
Application
I need to know where I start for the following I have been given a Web
Service SSO URL test against, I need to open a new window and send login
details accross. all i have is the xml.
my question is in CF how to i go about this? CFHTTP, xml etc? below is what I
hev been given
Envelope
I have a loop which counts, I need to detect multiples of 6 i.e
loop count
is it a multiple of 6? true
else do nothing
is there a tag that does this?
~|
Want to reach the ColdFusion community with something they want? Let
Hi all,
could someone convert this cfscript back to tag?
for(i=1;i lte listlen(#form.whatToUpdate#,,);i++){
tempVal = #listgetat(form.whatToUpdate,i,,)#;
form.ID = #tempVal#; //Option ID
form.newRank = form[rank_ #tempVal#];
}
thanks
Hi I have an old fusebox app i am working on. it outputs a csv file with data
however the html (layout) is also getting added to the csv? anyone know why.
cfsetting enablecfoutputonly=yes
cfscript
function cleanField(sField){
sField = (replace(sField,,,;,All));
Can anyone spot what is wrong here?
my AJAX grid IS working but when I try and sort the columns (by clicking in the
grid) I get the following error...
Error Executing Database Query.
:http: Invoking CFC: /admin/coldboxproxy.cfc , function: getAllproducts ,
arguments:
Found the issues on this line...
ORDER BY cfqueryparam cfsqltype=cf_sql_varchar
value=#ARGUMENTS.gridsortcolumn# cfqueryparam cfsqltype=cf_sql_varchar
value=#ARGUMENTS.gridsortdir#
it seems to work without the cfqueryparam. can anyone tell me why this is the
case?
Thanks Ray, seems strange, I did not know that.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
I am just going over some old code, I found the following...
productPageName = Replace(#FORM.pageName#, ,-,All);
productPageName = REReplace(#productPageName#,[.*+?^${}()|[\]/\\],,All);
its seems like its create a page name but removed spaces and special characters
i.e. this page! becomes
Makes sense, thanks you.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327452
We have recently moved to a new virtual server, since the move we have been
having issues with ColdFusion almost everyday. What seems random, ColdFusion
slows down and then stops responding all together. I then try and restart the
service and it errors stating CF cannot be stopped as it's busy
Old server has gone, what figures should we be looking at?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Any reason why below does now work? no errors it just does not do what it
states.
it should look at all valueId's in the database and if its not in the list
delete it, simple, right, so why does it not work?
DELETE FROM options
WHERE valueId NOT IN
cfqueryparam value=#arguments.list#
PS the list looks like...
1,2,3,4,5,6 etc
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
simple when you know how. Thank you!
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Hi,
cfscript (ColdFusion 8) can I do the following entirety in script?
cfloop index=i list=#listToUpdate# DELIMITERS=,
value = #i#
/cfloop
Thanks
~|
Want to reach the ColdFusion community with something they want? Let
I am using CFIMAGE do resize images and use write to browser to view them I
have noticed that when I view the image the path is something like this...
/CFFileServlet/_cf_image/_cfimg-x
how long does it say in this directory for? does it delete them when its done?
I can still navigate to
Interceptors make requests in specific execution points in which it can
process, pre-process, post-process and redirect requests, perfect for security!
Think of interceptors as listeners to any request in your application.
Are you sure it deletes it afterwards I.E
http://www.safe4sure.co.uk/CFFileServlet/_cf_image/_cfimg-7294859208909333435.PNG
its still there?
do you set how CF treats these files in CFadmin?
~|
Want to reach the ColdFusion
barneyb thats interesting thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
O went back 5 mins later to that URL and got...
404
Not Found
so there must be some sort of time frame before its deleted, anyone know what
this is?
~|
Want to reach the ColdFusion community with something they want? Let
LOL, set myself up for that one :)
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Thanks you, yes thats the way I was thinking, makes sense.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
I am trying to work with objects and better understand how to use them. So far
it has been straight forward when updating/creating/deleting one record at a
time. But I now need to update many records at once is getting a bit tricky.
I simplified version of what I am doing so far is below...
Going a bit mad! I should know how to do this but my brain is not working
today
when the form below is submitted if the checkbox is checked I want to update
the option on the valueId (which is a hidden field) and keep looping all the
results only updating option have is ticked. however
thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326081
Subscription:
Hi Tom how are you?
That makes sense, its a mess! anyhow spent the time doing a bit of research
this is what I have installed...
chf8010003.jar - latest hotfix
hf801-71634.jar- a fix for CFLAYOUT which came with new CSS so cannot be
deleted
hf801-1875.jar - JRun Security Hotfixes
After installing the new hotfix chf8010002.jar
in my libs/update folder I have the following...
chf8010002.jar
hf801-1875.jar
hf801-1878.jar
hf801-71634.jar
now it states in cfadmin the update level is hf801-1875.jar (is this the case?
what about the chf8010002 I just installed?) in the tech
Hi All,
Is there a CF tag I don't know about which will allow me to dump my server
specs like memory, processor speed etc
Thanks
:)
~|
Want to reach the ColdFusion community with something they want? Let them know
on the
Thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326062
Subscription:
could someone cut and paste the the code below and tell me if you see the
message
submenu collapsed. click to expand submenu
under products items.
I dont remember CFMENU having this message before and I cannot get rid of it!
running CF 8.01
cfmenu bgColor=##c0c0c0
cfmenuitem
very strange. it is def 100% being generated by CFMENU tag for me!
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
you can see it happening here
http://demo.salesmaxx.co.uk/test.cfm
only code on the page is
cfmenu bgColor=##c0c0c0
cfmenuitem display=Adobe href=http://www.adobe.com; /
cfmenuitem display=Products
cfmenuitem display=ColdFusion
href=http://www.adobe.com/go/coldfusion; /
yes that would work but not with using includes with the tabs or source. the
issue is that when you do it with an include it does not work due to CF
thinking you dont have a completed form
Sorry I meant wrapping the whole set of tabs in 'form tags' ... I
didn't mean to confuse you :)
I see, never mind back to the drawing board. thanks.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
I am using CF8 and want to use cfinput type=datefield but without cfinput
does that make sense? ok I want to use ext popup calender for a input box but
not via cfinput tag
i.e.
input type=datefield
can I still use the library without cfinput? if so can soneone give me an
example?
Thanks
I did try that but because I am using cflayout on the same page it all goes
wrong coldfusion gets confused to which ext its using or should I sat the JS
does. wondering it we can just yap into the ext1 JS bot use the paths or URL's
that CF uses.
Thanks Think I will try the jquery
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
_
http://blog.cutterscrossing.com
On 8/28/2009 7:57 AM, Glyn Jackson wrote:
I see, never mind back to the drawing board. thanks.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House
I want to submit the data in all tabs as one big form post. this does not seem
possible I had tried below and put my cfform tag around the whole cflayout but
all i get now is he tag must be nested inside a cfform tag. which is not the
case lol
cfoutputh1#Event.getValue('pageTitle','Please
someone must have done this before? using tab layout in CF8 had tabs with just
one form post submitting all data in all tabs at once?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the
@ Judah McAuley
thanks very detailed response. its just a simple record set to display. So what
your saying makes sense.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of
Thanks for the reply. reading my question back it did not make much sense, so
you did well to work out what I was on about lol!
I'd go with a query unless you have a particular reason not to.
no reason, that would be the way I would normally do it, however if I wanted to
try and keep this
Confused about how I would go about returning all records from a table from my
DAO?
this is how I would return a record with an ID (see below), however when
returning all records needed for a cfloop i am not sure.
handler
variables.adminUsersService.getUserByID(userBean); -- access service
Thanks Kevan
quote: user object would be stored in the session rather than just the username.
Interesting idea, thanks makes way more sense.
PS, thank you for the link, just what I was looking for.
Glyn.
if I should be do this all in my service, or should I come out again with
the username
Hi,
Thank you to everyone on house of fusion who has been very helpful so far with
my stupid questions. I have another ;)
I was looking at some code I generated for a gateway by Illudium PU36. The read
and update functions do not make any sense in that it does not have any return
for me to
quote: Because CF passes CFCs by reference, your adminusers object will
magically have all of the updated info in it wherever you called
readAdminUsers() from.
really, no way? so my admin object will have the data populated using the
getters and setters! thats cool!
so let me see if I
This really works! Look at me I am starting to get this (is it really sad
this is making me smile with joy lol)
I love this object stuff! So here is what I am doing,
I have just checked my user exist, got their details and set there session in 4
lines of code in my handler! Now that's
Glad its not just me. Thanks again for you help, I am sure I will have more
questions but I have a bit to be going on with now for a while at least.
Glyn
~|
Want to reach the ColdFusion community with something they want? Let
@Matt Quackenbush
thanks so much for taking the time to help me out :) that makes sense. kinda
starting to get it. I think its going to be one of those things I need to do
real world things with before I see the benefits. at the moment all I seem to
be doing is adding extra overhead lol.
is
leading on from my last example which would be the best way to the following...
1) get the username from the database to store in a session
2) log them in
I was thinking about added the following in my handler after the validation
checks..
variables.adminUsersService.doLogin(userBean);//Login
The more I venture into OO type of design the more I have to get my head around
todays its getters and setters. I think I am 'getting' in to the swing of
this but I could do with some advice please! any advice and help is welcome!
I have no idea if I am just making this up as I go along
Hi, I have my DNS bean injected into my CFC, I have used a setter. how do I now
use the dns details now 'within' my CFC. do I create it in my init method? I
want to do something like the following...
cfquery name=test datasource=#instance.dsn.getName()# etc.
Hi,
I did try that with...
cffunction name=init access=public returntype=any hint=constructor
cfargument name=dsnBean type=any /
cfset variables.instance['dsnBean'] = arguments.dsnBean /
cfreturn this /
/cffunction
however I just get the error Element DSNBEAN is
the parameter to the init function was not passed in for some reason?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
I like this example (below) but for some reasons its not being passed...
cffunction name=init access=public returntype=any hint=constructor
cfargument name=dsnBean type=any required=yes /
cfset variables.instance['dsnBean'] = arguments.dsnBean /
cfreturn this /
Hi Dominic,
I have tried...
bean id=dsnBean factory-bean=ColdboxFactory factory-method=getDatasource
constructor-arg name=alias
valueDBDetails/value
/constructor-arg
/bean
bean id=userService class=model.UserService /
bean id=userGateway
I know it exsits as if I go back to the setter version i can dump the bean in
the CFC
cffunction name=setdsnBean access=public returntype=void output=false
_wireme=ioc
cfargument name=dsnBean type=any required=true hint=Set DNS Beand /
cfset variables.instance['dsnBean'] =
Still not sure why I am getting this error since it should have been passed.
any more ideas? thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Restarted and used the dump as suggested and I get...
struct [empty]
strange! If I was to go back the to setdnsBean i can dump in that function and
its there however I want to inject using the init
It should work again just in cause I will post the full code below, if you have
any more ideas
do you or anyone else have any more ideas on this? Thanks :)
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Hm, time to try the ColdSpring list I'd say.
Maybe its a ColdBox issue!
?And while you wait for an answer from there, use the property method and move
on ;)
Will do, thanks for your help :)
Dominic
2009/7/26 Glyn Jackson glyn.jack...@newebia.co.uk
do you or anyone else have any more
I have another question regarding ColdSpring and ColdBox. I will be using it to
create a bean on the init() method of my handler, I will not create the object
again after that. This bean contains all my SQL and database interactions
(example below). My question is, singletons. is this ok, I
1 - 100 of 134 matches
Mail list logo