Skip to content
Snippets Groups Projects
Commit 1f0ac3c9 authored by m.escher's avatar m.escher
Browse files

add default Caption for new Contacts

parent 5dc90d19
No related branches found
No related tags found
No related merge requests found
import("system.vars");
import("system.result");
result.string(vars.get("$field.SALUTATION")
+ " " + vars.get("$field.TITLE")
+ " " + vars.get("$field.FIRSTNAME")
+ " " + vars.get("$field.MIDDLENAME")
+ " " + vars.get("$field.LASTNAME")
+ " " + vars.get("$field.TITLESUFFIX"));
\ No newline at end of file
var salutation = vars.get("$field.SALUTATION");
var title = vars.get("$field.TITLE");
var firstname = vars.get("$field.FIRSTNAME");
var middlename = vars.get("$field.MIDDLENAME");
var lastname = vars.get("$field.LASTNAME");
var titlesuffix = vars.get("$field.TITLESUFFIX");
var resultString = [salutation, title, firstname, middlename, lastname, titlesuffix].filter(Boolean).join(" ");
if(resultString)
result.string(resultString);
else
result.string("Neuer Kontakt");
<?xml version="1.0" encoding="UTF-8"?>
<neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.0.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.0.0">
<name>PersEdit_view</name>
<title>Kontakte</title>
<title>Kontakt</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<quickAdd v="true" />
<layout>
......
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