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

testcode for keyword entities

parent 358e289c
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@
<title>Country</title>
<mandatory v="true" />
<outgoingField>Countries_dfo</outgoingField>
<displayValueProcess>%aditoprj%/entity/Address_entity/entityfields/country/displayValueProcess.js</displayValueProcess>
</entityField>
<entityField>
<name>DATE_EDIT</name>
......
import("system.vars");
import("system.db");
import("system.translate");
import("system.result");
import("Sql_lib");
//TODO: temporary testing code
var isoCode = vars.get("$field.COUNTRY");
var countryName = db.cell(SqlCondition.begin().andPrepare("COUNTRYINFO.ISO2", isoCode).buildSelect("select COUNTRYINFO.NAME_LATIN from COUNTRYINFO"));
countryName = translate.text(countryName);
result.string(countryName);
\ No newline at end of file
import("system.vars");
import("system.db");
import("system.translate");
import("system.result");
import("Sql_lib");
result.string(vars.getString("$field.LANGUAGE"));
\ No newline at end of file
//TODO: temporary testing code
var isoCode = vars.get("$field.LANGUAGE");
var countryName = db.cell(SqlCondition.begin().andPrepare("COUNTRYINFO.ISO2", isoCode).buildSelect("select COUNTRYINFO.NAME_LATIN from COUNTRYINFO"));
countryName = translate.text(countryName);
result.string(countryName);
\ 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