January 2, 200422 yr Using the script below displays the Delete Record dialog before going to the Residence layout. Why? How can I go to the layout first then display the Delete Record dialog? Set Field["gUserID", "Find User::UserID"] Go to Related Record ["gUserID"] Go to Layout ["Residence"] Delete Record/Request[]
January 2, 200422 yr Try adding a "Refresh Window" command between "Go To Layout" and "Delete Record." Steve Brown
January 3, 200422 yr Hmmn... Actually, you don't need an extra command to do this. Just sele3ct the Go To Layout [ ] script step, then enable the checkbox option (which will appear at the bottom of the ScriptMaker dialog) which is labelled 'Refresh Window'. You will then have the sequence: Set Field["gUserID", "Find User::UserID"] Go to Related Record ["gUserID"] Go to Layout [Refresh, "Residence"] Delete Record/Request[] The inclusion of the Refresh parameter within the existing Go to Layout step will make all the difference.
Create an account or sign in to comment