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

Home » RADICORE » How To » Failing searches, caused by null-able date fields
Re: Failing searches, caused by null-able date fields [message #1368 is a reply to message #1367] Tue, 10 June 2008 12:54 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2350
Registered: April 2006
Location: Surrey, UK
Senior Member
If a database table contains both a START_DATE and END_DATE field then when a search screen is initiated a field called CURR_OR_HIST is automatically added to the $fieldspec array, with the default value of 'C', to activate the feature described in http://www.tonymarston.net/php-mysql/infrastructure-faq.html #faq53. If you do not want this feature then you can remove this CURR_OR_HIST field from the data which is returned by the search screen using code in the _cm_changeConfig() method such as:
if ($GLOBALS['mode'] == 'search') {
    unset($this->fieldspec['curr_or_hist']);
} // if


 
Read Message
Read Message
Read Message icon14.gif
Read Message
Previous Topic: Use update2 pattern when I have two tables parent->child
Next Topic: Screen structure reference for filepicker-ed images
Goto Forum:
  


Current Time: Mon May 13 03:32:46 EDT 2024

Total time taken to generate the page: 0.07410 seconds