Skip to content

Latest commit

 

History

History
1204 lines (887 loc) · 48.4 KB

PriorityApp.md

File metadata and controls

1204 lines (887 loc) · 48.4 KB

Classes

Message
Form
Proc
ProcError

Functions

priorityReady(localJson)

Called when GWT has loaded and API can be used.

login(configuration, successCallback, errorCallback)

Initalization

formStart(form, onShowMessgeFunc, onUpdateFieldsFunc, dname, successCallback, errorCallback, autoRetrieveFirstRows)

Start a form. Should be called once for each form.

procStart(name, type, progressCallback, dname, successCallback, errorCallback)

Start a procedure/report.

Typedefs

LoginSuccessCallback : function
LoginErrorCallback : function
FormStartSuccessCallback : function
FormStartErrorCallback : function
SetActiveRowSuccessCallback : function
SetActiveRowErrorCallback : function
ChooseSuccessCallback : function
ChooseErrorCallback : function
SearchActionSuccessCallback : function
SearchActionErrorCallback : function
FieldUpdateSuccessCallback : function
FieldUpdateErrorCallback : function
SaveRowSuccessCallback : function
SaveRowErrorCallback : function
StartSubFormSuccessCallback : function
StartSubFormErrorCallback : function
GetRowsSuccessCallback : function
GetRowsErrorCallback : function
NewRowSuccessCallback : function
NewRowErrorCallback : function
EndCurrentFormSuccessCallback : function
EndCurrentFormErrorCallback : function
UndoSuccessCallback : function
UndoErrorCallback : function
DelRowSuccessCallback : function
DelRowErrorCallback : function
ClearRowsSuccessCallback : function
ClearRowsErrorCallback : function
SetSearchFilterSuccessCallback : function
SetSearchFilterErrorCallback : function
SetSimpleSearchFilterSuccessCallback : function
SetSimpleSearchFilterErrorCallback : function
ClearSearchFilterSuccessCallback : function
ClearSearchFilterErrorCallback : function
ActivateStartSuccessCallback : function
ActivateStartErrorCallback : function
ActivateEndSuccessCallback : function
ActivateEndErrorCallback : function
UploadFileSuccessCallback : function
UploadFileErrorCallback : function
GetFileUrlSuccessCallback : function
GetFileUrlErrorCallback : function
addTextSuccessCallback : function
addTextErrorCallback : function
isAliveSuccessCallback : function
isAliveErrorCallback : function
ProcSuccessCallback : function
ProcProgressCallback : function

This callback is used to update progress bar (called only when the procedure starts a program that reports progress). Note that if the procedure activates a process that doesn't report progress, or delays for other reason (for example: long running query), this callback WOULD NOT be called. So, it is recommended to use some action indicator always! Change it to a percentage indicator when this callback is called.

ProcErrorCallback : function
ProcOpenChooseCallback : function
ProcSearchActionCallback : function

Message

Kind: global class

message.message : string

Message text

Kind: instance property of Message

message.messagetype : string

Message type

Kind: instance property of Message

Form

Kind: global class

form.setActiveRow(row, onSuccess, onError)

Goto row.

Kind: instance method of Form

Param Type Description
row number Row number.
onSuccess SetActiveRowSuccessCallback called on success.
onError SetActiveRowErrorCallback called on error.

form.choose(fieldName, fieldVale, onSuccess, onError)

Open choose/search in specified field.

Kind: instance method of Form

Param Type Description
fieldName string Name of field (for example CUSTNAME).
fieldVale string Current value in field.
onSuccess ChooseSuccessCallback called on success.
onError ChooseErrorCallback called on error.

form.searchAction(action, searchText, onSuccess, onError)

Perform an action in search dialog.

Kind: instance method of Form

Param Type Description
action number One of: Next(1),Prev(2),TypeChange(3),TextChange(4),StartChange(5),IgnoreCaseChanged(6)
searchText string the text to search for.
onSuccess SearchActionSuccessCallback called on success.
onError SearchActionErrorCallback called on error.

form.fieldUpdate(fieldName, fieldValue, onSuccess, onError)

Update value in field.

Kind: instance method of Form

Param Type Description
fieldName string Name of field.
fieldValue string Current value in field.
onSuccess FieldUpdateSuccessCallback called on success.
onError FieldUpdateErrorCallback called on error.

form.warningConfirm(okCancel)

Confirm a warning message. After returning from the server this function calls 'onSuccess' / 'onError' function of the last API call.

Kind: instance method of Form

Param Type Description
okCancel boolean 1: ok, 0: cancel

form.saveRow(backToParentForm, onSuccess, onError)

Save changes in current active row.

Kind: instance method of Form

Param Type Description
backToParentForm number 0: stay in current row after save, 1: For Sub-Form only. go back to parent form and set active row to parent row.
onSuccess SaveRowSuccessCallback called on success.
onError SaveRowErrorCallback called on error.

form.startSubForm(formName, onShowMessgeFunc, onUpdateFieldsFunc, onSuccess, onError)

Starts a Sub-Form and sets the position of the active row to the first row of the Sub-Form.

Kind: instance method of Form

Param Type Description
formName string for example: ORDERITEMS.
onShowMessgeFunc object callback function for handling error and warning messages (If null the main form callback is called).
onUpdateFieldsFunc object callback function for handling field updates (If null the main form callback is called).
onSuccess StartSubFormSuccessCallback called on success.
onError StartSubFormErrorCallback called on error.

form.getRows(fromRow, onSuccess, onError)

Returns rows data of current form. Note: GetRows without a filter returns rows that have already been retrieved. It doesn't retrieve new rows.

Kind: instance method of Form

Param Type Description
fromRow number The position of the first row to be retrieved.
onSuccess GetRowsSuccessCallback called on success.
onError GetRowsErrorCallback called on error.

form.newRow(onSuccess, onError)

Opens a new row in the current form. Set the position of the active row to this row.

Kind: instance method of Form

Param Type Description
onSuccess NewRowSuccessCallback called on success.
onError NewRowErrorCallback called on error.

form.endCurrentForm(onSuccess, onError)

Exits the current form. On a Sub-Form sets the active row to the parent row.

Kind: instance method of Form

Param Type Description
onSuccess EndCurrentFormSuccessCallback called on success.
onError EndCurrentFormErrorCallback called on error.

form.undo(onSuccess, onError)

Undo unsaved changes in current row.

Kind: instance method of Form

Param Type Description
onSuccess UndoSuccessCallback called on success.
onError UndoErrorCallback called on error.

form.delRow(onSuccess, onError)

Deletes current row.

Kind: instance method of Form

Param Type Description
onSuccess DelRowSuccessCallback called on success.
onError DelRowErrorCallback called on error.

form.clearRows(onSuccess, onError)

Clear all rows in a top level form. Doesn't delete rows!

Kind: instance method of Form

Param Type Description
onSuccess ClearRowsSuccessCallback called on success.
onError ClearRowsErrorCallback called on error.

form.setSearchFilter(filter, onSuccess, onError)

Sets a search filter in top level form. Following calls to GetRows() function will use this filter until cleared or replaced by another filter.

Kind: instance method of Form

Param Type Description
filter Object the filter is an Object of the form:
 { 	or: (number),  ignorecase: (number), 	QueryValues: 	[{ 		field: (string), 		fromval: (string), 		toval:	(string), 		op:	(string), 		sort: (number), 		isdesc: (number), 	}, 	{ 		... 	}] } 	 or: 0: and, 1: or (operator to be used between ALL conditions). ignorecase: 0: case sensitive, 1: case insensitive. field: field name (for example: CUSTNAME) fromval: value toval: to value - if tovalue is not empty then condition is always: field >= fromval AND field <= toval, 					 if tovalue is empty, then condition is: field op fromval. op: one of "=", "<", "<=", ">", ">=", "<>" sort: 0: no sort, other value: position of field in ORDER BY. isdesc: 0: ASC, 1: DESC   Note: Filter MUST include all fields. Note: every field can appear only once in the filter. Note: The search is from the beginning of form field values.  		 values such as "100", the "" in the beginning will be ignored.   
onSuccess SetSearchFilterSuccessCallback called on success.
onError SetSearchFilterErrorCallback called on error.

form.setSimpleSearchFilter(filter, onSuccess, onError)

Sets a simple search filter in top level form. Following calls to GetRows() function will use this filter until cleared or replaced by another filter.

Note: The search is from the beginning of form field values. values such as "100", the "" in the beginning will be ignored.

Kind: instance method of Form

Param Type Description
filter string string to be searched for in the fields marked as search fields.
onSuccess SetSimpleSearchFilterSuccessCallback called on success.
onError SetSimpleSearchFilterErrorCallback called on error.

form.clearSearchFilter(onSuccess, onError)

Clears search filter for the top level form. Following calls to GetRows() will not use a filter.

Kind: instance method of Form

Param Type Description
onSuccess ClearSearchFilterSuccessCallback called on success.
onError ClearSearchFilterErrorCallback called on error.

form.activateEnd(onSuccess, onError)

Should be called after a direct activation (which runs in foreground) ends, In order to refresh form data.

Kind: instance method of Form

Param Type Description
onSuccess ActivateEndSuccessCallback called on success.
onError ActivateEndErrorCallback called on error.

form.uploadFile(fieldName, fieldValue, file, onSuccess, onError)

Upload a file in an attachment field to server.

Kind: instance method of Form

Param Type Description
fieldName string name of attachment field.
fieldValue string current value in attachment field.
file Object A File Object (This object can be obtained from a HTML tag in the page).
onSuccess UploadFileSuccessCallback called on success and progress.
onError UploadFileErrorCallback called on error.

form.cancelFileUpload()

Cancels current file uploading. After canceling te {UploadFileSuccessCallback}onSuccess callback is called from the 'UploadFile' request. The values of {ResultObj} result are : progress = -1 , isLast=1, file="".

Kind: instance method of Form

form.getFileUrl(filename, onSuccess, onError)

Translate attachment path to URL. For example: ../../system/mail/201611/enxjf/1.pdf ==> https://servername/primail/201611/enxjf/1.pdf

Kind: instance method of Form

Param Type Description
filename string the Attachment path.
onSuccess GetFileUrlSuccessCallback called on success.
onError GetFileUrlErrorCallback called on error.

form.saveText(text, addFlag, signatureFlag, secondaryLanguageFlag, onSuccess, onError)

add text to text form.

Kind: instance method of Form

Param Type Description
text string the new text to add (may be plain text or html).
addFlag boolean add new text to existing text (1), or add new text and delete existing text (0).
signatureFlag boolean Automatically add user signature (1). Don't add signature (0).
secondaryLanguageFlag boolean Signature in primary system language (0), or secondary system language (1).
onSuccess addTextSuccessCallback called on success.
onError addTextErrorCallback called on error.

form.isAlive(onSuccess, onError)

Check if form is alive.

Kind: instance method of Form

Param Type Description
onSuccess isAliveSuccessCallback called on success.
onError isAliveErrorCallback called on error.

Form.activateStart(ename, type, progressCallback, successCallback, errorCallback)

Start a Direct activation.

Kind: static method of Form

Param Type Description
ename string Name of procedure/report.
type string Type ("R" for report, "P" for procedure)
progressCallback ProcProgressCallback notify progress.
successCallback ProcSuccessCallback called on success.
errorCallback ProcErrorCallback called on error.

Proc

Kind: global class

proc.message(ok, successCallback, errorCallback)

Call after a message is approved or canceled.

Kind: instance method of Proc

Param Type Description
ok number 1: OK, 0: Cancel (If only one button can send either).
successCallback ProcSuccessCallback called on success.
errorCallback ProcErrorCallback called on error.

proc.reportOptions(ok, selectedFormat, successCallback, errorCallback)

Call after reportOptions step

Kind: instance method of Proc

Param Type Description
ok number 1: OK, 0: Cancel.
selectedFormat number selected format.
successCallback ProcSuccessCallback called on success.
errorCallback ProcErrorCallback called on error.

proc.reportOptions(ok, selectedFormat, pdf, successCallback, errorCallback)

Call after documentOptions step

Kind: instance method of Proc

Param Type Description
ok number 1: OK, 0: Cancel.
selectedFormat number selected format.
pdf number 1: PDF, 2: HTML.
successCallback ProcSuccessCallback called on success.
errorCallback ProcErrorCallback called on error.

proc.inputFields(ok, data, successCallback, errorCallback)

Call after inputFields step

Kind: instance method of Proc

Param Type Description
ok number 1: OK, 0: Cancel.
data Object Input fields data (JSON):
 { 		EditFields: [ 		{ 			field: (number) - field ID 			value: (string) - field value 			op:	(number) - operator ID 			value2: (string) - value2 			op2: (number) - operator2 ID 		} 		... 		] } 
successCallback ProcSuccessCallback called on success.
errorCallback ProcErrorCallback called on error.

proc.inputOptions(ok, selection, successCallback, errorCallback)

Call after inputOptions step

Kind: instance method of Proc

Param Type Description
ok number 1: OK, 0: Cancel.
selection number selected option ID.
successCallback ProcSuccessCallback called on success.
errorCallback ProcErrorCallback called on error.

proc.inputHelp(ok, successCallback, errorCallback)

Call after inputHelp step

Kind: instance method of Proc

Param Type Description
ok number 1: OK, 0: Cancel.
successCallback ProcSuccessCallback called on success.
errorCallback ProcErrorCallback called on error.

proc.continueProc(successCallback, errorCallback)

Call after every other step

Kind: instance method of Proc

Param Type Description
successCallback ProcSuccessCallback called on success.
errorCallback ProcErrorCallback called on error.

proc.cancel(successCallback, errorCallback)

Cancel procedure.

Kind: instance method of Proc

Param Type Description
successCallback ProcSuccessCallback called on success.
errorCallback ProcErrorCallback called on error.

proc.choose(fieldId, value, data, successCallback, errorCallback)

Open Choose or Search.

Kind: instance method of Proc

Param Type Description
fieldId number ID of field.
value string current value in field.
data Object Data in all fields (Choose/Search may be dependent on other fields values).
 { 		ChooseFields: [ 		{ 			field: (number) - field ID 			value: (string) - field value 		} 		... 		] } 
successCallback ProcOpenChooseCallback called on success.
errorCallback ProcErrorCallback called on error.

proc.searchAction(fieldId, value, action, data, successCallback, errorCallback)

Perform action in search dialog.

Kind: instance method of Proc

Param Type Description
fieldId number ID of field.
value string current value in field.
action number One of: Next(1),Prev(2),TypeChange(3),TextChange(4),StartChange(5),IgnoreCaseChanged(6)
data Object Data in all fields (Search may be dependent on other fields values).
 { 		ChooseFields: [ 		{ 			field: (number) - field ID 			value: (string) - field value 		} 		... 		] } 
successCallback ProcSearchActionCallback called on success.
errorCallback ProcErrorCallback called on error.

ProcError

Kind: global class

procError.type : string

type of error ("NotSupported" / "ServerBusy" / "Error")

Kind: instance property of ProcError

procError.text : string

Error text

Kind: instance property of ProcError

priorityReady(localJson)

Called when GWT has loaded and API can be used.

Kind: global function

Param Type Description
localJson json Local Json configuration file.When calling PriInit another file can be loded from a different place.

login(configuration, successCallback, errorCallback)

Initalization

Kind: global function

Param Type Description
configuration Object Configuration Object of the form:
 { 	url: (string),  tabulaini: (string), 	language: (number),  company: (string),  appname: (string),  username: (string),  password: (string),  devicename: (string) } 	 url: URL to Priority WCF service without the "wcf/wcf/service.svc" part. tabulaini: tabula.ini file name. language: language number. company: The name of the company in Priority. appname: Application Name - (Can be accessed in form triggers using form variable :FORM_APP_NAME) username: Username. password: Password. devicename: Name of device (additional information that is logged in the connection log). 
successCallback LoginSuccessCallback called on success.
errorCallback LoginErrorCallback called on error.

formStart(form, onShowMessgeFunc, onUpdateFieldsFunc, dname, successCallback, errorCallback, autoRetrieveFirstRows)

Start a form. Should be called once for each form.

Kind: global function

Param Type Description
form string Name of form.
onShowMessgeFunc object callback function for handling error and warning messages.
onUpdateFieldsFunc object callback function for handling field updates.
dname string name of company in which form is started.
successCallback FormStartSuccessCallback called on success.
errorCallback FormStartErrorCallback called on error.
autoRetrieveFirstRows number 1: after starting the form, first rows are retrieved. else: this function only starts the form.

procStart(name, type, progressCallback, dname, successCallback, errorCallback)

Start a procedure/report.

Kind: global function

Param Type Description
name string Name of procedure/report.
type string Type ("R" for report, "P" for procedure)
progressCallback ProcProgressCallback notify progress.
dname string company name in which the procedure should run.
successCallback ProcSuccessCallback called on success.
errorCallback ProcErrorCallback called on error.

LoginSuccessCallback : function

Kind: global typedef

LoginErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.

FormStartSuccessCallback : function

Kind: global typedef

Param Type Description
form Form Form Object.
formData. Object

FormStartErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

SetActiveRowSuccessCallback : function

Kind: global typedef

SetActiveRowErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

ChooseSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj Choose Object/Search Object/null
type String "Choose" / "Search" / "None".

ChooseErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

SearchActionSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj Search object.

SearchActionErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

FieldUpdateSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object.

FieldUpdateErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

SaveRowSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object.

SaveRowErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

StartSubFormSuccessCallback : function

Kind: global typedef

Param Type Description
form Form Form Object.
result ResultObj result object.

StartSubFormErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

GetRowsSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object.

GetRowsErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

NewRowSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object.

NewRowErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

EndCurrentFormSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object.

EndCurrentFormErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

UndoSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object.

UndoErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

DelRowSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object.

DelRowErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

ClearRowsSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object.

ClearRowsErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

SetSearchFilterSuccessCallback : function

Kind: global typedef

SetSearchFilterErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

SetSimpleSearchFilterSuccessCallback : function

Kind: global typedef

SetSimpleSearchFilterErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

ClearSearchFilterSuccessCallback : function

Kind: global typedef

ClearSearchFilterErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

ActivateStartSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object.

ActivateStartErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

ActivateEndSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object.

ActivateEndErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

UploadFileSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object. a JSON object of the form:
 { 	 progress: (number), 	 isLast: (number),			 	 file: (string) }   where: progress: a number between 0 and 100 indicating the progress of the upload. isLast: is upload finished. file: if upload finished, the name of the file that must be placed in the attachment field. 		 (Afterwards FormFieldUpdate API function should be called to notify the server on the change) 

UploadFileErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

GetFileUrlSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object.

GetFileUrlErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

addTextSuccessCallback : function

Kind: global typedef

Param Type Description
result ResultObj result object.

addTextErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

isAliveSuccessCallback : function

Kind: global typedef

Param Type Description
result number 1: alive, 0: not alive.

isAliveErrorCallback : function

Kind: global typedef

Param Type Description
errorMessage string Error message.
isFatal boolean Is fatal error.

ProcSuccessCallback : function

Kind: global typedef

Param Type Description
data Object result data.
 data may be of the following structures: 1) Input Dialog with input fields: { 		type: "inputFields", 		input: { 			EditFields: [ 			{ 				columntype: (string) - "Str" / "Rstr" / "Bool" / "Real" / "Int" / "Date8" / "Date10" / "Date14" / "Time5" / "Time6" 				field: (number) - field ID 				helpstring: (string) - field help text 				isboolean: (boolean) - is field boolean 				ispassword: (boolean) - is field password 				mandatory: (boolean) - is field mandatory  				operator: (number) - default operator (saved from last run) 				readonly: (boolean) - is field readonly (values come from choose) 				title: (string) - field title 				value: (string) - default value (saved from last run) 				value1: (string) - default value1 (when operator is "between") 				width: (number) - field width 				zoom: (string - "None" / "Attach" / "Search" / "Choose" / "Zoom" / "Date14" /  								"Date8" / "Date10" / "EMail" / "URL" / "HiddenZoom" / "LinkFile" / "QEdit" / "SpecialAttach" 			} 			... 			],  			Operators: [ 			{ 				name: (string) - operator name 				op: (number) - operator ID 				title: (string) - operator title 			} 			... 			], 			text: (string) - help text 			title: (string) - title of dialog 		} 	} 2) Input dialog with choose field (In web interface shows radio buttons, if more then 8 choose options shows listbox): { 		type: "inputOptions", 		input: { 			Options: [ 			{ 				field: (number) - option ID 				help: (string) - help text 				name: (string) - option name 				selected: (boolean) - is option selected (only one is selected) 				title: (string) - option title 			} 			... 			], 			text: (string) - help text, 			title: (string) - title of dialog 		} 	} 	 	3) help dialog (Show help text with OK, Cancel buttons) 	{ 		type: "inputHelp", 		input: { 			text: (string) - help text, 			title: (string) - title of dialog 		} 	} 	 4) Error/Warning message:  {  	type: "message",  	message: (string) - message text,  	messagetype: (string) - "information" / "warning" / "error"  }    5) New Report dialog:    {  	type: "reportOptions",  	formats: [  	{  		format: (number) - format ID  		selected: (boolean) - is selected  		title:	(string) - format title  	}  	...  	]  }    6) New Document dialog:    {  	type: "documentOptions",  	formats: [  	{  		format: (number) - format ID  		selected: (boolean) - is selected  		title:	(string) - format title  	}  	...  	],  	pdf: (boolean) - is PDF Check box checked   }  		  7) Display URL (Show generated report):    {  	type: "displayUrl",  	Urls: [  	{  		action: "display" (Only supported action currently)  		url: (string) - the URL to display  	}  	...  	]  } 	 8) End (The procedure has ended): { 		type: "end" } 	 

ProcProgressCallback : function

This callback is used to update progress bar (called only when the procedure starts a program that reports progress). Note that if the procedure activates a process that doesn't report progress, or delays for other reason (for example: long running query), this callback WOULD NOT be called. So, it is recommended to use some action indicator always! Change it to a percentage indicator when this callback is called.

Kind: global typedef

Param Type Description
proc Proc Procedure Object.
progress Number 0-100.

ProcErrorCallback : function

Kind: global typedef

Param Type Description
proc Proc Procedure Object.
error ProcError Object.
      { 		type: (string) - type of message: "NotSupported" / "ServerBusy" / "Error" 		text: (string) - text of message } 

ProcOpenChooseCallback : function

Kind: global typedef

Param Type Description
result Object A choose or search object

ProcSearchActionCallback : function

Kind: global typedef

Param Type Description
result Object A search object