OfflineForm

From GeoMedia Smart Client
Jump to: navigation, search
Settings WorkflowSetting FormSetting CommonSetting

GMSC 2013


Blue.pngThe OfflineForm is part of GMSC 2013 and will not work with older versions.




If your end users should be able to capture and edit attributive and spatial data while offline from the internet, you have to use the so called OfflineForm element. In principle, the OfflineForm can be defined as a limited version of the Form element. The limitation itself can be attributed to the fact that while the offline-mode, no connection to the server is available and therefore complex operations like the execution of Objects and SQL-Statements can't be processed. In addition, placeholders are not available in offline-mode.

The offline feature of GMSC Workflows only works in combination with GeoMedia SmartClient. It supports only data sets which contains also a geometry because attributive searches doesn't work while the offline-mode and the only way to inspect and edit an existing data set is to select a geometry in GeoMedia SmartClient and open the Offline-Workflow.

A detailed description how you this functionality needs to be configured, can be found here.

A typical Offline-Form looks like the following, which is nothing more than the a limited version of the previous Form example.

  1. <OfflineForm name="ENTITYPOSITION" table="PR_ENTITYPOSITION" idfield="ID">
  2.  <FormGeometry layer="Entity position" name="GEOMETRY">
  3.    <EditActions>
  4.       <GeometryAction name="GE_MODIFY" isstartonload="true" />
  5.    </EditActions>
  6.    <NewActions>
  7.       <GeometryAction name="GE_NEWPOINT" isstartonload="true" />
  8.    </NewActions>
  9.  </FormGeometry>
  10.  <FormTab name="Tab" label="Operation symbol" >
  11.    <FormGroup name="Group1" label="Details">
  12.      <FormField label="ID:" name="ID" type="textfield" datatype="number" required="false" visible="hidden" maxlength="50" />
  13.      <FormField label="Name:" name="NAME" type="textfield" datatype="string" required="false" maxlength="50" />
  14.      <FormField label="Description:" name="DESCRIPTION" type="textfield" datatype="string" required="false" maxlength="50" />
  15.      <FormField label="Operation:" name="OPERATION_ID" type="combobox" datatype="string" required="true" maxlength="50" lov="LIST[0=Operation1;1=Operation2;2=Operation3]"/>
  16.      <FormField label="Editor:" name="EDITOR" type="textfield" datatype="string" required="false" maxlength="50" />
  17.    </FormGroup>
  18.  </FormTab>
  19.  <FormAction name="Capture" label="Capture" action="SCRIPT[IG.captureOfflineGeometry()]" />
  20.  <FormAction name="Save" label="Save" action="save" visible="hidden[SCRIPT[IG.hasValue({FORM.ID})]]" />
  21.  <FormAction name="Delete" label="Delete" action="delete" visible="hidden[SCRIPT[IG.hasValue({FORM.ID})]]" />
  22. </Form>



Pfeil new.png To the top Pfeil new.png

OfflineForm-Attributes

As already mentioned, the attributes of the OfflineForm element are mainly the same as for the Form element. Therefore this section informs you about the big differences and restrictions of the OfflineForm-Attributes.

Pfeil new.png To the top Pfeil new.png

Not supported attributes

Not supported attributes
filter
inherits
isfilterareaopen
order
pagesize



Pfeil new.png To the top Pfeil new.png

Different behavior to the Form element

Attribute Mandatory Description
editable no Doesn't support Placeholders, SQL-Statements and Objects.
help no Doesn't support Placeholders.
label no Doesn't support Placeholders.



Pfeil new.png To the top Pfeil new.png

FormGroup in Offline-Mode

Not supported elements

Not supported elements
FormFile
FormSingleRow
FormTable



Pfeil new.png To the top Pfeil new.png

FormField in Offline-Mode

Not supported attributes

Not supported attributes
filter
override
saveinsession
sqlselect



Pfeil new.png To the top Pfeil new.png

Different behaviour to the FormField element

Attribute Mandatory Description
editable no Doesn't support Placeholders, SQL-Statements and Objects.
help no Doesn't support Placeholders.
label no Doesn't support Placeholders.
lov no Doesn't support SQL-Statement and Objects.
required no Doesn't support Placeholders.
validation no Doesn't support SQL-Statement and Objects.
validationmessage no Doesn't support Placeholders.
visible no Doesn't support Placeholders, SQL-Statement and Objects.



Pfeil new.png To the top Pfeil new.png

FormAction in Offline-Mode

Not supported attributes

Not supported attributes
type



Pfeil new.png To the top Pfeil new.png

Different behaviour to the FormAction element

Attribute Mandatory Description
action no Supports Javascript and Default-Controllers (save, delete). Doesn't support CustomControllers.
editable no Doesn't support Placeholders, SQL-Statements and Objects.
help no Doesn't support Placeholders.
image no Doesn't support Placeholders.
label no Doesn't support Placeholders.
visible no Doesn't support Placeholders, SQL-Statement and Objects.



Pfeil new.png To the top Pfeil new.png

Not supported elements

Not supported elements
Param



Language: English