Workbench User Guide : 16. Managing and Deploying Applications : How You Can Generate Reports for Applications and Components : Document Imaged Applications Using the QueryImage Utility
 
Share this page                  
Document Imaged Applications Using the QueryImage Utility
The QueryImage utility produces a report containing the following information about a binary image file:
The name and properties of the application in the file (and any included applications)
The names and properties of the components in each application
The easiest method of accessing the QueryImage utility is from the Develop tab.
To use the QueryImage utility
1. Click the Develop tab.
2. Click Project, Query.
The Query Image File dialog appears.
3. Select the image file you want to query, and set parameters.
See the descriptions for each of these parameters in Parameters for the QueryImage Utility.
4. Click Go.
Note:  QueryImage can be accessed from the Start menu or command prompt as described in Command Line Method for Documenting an Application Image.
Parameters for the QueryImage Utility
You can specify the following parameters using the Query Image File dialog:
Input File
Specifies the name of the image file. Click Browse to display a standard File Selection dialog.
Output File
Specifies the name of file to which the report is to be written. Click Browse to display a standard File Selection dialog.
Log Path (-L)
Specifies the name of a log file. This entry field can be used only if Execute in Background is enabled and Trace Window is set to Yes. If the log path specified is not a full path, the file is created in the ingres\files directory.
Trace Window (-T)
Lets you control display of the Trace window by entering one of the following values:
All
Specifies that the Trace window does appear
Yes
Specifies that the Trace window appears but suppresses informational messages output by the system
Yes (Minimized)
Specifies that the Trace window appears minimized as an icon
No
Specifies that the Trace window does not appear, and a log file is not created
Note:  This entry field can be used only if Execute in Background is enabled.
Append to Log File (-A)
Appends the trace output of the current command to the end of the existing error log file. Otherwise, that log file is replaced. This entry field can be used only if Execute in Background is enabled.
Note:  The error log file, w4gl.log, is located in %USERPROFILE%\AppData\Local\OpenROAD\Profiles\installation_ID. If the -L flag is passed, a new name and location can be provided for the OpenROAD log file.
Execute in Background
Begins a new process while you are using this utility.
If enabled, Execute in Background makes Username, Log Path, Trace Window, and Append to Log File available for use.
Note:  You can set defaults for this utility using the Set Tool Defaults dialog. see Set Defaults.
Command Line Method for Documenting an Application Image (QueryImage)
To generate a report on an application image, start the QueryImage utility by entering the following command at the command line:
w4gldev queryimage imagefile outfile [-nowindows] [-Lfilename]
          [-T{yes|yes,min|yes,logonly|all|all,min|all,logonly|no}] [-A]
The following parameters and flags are available from the command line:
imagefile
Specifies the name of the image file
outfile
Specifies the name of the file to which the report is to be written
-nowindows
Lets the application run without the window manager running. This option does not provide full batch mode execution, because some interaction with the application still may be required through the Trace window.
-Lfilename
Specifies the name of a log file. If the log path specified is not a full path, the file is created in the %II_SYSTEM%\ingres\files directory.
-T
Controls the display of the Trace window by entering one of the following values:
yes
Specifies that the Trace window appears but suppresses all informational system messages
yes,min
Specifies that the Trace window appears minimized as an icon, and all informational system messages are suppressed
yes,logonly
Specifies that the Trace window does not appear, but all messages are saved in a log file without informational system messages
all
Specifies that the Trace window does appear and all messages are written
all,min
Specifies that messages are written to the Trace window, which appears minimized as an icon
all,logonly
Specifies that the Trace window does not appear, but all messages are saved in a log file
no
Specifies that the Trace window does not appear, and no log file is created
-A
Appends the trace output of the current command to the end of the existing error log file.
Note:  The error log file, w4gl.log, is located in %II_SYSTEM%\ingres\files.
An exit code of zero (0) means success; a non-zero exit code indicates an error.