Project

General

Profile

SubmitResult

Constants:
  • ERROR_FORMAT: Error returned if a file or url is not of a type declared in the 'accepted' format
  • ERROR_NONE: Everything worked according to plan
  • EXCEPTION_BAD_URL: An exception occured because the url is malformed or the protocol is not recognized
  • EXCEPTION_REMOTE: An exception occured on the server side (see getErrorMessage() to know what - the exception will have been logged in the servoy_log.txt file)

getErrorCode()

Returns one of the error constants (an integer)

getErrorMessage()

Returns the error message (a String) with precisions about what happened - null if getErrorCode() == ERROR_NONE

getKeys()

Returns an array of all the keys from the key/value pairs stored in the SubmitResult object as a result of the submit process

getSize()

Returns the number of key/value pairs available

getValue()

The signature of this method is:
Object getValue(String key)

Returns a value associated to the key given as parameter. The value can be a String, a Boolean, a Number

getValues()

Returns an array of all the values (Object[]) from the key/value pais stored in the SubmitResult object as a result of the submit process

isLastDocument()

Returns true if this is the last document in a submit() batch process