Yes, I've done this by opening a new window (Name your window)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Go To Layout[#34 Full list)
Perform Find[Restore]
Go to Record/Requiest/page[First]
Loop
    Set Variable[$record; Value:Get(recordNumber)]
    Set Variable[$name;Value:table::Name]
    Set Variable[$info;Value:tab;e::info]
    Set Varialbe[$$G_name_info;Value:$name & " " & $info]
OPEN NEW WINDOW(Window name)
    Perform Script["#261 New_record";Parameter:$$G_name_info]
CLOSE WINDOW(Window name) (YOU SHOULD BE ON THE RECORD YOU WERE BEFORE THE 
SECOND SCRIPT STARTED
      Go to record/request/page[Next;exit after last]
end loop;
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Sabenah K. Casey, Associate Court Clerk
Network Center - Database Division
New York State Supreme Court
100 Centre Street   Room 1131
New York, New York  10013
TEL (646) 386-3940
[EMAIL PROTECTED]

>>> Bruce Herbach <[EMAIL PROTECTED]> 2:48 PM 9/21/07 >>>
I'm working on a set of scripts that find a set of records, step 
throught the found records, parse out some information and send the 
parsed information to another script.  When the external script ends I 
have to reselect the layout for the first script, and reposition  my 
record pointer to the record I was at prior to starting the  external 
script.  See the example below.

Is there a way to call an external script and have FM save the current 
layout and record with out having to do it manually as in the script 
segement?  My attempts at doing this with out the restoration of the 
layout, find and record pointer  end up with the external script only 
being called once. 

Go To Layout[#34 Full list)
Perform Find[Restore]
Go to Record/Requiest/page[First]
Loop
    Set Variable[$record; Value:Get(recordNumber)]
    Set Variable[$name;Value:table::Name]
    Set Variable[$info;Value:tab;e::info]
    Set Varialbe[$$G_name_info;Value:$name & " " & $info]
    Perform Script["#261 New_record";Parameter:$$G_name_info]
    Go to Layout(#34 Full list)
    Perform Find[restore]
    Go to record/request/page[no dialog;$record]
    Go to record/request/page[Next;exit after last]
end loop;


Thanks
Bruce

Reply via email to