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

fix several keyword-attribute errors

parent 4f53d91c
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
<title>Keyword Attribute</title> <title>Keyword Attribute</title>
<consumer>KeywordAttributes</consumer> <consumer>KeywordAttributes</consumer>
<mandatory v="true" /> <mandatory v="true" />
<displayValueProcess>%aditoprj%/entity/KeywordAttributeRelation_entity/entityfields/ab_keyword_attribute_id/displayValueProcess.js</displayValueProcess>
<onValueChange>%aditoprj%/entity/KeywordAttributeRelation_entity/entityfields/ab_keyword_attribute_id/onValueChange.js</onValueChange> <onValueChange>%aditoprj%/entity/KeywordAttributeRelation_entity/entityfields/ab_keyword_attribute_id/onValueChange.js</onValueChange>
</entityField> </entityField>
<entityField> <entityField>
......
import("system.db");
import("system.result");
import("system.vars");
import("Sql_lib");
var keywordAttributeId = vars.get("$field.AB_KEYWORD_ATTRIBUTE_ID");
var res = keywordAttributeId;
if (keywordAttributeId)
{
var sql = SqlCondition.begin()
.andPrepare("AB_KEYWORD_ATTRIBUTE.AB_KEYWORD_ATTRIBUTEID", keywordAttributeId)
.buildSql("select AB_KEYWORD_ATTRIBUTE.NAME, AB_KEYWORD_ATTRIBUTE.TYPE from AB_KEYWORD_ATTRIBUTE");
res = db.cell(sql);
}
result.string(res);
\ No newline at end of file
...@@ -50,8 +50,13 @@ ...@@ -50,8 +50,13 @@
<children> <children>
<entityParameter> <entityParameter>
<name>ContainerName_param</name> <name>ContainerName_param</name>
<expose v="true" />
<triggerRecalculation v="false" /> <triggerRecalculation v="false" />
</entityParameter> </entityParameter>
<entityParameter>
<name>FilterAlreadyUsedByEntryId_param</name>
<expose v="true" />
</entityParameter>
</children> </children>
</entityProvider> </entityProvider>
<entityParameter> <entityParameter>
......
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