Skip to content
Snippets Groups Projects
Commit e3cb6148 authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

eslint fixes

parent e812173c
No related branches found
No related tags found
1 merge request!32023.2 modules plattform
Pipeline #29917 passed
Showing
with 62 additions and 62 deletions
{}
\ No newline at end of file
......@@ -2,7 +2,7 @@ import { neon, vars } from "@aditosoftware/jdito-types";
var fieldValues = JSON.parse(vars.get("$param.Rows_param"));
var fieldId = vars.get("$local.uid");
var row = fieldValues.find(function ([id])
var row = fieldValues.find(function([id])
{
return id === fieldId;
});
......
import { result } from "@aditosoftware/jdito-types";
result.object(["Salesproject"
, "Offer"
, "SupportTicket"]);
\ No newline at end of file
result.object(["Salesproject",
"Offer",
"SupportTicket"]);
\ No newline at end of file
......@@ -3,26 +3,26 @@ import { modules, result, vars } from "@aditosoftware/jdito-types";
var entity = vars.get("$param.Entity_param");
var consumerMap = {
"DocumentTemplate_entity" : "DocumentTemplates",
"Organisation_entity" : "Organisations",
"Salesproject_entity" : "Salesprojects",
"SerialLetter_entity" : "SerialLetters",
"AnyContact_entity" : "Contacts",
"Attribute_entity" : "Attributes",
"Activity_entity" : "Activities",
"Contract_entity" : "Contracts",
"Campaign_entity" : "Campaigns",
"CampaignStep_entity" : "CampaignSteps",
"BulkMail_entity" : "Bulkmails",
"Employee_entity" : "Employees",
"Product_entity" : "Products",
"Person_entity" : "Persons",
"Offer_entity" : "Offers",
"Order_entity" : "Orders",
"Task_entity" : "Tasks",
"Language_entity" : "Languages",
"SupportTicket_entity" : "SupportTickets",
"MSTTeam_entity" : "MSTTeam"
"DocumentTemplate_entity": "DocumentTemplates",
"Organisation_entity": "Organisations",
"Salesproject_entity": "Salesprojects",
"SerialLetter_entity": "SerialLetters",
"AnyContact_entity": "Contacts",
"Attribute_entity": "Attributes",
"Activity_entity": "Activities",
"Contract_entity": "Contracts",
"Campaign_entity": "Campaigns",
"CampaignStep_entity": "CampaignSteps",
"BulkMail_entity": "Bulkmails",
"Employee_entity": "Employees",
"Product_entity": "Products",
"Person_entity": "Persons",
"Offer_entity": "Offers",
"Order_entity": "Orders",
"Task_entity": "Tasks",
"Language_entity": "Languages",
"SupportTicket_entity": "SupportTickets",
"MSTTeam_entity": "MSTTeam"
};
modules.loadService("objectProxyConsumer_service")
......
import { vars, result } from "@aditosoftware/jdito-types";
import { result, vars } from "@aditosoftware/jdito-types";
result.string(vars.get("$param.ContactId_param"));
\ No newline at end of file
import { $AttributeRegistry } from "AttributeRegistry_basic";
import { result } from "@aditosoftware/jdito-types";
import { $AttributeRegistry } from "AttributeRegistry_basic";
result.string($AttributeRegistry.departments());
\ No newline at end of file
import { OrgUtils } from "Organisation_lib";
import { result, vars } from "@aditosoftware/jdito-types";
import { OrgUtils } from "Organisation_lib";
import { newSelect } from "SqlBuilder_lib";
var persContactId = vars.get("$param.PersonContactId_param");
......@@ -13,10 +13,10 @@ if(persContactId)
else if(orgContactId)
{
res = newSelect("CONTACT.CONTACTID")
.from("CONTACT")
.where("CONTACT.ORGANISATION_ID", OrgUtils.getOrganisationIdByContactId(orgContactId))
.and("CONTACT.PERSON_ID is not null")
.arrayColumn();
.from("CONTACT")
.where("CONTACT.ORGANISATION_ID", OrgUtils.getOrganisationIdByContactId(orgContactId))
.and("CONTACT.PERSON_ID is not null")
.arrayColumn();
res.push(orgContactId);
}
......
import { vars, result } from "@aditosoftware/jdito-types";
import { result, vars } from "@aditosoftware/jdito-types";
result.string(vars.get("$param.ContactId_param"));
\ No newline at end of file
import { vars, result } from "@aditosoftware/jdito-types";
import { result, vars } from "@aditosoftware/jdito-types";
if (vars.exists("$param.ExcludedObjectIds_param") && vars.get("$param.ExcludedObjectIds_param"))
{
result.string(vars.get("$param.ExcludedObjectIds_param"))
result.string(vars.get("$param.ExcludedObjectIds_param"));
}
\ No newline at end of file
import { vars, result } from "@aditosoftware/jdito-types";
import { result, vars } from "@aditosoftware/jdito-types";
result.string(vars.get("$param.ContactId_param"));
\ No newline at end of file
import { vars, result } from "@aditosoftware/jdito-types";
import { result, vars } from "@aditosoftware/jdito-types";
if (vars.exists("$param.ExcludedObjectIds_param") && vars.get("$param.ExcludedObjectIds_param"))
{
result.string(vars.get("$param.ExcludedObjectIds_param"))
result.string(vars.get("$param.ExcludedObjectIds_param"));
}
\ No newline at end of file
import { vars, result } from "@aditosoftware/jdito-types";
import { result, vars } from "@aditosoftware/jdito-types";
if (vars.exists("$param.ExcludedObjectIds_param") && vars.get("$param.ExcludedObjectIds_param"))
{
result.string(vars.get("$param.ExcludedObjectIds_param"))
result.string(vars.get("$param.ExcludedObjectIds_param"));
}
\ No newline at end of file
import { vars, result } from "@aditosoftware/jdito-types";
import { result, vars } from "@aditosoftware/jdito-types";
result.string(vars.get("$param.OrganisationContactId_param") || vars.get("$param.ContactId_param"));
\ No newline at end of file
......@@ -16,7 +16,7 @@ Enables users to edit their own settings and change their password.
=== Particularities
* The settings are stored in the table `ASYS_USERS` as key-value pairs and therefore direct access via DB container is not possible
* The read/write logic is implemented in the `UserSettings_lib` and will be accessed in the jDito Container
* The read/write logic is implemented in the `UserSettingUtil_lib` and will be accessed in the jDito Container
* The field `UID` exists to prevent errors but is not actually needed
......@@ -38,7 +38,7 @@ How can I add more fields to the settings view?::
* Add a new field to this entity. The name must be the same as in the users data model/the settings table
* Add the field to `UsersettingsEdit_view`
* Add the name of the field to the array in `UserSettings_lib`. Most of them are located in the user objects `params` property => `paramSettings`
* Add the name of the field to the array in `UserSettingUtil_lib`. Most of them are located in the user objects `params` property => `paramSettings`
Which setting fields are possible?::
You can find out if you have a look at the return value of `tools.getCurrentUser()`
\ No newline at end of file
import { neon, result, tools, translate, vars } from "@aditosoftware/jdito-types";
import { UserSettingUtil } from "UserSettings_lib";
import { UserSettingUtil } from "UserSettingUtil_lib";
let login = UserSettingUtil.getValue("title");
let password = vars.get("$local.value");
if(vars.get("$property.currentPassword.state") !== neon.COMPONENTSTATE_INVISIBLE) {
if(password && !tools.verifyPassword(login, password, true)) {
result.string(translate.text("Wrong password"));
}
}
if(vars.get("$property.currentPassword.state") !== neon.COMPONENTSTATE_INVISIBLE
&& password && !tools.verifyPassword(login, password, true))
{
result.string(translate.text("Wrong password"));
}
\ No newline at end of file
import { neon, result, tools } from "@aditosoftware/jdito-types";
import { UserSettingUtil } from "UserSettings_lib";
import { UserSettingUtil } from "UserSettingUtil_lib";
let login = UserSettingUtil.getValue("title");
......
import { result, vars } from "@aditosoftware/jdito-types";
import { $KeywordRegistry } from "KeywordRegistry_basic";
import { KeywordUtils } from "Keyword_lib";
import { $KeywordRegistry } from "KeywordRegistry_basic";
result.string(KeywordUtils.getViewValue($KeywordRegistry.incomingCallContext(), vars.get("$field.incomingCallContext")));
\ No newline at end of file
import { result, vars } from "@aditosoftware/jdito-types";
import { newSelect } from "SqlBuilder_lib";
import { Contact, ContactTitleRenderer } from "Contact_lib";
import { newSelect } from "SqlBuilder_lib";
var contactId = vars.get("$field.prefferredApprover");
if(contactId)
......@@ -8,9 +8,10 @@ if(contactId)
var contact = new Contact();
[contact.salutation, contact.title, contact.firstname, contact.middlename, contact.lastname]
= newSelect("PERSON.SALUTATION, PERSON.TITLE, PERSON.FIRSTNAME, PERSON.MIDDLENAME, PERSON.LASTNAME", "Data_alias")
.from("CONTACT")
.leftJoin("PERSON", "PERSON.PERSONID = CONTACT.PERSON_ID")
.whereIfSet("CONTACT.CONTACTID", contactId)
.arrayRow(true);
result.string(new ContactTitleRenderer(contact, ContactTitleRenderer.OPTIONS.NoOption).asString());
.from("CONTACT")
.leftJoin("PERSON", "PERSON.PERSONID = CONTACT.PERSON_ID")
.whereIfSet("CONTACT.CONTACTID", contactId)
.arrayRow(true);
result.string(new ContactTitleRenderer(contact, ContactTitleRenderer.OPTIONS.NoOption)
.asString());
}
import { result } from "@aditosoftware/jdito-types";
result.object([["true", "1"],["false", "0"]]);
\ No newline at end of file
result.object([["true", "1"], ["false", "0"]]);
\ No newline at end of file
......@@ -4,8 +4,8 @@ import { newSelect } from "SqlBuilder_lib";
var currencyIso = vars.get("$field.userCurrency");
var title = newSelect("AB_CURRENCY.NAME", "Data_alias")
.from("AB_CURRENCY")
.where("AB_CURRENCY.ISO4", currencyIso)
.cell();
.from("AB_CURRENCY")
.where("AB_CURRENCY.ISO4", currencyIso)
.cell();
result.string(translate.text(title) + " (" + currencyIso + ")");
\ 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