Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Got the entire data with no input in a search+

Featured Replies

  • Newbies

Hello, I am a newbie here and so glad I found this nice place.

I am working on a web page that searches a database (research articles). Inputs for a search includes author, title, abstract, etc, which are all text input. So I use "<input type="hidden" name="-Op" value="cn">" for each option. The problem is when I click "search" with no input, the search result page returns the entire database not the "error" message.

Another problem is about navigation between detail record pages that are linked from the search result page. So far, there is only one way to go back to search result page (index page), which is "back" button of the browser. In addition to that, I have found ways to go back and forth between detail pages, which have more information (abstracts, publication information, etc) of an article listed in the search result page.

Thanks a lot in advance.

I don't know if they will be of any use to you, but in the Sample Files forum you will find one demonstration which examines the use of the various find Symbols (CDML -Op values and Symbols demo) and a second demonstration which examines navigation with the Next tag (CDML Linking to the next record). Also, you can use javascript to ensure at least one search criteria has been entered in at least one field.

It could be that the cn is not appropriate for some or all of your fields.

Bon chance.

The problem is when I click "search" with no input, the search result page returns the entire database not the "error" message.

It may sound strange, but this is normal. When you do not specifiy a find it will return all. To force a find you can put in a hidden field with no data, this will force an actual find request.

<input type="hidden" name="author" value="">

Another problem is about navigation between detail record pages that are linked from the search result page. So far, there is only one way to go back to search result page (index page), which is "back" button of the browser. In addition to that, I have found ways to go back and forth between detail pages, which have more information (abstracts, publication information, etc) of an article listed in the search result page.

Thanks a lot in advance.

To link to several detail pages you can use the [FMP-Linkrecid] tag. With this you can link to a next page from the same Filemaker record.

<A HREF="[FMP-linkrecid: layout=WebFormII, format=Detail2.html]">Click here for detail page 2</a>

  • 2 weeks later...
  • Author
  • Newbies

Thanks guys! Still not working!

But I do appreciate though!

BTW... Unable,

Where is Sample file forum?

You must be logged in to find it. It is on the "Main Index" under "Solutions & Suggestions", "Sample Files & Open Source Solutions"

Lots of CDML examples

Bon chance

Hi, Conny!

I had a web calendar with search fields for SPONSOR, ACTIVITY, DESCRIPTION, and DATE such that leaving those inputs blank resulted in a NOT FOUND just as FileMaker does on a FIND. I think this is the default way it works so you must have something else in there that satisfies the search. Personally, I did not want this behavior for this site, though... I WANTED all valid records to be found if no criteria were given so I added a hidden input for the field PUBLISH (which would have "yes" or "no" for each record and whether or not it should be published) to find all valid records.

<INPUT TYPE="hidden" NAME="publish" VALUE="yes">

Just to double-check for you, I temporarily commented out the hidden input and tested it... leaving the inputs (fields) blank resulted in a NOT FOUND error. Post your code if you like.

--ST

Re: Post your code if you like.

That takes the fun out of guessing wink.gif

Garry

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.