advanced search - browse table and filter
Posted: Wed Jun 04, 2014 4:53 pm
I am trying to do an advanced search/filter in a form which collects data from many tables in a query.
I can't get the temporary #browseTable# to work, and tried the solutions in these posts:
http://forums.nubuilder.cloud/viewtopic.p ... rary+table
In nuDebug it looks like the temporary browse table is never created.
I want to do the same as in this post:
http://forums.nubuilder.cloud/viewtopic.p ... ble#p12289
Here, Max writes:
Starting simple, I have this in BeforeBrowse:
And this on the form sql:
Tinka
I can't get the temporary #browseTable# to work, and tried the solutions in these posts:
http://forums.nubuilder.cloud/viewtopic.p ... rary+table
In nuDebug it looks like the temporary browse table is never created.
I want to do the same as in this post:
http://forums.nubuilder.cloud/viewtopic.p ... ble#p12289
Here, Max writes:
Can you provide a step-by-step example? Is the #browseTable# discontinued in nubuilderPro?you can build a custom form (also with some code in Custom Code > Before Browse to create a temporary table), with all objects you want to use as filters and a button to call openBrowse() function;
Starting simple, I have this in BeforeBrowse:
Code: Select all
$sql = "CREATE TABLE '#browseTable#'";
$sql .= " select * from primer ";
nuDebug('run1-> '.$sql);
nuRunQuery($s);
Code: Select all
select * from #browseTable#