Skip to content
Snippets Groups Projects
Commit 563a1f41 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon: Committed by Sebastian Pongratz
Browse files

[Projekt: xRM-Sales][TicketNr.: 1050553][Vertriebsprojekt: Mehrfachauswahl der...

[Projekt: xRM-Sales][TicketNr.: 1050553][Vertriebsprojekt: Mehrfachauswahl der Begründung unter "Mitbewerber"]
parent 4d6b1b89
No related branches found
No related tags found
No related merge requests found
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet dbms="derby" author="b.ulrich" id="cdc5aecd-417f-4a7a-bdcd-2fb75bada432">
<sql>
ALTER TABLE COMPETITION ADD COLUMN REASON_NEW CLOB;
UPDATE COMPETITION SET REASON_NEW = REASON;
ALTER TABLE COMPETITION DROP COLUMN REASON;
RENAME COLUMN COMPETITION.REASON_NEW TO REASON;
</sql>
</changeSet>
<changeSet author="b.ulrich" id="05aabb59-501f-4832-a8cd-c17d38ac78f4">
<preConditions onFail="CONTINUE">
<not>
<dbms type="derby" />
</not>
</preConditions>
<modifyDataType tableName="COMPETITION" columnName="REASON" newDataType="NCLOB"/>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
<?xml version="1.1" encoding="UTF-8" standalone="no"?> <?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<include relativeToChangelogFile="true" file="Event/changelog.xml"/> <include relativeToChangelogFile="true" file="Event/changelog.xml"/>
<include relativeToChangelogFile="true" file="alter_CompetitionExpandReasonSize.xml"/>
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<include relativeToChangelogFile="true" file="basic/2021.0.0/changelog.xml"/> <include relativeToChangelogFile="true" file="basic/2021.0.0/changelog.xml"/>
<include relativeToChangelogFile="true" file="basic/2021.0.1/changelog.xml"/> <include relativeToChangelogFile="true" file="basic/2021.0.1/changelog.xml"/>
<include relativeToChangelogFile="true" file="basic/2021.0.2/changelog.xml"/> <include relativeToChangelogFile="true" file="basic/2021.0.2/changelog.xml"/>
<!--enable this only when you definetly want to overwrite the existing data with demo records:--> <!--enable this only when you definetly want to overwrite the existing data with demo records:-->
<!--<include relativeToChangelogFile="true" file="basic/_demoData/changelog.xml" context="example"/>--> <!--<include relativeToChangelogFile="true" file="basic/_demoData/changelog.xml" context="example"/>-->
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
...@@ -27,9 +27,8 @@ ...@@ -27,9 +27,8 @@
<entityField> <entityField>
<name>REASON</name> <name>REASON</name>
<title>Reason</title> <title>Reason</title>
<consumer>KeywordWonLost</consumer> <dropDownProcess>%aditoprj%/entity/Competition_entity/entityfields/reason/dropDownProcess.js</dropDownProcess>
<selectionMode>SINGLE</selectionMode> <selectionMode>MULTI</selectionMode>
<displayValueProcess>%aditoprj%/entity/Competition_entity/entityfields/reason/displayValueProcess.js</displayValueProcess>
</entityField> </entityField>
<entityField> <entityField>
<name>COMPETITIONID</name> <name>COMPETITIONID</name>
...@@ -334,10 +333,6 @@ ...@@ -334,10 +333,6 @@
<name>CONTACT_ID.displayValue</name> <name>CONTACT_ID.displayValue</name>
<recordfield>ORGANISATION.NAME</recordfield> <recordfield>ORGANISATION.NAME</recordfield>
</dbRecordFieldMapping> </dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>REASON.displayValue</name>
<expression>%aditoprj%/entity/Competition_entity/recordcontainers/db/recordfieldmappings/reason.displayvalue/expression.js</expression>
</dbRecordFieldMapping>
<dbRecordFieldMapping> <dbRecordFieldMapping>
<name>PHASE.displayValue</name> <name>PHASE.displayValue</name>
<expression>%aditoprj%/entity/Competition_entity/recordcontainers/db/recordfieldmappings/phase.displayvalue/expression.js</expression> <expression>%aditoprj%/entity/Competition_entity/recordcontainers/db/recordfieldmappings/phase.displayvalue/expression.js</expression>
......
import("system.result");
import("system.vars");
import("Keyword_lib");
import("KeywordRegistry_basic");
result.string(KeywordUtils.getViewValue($KeywordRegistry.salesprojectWonLost(), vars.get("$field.REASON")));
import("KeywordRegistry_basic");
import("Keyword_lib");
import("Sql_lib");
import("system.result");
var keyIds = newSelect("AB_KEYWORD_ENTRY.KEYID")
.from("AB_KEYWORD_ENTRY")
.where("AB_KEYWORD_ENTRY.CONTAINER", "SalesprojectWonLost")
.arrayColumn();
var res = keyIds.map(function (keyId) {
return [keyId, KeywordUtils.getViewValue($KeywordRegistry.salesprojectWonLost(), keyId)]
});
result.object(res);
\ No newline at end of file
import("system.result");
import("Keyword_lib");
import("KeywordRegistry_basic");
var sql = KeywordUtils.getResolvedTitleSqlPart($KeywordRegistry.salesprojectWonLost(), "COMPETITION.REASON");
result.string(sql);
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