question
Created by m.escher on 27.09.2016.
Methods
askUpload
askUpload(
pTitle,pMessage,pApproveButtonText):string
Delivers a file from the client. This method is not supported by the Swing client.
Parameters
string | number | booleanThe title of the question. Currently, this parameter will not be evaluated.
string | number | booleanThe message.
string | number | booleanText for the Confirm button.
Returns
stringThe result of the message.
Throws
May throw an exception.
Example
var uploadData = question.askUpload("Which file do you want to upload?", "Choose a file", "upload");
<p> // Add the file to the GfK
db.insertBinary("RELATION", "DOCUMENT", "1001", null, uploadData, "UploadJDITO.odt", "Offerfile", "Offer", db.getCurrentAlias());
askYesNo
askYesNo(
pTitle,pMessage,pDefault):boolean
Displays a Yes/No question.
Parameters
string | number | booleanThe title of the question. Currently, this parameter will not be evaluated.
string | number | booleanThe message.
booleanThe default button.
Returns
booleanThe result of the message.
Throws
May throw an exception.
Example
question.askYesNo("Do you want to delete this file?", "Please select!", false);
askYesNoCancel
askYesNoCancel(
pTitle,pMessage,pDefault):boolean
Displays a Yes/No/Cancel question.
Parameters
string | number | booleanThe title of the question. Currently, this parameter will not be evaluated.
string | number | booleanThe message.
booleanThe default button.
Returns
booleanThe result of the message.
Throws
May throw an exception.
Example
var answer = question.askYesNoCancel("Do you want to cancel this process?", "Please select!", true);
showMessage
showMessage(
pText,pMessageType?,pTitle?):boolean
Displays a message window in the client that contains the text you passed.
Parameters
string | number | booleanThe message text, e.g. "This record could not be saved because you have no permission".
numberThe type of the message (question.INFORMATION, question.WARNING, question.ERROR).
string | number | booleanThe title of the message.
Returns
booleanThe result of the question. 'True' if OK was pressed, null if CANCEL was pressed.
Throws
May throw an exception.
Example
question.showMessage("It's dangerous out there!", question.ERROR, "Caution");
Properties
ASKUSERQUESTION_BUTTON
stringConstant for accessing the value of the selected button in swing.askUserQuestion with preset button label array.
ERROR
numberDialog: error
INFORMATION
numberDialog: information
WARNING
numberDialog: warning