Search: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
* '''Search''' is a part of every '''Browse Form'''. | * '''Search''' is a part of every '''Browse Form'''. | ||
* If a <u>special search</u> is to be performed, then call a '''hidden PHP Procedure''' and <tt>return false</tt> and directly execute '''nuForm()'''. | * If a <u>special search</u> is to be performed, then call a '''hidden PHP Procedure''' and <tt>return false</tt> and directly execute '''nuForm()'''. | ||
* '''nuOnSearchAction()''' has been recently introduced in nuBuilder v4.5 that is similar to '''nuBeforeSave()'''. | * '''nuOnSearchAction()''' has been recently introduced in nuBuilder v4.5 that is similar to '''nuBeforeSave()''', parts of the latter can be used in the former. | ||
* Encrypting needs to be server-side as if it is in the client side, it will be exposed in the html source in the browser. | * Encrypting needs to be server-side as if it is in the client side, it will be exposed in the html source in the browser. | ||
* Or maybe add an additional button like '''Search SSN''' that calls the PHP Procedure will still enable search for strings that are not encrypted using nubuilder's search button as well. | * Or maybe add an additional button like '''Search SSN''' that calls the PHP Procedure will still enable search for strings that are not encrypted using nubuilder's search button as well. |
Revision as of 10:37, 27 February 2021
- Search is a part of every Browse Form.
- If a special search is to be performed, then call a hidden PHP Procedure and return false and directly execute nuForm().
- nuOnSearchAction() has been recently introduced in nuBuilder v4.5 that is similar to nuBeforeSave(), parts of the latter can be used in the former.
- Encrypting needs to be server-side as if it is in the client side, it will be exposed in the html source in the browser.
- Or maybe add an additional button like Search SSN that calls the PHP Procedure will still enable search for strings that are not encrypted using nubuilder's search button as well.
- Sample Code:
function nuOnSearchAction() { nuRunPHPHidden('php_procedure', 0); return false; }