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

Chris's gravatar image

accept rate: 0%

Hi Chris,

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%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
accept rate: 25%

Hi Chris,

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


answered 30 Aug '12, 02:48

Yalim%20K.%20Gerger's gravatar image

Yalim K. Gerger ♦♦
accept rate: 20%

edited 30 Aug '12, 05:11

Great - Thanks - Just getting to grips with Formspider - looking very good! Well done.


answered 31 Aug '12, 00:03

Chris's gravatar image

accept rate: 0%

Thanks! :-)

(03 Sep '12, 01:25) Yalim K. Gerger ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 30 Aug '12, 01:48

Seen: 2,790 times

Last updated: 03 Sep '12, 01:25

© Copyright Gerger 2017