Jump to content
Server Maintenance This Week. ×

On-line examination system--Randomly copy some records from another table?


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

Recommended Posts

Hi,

I try to write an on-line examination system. In this system, I have an item store table, which hold all tests item for student. Once the student create new examination, the system should copy some records from the store (for example, 2 of 3) randomly for this examination. How can I to define the relationship?

Sample file is attached.

Thanks in advance.

Exam_2007.zip

Link to comment
Share on other sites

Without looking at your file (cause I can't be bothered, sorry!) I could suggest the following:

You need two relationships: the first lists all possible questions. Use it to generate a value list of primary keys. Using some nifty string functions, randomly pull the two or three values from the value list and put them paragraph delimited into a global field as a multi-key, and use this multi-key in the second relationship.

The random records will be displays in creation order. To randonly sort them, create an unstored number calc field with the function "Random" in the questions file and specify the portal to sort by this field.

Link to comment
Share on other sites

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