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 - [email protected]
On Fri, Nov 20, 2009 at 3:10 PM, Jeff Howard <[email protected]> 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 <[email protected]>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 - [email protected]
>>
>>
>>
>> On Fri, Nov 20, 2009 at 2:50 PM, Jeff Howard <[email protected]> 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
>>> <[email protected]>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
>>>>
>>>
>>>
>>
>