Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7421 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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.

Posted

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.

Posted

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...
  • Newbies
Posted

Thanks guys! Still not working!

But I do appreciate though!

BTW... Unable,

Where is Sample file forum?

Posted

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

Posted

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

This topic is 7421 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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