On summary report ,I enabled current filters ,which is working well. But is there a way to display The selected fields only and not SQL statements . For instance if my search field is State and my search value is TX. I want my current filters to display
Office : TX and not
Office : select WHERE State Like TX.This may not be good for real life reports as users may not understand SQL. Imagine IN SET ,or Join. It will make no sense to them.
I checked the docs .The arguments I found were $msg and &type.
I know $message will be my custom message but the type in my case is confusing. What I said were ‘Success’,‘warning’ etc.
How do I implement this with current filters ?.
The $type only controls the CSS classes of the message, you can ignore for this case, it is the $msg that you should customize, e.g. by str_replace() or preg_replace().
Finally i was able to fix this $this->Location->AdvancedSearch->SearchValue gets me the search parametersi can now do this below . My case solved . Thank u guys.
if ($this->Location->AdvancedSearch->SearchValue) {
echo 'Location :' . $this->Location->AdvancedSearch->SearchValue;
}
When field Location- is not selected i get this printed to the screen ##init## it happens for all the fields . It seems my if statement is not working . Coz