multisearch request

5 posts by 2 authors in: Forums > CMS Builder
Last Post: February 27, 2020   (RSS)

By kitsguru - February 17, 2020

In an old post from 2013 there is reference to a custom where clause. https://www.interactivetools.com/forum/forum-posts.php?postNum=2229396#post2229396

Is it possible to add this functionality to the core Viewer Functions.

// Note: This function is EXPERIMENTAL and may change in future
function searchMultipleTables($searchTables, $searchOptions) {

...
$where            = _addWhereConditionsForSpecialFields($schema, '', $searchOptions);

if(@$tableOptions['customWhere']){
      if($where){
        $where .= "AND ".$tableOptions['customWhere'];
      }else{
        $where = 'WHERE '.$tableOptions['customWhere'];
      }
}

...
Jeff Shields

By daniel - February 26, 2020

Hi Jeff,

Could you please clarify specifically which functions you're referring to, and what you'd like to be able to do with them? The getRecords() function already supports the "where" and "orWhere" options which can accept custom WHERE clauses - are you looking for something else?

Thanks,

Daniel
Technical Lead
interactivetools.com

By daniel - February 27, 2020

Hi Jeff,

Sorry - I misunderstood your original post, thanks for the clarification. That is a fairly simple change, and I've added it to be released with the next CMSB version.

Cheers,

Daniel
Technical Lead
interactivetools.com

By kitsguru - February 27, 2020

Super cool

Jeff Shields