Jump to content
Server Maintenance This Week. ×

Randomizing


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

Recommended Posts

  • Newbies

hello

i am writing a webpage of questions, accessed from filemakerpro, but each time the page is accessed, i would like a different situation, also from the database, to appear at the top of the page. Is there anyway i can do this randomly?

thanks,

kim

Link to comment
Share on other sites

quote:

Originally posted by kimkhanh:

hello

i am writing a webpage of questions, accessed from filemakerpro, but each time the page is accessed, i would like a different situation, also from the database, to appear at the top of the page. Is there anyway i can do this randomly?

thanks,

kim

Assuming that each of your situations are in a different record of a database, you could use FileMaker to script the chosing of a random record within the database, set the information from that random record to a global.

Then when your action is run from the web site, use the -Script command to run the script and have the global field show up somewhere on your format page.

Chuck

Link to comment
Share on other sites

  • 2 weeks later...

If you only want to serve people one question at a time, use the -findany action.

----

I just reread your question, and it seems you want to have two different parts of a database to appear on the same web page (or something similar).

Basically this cannot be done unless you use frames. I hate frames and usually avoid them, but this is one instance where they are useful.

[This message has been edited by Vaughan (edited October 10, 2000).]

Link to comment
Share on other sites

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