Saves the current screen as an nl file.
App.ActiveForm.Save(filePath)
Newlook Smartclient only.
Introduced in Version 11.0.10.
filePath- (String, Required)
String value specifying the name (and optional path) of the file to be saved.
The path specified can be absolute or relative to the default Newlook solution folder.
If no file extension is specified in the filePath parameter, this method will add an '.nl' extension to the file. If an extension other than '.nl' is specified, it will be retained however '.nl' will be appended to the end of the file name (for example, 'errorScreen.txt' will become 'errorScreen.txt.nl').
If the file specified already exists, the existing file will be replaced.
This method provides users with a mechanism to save the current screen as an nl file, without a dialog appearing.
This method cannot be used to save Added forms or OpenDSPF forms. Calling the Save method on one of these screens will return an empty string.
This method returns the final file path of the saved file. Any exception during this save action will generate a runtime error.
The following script saves the current screen as the file 'myScreen.nl' in the folder C:\NL Files.
function SaveScreen()
{
var savedFilePath = App.ActiveForm.Save("C:\\NL Files\\myScreen.nl");
}
The following script saves the current screen as an nl file, where it's name is derived from the current active form caption. The file will be saved in the default Newlook solution path.
function SaveScreen()
{
var screenName = App.ActiveForm.Caption;
var savedFilePath = App.ActiveForm.Save(screenName);
}
The following macros uses the RunMethod action to save the current screen as the file 'ErrorScreen.nl' in the default Newlook solution path.
RunMethod(App.ActiveForm, Save, "ErrorScreen", vSavedFilePath)
Working offline with nl files | CaptureScreen method | Err object
© 2004-2021 looksoftware. All rights reserved.