Not with 10 or 20 arguments ;-) Don't get me wrong argumentCollection works, but I guess I am just playing around and wanting to see if something else could work, I know you can use IIF () with arguments in cf tags, but not in methods appearently..
> Possibly not helpful, but: > > <cfif structKeyExists(myArgument, "organisationName")> > <cfset OrganisationNameSearch.init (myArgument.organisationName)> > <cfelse> > <cfset OrganisationNameSearch.init()> > </cfif> > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Taco Fleur > Sent: Monday, 13 June 2005 2:52 p.m. > To: CFAussie Mailing List > Subject: [cfaussie] conditional arguments > > Just curious if argumentsCollection is the only way to overcome the problem > with passing conditional arguments? > > I realize that the following works: > > <cfscript> > myArgument = structNew(); > myArgument.organisationName = "Shelco"; > OrganisationNameSearch = new > ( "class.asic.message.OrganisationNameRequestMessage" ).init( > argumentsCollection = myArgument ); > </cfscript> > > But this does not work > > OrganisationNameSearch = new > ( "class.asic.message.OrganisationNameRequestMessage" ).init( iif( 1=1, dE > ( "organisationName = 'Shelco'" ), dE("") ) ); > > OrganisationNameSearch = new > ( "class.asic.message.OrganisationNameRequestMessage" ).init( if( 1=1 ) > {organisationName = 'Shelco'} ); > > Note: 1=1 should be structKeyExists() > ________________________________ > Taco Fleur - E-commerce Development Manager > Shelco Searches & Services > An Authorised ASIC Information Broker > www.shelco.com.au > Ph: + 61 7 3236 2605 > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to leave-cfaussie- [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ ________________________________ Taco Fleur - E-commerce Development Manager Shelco Searches & Services An Authorised ASIC Information Broker www.shelco.com.au Ph: + 61 7 3236 2605 --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
