Skip 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.

search from value list with results on same page

Featured Replies

hello

am newbie at FM. trying to make an integrated search page, with a search from a value list and the results on one page (so the format file is the same as the searchpage). The site is in a frameset that is hosted on one server, the page with the value list&search is on a different server and gets loaded into the frame'main by an url(http://mydomain.com/directory/FMPro?-db=database.fp5&-format=searchconcerts.htm&-lay=invoer&-view" target="main )When I click the submit button on the searchpage to perform the search I get a error message saying that the format file is not found???

have a look here to see what I mean, on the menu click "concerts":

http://www.channelclassics.com/indexTEST.htm

any help would be appreciated!

thanks willemijn

  • Author

maybe I should add to my previous post that I use 2 DB's. The same method used on another pageonly showing the results in a separate page calling from the other DB works fine... that can be seen clicking 'catalogue' in the menu of

http://www.channelclassics.com./indexTEST.htm

hope someone can help me out...,

willemijn

Hi, willemijn! I did not have time to be very thorough 'cuz there's a lot of code, but I didn't see anything wrong (but I'm not much of an HTML coder). I did notice that the page you are having problems with does have both

<INPUT TYPE="hidden" NAME="-find" VALUE="search">

<input name="-Find" type="submit" class="kleinzwart" value="search">

but I don't know enough to know if that's a problem or not. I know I've had false "file not found" errors that turned out to be fieldname related, though. I would suggest you make a barebones version of the page and see if you get the same problem and then go from there. Or maybe someone else will see something I did not.

--ST

  • Author

hello steve

thanks for your reply! Yes there is a lot of code there, also because my CSS did not show through linking to an external style sheet, so i ended up putting al the sylesheet code in the html/cdml page which I did not like to do but was the only way I could get it to show ... anyway, i will take your suggestion and test it. will keep you posted.

greetings

willemijn

  • Author

hi steve,

I noticed that after clicking 'search' on the concertlist searchpage gives the Javascript error message but clicking it right after for a 2nd time gives the desired result: the concertlisting for that particular artist....

steve, does that give you a clue?

I was testing the page on my local server and it works outside the frameset.... maybe the path is wrong? can you put a direct url in -format? like:

<INPUT TYPE="hidden" NAME="-format" VALUE="http://www.domain.com/searchConcerts.htm">

Ooo, JavaScript is not my forte but I've had problems that worked better by deleting some JavaScript, but that's probaby because of my lacking JS skills and not a FM/JS problem. As for -format, I'm fairly certain the page has to be in the Web folder (I think 6 also has cdml_format_folder or something, too, though)... I'm glad you're closer to figuring it out, though.

--ST

It seems to be working OK now smile.gif

I can search and I receive a listing.

Garry

  • Author

hi gary,

yes 'search' and 'catalogue' work fine, but it is 'concerts' that is not working and I am even using the same technique, that's why I do not understand it.

Browsing in Firefox and in IE still give the Javascript error message that format file cannot be found (and it is definitely there since it is the same page because it is an integrated search)...

In the topmenu the button 'concerts'refers to database nr2, 'search' and 'catalogue'& 'Channel shop' refer to database 1, might that be the problem? Should I have 'concerts' refer to database 1 instead(which has the same value list as database 2 to populate the drop down) and then perform the search/find via an InlineAction maybe?

Any ideas?

any help appreciated...

Try changing this:

<FORM ACTION="http://fmp2.channelclassics.net/channelclassics/FMPro" METHOD="post">

to this:

<FORM ACTION="FMPro" METHOD="post">

Sometimes I've even had to have the Action similar to this:

<FORM ACTION="/FMPro" METHOD="post">

or this:

<FORM ACTION="FMPro/" METHOD="post">

or this:

<FORM ACTION="/FMPro" METHOD="post">

<INPUT TYPE="hidden" NAME="-format" VALUE="/channelclassics/searchConcerts.htm">

or this:

<FORM ACTION="/FMPro" METHOD="post">

<INPUT TYPE="hidden" NAME="-format" VALUE="channelclassics/searchConcerts.htm">

Usually to busy to workout why! However, most of the time one combination will work.

Good Luck.

Garry

  • Author

hello garry,

thanks for your reply. tried your suggestion but does not help...: I suspect now having tried so many versions that it has something to do with the -view bit. I get to the searchpage through this url:

http://fmp2.channelclassics.net/channelc...nvoer&-view

then in the page is the form with a search button that refers to a different database and that works fine the 1st time you hit 'search' but the 2nd search it does not. I suspect now because there is no -view anywhere for the 2nd database as you search for the 2nd time, and I think that is why the format file(=same page) is not found...what do you think? but when i put in another hidden input name=-view in the form the search will not work the 1st time you hit submit... I hope you understand what I mean.. have any suggestions on how to this? i have tried to work with tokens but cannot get it right. tried inline action but maybe my code was wrong. well I hope I can find a solution soon, my deadline for this site is coming near fast...

greetings

willemijn

I've had the same problems on another site frown.gif

Try this:

http://fmp2.channelclassics.net/FMPro?-db=ccr.fp5&-format=/channelclassics/searchConcerts.htm&-lay=invoer&-view


With this:


<FORM ACTION="http://fmp2.channelclassics.net/FMPro" METHOD="post">

...

<INPUT TYPE="hidden" NAME="-format" VALUE="/channelclassics/searchConcerts.htm">

It will make a difference to the relative path that FM/WebCompanion "sees".

Good Luck.

Garry

  • Author

hi garry,

tried it, no luck...:-(

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.