Skip to content
Snippets Groups Projects
Commit ba45661f authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong:
Browse files

[Projekt: xRM-ContactManagement][TicketNr.: 1075564][Angabe einer...

[Projekt: xRM-ContactManagement][TicketNr.: 1075564][Angabe einer Postfachnummer bei Postfachadressen]
parent fa54cbc6
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
<mandatory v="true" />
<textInputAllowed v="false" />
<stateProcess>%aditoprj%/entity/Address_entity/entityfields/address/stateProcess.js</stateProcess>
<titleProcess>%aditoprj%/entity/Address_entity/entityfields/address/titleProcess.js</titleProcess>
<tooltip></tooltip>
<onValueChange>%aditoprj%/entity/Address_entity/entityfields/address/onValueChange.js</onValueChange>
<onValueChangeTypes>
......
import("system.result");
import("system.vars");
import("KeywordRegistry_basic");
import("Keyword_lib");
var key = vars.get("$field.ADDR_TYPE");
if (key == $KeywordRegistry.addressType$post())
{
result.string("Post office box number");
}
import("KeywordRegistry_basic");
import("system.neon");
import("system.result");
import("system.vars");
var key = vars.get("$field.ADDR_TYPE");
// The field is only displayed in edit mode because there is the "formattedAddress" field which one shows the fromated address.
// If the field has a Value it would be displayed next to the formattedAddress field in view mode, so in this case the state is set to invisible.
if (vars.get("$sys.recordstate") == "" || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW)
if (vars.get("$sys.recordstate") == "" || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW || key == $KeywordRegistry.addressType$post())
{
result.string(neon.COMPONENTSTATE_INVISIBLE);
}
\ 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