Newbies Marc Bruvry Posted August 14, 2007 Newbies Posted August 14, 2007 I'm sure this has been a past post, so if anyone can point me in the right direction... I would like to have a history of the last 5 or 10 records so that if interupted, one could go back to the previous record that they were working on... Thanks, -Marc
Ender Posted August 14, 2007 Posted August 14, 2007 There are different ways to do this, but perhaps the most clever I've seen is in Ray's Retrace Steps demo, which does it using a global variable. Check it out (I think it will work in 8.0) http://www.nightwing.com.au/FileMaker/
MarkWilson Posted August 14, 2007 Posted August 14, 2007 Are you looking for a scripted button to restore the records? A simplified version may look like: Required fields: TheTable::ModifiedTimestampField TheTable::ModifiedTimestamp Freeze Window Enter Find Mode Set Field[ TheTable::ModifiedByField; Get( UserName )] Perform Find Sort Records[ TheTable::ModifiedTimestampField ] If[ Get( FoundCount ) > 10 Go to Record[ 11 ] Omit Multiple Records[ Get( FoundCount ) -10 ] End If
Newbies danilo7 Posted July 18, 2011 Newbies Posted July 18, 2011 Hello everyone, i am a newbie on FM Pro and i ran into this example while i was googling, i was trying to use the Nightwing demo in my db solution to get the BACK button, but i am stuck on some concepts. How does the example create the history string in the $$StepTrace global variable? How is it updated with every click? I can't find any instruction who does that in the scripts (Retrace or Start) Can u guys help me figuring that out?? Thanks in advance Danilo Edit1: I think it has something to do with the NewLog variable that i can't find where it's defined during the record change
brian rich Posted August 23, 2012 Posted August 23, 2012 If you examine the layouts, you'll see that a block at the bottom left beside the navigation buttons which says Record xx of yy total. This text is actually being generated in a web viewer object. Look at the custom 'url' in the web viewer and you'll see where $$steptrace gets updated as part of a long 'Let' function definition. If you don't want to use it this way, then you can replace the HTML at the end of the let function with a null text string, and reduce the webviewer obejct to something very small, a few pixels square. Just put it on all the layouts you want to be able to retrace through and it should work OK HTH Brian
Recommended Posts
This topic is 4473 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 accountSign in
Already have an account? Sign in here.
Sign In Now