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.

Displaying value list on my search page.

Featured Replies

Hi there,

Sorry for this. I'm very new to filemaker. I just start using it. I came upon a problem displaying the

value list (that I have defined in FM) on the web page. The CDML code I have is:

<SELECT NAME='classname' SIZE=1 >

<OPTION VALUE="">

[FMP-VALUELIST: classname, LIST=name]

<option [FMP-ValueListItem]>

[FMP-VALUELISTITEM]

[/FMP-VALUELIST]

</SELECT>

It does have a drop down menu but inside the menu it display [FMP-VALUELIST: classname, LIST=name] and [FMP-ValueListItem]>

[FMP-VALUELISTITEM] Am I missing something? Thanks for all your help.

Hi

Welcome to the forum!

The first thing to check is to make sure you are calling the search page correctly.

If you have just opened the page without calling it with the correct syntax then you will receive the page you described.

So for example when doing a search you need to call the page by entering into your address bar:

http://YourIpHere/FMPro?-db=YourDbNameHere.fp5&-lay=YourFMLayoutHere&-format=search.htm&-view

replace search.htm with the name of your search page if necessary.

Hope this helps, if not let us know.

Regards

Ed.

Hi, sai! I think EddyB's right. You probably have the valuelist trying to display on your first page... You have to tickle the Web Companion BEFORE accessing/using any db info to display. EddyB suggests doing it the URL. You can also do it with a META REFRESH intro page. Some kind of FM action has to occur (-find/-view/-new/-edit, etc.) before the info can be seen.

After the tickle, your CDML code should display the data instead.

--ST

In its simplest terms, in order to display data from a FMPro database file over the www, one first must establish a connection with that db file.

agree:

first check the HTML page in the browser to see if the search results mach your findings.

Then modify your code to fill a select box

Jitse

  • Author

Thanks for the responds. =)

Yea I was thinking I might need to load the -db 1st.

Is it possible to load the -db without that link?

For example, is there a code where I can just place on the HTML page and auto

loads the db. Because my main page is actually Search.html. If cant, I probably need to use a frame? but thx for all the responds. =)

Jim

Perhaps there is a more simple answer than that which I provided.

Since you have rephrased your question (Is it possible to load the -db without that link?") I will rephrase my earlier response so that it is to be hoped Clear To Even YOU!

no

Now go enjoy life.

Hi, Jim! My guess is you'll have to use a META REFRESH tag on an intro page that will auto-transfer people to your main page. The main drawback is a messy URL on your main page (CDML strings), but it should otherwise be OK.

<META HTTP-EQUIV="Refresh" CONTENT="7; URL=http://www.yoursite.com/main.html">

Hope this helps!

--ST

  • Author

Many Thanks Steve =)

Create an account or sign in to comment

Important Information

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

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.