Skip to content
Snippets Groups Projects
Commit 3b3cd9f3 authored by Erik Pollinger's avatar Erik Pollinger
Browse files

merged origin/master into EP_KnowledgeManagement

parents a22088d9 fa1c80d6
No related branches found
No related tags found
No related merge requests found
Showing
with 371 additions and 129 deletions
...@@ -171,11 +171,6 @@ ...@@ -171,11 +171,6 @@
</entityParameter> </entityParameter>
<entityConsumer> <entityConsumer>
<name>AppointmentLinks</name> <name>AppointmentLinks</name>
<dependency>
<name>dependency</name>
<entityName>AppointmentLink_entity</entityName>
<fieldName>Links</fieldName>
</dependency>
<children> <children>
<entityParameter> <entityParameter>
<name>AppointmentId_param</name> <name>AppointmentId_param</name>
...@@ -187,6 +182,11 @@ ...@@ -187,6 +182,11 @@
<expose v="false" /> <expose v="false" />
</entityParameter> </entityParameter>
</children> </children>
<dependency>
<name>dependency</name>
<entityName>AppointmentLink_entity</entityName>
<fieldName>Links</fieldName>
</dependency>
</entityConsumer> </entityConsumer>
<entityActionField> <entityActionField>
<name>deleteSeries</name> <name>deleteSeries</name>
...@@ -254,6 +254,11 @@ ...@@ -254,6 +254,11 @@
<name>#PROVIDER_AGGREGATES</name> <name>#PROVIDER_AGGREGATES</name>
<useAggregates v="true" /> <useAggregates v="true" />
</entityProvider> </entityProvider>
<entityParameter>
<name>ErrorOnPermissionDenied</name>
<valueProcess>%aditoprj%/entity/Appointment_entity/entityfields/erroronpermissiondenied/valueProcess.js</valueProcess>
<expose v="true" />
</entityParameter>
</entityFields> </entityFields>
<recordContainers> <recordContainers>
<jDitoRecordContainer> <jDitoRecordContainer>
......
import("system.result");
result.string("true");
\ No newline at end of file
import("Calendar_lib");
import("Employee_lib"); import("Employee_lib");
import("system.tools"); import("system.tools");
import("system.db"); import("system.db");
...@@ -28,14 +29,14 @@ if(vars.exists("$param.Entry_param") && vars.get("$param.Entry_param")) ...@@ -28,14 +29,14 @@ if(vars.exists("$param.Entry_param") && vars.get("$param.Entry_param"))
//@TODO Icon //@TODO Icon
result.object([ result.object([
buildEntry(entry, masterEntry) CalendarUtil.buildEntry(entry, masterEntry)
]); ]);
} }
else if(vars.get("$sys.recordstate") != neon.OPERATINGSTATE_NEW && vars.get("$local.idvalues") != null && vars.get("$local.idvalues") != "") else if(vars.get("$sys.recordstate") != neon.OPERATINGSTATE_NEW && vars.get("$local.idvalues") != null && vars.get("$local.idvalues") != "")
{ {
var selectedids = vars.get("$local.idvalues"); var selectedids = vars.get("$local.idvalues");
result.object([buildEntry(calendars.getEntry(selectedids, null, null), null)]); result.object([CalendarUtil.buildEntry(calendars.getEntry(selectedids, null, null), null)]);
} }
else if(vars.getString("$param.LinkedAppointmentsFromDashlet_param")) else if(vars.getString("$param.LinkedAppointmentsFromDashlet_param"))
...@@ -43,7 +44,7 @@ else if(vars.getString("$param.LinkedAppointmentsFromDashlet_param")) ...@@ -43,7 +44,7 @@ else if(vars.getString("$param.LinkedAppointmentsFromDashlet_param"))
var contactid = EmployeeUtils.getCurrentContactId(); var contactid = EmployeeUtils.getCurrentContactId();
appointmentSelect.whereIfSet("AB_APPOINTMENTLINK.OBJECT_ROWID", contactid) appointmentSelect.whereIfSet("AB_APPOINTMENTLINK.OBJECT_ROWID", contactid)
result.object(buildEntriesFromUids(appointmentSelect.table())); result.object(CalendarUtil.buildEntriesFromUids(appointmentSelect.table()));
} }
/** /**
...@@ -52,78 +53,5 @@ else if(vars.getString("$param.LinkedAppointmentsFromDashlet_param")) ...@@ -52,78 +53,5 @@ else if(vars.getString("$param.LinkedAppointmentsFromDashlet_param"))
else if(vars.getString("$param.LinkedObjectId_param") != undefined) else if(vars.getString("$param.LinkedObjectId_param") != undefined)
{ {
appointmentSelect.whereIfSet("AB_APPOINTMENTLINK.OBJECT_ROWID", "$param.LinkedObjectId_param") appointmentSelect.whereIfSet("AB_APPOINTMENTLINK.OBJECT_ROWID", "$param.LinkedObjectId_param")
result.object(buildEntriesFromUids(appointmentSelect.table())); result.object(CalendarUtil.buildEntriesFromUids(appointmentSelect.table()));
}
function buildEntriesFromUids(appointmentUids)
{
var entryArray = new Array(appointmentUids.length);
for(var i = 0; i < appointmentUids.length; i++)
entryArray[i] = buildEntry(calendars.getEntry(appointmentUids[i], null, null), null);
return entryArray;
}
function buildEntry(pEntry, pMasterentry)
{
var uid = pEntry[calendars.ID];
var summary = pEntry[calendars.SUMMARY];
var attendees = pEntry[calendars.AFFECTEDUSERS];
var startdate = pEntry[calendars.DTSTART];
var enddate = pEntry[calendars.DTEND];
var links = pEntry[calendars.LINKS];
var description = pEntry[calendars.DESCRIPTION];
if(pEntry[calendars.ORGANIZER2] != undefined)
var organizer = pEntry[calendars.ORGANIZER2]["paramvalue"];
if(pEntry[calendars.USER2] != undefined)
var owner = JSON.stringify(pEntry[calendars.USER2]);
var status = pEntry[calendars.STATUS];
var location = pEntry[calendars.LOCATION];
var reminder = pEntry[calendars.REMINDER_DURATION];
var remindercheck = pEntry[calendars.HASREMINDER]
var classification = pEntry[calendars.CLASSIFICATION];
var transparency = pEntry[calendars.TRANSPARENCY];
var categories = pEntry[calendars.CATEGORIES];
var isAllDay = pEntry["X-ADITO-ISALLDAYEVENT"] != null ? pEntry["X-ADITO-ISALLDAYEVENT"] : "FALSE";
var masterBegin = pMasterentry != null ? pMasterentry[calendars.DTSTART] : null
var masterEnd = pMasterentry != null ? pMasterentry[calendars.DTEND] : null
// Recurrence
var recurrenceID = pEntry[calendars.RECURRENCEID];
var rrule = null;
if (pMasterentry != null) { // Entry is a recurrence exception, therefore get rrule from master
rrule = pMasterentry[calendars.RRULE] != null ? pMasterentry[calendars.RRULE][0] : null;
} else {
rrule = pEntry[calendars.RRULE] != null ? pEntry[calendars.RRULE][0] : null;
}
return [
uid,
attendees.length,
startdate,
enddate,
summary,
organizer,
owner,
attendees,
status,
description,
location,
'',
isAllDay,
classification,
transparency,
categories,
reminder,
remindercheck,
rrule,
recurrenceID,
null,
masterBegin,
masterEnd,
null
];
} }
import("Calendar_lib");
import("system.db"); import("system.db");
import("Employee_lib"); import("Employee_lib");
import("Sql_lib"); import("Sql_lib");
...@@ -5,7 +6,7 @@ import("system.vars"); ...@@ -5,7 +6,7 @@ import("system.vars");
import("system.result"); import("system.result");
var rowCount = "0"; var rowCount = "0";
var cond = newSelect("count(APPOINTMENT_ID)") var cond = newSelect("APPOINTMENT_ID")
.from("AB_APPOINTMENTLINK"); .from("AB_APPOINTMENTLINK");
if (vars.exists("$local.idvalues") && vars.get("$local.idvalues")) if (vars.exists("$local.idvalues") && vars.get("$local.idvalues"))
...@@ -13,7 +14,7 @@ if (vars.exists("$local.idvalues") && vars.get("$local.idvalues")) ...@@ -13,7 +14,7 @@ if (vars.exists("$local.idvalues") && vars.get("$local.idvalues"))
else if (vars.getString("$param.LinkedAppointmentsFromDashlet_param")) else if (vars.getString("$param.LinkedAppointmentsFromDashlet_param"))
{ {
cond.whereIfSet("AB_APPOINTMENTLINK.OBJECT_ROWID", EmployeeUtils.getCurrentContactId()); cond.whereIfSet("AB_APPOINTMENTLINK.OBJECT_ROWID", EmployeeUtils.getCurrentContactId());
rowCount = cond.cell(); rowCount = CalendarUtil.countEntriesFromUids(cond.table());
} }
/** /**
...@@ -22,7 +23,7 @@ else if (vars.getString("$param.LinkedAppointmentsFromDashlet_param")) ...@@ -22,7 +23,7 @@ else if (vars.getString("$param.LinkedAppointmentsFromDashlet_param"))
else if (vars.getString("$param.LinkedObjectId_param") != undefined) else if (vars.getString("$param.LinkedObjectId_param") != undefined)
{ {
cond.whereIfSet("AB_APPOINTMENTLINK.OBJECT_ROWID", "$param.LinkedObjectId_param"); cond.whereIfSet("AB_APPOINTMENTLINK.OBJECT_ROWID", "$param.LinkedObjectId_param");
rowCount = cond.cell(); rowCount = CalendarUtil.countEntriesFromUids(cond.table());
} }
/** /**
* Will be used, if the user is operating the calendar. * Will be used, if the user is operating the calendar.
......
...@@ -121,6 +121,13 @@ ...@@ -121,6 +121,13 @@
<iconId>VAADIN:BAN</iconId> <iconId>VAADIN:BAN</iconId>
<tooltipProcess>%aditoprj%/entity/BulkMailRecipient_entity/entityfields/recipientactions/children/removewithcommrestriction/tooltipProcess.js</tooltipProcess> <tooltipProcess>%aditoprj%/entity/BulkMailRecipient_entity/entityfields/recipientactions/children/removewithcommrestriction/tooltipProcess.js</tooltipProcess>
</entityActionField> </entityActionField>
<entityActionField>
<name>startMarketingWorkflows</name>
<title>Start marketing mailing</title>
<onActionProcess>%aditoprj%/entity/BulkMailRecipient_entity/entityfields/recipientactions/children/startmarketingworkflows/onActionProcess.js</onActionProcess>
<isObjectAction v="false" />
<iconId>VAADIN:ENVELOPES</iconId>
</entityActionField>
</children> </children>
</entityActionGroup> </entityActionGroup>
<entityField> <entityField>
......
import("Util_lib");
import("system.entities");
import("Context_lib");
import("system.vars");
import("system.neon");
var rows = vars.get("$sys.selectionRows");
var filter = vars.get("$sys.filter").filter;
var targets = [];
if (Utils.isNullOrEmpty(rows))
{
let loadConfig = entities.createConfigForLoadingRows()
.entity("BulkMailRecipient_entity")
.provider("BulkMailRecipients")
.fields(["CONTACT_ID", "TARGETCONTEXT"])
.addParameter("BulkMailId_param", vars.get("$param.BulkMailId_param"));
if (filter)
loadConfig.filter(JSON.stringify(filter));
rows = entities.getRows(loadConfig);
}
rows = rows.map(function (row)
{
return [row["CONTACT_ID"], row["TARGETCONTEXT"]];
});
neon.openContext("MarketingWorkflowLauncher", "MarketingWorkflowLauncherEdit_view", null, neon.OPERATINGSTATE_VIEW, {
"ObjectIds_param": JSON.stringify(rows),
"ObjectType_param": ContextUtils.getCurrentContextId()
});
\ No newline at end of file
...@@ -177,6 +177,13 @@ ...@@ -177,6 +177,13 @@
<tooltip>Update campaign step</tooltip> <tooltip>Update campaign step</tooltip>
<tooltipProcess>%aditoprj%/entity/CampaignParticipant_entity/entityfields/filterviewactiongroup/children/setsteptoparticipantselection/tooltipProcess.js</tooltipProcess> <tooltipProcess>%aditoprj%/entity/CampaignParticipant_entity/entityfields/filterviewactiongroup/children/setsteptoparticipantselection/tooltipProcess.js</tooltipProcess>
</entityActionField> </entityActionField>
<entityActionField>
<name>startMarketingWorkflows</name>
<title>Start marketing mailing</title>
<onActionProcess>%aditoprj%/entity/CampaignParticipant_entity/entityfields/filterviewactiongroup/children/startmarketingworkflows/onActionProcess.js</onActionProcess>
<isObjectAction v="false" />
<iconId>VAADIN:ENVELOPES</iconId>
</entityActionField>
</children> </children>
</entityActionGroup> </entityActionGroup>
<entityField> <entityField>
......
import("Util_lib");
import("system.entities");
import("Context_lib");
import("system.vars");
import("system.neon");
var rows = vars.get("$sys.selectionRows");
var filter = vars.get("$sys.filter").filter;
var targets = [];
if (Utils.isNullOrEmpty(rows))
{
let loadConfig = entities.createConfigForLoadingRows()
.entity("CampaignParticipant_entity")
.provider("CampaignParticipantsProvider")
.fields(["CONTACT_ID", "CONTACTCONTEXT"])
.addParameter("CampaignId_param", vars.get("$param.CampaignId_param"))
.addParameter("CampaignStepId_param", vars.get("$param.CampaignStepId_param"))
.addParameter("ContactId_param", vars.get("$param.ContactId_param"));
if (filter)
loadConfig.filter(JSON.stringify(filter));
rows = entities.getRows(loadConfig);
}
rows = rows.map(function (row)
{
return [row["CONTACT_ID"], row["CONTACTCONTEXT"]];
});
neon.openContext("MarketingWorkflowLauncher", "MarketingWorkflowLauncherEdit_view", null, neon.OPERATINGSTATE_VIEW, {
"ObjectIds_param": JSON.stringify(rows),
"ObjectType_param": ContextUtils.getCurrentContextId()
});
\ No newline at end of file
...@@ -321,6 +321,7 @@ ...@@ -321,6 +321,7 @@
<entityConsumer> <entityConsumer>
<name>DocumentTemplatePlaceOfUse</name> <name>DocumentTemplatePlaceOfUse</name>
<stateProcess>%aditoprj%/entity/DocumentTemplate_entity/entityfields/documenttemplateplaceofuse/stateProcess.js</stateProcess> <stateProcess>%aditoprj%/entity/DocumentTemplate_entity/entityfields/documenttemplateplaceofuse/stateProcess.js</stateProcess>
<onValidation>%aditoprj%/entity/DocumentTemplate_entity/entityfields/documenttemplateplaceofuse/onValidation.js</onValidation>
<dependency> <dependency>
<name>dependency</name> <name>dependency</name>
<entityName>DocumentTemplatePlaceOfUse_entity</entityName> <entityName>DocumentTemplatePlaceOfUse_entity</entityName>
......
import("system.translate");
import("system.result");
import("system.vars");
import("Entity_lib");
var usages = EntityConsumerRowsHelper.getCurrentConsumerRows("DocumentTemplatePlaceOfUse", ["PLACEOFUSE"]);
var hasMarketingWorkflowUsage = usages.some(function (usage)
{
return usage["PLACEOFUSE"] == "MarketingWorkflowLauncher";
});
if (hasMarketingWorkflowUsage && !vars.get("$field.Content").includes("{@workflowActionLink@}"))
{
result.string(translate.text("The template must contain the placeholder for the worklow-link to use it with the marketing workflow"));
}
...@@ -144,6 +144,26 @@ ...@@ -144,6 +144,26 @@
<entityProvider> <entityProvider>
<name>Documents</name> <name>Documents</name>
<recordContainer>jdito</recordContainer> <recordContainer>jdito</recordContainer>
<children>
<entityParameter>
<name>AssignmentName_param</name>
<valueProcess>%aditoprj%/entity/Document_entity/entityfields/documents/children/assignmentname_param/valueProcess.js</valueProcess>
<expose v="true" />
<documentation>%aditoprj%/entity/Document_entity/entityfields/documents/children/assignmentname_param/documentation.adoc</documentation>
</entityParameter>
<entityParameter>
<name>AssignmentRowId_param</name>
<expose v="true" />
</entityParameter>
<entityParameter>
<name>AssignmentTable_param</name>
<expose v="true" />
</entityParameter>
<entityParameter>
<name>Keyword_param</name>
<expose v="true" />
</entityParameter>
</children>
<dependencies> <dependencies>
<entityDependency> <entityDependency>
<name>1eae1907-53ea-4d6f-bcf1-772052365020</name> <name>1eae1907-53ea-4d6f-bcf1-772052365020</name>
...@@ -225,7 +245,7 @@ ...@@ -225,7 +245,7 @@
</entityDependency> </entityDependency>
<entityDependency> <entityDependency>
<name>2e6fcf27-ee98-4f7d-a99d-7ce02774076b</name> <name>2e6fcf27-ee98-4f7d-a99d-7ce02774076b</name>
<entityName>UserhelpResources</entityName> <entityName>UserhelpResources_entity</entityName>
<fieldName>Documents</fieldName> <fieldName>Documents</fieldName>
<isConsumer v="false" /> <isConsumer v="false" />
</entityDependency> </entityDependency>
...@@ -242,12 +262,23 @@ ...@@ -242,12 +262,23 @@
<isConsumer v="false" /> <isConsumer v="false" />
</entityDependency> </entityDependency>
</dependencies> </dependencies>
</entityProvider>
<entityProvider>
<name>MainDocuments</name>
<recordContainer>jdito</recordContainer>
<children> <children>
<entityParameter>
<name>Keyword_param</name>
<valueProcess>%aditoprj%/entity/Document_entity/entityfields/maindocuments/children/keyword_param/valueProcess.js</valueProcess>
<expose v="true" />
<mandatory v="true" />
<description>TODO: expose auf false. aktuell wird der Code nicht ausgeführt, wenn Expose false ist.</description>
</entityParameter>
<entityParameter> <entityParameter>
<name>AssignmentName_param</name> <name>AssignmentName_param</name>
<valueProcess>%aditoprj%/entity/Document_entity/entityfields/documents/children/assignmentname_param/valueProcess.js</valueProcess> <valueProcess>%aditoprj%/entity/Document_entity/entityfields/maindocuments/children/assignmentname_param/valueProcess.js</valueProcess>
<expose v="true" /> <expose v="true" />
<documentation>%aditoprj%/entity/Document_entity/entityfields/documents/children/assignmentname_param/documentation.adoc</documentation> <documentation>%aditoprj%/entity/Document_entity/entityfields/maindocuments/children/assignmentname_param/documentation.adoc</documentation>
</entityParameter> </entityParameter>
<entityParameter> <entityParameter>
<name>AssignmentRowId_param</name> <name>AssignmentRowId_param</name>
...@@ -258,14 +289,10 @@ ...@@ -258,14 +289,10 @@
<expose v="true" /> <expose v="true" />
</entityParameter> </entityParameter>
<entityParameter> <entityParameter>
<name>Keyword_param</name> <name>DisallowCreate_param</name>
<expose v="true" /> <expose v="false" />
</entityParameter> </entityParameter>
</children> </children>
</entityProvider>
<entityProvider>
<name>MainDocuments</name>
<recordContainer>jdito</recordContainer>
<dependencies> <dependencies>
<entityDependency> <entityDependency>
<name>87d738a5-5d5e-425e-b013-007371475a38</name> <name>87d738a5-5d5e-425e-b013-007371475a38</name>
...@@ -310,33 +337,6 @@ ...@@ -310,33 +337,6 @@
<isConsumer v="false" /> <isConsumer v="false" />
</entityDependency> </entityDependency>
</dependencies> </dependencies>
<children>
<entityParameter>
<name>Keyword_param</name>
<valueProcess>%aditoprj%/entity/Document_entity/entityfields/maindocuments/children/keyword_param/valueProcess.js</valueProcess>
<expose v="true" />
<mandatory v="true" />
<description>TODO: expose auf false. aktuell wird der Code nicht ausgeführt, wenn Expose false ist.</description>
</entityParameter>
<entityParameter>
<name>AssignmentName_param</name>
<valueProcess>%aditoprj%/entity/Document_entity/entityfields/maindocuments/children/assignmentname_param/valueProcess.js</valueProcess>
<expose v="true" />
<documentation>%aditoprj%/entity/Document_entity/entityfields/maindocuments/children/assignmentname_param/documentation.adoc</documentation>
</entityParameter>
<entityParameter>
<name>AssignmentRowId_param</name>
<expose v="true" />
</entityParameter>
<entityParameter>
<name>AssignmentTable_param</name>
<expose v="true" />
</entityParameter>
<entityParameter>
<name>DisallowCreate_param</name>
<expose v="false" />
</entityParameter>
</children>
</entityProvider> </entityProvider>
<entityParameter> <entityParameter>
<name>DisallowCreate_param</name> <name>DisallowCreate_param</name>
...@@ -346,14 +346,6 @@ ...@@ -346,14 +346,6 @@
<entityProvider> <entityProvider>
<name>SingleDocument</name> <name>SingleDocument</name>
<titlePlural>Document</titlePlural> <titlePlural>Document</titlePlural>
<dependencies>
<entityDependency>
<name>91f87622-d0e8-43c6-99a0-5f9cebf79aaf</name>
<entityName>SerialLetter_entity</entityName>
<fieldName>Documents</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
<children> <children>
<entityParameter> <entityParameter>
<name>AssignmentName_param</name> <name>AssignmentName_param</name>
...@@ -365,6 +357,14 @@ ...@@ -365,6 +357,14 @@
<expose v="true" /> <expose v="true" />
</entityParameter> </entityParameter>
</children> </children>
<dependencies>
<entityDependency>
<name>91f87622-d0e8-43c6-99a0-5f9cebf79aaf</name>
<entityName>SerialLetter_entity</entityName>
<fieldName>Documents</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
</entityProvider> </entityProvider>
<entityProvider> <entityProvider>
<name>#PROVIDER_AGGREGATES</name> <name>#PROVIDER_AGGREGATES</name>
......
<?xml version="1.0" encoding="UTF-8"?>
<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.17" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.17">
<name>EmployeeToken_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<title>User token</title>
<titlePlural>User tokens</titlePlural>
<recordContainer>db</recordContainer>
<entityFields>
<entityProvider>
<name>#PROVIDER</name>
</entityProvider>
<entityProvider>
<name>#PROVIDER_AGGREGATES</name>
<useAggregates v="true" />
</entityProvider>
<entityField>
<name>ID</name>
<title>Token</title>
</entityField>
<entityField>
<name>VALID_STATUS_ICON</name>
<title>Valid</title>
<colorProcess>%aditoprj%/entity/EmployeeToken_entity/entityfields/valid_status_icon/colorProcess.js</colorProcess>
<contentType>IMAGE</contentType>
<mandatory v="false" />
<displayValueProcess>%aditoprj%/entity/EmployeeToken_entity/entityfields/valid_status_icon/displayValueProcess.js</displayValueProcess>
</entityField>
<entityField>
<name>VALID_TO</name>
<title>Valid to</title>
<contentType>DATE</contentType>
<mandatory v="false" />
</entityField>
<entityField>
<name>GROUP_ID</name>
<title>Group</title>
<mandatory v="true" />
<dropDownProcess>%aditoprj%/entity/EmployeeToken_entity/entityfields/group_id/dropDownProcess.js</dropDownProcess>
<textInputAllowed v="true" />
<stateProcess>%aditoprj%/entity/EmployeeToken_entity/entityfields/group_id/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/EmployeeToken_entity/entityfields/group_id/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/EmployeeToken_entity/entityfields/group_id/displayValueProcess.js</displayValueProcess>
</entityField>
<entityField>
<name>LOGIN_USER_ID</name>
<title>User</title>
<valueProcess>%aditoprj%/entity/EmployeeToken_entity/entityfields/login_user_id/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>VALID_FROM</name>
<title>Valid from</title>
<contentType>DATE</contentType>
<mandatory v="false" />
<valueProcess>%aditoprj%/entity/EmployeeToken_entity/entityfields/valid_from/valueProcess.js</valueProcess>
</entityField>
<entityProvider>
<name>EmployeeTokenProvider</name>
<dependencies>
<entityDependency>
<name>08c3e88c-5119-477e-8374-3f89bbc4ded0</name>
<entityName>Employee_entity</entityName>
<fieldName>EmployeeTokens</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
</entityProvider>
<entityParameter>
<name>employeeId_param</name>
<expose v="true" />
</entityParameter>
<entityField>
<name>VALID</name>
<title>Valid</title>
<contentType>BOOLEAN</contentType>
<mandatory v="true" />
<valueProcess>%aditoprj%/entity/EmployeeToken_entity/entityfields/valid/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>GROUP_ID_DISPLAY</name>
<title>Group</title>
<stateProcess>%aditoprj%/entity/EmployeeToken_entity/entityfields/group_id_display/stateProcess.js</stateProcess>
<displayValueProcess>%aditoprj%/entity/EmployeeToken_entity/entityfields/group_id_display/displayValueProcess.js</displayValueProcess>
</entityField>
</entityFields>
<recordContainers>
<dbRecordContainer>
<name>db</name>
<alias>_____SYSTEMALIAS</alias>
<conditionProcess>%aditoprj%/entity/EmployeeToken_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<linkInformation>
<linkInformation>
<name>98f70a7c-4e43-4984-ad69-44339150f1ee</name>
<tableName>ASYS_USERTOKEN</tableName>
<primaryKey>ID</primaryKey>
<isUIDTable v="true" />
<readonly v="false" />
</linkInformation>
</linkInformation>
<recordFieldMappings>
<dbRecordFieldMapping>
<name>ID.value</name>
<recordfield>ASYS_USERTOKEN.ID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VALID_STATUS_ICON.value</name>
<recordfield>ASYS_USERTOKEN.VALID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VALID_TO.value</name>
<recordfield>ASYS_USERTOKEN.VALID_TO</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>GROUP_ID.value</name>
<recordfield>ASYS_USERTOKEN.GROUP_ID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>LOGIN_USER_ID.value</name>
<recordfield>ASYS_USERTOKEN.LOGIN_USER_ID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VALID_FROM.value</name>
<recordfield>ASYS_USERTOKEN.VALID_FROM</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VALID.value</name>
<recordfield>ASYS_USERTOKEN.VALID</recordfield>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
</recordContainers>
</entity>
import("system.vars");
import("system.translate");
import("system.result");
result.string(translate.text(vars.get("$this.value")));
import("system.vars");
import("system.logging");
import("system.translate");
import("system.result");
var rawElements = ["#login"];
var resultName = [[]];
for (var i = 0; i < rawElements.length; i++)
{​​​​​
var translation = translate.text(rawElements[i]);
resultName[i] = [rawElements[i], translation];
}​​​​​
result.object(resultName);
\ No newline at end of file
import("system.result");
import("system.vars");
import("system.neon");
if (vars.get("$this.value") == "#rememberme")
{
result.object(neon.COMPONENTSTATE_INVISIBLE);
}
\ No newline at end of file
import("system.translate");
import("system.datetime");
import("system.neon");
import("system.result");
import("system.vars");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$this.value"))
{
result.string("#login");
}
\ No newline at end of file
import("system.translate");
import("system.result");
result.string(translate.text("#rememberme"));
import("system.translate");
import("system.result");
import("system.vars");
import("system.neon");
if (vars.get("$field.GROUP_ID") == "#rememberme")
{
vars.set("$field.GROUP_ID_DISPLAY", translate.text("#rememberme"));
result.object(neon.COMPONENTSTATE_READONLY);
} else {
result.object(neon.COMPONENTSTATE_INVISIBLE);
}
\ No newline at end of file
import("system.util");
import("system.neon");
import("system.result");
import("system.vars");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) // &&!vars.get("$this.value"))
{
result.string(vars.get("$param.employeeId_param"));
}
\ No newline at end of file
import("system.neon");
import("system.result");
import("system.vars");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$this.value"))
{
result.string("1");
}
\ 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