|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BaseForm
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.
Method Summary | |
---|---|
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. |
void |
setLanguage(java.lang.String language)
Sets the language code for the user session. |
Methods inherited from interface com.ebasetech.xi.api.Element |
---|
getElementName, getElementType |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |