Create a shortcut you can click to have GainSeeker automatically open a Desktop. This can also include changing part numbers, filters, and date ranges. GainSeeker can additionally execute tasks such as printing, exporting, and closing the desktop.
This topic applies to desktops in the GainSeeker Charts module. For information on opening Desktops in Legacy charting modules, see Parameters to open a desktop.
Contents [Hide] |
Include only parameters in the command line that you want GainSeeker to automatically execute.
For example, if you want to a create a shortcut in which GainSeeker opens a desktop and leaves it open on the GainSeeker Charts window, you would not include the ExportType= or the Close parameter. If you do not want GainSeeker to open a dialog where you can make changes to the desktop before it opens, do not include the Prompt command.
Replace words and characters shown in italics with the name of the item you want to open and enclose the name with quotation marks as shown in the table.
For example, standard P-123 Length would be written like this with the Keys= parameter: Keys="P-123 Length"
Insert a blank space between parameters in the command line, similar to this example:
OpenType=0 OpenList="Desktop123" ExportType=Printer Close
The Additional command line parameters field on LaunchPad is highlighted in the following example. Also see Setting up shortcuts to perform automatic functions
The parameters for command lines shown in the following table are suggestions for ways you might use parameters to formulate your commands. There are other combinations you can use that are not featured here.
Note: To have GainSeeker prompt you for a standard, date range, filter, statistics filter, or a combination of these, add the Prompt parameter to the command. See Prompt
To have GainSeeker automatically: |
Add to target line: |
Notes |
OpenType=0 |
The 0 character in the command line OpenType= 0 is the number zero |
|
|
Open="Desktop Name" |
|
|
keys=spc:"partno" |
|
|
keys=dmsmult:"partno||process~partno||process~process" |
You can also combine different retrieval types in a single argument. See Desktop with charts below for more examples and information on picking part numbers and/or processes for charts on desktops. |
|
filter=dms:"filtername",spc:"filtername" |
You can also choose to have a command for either an SPC or DMS retrieval. For example, filter=dms:"filtername" Separate DMS and SPC filters with a comma |
|
daterange=1,"1/2/2013 13:45:00-1/5/2013 15:50:00" |
For examples and codes see Setting a date range for charts on a desktop below. |
|
|
|
|
ExportType=Printer |
|
|
ExportType=HTML |
|
|
ExportType=Email |
|
|
ExportType=EmailHTML |
|
|
ExportType=PowerBI |
Only available with GainSeeker Publish. See Power BI parameters. |
|
Export="filename" |
|
|
Export="emailaddress" |
Only available with GainSeeker Publish. See ExportList= to specify a list of email addresses. |
|
View |
See View below |
|
Silent |
|
|
Close |
|
To have GainSeeker automatically: |
|
|
|
If the GainSeeker Charts module is minimized, dashboard images cannot be correctly exported.
If you use ExportType=Email or EmailHTML or HTML or Printer, GainSeeker creates the export file in your Windows TEMP path. This parameter is used to tell GainSeeker only the type of export to execute. If you select Printer, you do not need to additionally use the Export= parameter.
ExportType=Email
and ExportType=EmailHTML
will only send email if you have GainSeeker
Publish.
These parameters do not tell GainSeeker to direct the email to a specific
recipient. See the Export=
parameter below for information about sending the item to a specific
email recipient or the ExportList=
parameter for information about sending the item to a saved file listing
multiple email recipients.
When emailing charts, the email subject line will be the chart window
caption for the last chart drawn.
The difference between Email
and EmailHTML
is that EmailHTML
does not include attachments. Both formats include charts in the body
of the email message.
If you use ExportType=Printer, you can also use the following parameters to set the orientation and layout:
Orientation: use DesktopPrintOrientation=L (for Landscape) or DesktopPrintOrientation=P (for Portrait)
Layout: use DesktopPrintLayout=1 (1 Chart with Text), 2 (1 Chart per page), 3 (2 Charts per page), 4 (3 Charts per page), 5 (4 Charts per page), or 6 (6 Charts per page).
For ExportType=PowerBI, see Power BI parameters.
If you use Export="filename" and have
GainSeeker Publish, GainSeeker
exports the desktop to the path and filename you specify (for example:
Export="Q:\reports\PN422.charts.htm").
Valid filename extensions are .htm,
.rtf, .jpg,
and .txt.
If you do not have GainSeeker Publish, GainSeeker ignores the file
path and file name you specify, and a file of the specified type is
automatically created in your Windows TEMP path.
If your ExportType= is email, enter a valid email address for a single recipient after Export= (for example: Export="gainseeker@yahoo.com"). For multiple recipients, use ExportList= instead.
To send the item specified in the Open= and OpenType= parameters to multiple email recipients:
Fig. 1
Use the ExportType=Email parameter followed by the ExportList="filename" parameter. Include the name of the file you created that lists your email recipients, and include the path to that file.
Example: The parameters for emailing an item to a list of email names saved in a file as in Figure 1 above, would read similar to this (the location of the file name in this example is "c:\Users\bob\desktop\" and the file name is "email recipients list for PN61011.txt"):
ExportType=Email ExportList="c:\Users\bob\desktop\email recipients list for PN61011.txt"
(This would send emails to John, Betty, and Joan using the above example.)
Using the command line to send data to Power BI requires GainSeeker Publish.
If ExportType=PowerBI, you must use additional Power BI Account parameters:
PowerBIAppClientID=your_Application_Client_ID
PowerBIUsername=your_PowerBI_login_email
Please Note:
If your Power BI Account uses multi-factor authentication, you will
be prompted for your Microsoft login credentials once per GainSeeker
Charts session (unless your computer is already logged in to the Power
BI service). This may prevent you from running this command line unattended.
PowerBIPassword=your_PowerBI_login_password_encrypted
If your Power BI Account uses log in with password / single sign-on
(instead of multi-factor authentication), you should include this
parameter. Otherwise you will be prompted to enter a password.
Use the Password
Encryption utility to get the encrypted version of your Power
BI login password.
The encrypted password is a very long value, and
the resulting command line will be longer than the character limit
for a shortcut Target or Windows
Run window. To run this command
line, place the entire command line string into a Windows batch file
and then use the shortcut Target
or Windows Run window to run
this batch file.
You can also include these optional parameters:
PowerBIDataset=your_Dataset_name
This specifies the Power
BI Dataset where you want to send the data.
If not used, GainSeeker will use the default dataset name for each
chart. (You can manually send the chart to Power BI to find this default
dataset name.) This is the recommended choice for a desktop with both
SPC and DMS charts, because specifying a dataset name (in append mode)
would add both types of data to one Power BI dataset which can be
confusing.
PowerBIAppend=option_number
This sets the Existing
dataset behavior.
For Add data to existing data,
you can omit this parameter or set this to 1.
For Replace existing data,
set this to 2.
Add the View parameter to your command line to have GainSeeker use Windows to launch the file executed by the ExportType= or the Export= parameter using the program that is associated with that file type.
If you want GainSeeker to open a dialog where you can make changes to the desktop (part numbers or processes, filters, and date periods, a retrieval) before it opens each time, include the Prompt parameter.
Including the Prompt command in your command line opens the Edit Desktop Settings dialog before the desktop opens.
Example:
The following example would prompt GainSeeker to first open the Edit Desktop Settings dialog before opening the specified desktop. Opening the dialog allows you to make changes to the specified desktop before it opens.
OpenType=0 Prompt Open="desktop1"
Between your "Part Number" name and your "Process" name, you need to insert double pipe symbols like this: ||
Hold the SHIFT key and press the Pipe/backslash key (shown below) twice to create double pipes:
All single-retrieval and/or multiple-retrieval charts on a desktop display the part numbers specified in command line arguments for the desktop. When a key is specified for a chart category (SPC or DMS multiple or single charts), that key is applied to all charts in that category for the desktop.
Note about DMS Retrievals: When using keys for DMS charts in a desktop, any DMS chart that originally retrieved a list of processes is blank when both a part number and a process is specified in the keys. Additionally, any DMS chart that originally retrieved a list of part numbers and processes is blank when only a process is specified by the keys.
Format for a desktop with single-retrieval DMS and/or SPC charts
keys=dms:"partno||process" or keys=dms:"process"
Example: keys=dms:"K-GLOVE||T-SEWING" or keys=dms:"T-SEWING"
keys=spc:"partno"
Example: keys=spc:"1250 TEMP"
Format for a desktop with multiple-retrieval DMS and/or SPC charts
keys=dmsmult:"partno||process~process~partno||process"
Example: keys=dmsmult:"D-34KW CONNECTOR||P-MOLDING~E-34KB COVER||P-PRINTING"
(Note: In the above example, a tilde (~) symbol is used a separator between part numbers and processes.)
keys=spcmult:"partno~partno"
Example: keys=spcmult:"1250 TEMP~1400 TEMP"
(Note: In the above example, a tilde (~) symbol is used a separator between part numbers.)
Format for specifying more than one retrieval type in a single command
keys=spc:"partno",dmsmult:"partno||process~partno||process"
Example: keys=spc:"1250 TEMP",dmsmult:"K-GLOVE||T-SEWING~E34KB COVER||P-PRINTING"
Use the daterange parameter
to filter all charts on a desktop by a specific date period you specify.
For more information on filtering by a date period, see Calendar
and Dates.
For this date period |
Specify |
|
Default low date to today |
daterange=0 |
|
Fixed range |
daterange=1,"mm/dd/yyyy HH:nn:ss-mm/dd/yyyy HH:nn:ss"
Note: GainSeeker uses your workstation's regional settings (Short date) to identify the year, month and day. Note: The maximum end time for a date range is 23:59:59. If you set it 24:00:00 or higher, GainSeeker retrieves data through the current date and time, regardless of the year set for the date period. Examples: when Windows regional settings use month/day/year: daterange=1,"03/22/2012 11:46:00-03/22/2012 22:46:00"
when Windows region settings use year/month/day: daterange=1,"2012/03/22 11:46:00-2012/03/22 21:46:00" |
|
All dates |
daterange=2 |
|
Current |
Shift |
daterange=3,0,19 |
Day |
daterange=3,0,0 |
|
Week |
daterange=3,0,1 |
|
Month |
daterange=3,0,2 |
|
Quarter |
daterange=3,0,3 |
|
Year |
daterange=3,0,4 |
|
Previous |
Shift |
daterange=3,1,19 |
Day |
daterange=3,1,0 |
|
Day (with data) |
daterange=3,1,16 |
|
2 days |
daterange=3,1,17 |
|
7 days |
daterange=3,1,18 |
|
Week |
daterange=3,1,1 |
|
Month |
daterange=3,1,2 |
|
Quarter |
daterange=3,1,3 |
|
3 Months |
daterange=3,1,5 |
|
6 Months |
daterange=3,1,6 |
|
Year |
daterange=3,1,4 |
|
Sunday |
daterange=3,1,9 |
|
Monday |
daterange=3,1,10 |
|
Tuesday |
daterange=3,1,11 |
|
Wednesday |
daterange=3,1,12 |
|
Thursday |
daterange=3,1,13 |
|
Friday |
daterange=3,1,14 |
|
Saturday |
daterange=3,1,15 |
|
Ending Today |
daterange=3,2,7 |
|
Week |
daterange=3,2,1 |
|
Month |
daterange=3,2,2 |
|
6 Months |
daterange=3,2,6 |
|
Quarter |
daterange=3,2,3 |
|
Year |
daterange=3,2,4 |
|
Ending Now |
daterange=3,3,7 |
|
24 hours |
daterange=3,3,8 |
Use
this |
To: |
0 |
Open Desktop |
0 |
Open Multiple Desktops |
1 |
Draw SPC Chart |
2 |
Draw DMS Chart |
3 |
Open Dashboard |