public interface BaseForm extends EventOwner
BaseForm
is an interface that represents any Ebase runnable entity that can have fields, tables and access to resources
via a Business View. This interface is extended by WebForm
(an interactive form), IntegrationService
(an Integration Service) and WorkflowJob
(a workflow job). It also provides the basic interface for a component's view of its fields,
tables, resources etc when the component is deployed.Modifier and Type | Method and Description |
---|---|
void |
abort(java.lang.String message)
Aborts execution of the current form, integration service or workflow node
and rolls back the current transaction.
|
java.lang.String |
getAbortMessage()
Returns the abort message after a failure has occurred.
|
Fields |
getFields()
Returns the
Fields object that gives access to all fields available to the form. |
java.lang.String |
getLanguage()
Returns the language code for the user session.
|
Resources |
getResources()
Returns the
Resources object that gives access to all resources available to the form. |
Tables |
getTables()
Returns the
Tables object that gives access to all tables available to the form. |
Texts |
getTexts()
Returns the
Texts object that gives access to all texts available to the form. |
java.lang.String |
getTimezone()
Returns the time zone used for the form.
|
void |
setLanguage(java.lang.String language)
Sets the language code for the user session.
|
void |
setTimezone(java.lang.String timezone)
Sets the time zone for the current form, service or workflow process.
|
getElementName, getElementType
java.lang.String getLanguage()
The language is used to:
void setLanguage(java.lang.String language)
The language is used to:
Example:
form.setLanguage("es_US");
language
- language codevoid abort(java.lang.String message)
on error
event is specified,
this will receive control and can access the abort message via getAbortMessage()
.
Otherwise the default system abort page is displayed.message
- the failure messagejava.lang.String getAbortMessage()
on error
event.Resources getResources()
Resources
object that gives access to all resources available to the form.
An individual resource can then be accessed using its resource name as shown in the examples below.
Javascript example:
resources.EMAIL1.sendmail(); form.getResources().WEB_SERVICE1.call();
Resources
Fields getFields()
Fields
object that gives access to all fields available to the form.
An individual field can then be accessed using its field name as shown in the examples below.
Javascript example:
var v1 = fields.FIELD1.value; var v2 = form.getFields().FIELD_2.value;
Fields
Tables getTables()
Tables
object that gives access to all tables available to the form.
An individual table can then be accessed using its table name as shown in the examples below.
Javascript example:
var t1 = tables.TABLE1; var t2 = form.getTables().TABLE2;
Tables
Texts getTexts()
Texts
object that gives access to all texts available to the form.
An individual text can then be accessed using its text id as shown in the examples below.
Javascript example:
var v1 = texts.Txt23.text; var v2 = form.getTexts().Msg1.text;
Texts
java.lang.String getTimezone()
setTimezone(String)
,
can be set at Ebase system level using the Server Admin Application. If neither of these is configured, the time
zone on the operating system is used.setTimezone(String)
void setTimezone(java.lang.String timezone)
Examples:
form.setTimezone("America/Chicago"); form.setTimezone("America/Los_Angeles"); form.setTimezone("America/New_York"); form.setTimezone("Europe/Paris"); form.setTimezone("Etc/GMT");
timezone
- time zone