When you open up your second file, use a Script parameter to pass on whatever kind of information you need to your second file. There are several Custom Functions that handles several Script Parameters so that you can send over plenty of information to your second file. Then in the script your run to open up your second file, you just use Get(ScriptParameter) to get the information and then parse out information to whatever field you need
2 Options come to ind:
If you define an external data source to the first file in Manage | Database of the second file, you can directly access all data in the first file from the context of the second.
If you use a perform script step in a script in the first file to perform a script in the second file, this one step can both open the second file and also pass data from the first file in a script parameter to the second file.
While a $$variable is global, it's still only global to the file it has been defined in, not the entire environment.
As has been suggested before, you could use a script parameter to pass your data.
In the first script, use
Perform Script [ aScriptInTheSecondFile ; parameter: Trip Sheet::Heater Hobbs ]
and in aScriptInTheSecondFile, use
Set Field [ Table::Lfuelin ; Get ( ScriptParameter ) ]
A Global Field and a Global Variable are both just for 1 (one) file.
In the script you are opening up your other file with, you need instead of running Script Step Open File, you need to run a script with Script Step Perform Script in the other file. Then add Script Parameter to send over to that file
Then in your other file, in the script that your started from your first file you do
Thank you so much