At 2008-12-05 08:47 +1100 Tim Mansour wrote:
Perform Script [ "find user's home layout, go to it and set layout
name & user ID in locals" ]
Rowland how do you "find user's home layout"? Might there be
something in that script which is taking the user to the wrong
layout?
Tim - thanks for your question. Here's the script:
Set Variable [ $user_account; Value:locals::g_user_account ]
Go to Layout [ "users_all_fields" (users) ]
Enter Find Mode [ ]
Insert Calculated Result [ users::user_fmp_account; $user_account ] [ Select ]
Perform Find [ ]
Set Field [ locals::g_user_ID; users::user_ID ]
Go to Layout [ users::user_home_layout ]
Set Field [ locals::g_home_layout; Get ( LayoutName ) ]
Enter Browse Mode
However, I don't think this is the problem area as the splash screen
disappears earlier in the process than when this script is called. I
think from memory of the layouts that are visible it is probably
during the first or second sub-script that it happens.
The first sub-script is:
Go to Layout [ "locals_all_fields" (locals) ]
Enter Browse Mode
Set Field [ locals::g_user_account; Get ( AccountName ) ]
Set Field [ locals::g_user_name; Get ( UserName ) ]
Commit Records/Requests [ No dialog ]
Go to Layout [ original layout ]
I wonder if it is something to do with the Commit Records step - but
why should any given script step work differently on different
machines?. This particular machine did seem to be rather slower on
disc accesses than the other 2 (which, remember, worked as desired),
so I wonder if it has something peculiar that happens when the disc
is written to.
It's certainly easy enough to temporarily disable that step and see
if it affects the behaviour when I next visit that user. I think I
only put it in as a belt-and-braces precaution rather than out of
necessity. I don't have a Windows machine handy to test on locally.
regards
Rowland
--
| Wilma & Rowland Carson http://home.clara.net/rowil/
| <[EMAIL PROTECTED]> ... that's Rowland with a 'w' ...