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

Home » RADICORE » How To » List with pre-defined search active
Re: List with pre-defined search active [message #528 is a reply to message #519] Wed, 10 January 2007 12:33 Go to previous messageGo to previous message
David Lee is currently offline  David Lee
Messages: 44
Registered: June 2006
Member
I solved my problem with getting the selection criteria within 'Selection (temporary)' field of the Update Task screen to affect my display, - I was putting the field name in single quotes, which resulted in Radicore not recognising the field name, and therefore rejecting the whole criteria without an error message. As this would only be a problem during system building, it probably does not warrant trying to have an error message for such mistakes. It is just a lurking "gotu"!

The pre-defined selection code is still not working for me. My code is
<?php
// filter physical keys to display only the ones currently in circulation
require_once 'include.general.inc';

initSession(); // initialise session

// send search criteria back to the previous script
$prev_script = getPreviousScript();
$prev_task = getPreviousTask($prev_script);
$_SESSION[$prev_script][$prev_task]['search'] = "start_date IS NOT NULL AND end_date IS NULL";
scriptPrevious(null, 'OK');
?>


which all appears to step through correctly, but results in an empty screen, the address bar still displaying the file name of the above script. How do I debug from this state?

Regards
David Lee
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: many to many and field names
Next Topic: Search when some columns are dropdown lists
Goto Forum:
  


Current Time: Sat May 11 07:24:52 EDT 2024

Total time taken to generate the page: 0.00934 seconds