composite keys on many-to-many relationships

2011-08-10 Thread Glyn Jackson
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

Re: composite keys on many-to-many relationships

2011-08-10 Thread Glyn Jackson
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

ORM many-to-many code example difference

2011-08-09 Thread Glyn Jackson
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

Re: ORM many-to-many code example difference

2011-08-09 Thread Glyn Jackson
? 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

Re: ORM many-to-many code example difference

2011-08-09 Thread Glyn Jackson
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

ORM relationship using EntityLoad issues

2010-10-19 Thread Glyn Jackson
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

Re: ORM relationship using EntityLoad issues

2010-10-19 Thread Glyn Jackson
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

Re: ORM relationship using EntityLoad issues

2010-10-19 Thread Glyn Jackson
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

grid width 100% when inside a cflayout

2010-10-09 Thread Glyn Jackson
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?

CFGRID width

2010-10-06 Thread Glyn Jackson
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

ORM and many to many relationships

2010-09-21 Thread Glyn Jackson
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

Re: ORM and many to many relationships

2010-09-21 Thread Glyn Jackson
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

Re: ORM and many to many relationships

2010-09-21 Thread Glyn Jackson
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:

ORM tables?

2010-08-31 Thread Glyn Jackson
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 {

Re: ColdBox: and CF9 ORM: Mapping for component user not found

2010-07-05 Thread Glyn Jackson
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

ColdBox: and CF9 ORM: Mapping for component user not found

2010-07-04 Thread Glyn Jackson
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

issues preserving the case of the key

2010-07-01 Thread Glyn Jackson
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

Re: issues preserving the case of the key

2010-07-01 Thread Glyn Jackson
does not matter about this now this seems to work... obj['actions']= []; arrayAppend(obj.actions, 'some value'); ~| Order the Adobe Coldfusion Anthology now!

JSON response need a little help

2010-06-30 Thread Glyn Jackson
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:

Re: JSON response need a little help

2010-06-30 Thread Glyn Jackson
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? ~|

Re: JSON response need a little help

2010-06-30 Thread Glyn Jackson
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,

array help how do I do this?

2010-06-30 Thread Glyn Jackson
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();

Re: array help how do I do this?

2010-06-30 Thread Glyn Jackson
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,

Gudies on how to create a Webservice and Security in Adobe ColdFusion 9? Please :)

2010-06-21 Thread Glyn Jackson
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

Re: Gudies on how to create a Webservice and Security in Adobe ColdFusion 9? Please :)

2010-06-21 Thread Glyn Jackson
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!

cfexchangeConnection

2010-06-16 Thread Glyn Jackson
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

CF9 threading issues that were not issues on CF8?

2010-06-10 Thread Glyn Jackson
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

Re: CF9 threading issues that were not issues on CF8?

2010-06-10 Thread Glyn Jackson
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

reverse engineer PHP to CF

2010-03-29 Thread Glyn Jackson
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':

Re: reverse engineer PHP to CF

2010-03-29 Thread Glyn Jackson
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#

Re: reverse engineer PHP to CF

2010-03-29 Thread Glyn Jackson
@ 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

Re: reverse engineer PHP to CF

2010-03-29 Thread Glyn Jackson
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

Re: reverse engineer PHP to CF

2010-03-29 Thread Glyn Jackson
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:

Re: CFDIV does not work in IE8 and any one review domain?

2010-03-19 Thread Glyn Jackson
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:

CFDIV does not work in IE8 and any one review domain?

2010-03-18 Thread Glyn Jackson
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

Re: Code Review?

2010-02-11 Thread Glyn Jackson
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

Code Review?

2010-02-10 Thread Glyn Jackson
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

ColdFusion debug stored procedures

2010-01-08 Thread Glyn Jackson
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

Web Service SSO

2010-01-08 Thread Glyn Jackson
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

detect multiples?

2009-12-11 Thread Glyn Jackson
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

convert this cfscript back to tag?

2009-12-10 Thread Glyn Jackson
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

fusebox layout adding to csv?

2009-12-04 Thread Glyn Jackson
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));

AJAX CFGRID will not sort by column?

2009-11-03 Thread Glyn Jackson
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:

Re: AJAX CFGRID will not sort by column?

2009-11-03 Thread Glyn Jackson
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?

Re: AJAX CFGRID will not sort by column?

2009-11-03 Thread Glyn Jackson
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:

REReplace Statment Help

2009-10-21 Thread Glyn Jackson
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

Re: REReplace Statment Help

2009-10-21 Thread Glyn Jackson
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

ColdFusion Server keeps falling down!

2009-10-12 Thread Glyn Jackson
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

Re: ColdFusion Server keeps falling down!

2009-10-12 Thread Glyn Jackson
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:

Whats wrong with this SQL?

2009-10-03 Thread Glyn Jackson
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#

Re: Whats wrong with this SQL?

2009-10-03 Thread Glyn Jackson
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:

Re: Whats wrong with this SQL?

2009-10-03 Thread Glyn Jackson
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:

can I do the following entirety in script? (CF8)

2009-10-02 Thread Glyn Jackson
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

CFFileServlet/_cf_image why?

2009-10-02 Thread Glyn Jackson
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

Re: Coldbox plugins vs interceptors for user management

2009-10-02 Thread Glyn Jackson
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.

Re: CFFileServlet/_cf_image why?

2009-10-02 Thread Glyn Jackson
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

Re: can I do the following entirety in script? (CF8)

2009-10-02 Thread Glyn Jackson
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:

Re: CFFileServlet/_cf_image why?

2009-10-02 Thread Glyn Jackson
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

Re: CFFileServlet/_cf_image why?

2009-10-02 Thread Glyn Jackson
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:

Re: How to Handle Objects when Doing Several Updates and Once?

2009-09-29 Thread Glyn Jackson
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:

How to Handle Objects when Doing Several Updates and Once?

2009-09-28 Thread Glyn Jackson
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...

Its Friday please dont be mad! - checkbox which corresponded with the value?

2009-09-25 Thread Glyn Jackson
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

Re: Hot Fixes Explained

2009-09-08 Thread Glyn Jackson
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:

Re: Hot Fixes Explained

2009-09-08 Thread Glyn Jackson
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

Hot Fixes Explained

2009-09-07 Thread Glyn Jackson
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

CF TAG that allow me to dump server specs?

2009-09-06 Thread Glyn Jackson
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

Re: CF TAG that allow me to dump server specs?

2009-09-06 Thread Glyn Jackson
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:

CFMENU - message submenu collapsed. click to expand submenu

2009-08-29 Thread Glyn Jackson
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

Re: CFMENU - message submenu collapsed. click to expand submenu

2009-08-29 Thread Glyn Jackson
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:

Re: CFMENU - message submenu collapsed. click to expand submenu

2009-08-29 Thread Glyn Jackson
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; /

Re: submit one big form post of all tabs

2009-08-28 Thread Glyn Jackson
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 :)

Re: submit one big form post of all tabs

2009-08-28 Thread Glyn Jackson
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:

cfinput type=datefield

2009-08-28 Thread Glyn Jackson
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

Re: cfinput type=datefield

2009-08-28 Thread Glyn Jackson
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.

Re: cfinput type=datefield

2009-08-28 Thread Glyn Jackson
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:

Re: submit one big form post of all tabs

2009-08-28 Thread Glyn Jackson
_ 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

submit one big form post of all tabs

2009-08-25 Thread Glyn Jackson
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

Re: submit one big form post of all tabs

2009-08-25 Thread Glyn Jackson
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

Re: returning all table records ColdBox ColdSpring via an object?

2009-08-20 Thread Glyn Jackson
@ 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

Re: returning all table records ColdBox ColdSpring via an object?

2009-08-19 Thread Glyn Jackson
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

returning all table records ColdBox ColdSpring via an object?

2009-08-18 Thread Glyn Jackson
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

Re: ColdBox and ColdSpring Login

2009-08-16 Thread Glyn Jackson
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

Illudium PU36, queryRowToStruct?

2009-08-16 Thread Glyn Jackson
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

Re: Illudium PU36, queryRowToStruct?

2009-08-16 Thread Glyn Jackson
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

Re: Illudium PU36, queryRowToStruct?

2009-08-16 Thread Glyn Jackson
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

Re: Illudium PU36, queryRowToStruct?

2009-08-16 Thread Glyn Jackson
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

Re: venture into OO, well sort of, need help!

2009-08-15 Thread Glyn Jackson
@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

ColdBox and ColdSpring Login

2009-08-15 Thread Glyn Jackson
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

venture into OO, well sort of, need help!

2009-08-14 Thread Glyn Jackson
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

using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson
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.

Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson
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

Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson
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:

Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson
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 /

Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson
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

Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson
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'] =

Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson
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

Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson
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

Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson
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:

Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson
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

singletons ColdSpring and ColdBox

2009-07-26 Thread Glyn Jackson
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   2   >