Awesome, Request scope is indeed better then session scope which will of course keep the last values even when you start without providing url variables, or you will have to overwrite and set to blank but that's all to complicated.
So as i understand now, the Application.cfc methods are used, not Application.cfm (therefore my way of using the url variables weren't working), and the methods are divided by _serverSpecificRequestScope.cfm, _serverSpecificVars.cfm, and that kind of files which enables you to custom use and set the different methods of the Application.cfc and more. Thanks. On Feb 6, 1:44 pm, Sean Coyne <[email protected]> wrote: > sorry _serverSpecificRequestScope.cfm not _serverSpecificVars.cfm > > On Feb 6, 7:43 am, Sean Coyne <[email protected]> wrote: > > > in _serverSpecificVars.cfm just set request.subject = url.subject if > > it is defined, or to your default value if it is not. then in your > > cfproperty tag set ftdefault = request.subject. > > > i think the request scope would be a better solution than the session > > scope > > > Sean > > > On Feb 6, 7:19 am, Marco van den Oever <[email protected]> > > wrote: > > > > I wanted to use url variables as this would allow me to directly pass > > > through values from a custom type custom edit page to another custom > > > type's form fields, now i solved it by: > > > > 1. placed default session variables in _serverSpecificVars.cfm > > > > <!--- set default values of session.subject, description, and solution > > > ---> > > > <cfparam name="session.subject" default=""> > > > <cfparam name="session.description" default=""> > > > <cfparam name="session.solution" default=""> > > > > 2. in the custom type custom edit page i changed the (set to other > > > custom type) link so that it will reload the same page with > > > subject,description, and solution url variables and an extra url > > > variable "setknbase" > > > > /webtop/conjuror/invocation.cfm? > > > objectid=#stobj.objectid#&typename=tickets&method=edit&ref=typeadmin&module=customlists/ > > > tickets.cfm&plugin=wsoFarcryTickets&subject=#stobj.subject#&description=#stobj.description#&solution=#ticketanswers.answer#&setknbase" > > > > 3. that url variable sets the session variables to the given url > > > variables and cflocated to the other custom type > > > > <!--- when a answer is set to the knowledge base, set the url to > > > session variables and cflocate to knowledge base page ---> > > > <cfif isdefined('setknbase')> > > > <cfset session.subject = url.subject> > > > <cfset session.description = url.description> > > > <cfset session.solution = url.solution> > > > <cflocation url="/webtop/conjuror/invocation.cfm? > > > typename=knbase&method=edit&ref=typeadmin&module=customlists/ > > > knbase.cfm&plugin=wsoFarcryTickets" addtoken="no"> > > > </cfif> > > > > Now this works but euhhmmm seems a bit complicated to me as with > > > direct url variables this would be just "a click". > > > > So the question is, am i thinking to complicated and can this be done > > > more easy? > > > > Thank you. > > > > On Feb 6, 12:48 pm, Marco van den Oever <[email protected]> > > > wrote: > > > > > Still no luck, is it even possible??? Should be... > > > > > On Feb 4, 7:35 pm, Marco van den Oever <[email protected]> > > > > wrote: > > > > > > Hi, yes i tried plugin/config/_serverSpecificRequestScope.cfm but that > > > > > would only work (i think) with session, client, or application scope > > > > > as it's only executed once... > > > > > > Can't i put it in the plugin/www/application.cfc, i tried that without > > > > > success but i might be missing something there as i (shame on me) not > > > > > yet used to Application.cfc. > > > > > > Thanks again > > > > > > > > What's the best way to set a <cfparam name="url.subject" > > > > > > > default="">, > > > > > > > for a plugin? > > > > > > > > In a custom type i have a ftdefault="url.subject" > > > > > > > ftdefaulttype="evaluate", when not provided i need default values > > > > > > > to > > > > > > > be set. > > > > > > > hmm.... interesting. Have you tried the project's > > > > > > _serverSpecificRequestScope.cfm? I'm not sure if it would render > > > > > > in > > > > > > this case (probably not), but worth looking into. > > > > > > > -- > > > > > > Jeff Coughlin > > > > > > Web Application Developerhttp://jeffcoughlin.com > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
