hartmut Posted January 18, 2008 Posted January 18, 2008 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
Raybaudi Posted January 18, 2008 Posted January 18, 2008 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[]
comment Posted January 18, 2008 Posted January 18, 2008 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/
Raybaudi Posted January 19, 2008 Posted January 19, 2008 And also: http://fmforums.com/forum/showtopic.php?tid/192607/ Oh, a real "random" lover !
LaRetta Posted January 19, 2008 Posted January 19, 2008 Either that or someone who isn't getting what is wanted and doesn't say so, so keeps posting about it!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now