Background: The View Button

The view image path, image subfolder and script options maintained in System Options Maintenance - Help and Other Path Options determine the behavior of the View button that is available in many maintenance and inquiry programs.

View can simply display an image or additional information about a record. The name of the image must be the same as the master file record (e.g., item number, customer number, etc.) plus an image type suffix that matches the Image type specified in the master record.

Alternatively, View may involve calling a script to open up a web page. If you use the Qantel-supplied script, the script must reside in the View image path + subfolder specified. PowerShift programs will send the appropriate information (e.g. item number) to the script. If you enter a script in a subfolder field, select Script? to the right of the folder.

Examples

View image path

https://mydatabase.com/images/
http://mymachine/powershift/PSimages/

Item folder

psweb.php?

Script? Selected

 

 

Uses the Qantel-supplied script to launch a web page, passing the item number to it. See the Using Scripts heading below.

 

items/

Script? Blank

 

 

Opens an image file if it is found in the https://mydatabase.com/images/items/  path.

For example, If item number ABC-123 has jpg in the Image type field in Enterprise Item Maintenance, View opens a window with ABC-123.jpg displayed. The file name is case insensitive; i.e., ABC-123.jpg may be named abc-123.jpg.

Using Scripts

If you create a script for viewing, the following parameters are passed to it and may be used by the script:

 

Possible values

 

?type=

item

 

 

customer

 

 

vendor

 

 

salesrep

 

 

engdwr

 

 

employee

 

&ref

image name

Which may be one of the following:

 

 

  • item number

  • customer number

  • vendor number

  • sales rep number

  • ECO number

  • employee number

&db

The Data file directory (specified in System Options Maintenance - Enterprise Options).