Skip to content
Snippets Groups Projects
Commit 3a38272c authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

Merge branch '1073891-beobachtungshotfix' into '2021.0.0'

1073891 beobachtungshotfix

See merge request xrm/basic!648
parents 1aca2af6 14999889
No related branches found
No related tags found
No related merge requests found
Showing
with 47 additions and 90 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");
......
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
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")));
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