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.

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

Featured Replies

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

  • Author

Sorry for uploaded wrong sample file.

Here's the right one.

Exam_Temp.zip

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.

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.