Skip 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.

Best way to get random information from an unrelated table by calculation

Featured Replies

Hi

I have a table named "Information"

I have another table named "Quote"

I would like to bring in a random quote from the other table (Quote) into a field called "today" in the table "INformation"

I am always adding to the quotes so the number of records changes.

I would like to make a script to do this.

The problem is how to get this random from an unrelated table into the original table.

Just trying to find the best way to do this.

Thanks

dave

Hi

it remembers me something...

http://fmforums.com/forum/showtopic.php?tid/192539/post/278075/#278075

BTW:

Go to Layout ["Quote"(Quote)]

Set Variable [ $quote; Value:GetNthRecord ( Quote::quote ; Ceiling ( Random* Get ( TotalRecordCount ) ) )]

Go to Layout [original layout]

Set Field [ Information::today; $quote]

Commit Records/Requests[]

it remembers me something...

http://fmforums.com/forum/showtopic.php?tid/192539/post/278075/#278075

And also:

http://fmforums.com/forum/showtopic.php?tid/192607/

http://fmforums.com/forum/showtopic.php?tid/192149/

http://fmforums.com/forum/showtopic.php?tid/191993/

http://fmforums.com/forum/showtopic.php?tid/189073/

And also:

http://fmforums.com/forum/showtopic.php?tid/192607/

Oh, a real "random" lover !

Either that or someone who isn't getting what is wanted and doesn't say so, so keeps posting about it!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.