Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » curr_or_hist='C' and output2
curr_or_hist='C' and output2 [message #2308] Wed, 09 September 2009 11:58 Go to next message
gpatti is currently offline  gpatti
Messages: 283
Registered: August 2008
Senior Member
Tony,
I think that the use of curr_or_hist='C' is no longer working with output2 tasks. I have a report that used to filter for current transactions only, that now seems to be returning all transactions.
Re: curr_or_hist='C' and output2 [message #2309 is a reply to message #2308] Wed, 09 September 2009 12:32 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2371
Registered: April 2006
Location: Surrey, UK
Senior Member
How is "curr_or_hist='C'" defined in the OUTPUT2 task? It has to be placed into the WHERE string before it can be processed, so where is is defined? If it is being defined can you step through with your debugger to see where it is being ignored?

Re: curr_or_hist='C' and output2 [message #2310 is a reply to message #2308] Wed, 09 September 2009 13:09 Go to previous messageGo to next message
gpatti is currently offline  gpatti
Messages: 283
Registered: August 2008
Senior Member
It is set in the fixed selection field of the task definition. I've also tried placing it in the sql_where definition of the php controller.

I'll try stepping through with the debugger to see what's happening.
Re: curr_or_hist='C' and output2 [message #2311 is a reply to message #2310] Wed, 09 September 2009 13:52 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2371
Registered: April 2006
Location: Surrey, UK
Senior Member
The pseudo-column 'curr_or_hist' is only valid as part of any additional search criteria, so must be placed in 'selection_temporary' instead of 'selection_fixed'.

This is documented in FAQ53 item #4.


Re: curr_or_hist='C' and output2 [message #2312 is a reply to message #2308] Wed, 09 September 2009 14:07 Go to previous message
gpatti is currently offline  gpatti
Messages: 283
Registered: August 2008
Senior Member
Thanks - that's fixed it. I was convinced it was working previously, so I'm either mistaken, or it was working by chance until a recent version.
Previous Topic: List Report Question
Next Topic: List View page break after additional rows
Goto Forum:
  


Current Time: Thu Nov 28 15:14:53 EST 2024

Total time taken to generate the page: 0.01118 seconds