Skip to main content
Version: 2026.0

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

pTitle
string | number | boolean

The title of the question. Currently, this parameter will not be evaluated.

pMessage
string | number | boolean

The message.

pApproveButtonText
string | number | boolean

Text for the Confirm button.

Returns

string

The 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

pTitle
string | number | boolean

The title of the question. Currently, this parameter will not be evaluated.

pMessage
string | number | boolean

The message.

pDefault
boolean

The default button.

Returns

boolean

The 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

pTitle
string | number | boolean

The title of the question. Currently, this parameter will not be evaluated.

pMessage
string | number | boolean

The message.

pDefault
boolean

The default button.

Returns

boolean

The 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

pText
string | number | boolean

The message text, e.g. "This record could not be saved because you have no permission".

pMessageType?
number

The type of the message (question.INFORMATION, question.WARNING, question.ERROR).

pTitle?
string | number | boolean

The title of the message.

Returns

boolean

The 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

string

Constant for accessing the value of the selected button in swing.askUserQuestion with preset button label array.


ERROR

number

Dialog: error


INFORMATION

number

Dialog: information


WARNING

number

Dialog: warning