I do like the idea of being able to track changes. I would like to add the current record into the stack. You stated this should be easy enough to do.
But could you please point me in the right direction.
Here is what I thought of
Create a custom function that returns the current record ID
add this function into the trigger layout_state (but how)
and then?
add a line to the log function like:
changed = SeedCode_GetValue ( topofstack ; "RecordNumber" ) ≠SeedCode_GetValue ( navaddress ; "RecordNumber")
I'm stuck here, so any help would be much appreciated.
(FMP 9A, win XP)
Adding record changes
5 posts
• Page 1 of 1
Posts: 2
Joined: Wed Jan 23, 2008 12:43 am |
|
![]()
Posts: 2493
Joined: Thu Nov 20, 2003 11:01 am |
Definitely on the right track. Adding the record number is pretty straight forward, but it rubs against adding the found set: which is not simple or, indeed, practical.
Adding the actual record to the stack works well unless the found set changes. If it does, then the script doesn't take you back to the right record. So, I've added a test that only attempts to navigate to the right record when the current found set matches the found set at the time the stack was recorded. This is OK, but you might try it with and without this in place to see which feels more natural to your users. So, here are the changes you'll make to add the current record to BackMagic: 1. Edit the custom function "SeedCode_BackMagic_LayoutState" Replace this...
...with this:
2. Edit the custom function "SeedCode_BackMagic_Log" After this...
...add this:
3. Edit the script "Back FWD ( Direction )" Right before the "adjust status area" comment, add the following:
That's it! John Sindelar
SeedCode LLC |
Posts: 2
Joined: Wed Jan 23, 2008 12:43 am |
John,
Thanks very much for your clear reply. I will test it and see if it works for my users. Keep well, Ursus |
![]()
Posts: 2493
Joined: Thu Nov 20, 2003 11:01 am |
Seems like custom validation message: I'd check the field validation or the running script to see under what conditions that dialog comes up.
John Sindelar
SeedCode LLC |
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest

