Hi In the Search Tutorial (Tutorial2) the search page queries ALL records then does the search based on user input.
In the SR Demo the Detailed Search allows the user to enter search criteria THEN after pressing FINF is the query executed to find the matching results.
How can I do this in tutorial 2?
asked 30 Aug '12, 01:48
You can use "Query On Initialize" attribute of the datasource to achieve your requirement. The default value of this attribute is "Y" meaning that the datasource executes automatically its query when it's initialized.
To set the value of this attribute as "N" and avoid the automatic execution of the query, you can untick the "Query On Initialize" checkBox existing in the datasource edit dialog.
To display this dialog, expand the "Datasource Definitions" accordion panel, expand the "Datasource Definitions" node, then "EMPLOYEES" node and “Datasources” node to display “EMPLOYEES1” dataource on the tree. Then, you can double-click the “EMPLOYEES1” node to display the edit dialog and untick the "Query On Initialize" checkBox.
answered 30 Aug '12, 02:46
Ibrahim Sand... ♦♦
In the Datasource Definition Navigation tree, find the datasource EMPLOYEES1 under EMPLOYEES datasource definition. Double click on it to open the edit dialog (or right click on it and select Edit from the popup menu) . In the first tab there is a check box labeled "Query On Initialize". Uncheck that check box.
If this check box is ticked, Formspider automatically queries a datasource as soon as the a component bound to it is displayed or referenced by an API call. The query is also executed if the Panel containing the component, is referenced in an API call, because the reference will cause the Panel to be created along with every component in it.
Hope this helps.
Kind Regards, Yalim
Great - Thanks - Just getting to grips with Formspider - looking very good! Well done.
answered 31 Aug '12, 00:03