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

#1070093 Objectselection attributes in preview

parent 9245ab90
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,11 @@ import("system.result");
import("Attribute_lib");
var fieldState;
if (AttributeTypeUtil.useLookup(vars.get("$field.ATTRIBUTE_TYPE")))
if ((vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
&& AttributeTypeUtil.useLookup(vars.get("$field.ATTRIBUTE_TYPE")))
{
fieldState = neon.COMPONENTSTATE_EDITABLE;
}
else
fieldState = neon.COMPONENTSTATE_INVISIBLE;
......
......@@ -18,6 +18,10 @@
<name>ec5ceac7-a2d4-4912-b04b-adc83d3e9589</name>
<entityField>VALUE</entityField>
</neonTitledListTableColumn>
<neonTitledListTableColumn>
<name>2ec9274b-a800-4a38-8139-418543161be2</name>
<entityField>VALUE_LOOKUP</entityField>
</neonTitledListTableColumn>
</columns>
</titledListViewTemplate>
</children>
......
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