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 @@
<entityConsumer>
<name>MainDocuments</name>
<fieldType>DEPENDENCY_OUT</fieldType>
<stateProcess>%aditoprj%/entity/Task_entity/entityfields/maindocuments/stateProcess.js</stateProcess>
<dependency>
<name>dependency</name>
<entityName>Document_entity</entityName>
......@@ -435,6 +436,25 @@
</entityParameter>
</children>
</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>
<recordContainers>
<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"?>
<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>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<masterSlaveLayout>
<name>layout</name>
<master>339e160e-e482-4be2-9550-fc06131fbffe</master>
</masterSlaveLayout>
</layout>
<children>
<neonViewReference>
<name>339e160e-e482-4be2-9550-fc06131fbffe</name>
<entityField>#ENTITY</entityField>
<view>TaskMainPreview_view</view>
</neonViewReference>
<genericViewTemplate>
<name>details</name>
<showDrawer v="true" />
<drawerCaption>Detail</drawerCaption>
<entityField>#ENTITY</entityField>
<title>details</title>
<fields>
<entityFieldLink>
<name>e95918f5-d21e-4c99-8d05-d70811aa3d89</name>
<entityField>PROTECTIONLEVEL</entityField>
</entityFieldLink>
<entityFieldLink>
<name>fea59f13-750b-427d-bf33-cc1bead95446</name>
<entityField>DESCRIPTION</entityField>
</entityFieldLink>
</fields>
</genericViewTemplate>
<neonViewReference>
<name>4211b2cf-3a1f-4447-ad1c-f521d2d3f258</name>
<entityField>ModuleTrees</entityField>
<view>ModuleTree_view</view>
</neonViewReference>
<neonViewReference>
<name>6846f680-84ef-46da-a0ea-6797044cf693</name>
<entityField>MainDocuments</entityField>
<view>DocumentFilter_view</view>
</neonViewReference>
<neonViewReference>
<name>ffa776bd-013c-4d4d-aedd-490625ef0fe1</name>
<entityField>LogHistories</entityField>
<view>LogHistoryFilter_view</view>
</neonViewReference>
</children>
</neonView>
<?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">
<name>TaskMain_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<masterSlaveLayout>
<name>layout</name>
<master>339e160e-e482-4be2-9550-fc06131fbffe</master>
</masterSlaveLayout>
</layout>
<children>
<neonViewReference>
<name>339e160e-e482-4be2-9550-fc06131fbffe</name>
<entityField>#ENTITY</entityField>
<view>TaskMainPreview_view</view>
</neonViewReference>
<genericViewTemplate>
<name>details</name>
<showDrawer v="true" />
<drawerCaption>Detail</drawerCaption>
<entityField>#ENTITY</entityField>
<title>details</title>
<fields>
<entityFieldLink>
<name>e95918f5-d21e-4c99-8d05-d70811aa3d89</name>
<entityField>PROTECTIONLEVEL</entityField>
</entityFieldLink>
<entityFieldLink>
<name>fea59f13-750b-427d-bf33-cc1bead95446</name>
<entityField>DESCRIPTION</entityField>
</entityFieldLink>
</fields>
</genericViewTemplate>
<neonViewReference>
<name>4211b2cf-3a1f-4447-ad1c-f521d2d3f258</name>
<entityField>ModuleTrees</entityField>
<view>ModuleTree_view</view>
</neonViewReference>
<neonViewReference>
<name>6846f680-84ef-46da-a0ea-6797044cf693</name>
<entityField>Documents</entityField>
<view>DocumentFilter_view</view>
</neonViewReference>
<neonViewReference>
<name>ffa776bd-013c-4d4d-aedd-490625ef0fe1</name>
<entityField>LogHistories</entityField>
<view>LogHistoryFilter_view</view>
</neonViewReference>
</children>
</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