Skip to content
Snippets Groups Projects
Commit ca8b476c authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

use local.value in onValueChange

parent adb71b9a
No related branches found
No related tags found
No related merge requests found
Showing
with 25 additions and 25 deletions
import("system.neon");
import("system.vars");
import("system.calendars");
//var entry = JSON.parse(vars.get("$param.Entry_param"));
//
//entry[calendars.SUMMARY] = vars.get("$field.SUMMARY");
//
import("system.neon");
import("system.vars");
import("system.calendars");
//var entry = JSON.parse(vars.get("$param.Entry_param"));
//
//entry[calendars.SUMMARY] = vars.get("local.value");
//
//neon.setFieldValue("$param.Entry_param", JSON.stringify(entry));
\ No newline at end of file
import("system.vars");
import("system.neon");
import("Campaign_lib");
var stepId;
stepId = CampaignUtils.getDefaultCampaignStep(vars.get("$field.CAMPAIGN_ID"));
import("system.vars");
import("system.neon");
import("Campaign_lib");
var stepId;
stepId = CampaignUtils.getDefaultCampaignStep(vars.get("local.value"));
neon.setFieldValue("$field.CAMPAIGNSTEP_ID", stepId);
\ No newline at end of file
......@@ -2,5 +2,5 @@ import("system.neon");
import("Campaign_lib");
import("system.vars");
var stepId = CampaignUtils.getDefaultCampaignStep(vars.get("$field.CAMPAIGN_ID"));
var stepId = CampaignUtils.getDefaultCampaignStep(vars.get("local.value"));
neon.setFieldValue("$field.CAMPAIGNSTEP_ID", stepId);
\ No newline at end of file
......@@ -2,7 +2,7 @@ import("system.vars");
import("Util_lib");
import("Entity_lib");
var cEnd = vars.get("$field.CONTRACTEND");
var cEnd = vars.get("local.value");
var cDue = vars.get("$field.CONTRACTDUE");
if (cDue != "" && cDue > cEnd)
......
......@@ -2,7 +2,7 @@ import("system.vars");
import("Offer_lib");
var offerId = vars.getString("$field.OFFERID");
if (offerId && vars.get("$field.STATUS") == 2 || vars.get("$field.STATUS") == 3 || vars.get("$field.STATUS") == 4)
if (offerId && vars.get("local.value") == 2 || vars.get("local.value") == 3 || vars.get("local.value") == 4)
{
OfferUtils.setSent(offerId);
}
\ No newline at end of file
......@@ -20,7 +20,7 @@ if(pid != "")
//TODO: loading from db until loading from Consumer is possible.
var ProductDetails = ProductUtils.getProductDetails(pid, PriceListFilter,
[["info", db.translateStatement(SqlCondition.begin()
.andPrepareVars("DESCRIPTIONTRANSLATION.OBJECT_ROWID", "$field.PRODUCT_ID")
.andPrepareVars("DESCRIPTIONTRANSLATION.OBJECT_ROWID", "local.value")
.and("DESCRIPTIONTRANSLATION.OBJECT_TYPE = 'Product'")
.andPrepareVars("DESCRIPTIONTRANSLATION.LANG", "$param.Language_param")
.buildSql("(select DESCRIPTION from DESCRIPTIONTRANSLATION", "1=2", ")"))]
......
......@@ -32,6 +32,6 @@ var quatity = vars.get("$local.value") ? vars.get("$local.value") : "";
if (parseInt(quatity) <= 0)
{
neon.setFieldValue("$field.QUANTITY", "1");
neon.setFieldValue("local.value", "1");
}
\ No newline at end of file
import("Entity_lib");
// TODO: also there is currently no good way to do updates with fields not connected to the record container. Workaround: imagevariable and update in onDBUpdate Process #1030023
FieldChanges.setChange("$field.STANDARD_EMAIL_COMMUNICATION");
\ No newline at end of file
FieldChanges.setChange("local.value");
\ No newline at end of file
import("Entity_lib");
// TODO: also there is currently no good way to do updates with fields not connected to the record container. Workaround: imagevariable and update in onDBUpdate Process #1030023
FieldChanges.setChange("$field.STANDARD_PHONE_COMMUNICATION");
\ No newline at end of file
FieldChanges.setChange("local.value");
\ No newline at end of file
import("Entity_lib");
// TODO: also there is currently no good way to do updates with fields not connected to the record container. Workaround: imagevariable and update in onDBUpdate Process #1030023
FieldChanges.setChange("$field.STANDARD_EMAIL_COMMUNICATION");
\ No newline at end of file
FieldChanges.setChange("local.value");
\ No newline at end of file
import("Entity_lib");
// TODO: also there is currently no good way to do updates with fields not connected to the record container. Workaround: imagevariable and update in onDBUpdate Process #1030023
FieldChanges.setChange("$field.STANDARD_PHONE_COMMUNICATION");
\ No newline at end of file
FieldChanges.setChange("local.value");
\ No newline at end of file
......@@ -9,7 +9,7 @@ import("system.neon");
if (vars.get("$sys.recordstate") != neon.OPERATINGSTATE_NEW)
{
var state = vars.get("$field.STATE");
var state = vars.get("local.value");
// Postponed
if (state == $KeywordRegistry.salesprojectState$postponed())
......
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