Skip to content
Snippets Groups Projects
Commit 3aa39a44 authored by Markus Escher's avatar Markus Escher
Browse files

fix neon.refresh Error

parent 4fa901db
No related branches found
No related tags found
No related merge requests found
......@@ -9,4 +9,9 @@ if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
vars.set("$field.ITEMSORT", oiUtils.getNextItemSort());
vars.set("$field.ITEMPOSITION", oiUtils.getNextItemPosition(vars.get("$field.ASSIGNEDTO")));
}
if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW)
{
neon.refresh();
}
\ No newline at end of file
......@@ -11,6 +11,4 @@ if(oid != "")
var oiUtils = new OfferItemUtils(oid);
db.updateData("OFFER", cols, null, oiUtils.getNetAndVat(), SqlCondition.equals("OFFER.OFFERID", oid, "1 = 2"));
neon.refresh();
}
\ No newline at end of file
......@@ -11,4 +11,9 @@ if(opState == neon.OPERATINGSTATE_NEW)
vars.set("$field.ITEMSORT", oiUtils.getNextItemSort());
vars.set("$field.ITEMPOSITION", oiUtils.getNextItemPosition(vars.get("$field.ASSIGNEDTO")));
}
if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW)
{
neon.refresh();
}
\ No newline at end of file
......@@ -12,6 +12,4 @@ if(oid != "")
var vals = oiUtils.getNetAndVat();
db.updateData("SALESORDER", cols, null, vals, SqlCondition.equals("SALESORDER.SALESORDERID", oid, "1 = 2"));
neon.refresh();
}
\ No newline at end of file
......@@ -3,6 +3,7 @@
<name>Salesproject_entity</name>
<title>Salesproject</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<afterOperatingState>%aditoprj%/entity/Salesproject_entity/afterOperatingState.js</afterOperatingState>
<iconId>VAADIN:BOOK_DOLLAR</iconId>
<titleProcess>%aditoprj%/entity/Salesproject_entity/titleProcess.js</titleProcess>
<recordContainer>db</recordContainer>
......
import("system.vars");
import("system.neon");
if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW)
{
neon.refresh();
}
\ No newline at end of file
......@@ -68,8 +68,6 @@ vars.get("$local.changed").forEach(function(fieldName) {
if (needToUpdateForecast)
Salesproject.notifyToUpdateForecast();
neon.refresh()
function _updateReasons()
{
var reasons = vars.getString("field.REASONS");
......
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