Skip to content
Snippets Groups Projects
Commit 8f53feeb authored by Alexander Riedl's avatar Alexander Riedl :cookie:
Browse files

merged 2021.0.0 into 2021_merge_CrowdDev_Event

parents 102c1fb9 d0216961
No related branches found
No related tags found
No related merge requests found
Showing
with 49 additions and 87 deletions
......@@ -18,18 +18,12 @@
Observation.insertAction();</onActionProcess>
<isObjectAction v="true" />
<iconId>VAADIN:EYE</iconId>
<stateProcess>import("system.result");
<stateProcess>import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (!Observation.countObservations())
{
result.string(neon.COMPONENTSTATE_EDITABLE);
}
else
{
result.string(neon.COMPONENTSTATE_INVISIBLE);
}</stateProcess>
result.string(Observation.actionState(vars.get("$sys.selection")));</stateProcess>
<titleProcess>import("system.result");
import("Observation_lib");
import("system.vars");
......@@ -43,18 +37,12 @@ result.string(Observation.observeActionTitle(vars.get("$sys.selection")));
Observation.cancelAction();</onActionProcess>
<iconId>VAADIN:EYE_SLASH</iconId>
<stateProcess>import("system.result");
<stateProcess>import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (Observation.countObservations())
{
result.string(neon.COMPONENTSTATE_EDITABLE);
}
else
{
result.string(neon.COMPONENTSTATE_INVISIBLE);
}</stateProcess>
result.string(Observation.actionState(vars.get("$sys.selection"), true));</stateProcess>
<titleProcess>import("system.result");
import("system.vars");
import("Observation_lib");
......
......@@ -3,7 +3,7 @@
<changeSet author="j.hoermann" id="4fe7309e-e131-4f3d-8e65-fb399fcd7090">
<createTable tableName="ASYS_COLLECTOR_DATA">
<column name="DATAID" type="CHAR(63)">
<constraints primaryKey="true" primaryKeyName="PK_ASYS_COLLECTOR_DATA_ID"/>
<constraints nullable="false"/>
</column>
<column name="SHORTINFO" type="VARCHAR(255)"/>
<column name="TIMECOLLECTED" type="DATETIME"/>
......@@ -13,5 +13,8 @@
<createIndex tableName="ASYS_COLLECTOR_DATA" indexName="IDX_COLLECTORDATA_TIMECOLLECT">
<column name="TIMECOLLECTED"/>
</createIndex>
<createIndex tableName="ASYS_COLLECTOR_DATA" indexName="IDX_COLLECTORDATA_DATAID">
<column name="DATAID"/>
</createIndex>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection"), true));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (!Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection")));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection"), true));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (!Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection")));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection"), true));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (!Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection")));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection"), true));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (!Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection")));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection"), true));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (!Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection")));
......@@ -14,3 +14,8 @@ inserted, updated or deleted.
* The entity had to have a content Title
* The entity had to be customizing in the Blacklist_param of the Context Consumer if its not an dependency. Otherwise it had to be customizing in the Dependency_lib with the "isObservable" option
* The entityfields which should not be displayed must also be customized
=== Enable Observation
* Enable the custom field observation.isEnabled in the _____PREFERENCES_PROJECT
* Create the Observation Context and add the Entity, the Views (ObservationEdit_view, ObservationFilter_view, ObservationPreview_view), the Icon (VAADIN:EYE) and the Tile "Observation" to it
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection"), true));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (!Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection")));
\ No newline at end of file
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection"), true));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (!Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection")));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection"), true));
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (!Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection")));
\ No newline at end of file
import("system.vars");
import("system.result");
import("Observation_lib");
import("system.neon");
if (Observation.countObservations())
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
result.string(Observation.actionState(vars.get("$sys.selection"), true));
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment