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

Document: use a standard param

parent 7581403b
No related branches found
No related tags found
No related merge requests found
Showing
with 92 additions and 62 deletions
import("system.result");
result.string("DOCUMENT");
\ No newline at end of file
import("system.result");
result.string("DOCUMENT");
\ No newline at end of file
import("system.result");
result.string("DOCUMENT");
\ No newline at end of file
...@@ -131,6 +131,7 @@ ...@@ -131,6 +131,7 @@
<entityConsumer> <entityConsumer>
<name>MainDocuments</name> <name>MainDocuments</name>
<fieldType>DEPENDENCY_OUT</fieldType> <fieldType>DEPENDENCY_OUT</fieldType>
<stateProcess>%aditoprj%/entity/Task_entity/entityfields/maindocuments/stateProcess.js</stateProcess>
<dependency> <dependency>
<name>dependency</name> <name>dependency</name>
<entityName>Document_entity</entityName> <entityName>Document_entity</entityName>
...@@ -435,6 +436,25 @@ ...@@ -435,6 +436,25 @@
</entityParameter> </entityParameter>
</children> </children>
</entityConsumer> </entityConsumer>
<entityConsumer>
<name>Documents</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>Document_entity</entityName>
<fieldName>Documents</fieldName>
</dependency>
<children>
<entityParameter>
<name>AssignmentRowId_param</name>
<valueProcess>%aditoprj%/entity/Task_entity/entityfields/documents/children/assignmentrowid_param/valueProcess.js</valueProcess>
</entityParameter>
<entityParameter>
<name>AssignmentTable_param</name>
<valueProcess>%aditoprj%/entity/Task_entity/entityfields/documents/children/assignmenttable_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
</entityFields> </entityFields>
<recordContainers> <recordContainers>
<dbRecordContainer> <dbRecordContainer>
......
import("system.result");
import("system.vars");
result.string(vars.get("$sys.uid"));
\ No newline at end of file
import("system.result");
import("system.vars");
result.string("TASK");
\ No newline at end of file
import("system.result");
result.string("DOCUMENT");
\ No newline at end of file
import("system.result");
import("system.db");
import("system.vars");
import("system.neon");
import("Sql_lib");
if (0 == db.getBinaryCount("TASK", "DOCUMENT", vars.get("$sys.uid"), SqlUtils.getSystemAlias(), "MAINDOCUMENT"))
{
result.string(neon.COMPONENTSTATE_INVISIBLE);
}
else
{
result.string(neon.COMPONENTSTATE_EDITABLE);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.1" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.1"> <neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.1" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.1">
<name>TaskMain_view</name> <name>TaskMain_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode> <majorModelMode>DISTRIBUTED</majorModelMode>
<layout> <layout>
<masterSlaveLayout> <masterSlaveLayout>
<name>layout</name> <name>layout</name>
<master>339e160e-e482-4be2-9550-fc06131fbffe</master> <master>339e160e-e482-4be2-9550-fc06131fbffe</master>
</masterSlaveLayout> </masterSlaveLayout>
</layout> </layout>
<children> <children>
<neonViewReference> <neonViewReference>
<name>339e160e-e482-4be2-9550-fc06131fbffe</name> <name>339e160e-e482-4be2-9550-fc06131fbffe</name>
<entityField>#ENTITY</entityField> <entityField>#ENTITY</entityField>
<view>TaskMainPreview_view</view> <view>TaskMainPreview_view</view>
</neonViewReference> </neonViewReference>
<genericViewTemplate> <genericViewTemplate>
<name>details</name> <name>details</name>
<showDrawer v="true" /> <showDrawer v="true" />
<drawerCaption>Detail</drawerCaption> <drawerCaption>Detail</drawerCaption>
<entityField>#ENTITY</entityField> <entityField>#ENTITY</entityField>
<title>details</title> <title>details</title>
<fields> <fields>
<entityFieldLink> <entityFieldLink>
<name>e95918f5-d21e-4c99-8d05-d70811aa3d89</name> <name>e95918f5-d21e-4c99-8d05-d70811aa3d89</name>
<entityField>PROTECTIONLEVEL</entityField> <entityField>PROTECTIONLEVEL</entityField>
</entityFieldLink> </entityFieldLink>
<entityFieldLink> <entityFieldLink>
<name>fea59f13-750b-427d-bf33-cc1bead95446</name> <name>fea59f13-750b-427d-bf33-cc1bead95446</name>
<entityField>DESCRIPTION</entityField> <entityField>DESCRIPTION</entityField>
</entityFieldLink> </entityFieldLink>
</fields> </fields>
</genericViewTemplate> </genericViewTemplate>
<neonViewReference> <neonViewReference>
<name>4211b2cf-3a1f-4447-ad1c-f521d2d3f258</name> <name>4211b2cf-3a1f-4447-ad1c-f521d2d3f258</name>
<entityField>ModuleTrees</entityField> <entityField>ModuleTrees</entityField>
<view>ModuleTree_view</view> <view>ModuleTree_view</view>
</neonViewReference> </neonViewReference>
<neonViewReference> <neonViewReference>
<name>6846f680-84ef-46da-a0ea-6797044cf693</name> <name>6846f680-84ef-46da-a0ea-6797044cf693</name>
<entityField>MainDocuments</entityField> <entityField>Documents</entityField>
<view>DocumentFilter_view</view> <view>DocumentFilter_view</view>
</neonViewReference> </neonViewReference>
<neonViewReference> <neonViewReference>
<name>ffa776bd-013c-4d4d-aedd-490625ef0fe1</name> <name>ffa776bd-013c-4d4d-aedd-490625ef0fe1</name>
<entityField>LogHistories</entityField> <entityField>LogHistories</entityField>
<view>LogHistoryFilter_view</view> <view>LogHistoryFilter_view</view>
</neonViewReference> </neonViewReference>
</children> </children>
</neonView> </neonView>
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