Skip to content
Snippets Groups Projects
Commit 550ecf06 authored by v.broens's avatar v.broens
Browse files

[Projekt: xRM-Marketing][TicketNr.: 1083938][Div. Fehler in Interessensgebieten]

parent 8ee3080f
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,14 @@
<dependency>
<name>dependency</name>
<entityName>Interest_entity</entityName>
<fieldName>#PROVIDER</fieldName>
<fieldName>Interests</fieldName>
</dependency>
<children>
<entityParameter>
<name>OnlyActive_param</name>
<valueProcess>%aditoprj%/entity/InterestLink_entity/entityfields/interests/children/onlyactive_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>StatusKeyword</name>
......
import("system.vars");
import("system.result");
result.string(true);
\ No newline at end of file
......@@ -56,6 +56,14 @@
</entityParameter>
</children>
</entityConsumer>
<entityParameter>
<name>OnlyActive_param</name>
<valueProcess>%aditoprj%/entity/Interest_entity/entityfields/onlyactive_param/valueProcess.js</valueProcess>
<expose v="true" />
</entityParameter>
<entityProvider>
<name>Interests</name>
</entityProvider>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
import("system.vars");
import("system.result");
result.string(false);
\ No newline at end of file
import("system.result");
import("system.vars");
import("Sql_lib");
import("KeywordRegistry_basic");
var cond = newWhere();
if(vars.getString("$param.OnlyActive_param") == "true")
{
cond.and("INTEREST.STATUS", $KeywordRegistry.interestStatus$inactive(), SqlBuilder.NOT_EQUAL());
}
result.string(cond.toString());
\ No newline at end of file
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