Skip to content
Snippets Groups Projects
Commit b6e0a522 authored by m.kuhn's avatar m.kuhn
Browse files

LogHistory Entity

parent 33f9d222
No related branches found
No related tags found
No related merge requests found
......@@ -5088,6 +5088,180 @@
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
<name>AB_LOGHISTORY</name>
<dbName></dbName>
<idColumn>AB_LOGHISTORYID</idColumn>
<idGeneratorType v="0" />
<idGeneratorInterval v="1" />
<documentation></documentation>
<title></title>
<description></description>
<auditSyncConfig>
<name>auditSyncConfig</name>
<auditMode v="0" />
<syncActive v="false" />
<syncComplete v="true" />
<syncDirection v="1" />
<syncIds></syncIds>
</auditSyncConfig>
<entityFields>
<entityFieldDb>
<name>TABLENAME</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="30" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_EDIT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DESCRIPTION</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="2005" />
<size v="2147483647" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>SOURCE_TABLENAMEID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>LOGTYPE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="1" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>SOURCE_TABLENAME</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="30" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>AB_LOGHISTORYID</name>
<dbName></dbName>
<primaryKey v="true" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>TABLENAMEID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_NEW</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>USER_NEW</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="50" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>USER_EDIT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="50" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
</entities>
</entityGroup>
</aliasDefDb>
......
......@@ -12,6 +12,7 @@
<entityField>
<name>DATE_NEW</name>
<contentType>DATE</contentType>
<resolution>SECOND</resolution>
<mandatory v="true" />
</entityField>
<entityField>
......@@ -23,14 +24,6 @@
<contentType>TEXT</contentType>
<mandatory v="true" />
</entityField>
<entityField>
<name>TABLENAME</name>
<mandatory v="true" />
</entityField>
<entityField>
<name>TABLENAMEID</name>
<mandatory v="true" />
</entityField>
<entityParameter>
<name>tablenameId_param</name>
<expose v="true" />
......@@ -71,13 +64,16 @@
<mandatory v="true" />
<description>PARAMETER</description>
</entityParameter>
<entityField>
<name>LOGHISTORYID</name>
<mandatory v="true" />
</entityField>
</entityFields>
<recordContainers>
<dbRecordContainer>
<name>db</name>
<title>LogHistory</title>
<alias>Data_alias</alias>
<fromClauseProcess>%aditoprj%/entity/LogHistory_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess>
<conditionProcess>%aditoprj%/entity/LogHistory_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<linkInformation>
<linkInformation>
......@@ -110,6 +106,10 @@
<name>USER_NEW.value</name>
<recordfield>AB_LOGHISTORY.USER_NEW</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>LOGHISTORYID.value</name>
<recordfield>AB_LOGHISTORY.AB_LOGHISTORYID</recordfield>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
</recordContainers>
......
import("system.result");
result.string("AB_LOGHISTORY");
\ No newline at end of file
result.string("NEON:HISTORY");
\ No newline at end of file
import("system.vars");
import("system.result");
result.string(vars.getString("$field.ICON"));
\ No newline at end of file
import("system.vars");
import("system.db");
import("system.result");
import("Sql_lib");
var cond = SqlCondition.begin().andPrepareVars("TABLENAMEID", "$param.tablenameId_param").andPrepareVars("TABLENAME", "$param.Tablename_param")
.orSqlCondition(SqlCondition.begin().andPrepareVars("TABLENAMEID", "$param.contactId_param")
.andSqlCondition(SqlCondition.begin().orPrepare("TABLENAME", "CONTACT").orPrepare("TABLENAME", "COMMUNICATION")
.orPepare("TABLENAME", "ADDRESS").orPrepare("TABLENAME", "AB_ATTRIBUTERELATION")));
result.string(db.translateCondition(cond.build("1 = 1")));
var sql = "(TABLENAMEID = '" + vars.get("$param.tablenameId_param") + "' and TABLENAME = '" + vars.get("$param.tablename_param") + "') "
+ "or (TABLENAMEID = '" + vars.get("$param.contactId_param") + "' "
+ "and (TABLENAME='CONTACT' or TABLENAME='COMMUNICATION' or TABLENAME='ADDRESS' or TABLENAME='AB_ATTRIBUTERELATION'))";
result.string(sql);
\ No newline at end of file
......@@ -9,7 +9,8 @@
<include relativeToChangelogFile="true" file="struct/AditoBasic/create_ab_keyword_attributerelation.xml"/>
<include relativeToChangelogFile="true" file="struct/AditoBasic/create_ab_countryinfo.xml"/>
<include relativeToChangelogFile="true" file="struct/AditoBasic/create_ab_language.xml"/>
<include relativeToChangelogFile="true" file="struct/AditoBasic/create_ab_loghistory.xml"/>
</databaseChangeLog>
<include relativeToChangelogFile="true" file="struct/create_person.xml"/>
<include relativeToChangelogFile="true" file="struct/create_organisation.xml"/>
<include relativeToChangelogFile="true" file="struct/create_contact.xml"/>
......
......@@ -2,4 +2,5 @@
<process xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.2.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/process/1.2.0">
<name>indexsearch_patternextension</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<process>%aditoprj%/process/indexsearch_patternextension/process.js</process>
</process>
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