Not a problem and glad that you re-mediated the issue and were able to move
forward.  =)

Teddy R. Payne, ACCFD
Google Talk - teddyrpa...@gmail.com



On Fri, Nov 20, 2009 at 4:09 PM, Jeff Howard <jeh...@gmail.com> wrote:

> Sorry Teddy, I missed this.  I tried the getTempDirectory thing as well and
> it was throwing the same error.  The issue was definitely my cffile tag and
> not the data.  I had the wrong drive in my cffile tag and once I corrected
> that it worked.  I could not get it ot work with using the GetTempDirectory
> method.
>
> The good news is, I do have it working now, I have update my queries to be
> QoQs instead of hitting the db.  The only issue I'm trying to resolve now is
> being able to write to the query in the application scope as opposed to just
> being able to read it.  I was just in the process of reading an article
> hoping that it would help.
>
> Thanks again for your help the past couple of days.
>
> On Fri, Nov 20, 2009 at 3:30 PM, Teddy R. Payne <teddyrpa...@gmail.com>wrote:
>
>> Jeff,
>> I just did a successful test.  I think I know your issue.  How are you
>> saving your file?
>>
>> Are you using GetTempDirectory()?
>>
>> Here is my quick and dirty test:
>>
>>
>> <cfset foo = createObject("component", "dataService") />
>>
>> <cfset qry = foo.dataSearch("lastname","smith") />
>>
>> <cfwddx action="cfml2wddx" input="#qry#" output="qryTest" />
>>
>> <cfset filePath = "#expandPath(".")#\data.txt" />
>>
>> <cffile action="write" file="#filePath#" output="#qryTest#" />
>>
>> <cfset test = loadWDDXFile(filePath) />
>>
>> <cfdump var="#test#">
>>
>> The key here was I used expandPath(".") to save the file in the same
>> directory as my test application.  The read after that and the subsequent
>> value returned from the function came back as a query.
>>
>>
>>
>> Teddy R. Payne, ACCFD
>> Google Talk - teddyrpa...@gmail.com
>>
>>
>>
>>   On Fri, Nov 20, 2009 at 3:10 PM, Jeff Howard <jeh...@gmail.com> wrote:
>>
>>> I think that is exactly what I am trying to do if I can just figure out
>>> the wddx issue.  I just can't seem to get the data to read into the
>>> application.
>>>
>>>
>>> On Fri, Nov 20, 2009 at 2:57 PM, Teddy R. Payne 
>>> <teddyrpa...@gmail.com>wrote:
>>>
>>>> Jeff,
>>>> As this is for the demo, you probably want to load all your data at
>>>> "OnApplicationStart" into either application scoped query variables or 
>>>> query
>>>> objects, to avoid reading your data more than once per application
>>>> instantiation.  Put into the demo or installation instructions with the
>>>> caveats about where the data is coming from, so the client is not expecting
>>>> a certain behavior.
>>>>
>>>> Just suggestions though.  =)
>>>>
>>>>
>>>> Teddy R. Payne, ACCFD
>>>> Google Talk - teddyrpa...@gmail.com
>>>>
>>>>
>>>>
>>>>   On Fri, Nov 20, 2009 at 2:50 PM, Jeff Howard <jeh...@gmail.com>wrote:
>>>>
>>>>> Thanks,  I'll work with it and see what I can get going.  Thanks again.
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Nov 20, 2009 at 2:45 PM, Teddy R. Payne <teddyrpa...@gmail.com
>>>>> > wrote:
>>>>>
>>>>>> Jeff,
>>>>>> My code snippet is "as is" as I wrote it ad hoc without testing it
>>>>>> against a live file and off of memory, but the general idea is there.
>>>>>>
>>>>>> Teddy
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>

Reply via email to