Jump to content

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

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted

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.

Posted

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

Posted

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.

Posted

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

This topic is 7861 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.