|
The code is kind of complicated, but here's the
gist of it:
I do a Direct DBMS query and the results html does
the following:
<@assign scope=local name=data value=@@resultset> The results is an array that looks like this (but is longer covering many dates):
Then I do the following (what I'm doing is formatting the results of the DBMS to pass as an argument to a PopChart Java graph.): <@assign scope=local name=dates value=<@distinct array=data cols=2>> <@assign scope=local name=reasons value=<@distinct array=data cols=1>> <@rows array=reasons> <@assign name=current_reason_row scope=local value=<@currow>> @@reasons[@@current_reason_row,1], <@rows array=dates> <@assign scope=local name=act_value value=<@filter array=data expr="#1=@@reasons[@@current_reason_row,1] AND #2=@@dates[<@currow>,2]">> @@act_value[1,3], </@rows>; </@rows> I expect the results to look like this: Canned
response, But, I got the following: , (ie., no values, only the commas and semi-colons) I changed 'data' to 'datta' throughout the code and it worked. Of note is that the code as above works fine on a Tango 2000 server and only stopped working on the WiTango 5 server.
|
Title: Re: Witango-Talk: �'data' system variable
- Witango-Talk: 'data' system variable Dave Machin
- RE: Witango-Talk: 'data' system variable Ben Johansen
- Re: Witango-Talk: 'data' system variable Stefan Gonick
- RE: Witango-Talk: 'data' system variable Ben Johansen
- Re: Witango-Talk: 'data' system variable Phil Wade
- RE: Witango-Talk: 'data' system variable Dave Machin
- RE: Witango-Talk: 'data' system variable Storey, Paul
- Witango-Talk: WiTango Form Engine + Remote Scrip... James MacFarlane
- RE: Witango-Talk: 'data' system variable Ben Johansen
- Re: Witango-Talk: 'data' system variable John McGowan
