diff --git a/entity/Address_entity/Address_entity.aod b/entity/Address_entity/Address_entity.aod index 3feac2b6cffd866329fcf92285773851a8023e85..6d9d49d26b160768876a8c3c7d5057117728f694 100644 --- a/entity/Address_entity/Address_entity.aod +++ b/entity/Address_entity/Address_entity.aod @@ -232,6 +232,8 @@ </entityParameter> <entityParameter> <name>OrganisationId_param</name> + <title></title> + <valueProcess>%aditoprj%/entity/Address_entity/entityfields/organisationandcontactaddresses/children/organisationid_param/valueProcess.js</valueProcess> <expose v="true" /> </entityParameter> <entityParameter> diff --git a/entity/Address_entity/entityfields/organisationandcontactaddresses/children/organisationid_param/valueProcess.js b/entity/Address_entity/entityfields/organisationandcontactaddresses/children/organisationid_param/valueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..d1f6855f94f017b4830624265de0e0f58eec53cb --- /dev/null +++ b/entity/Address_entity/entityfields/organisationandcontactaddresses/children/organisationid_param/valueProcess.js @@ -0,0 +1,7 @@ +import("system.db"); +import("system.result"); +import("Sql_lib"); + +result.string(db.cell(SqlCondition.begin() + .andPrepareVars("CONTACT.CONTACTID", "$param.ContactId_param") + .buildSql("select ORGANISATION_ID from CONTACT", "1=2")));