Addam Posted January 8, 2003 Posted January 8, 2003 Does anyone know how to do a "Global Search" of a database via the web? I want to create 1 "Search" field that will check every field in that database (or layout) for whatever the criteria and display it back to the user. Not quite sure how to tackle that one. Any help would be greatly appreciated! Thanks! ~Addam~
Garry Claridge Posted January 8, 2003 Posted January 8, 2003 Addam, This is a bit of hack work however you will end-up with a "-lop" of "OR" and a list of all the fields as <input> tags. You can then use Javascript to fill-in the values of all the fields to be searched. Another method is to create a Calculation field which concatenates all of the fields to be searched. You would then use a "-op" of "Contains" for the search on that field. Hope this helps. Garry
Anatoli Posted January 9, 2003 Posted January 9, 2003 We are doing that with Calc field and it is sort of dictionary. It is work for 5 minutes.
Addam Posted January 10, 2003 Author Posted January 10, 2003 COOL! Thanks for the reply! Ok... I seem to be in the right direction... Now reg. the calculation field... It is: webFind - FieldNames (Status(CurrentDatabase), "profile") This will give me the field names in the database. Should the HTML look like this: <input type="hidden" name=" [FMP-Field: webFind]" > or am I missing something here. (BTW, this does not work). Thanks! ~Addam~
Garry Claridge Posted January 11, 2003 Posted January 11, 2003 Addam, In the Calculation field I would have something like this: webFind - myfield1 & myfield2 & myotherfield .... etc An efficient method, of using FieldNames(), may exist however, I haven't used that function. The html/cdml would look like this: <input type="hidden" name="-op" value="cn"> Enter a String to search for:<input type="text" name="webFind" value=""> <input type="submit" name="-find" value="Find String"> Hope this helps. Garry
Addam Posted January 27, 2003 Author Posted January 27, 2003 Thank you Soo Much! It works like a charm! Cheers!
Recommended Posts
This topic is 8120 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now