diff --git a/entity/Address_entity/entityfields/country/displayValueProcess.js b/entity/Address_entity/entityfields/country/displayValueProcess.js index c030b65a02e1a02786c9791741fb73746b54f901..227f7b918bd110839b2b8d801078b239d8f56b7f 100644 --- a/entity/Address_entity/entityfields/country/displayValueProcess.js +++ b/entity/Address_entity/entityfields/country/displayValueProcess.js @@ -6,6 +6,6 @@ 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")); +var countryName = db.cell(SqlCondition.begin().andPrepare("COUNTRYINFO.ISO2", isoCode).buildSql("select COUNTRYINFO.NAME_LATIN from COUNTRYINFO")); countryName = translate.text(countryName); result.string(countryName); \ No newline at end of file diff --git a/entity/Org_entity/entityfields/language/displayValueProcess.js b/entity/Org_entity/entityfields/language/displayValueProcess.js index 434f279047976fe4508d8618e40717c3bde40fb0..d8f39933bb77696608441a3f4b99abafcc0ba9db 100644 --- a/entity/Org_entity/entityfields/language/displayValueProcess.js +++ b/entity/Org_entity/entityfields/language/displayValueProcess.js @@ -6,6 +6,6 @@ import("Sql_lib"); //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")); +var countryName = db.cell(SqlCondition.begin().andPrepare("COUNTRYINFO.ISO2", isoCode).buildSql("select COUNTRYINFO.NAME_LATIN from COUNTRYINFO")); countryName = translate.text(countryName); result.string(countryName); \ No newline at end of file