Skip to content
Snippets Groups Projects
Commit df0a22e2 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1030337][Umsetzung Keywordlogik]

parent 639a4370
No related branches found
No related tags found
No related merge requests found
...@@ -7,4 +7,21 @@ You can specify special attributes per Keyword-container. ...@@ -7,4 +7,21 @@ You can specify special attributes per Keyword-container.
It describes which Keyword-Attribute can be set - not which Keyword-Attribute-value is set on which entry. It describes which Keyword-Attribute can be set - not which Keyword-Attribute-value is set on which entry.
Do not confuse the Keyword-Attributes with the standard Attributes (-> `Attribute_entity`). While the way it works is similar, the Keyword-Attributes are specifically developed for keywords and provide therefore different functionality. Do not confuse the Keyword-Attributes with the standard Attributes (-> `Attribute_entity`). While the way it works is similar, the Keyword-Attributes are specifically developed for keywords and provide therefore different functionality.
\ No newline at end of file
[CAUTION]
====
Never delete a Keyword-Attribute that is currently in use - there is no protection on the users side.
====
////
Currently there is no way to protect the record from being deleted by the user.
(So leave at least some hint)
////
You might ask:
> Why are there no essential Keyword-Attributes?
The reason therefore is: Currently the Keyword-Attributes can only be used by a developer within JDito-Code.
So there is no need to add, modify, etc. the Keyword-Attributes for an administrator/power-user.
\ No newline at end of file
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
<name>KEYID</name> <name>KEYID</name>
<title>Key</title> <title>Key</title>
<state>READONLY</state> <state>READONLY</state>
<stateProcess>%aditoprj%/entity/KeywordEntry_entity/entityfields/keyid/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/KeywordEntry_entity/entityfields/keyid/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/KeywordEntry_entity/entityfields/keyid/valueProcess.js</valueProcess>
</entityField> </entityField>
<entityField> <entityField>
...@@ -43,7 +44,8 @@ ...@@ -43,7 +44,8 @@
<name>SORTING</name> <name>SORTING</name>
<documentation>%aditoprj%/entity/KeywordEntry_entity/entityfields/sorting/documentation.adoc</documentation> <documentation>%aditoprj%/entity/KeywordEntry_entity/entityfields/sorting/documentation.adoc</documentation>
<title>Sorting</title> <title>Sorting</title>
<state>READONLY</state> <mandatory v="true" />
<state>AUTO</state>
</entityField> </entityField>
<entityField> <entityField>
<name>ISACTIVE</name> <name>ISACTIVE</name>
......
import("system.result");
import("system.neon");
import("system.vars");
var fieldState;
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
fieldState = neon.COMPONENTSTATE_AUTO;
else
fieldState = neon.COMPONENTSTATE_READONLY;
result.string(fieldState);
\ No newline at end of file
...@@ -4,4 +4,5 @@ import("system.result"); ...@@ -4,4 +4,5 @@ import("system.result");
result.object({ result.object({
"AB_KEYWORD_ENTRY.CONTAINER": db.ASCENDING "AB_KEYWORD_ENTRY.CONTAINER": db.ASCENDING
,"AB_KEYWORD_ENTRY.SORTING": db.ASCENDING ,"AB_KEYWORD_ENTRY.SORTING": db.ASCENDING
,"AB_KEYWORD_ENTRY.TITLE": db.ASCENDING
}); });
\ No newline at end of file
...@@ -18,6 +18,10 @@ ...@@ -18,6 +18,10 @@
<name>94fdd272-46f0-415e-aff8-76789a215921</name> <name>94fdd272-46f0-415e-aff8-76789a215921</name>
<entityField>#ICON</entityField> <entityField>#ICON</entityField>
</neonTableColumn> </neonTableColumn>
<neonTableColumn>
<name>7efe2ae9-8b76-439f-95cb-547f7dec9057</name>
<entityField>CONTAINER</entityField>
</neonTableColumn>
<neonTableColumn> <neonTableColumn>
<name>682fd08f-b121-469c-b86e-afdf013dbc7b</name> <name>682fd08f-b121-469c-b86e-afdf013dbc7b</name>
<entityField>NAME</entityField> <entityField>NAME</entityField>
...@@ -26,10 +30,6 @@ ...@@ -26,10 +30,6 @@
<name>8d142e4d-c15d-409a-9a2c-251192e3e98e</name> <name>8d142e4d-c15d-409a-9a2c-251192e3e98e</name>
<entityField>TYPE</entityField> <entityField>TYPE</entityField>
</neonTableColumn> </neonTableColumn>
<neonTableColumn>
<name>7efe2ae9-8b76-439f-95cb-547f7dec9057</name>
<entityField>CONTAINER</entityField>
</neonTableColumn>
</columns> </columns>
</tableViewTemplate> </tableViewTemplate>
</children> </children>
......
...@@ -25,6 +25,10 @@ ...@@ -25,6 +25,10 @@
<name>3fb4b999-853a-407e-b928-8f5e633c1dc5</name> <name>3fb4b999-853a-407e-b928-8f5e633c1dc5</name>
<entityField>ISACTIVE</entityField> <entityField>ISACTIVE</entityField>
</entityFieldLink> </entityFieldLink>
<entityFieldLink>
<name>fc93fdff-860e-4593-8355-9c2677877964</name>
<entityField>KEYID</entityField>
</entityFieldLink>
</fields> </fields>
</genericViewTemplate> </genericViewTemplate>
</children> </children>
......
...@@ -18,6 +18,10 @@ ...@@ -18,6 +18,10 @@
<name>0e85b64c-6ce8-4221-8544-b8b5152a1292</name> <name>0e85b64c-6ce8-4221-8544-b8b5152a1292</name>
<entityField>#ICON</entityField> <entityField>#ICON</entityField>
</neonTableColumn> </neonTableColumn>
<neonTableColumn>
<name>7f8c3b75-62dc-4826-bad3-99aa9d471067</name>
<entityField>CONTAINER</entityField>
</neonTableColumn>
<neonTableColumn> <neonTableColumn>
<name>4dc50d75-d856-4fca-bd4d-d79eb3c8769f</name> <name>4dc50d75-d856-4fca-bd4d-d79eb3c8769f</name>
<entityField>KEYID</entityField> <entityField>KEYID</entityField>
...@@ -31,8 +35,8 @@ ...@@ -31,8 +35,8 @@
<entityField>ISACTIVE</entityField> <entityField>ISACTIVE</entityField>
</neonTableColumn> </neonTableColumn>
<neonTableColumn> <neonTableColumn>
<name>7f8c3b75-62dc-4826-bad3-99aa9d471067</name> <name>64a15e98-c6da-4c36-b20b-af1867b15602</name>
<entityField>CONTAINER</entityField> <entityField>SORTING</entityField>
</neonTableColumn> </neonTableColumn>
</columns> </columns>
</tableViewTemplate> </tableViewTemplate>
......
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