Skip to content
Snippets Groups Projects
Commit 2016d93e authored by Dianne Nowack's avatar Dianne Nowack
Browse files

1075183

parent ca5d8fe4
No related branches found
No related tags found
No related merge requests found
......@@ -4,11 +4,11 @@ import("system.db");
import("system.result");
import("Context_lib");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$field.OBJECT_ROWID"))
var res = "";
if (vars.exists("$field.OBJECT_TYPE") && vars.get("$field.OBJECT_TYPE"))
{
result.string("");
res = ContextUtils.getTitleByContext(vars.get("$field.OBJECT_TYPE"), vars.get("$field.OBJECT_ROWID"));
}
else if (vars.exists("$field.OBJECT_TYPE") && vars.get("$field.OBJECT_TYPE"))
{
result.string(ContextUtils.getTitleByContext(vars.get("$field.OBJECT_TYPE"), vars.get("$field.OBJECT_ROWID")));
}
\ No newline at end of file
result.string(res);
\ No newline at end of file
import("system.logging");
import("system.neon");
import("system.vars");
import("system.result");
......@@ -28,7 +29,9 @@ if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$this.
.from("SALESPROJECT")
.where("SALESPROJECT.CONTACT_ID", contactId)
.arrayColumn();
if(salesProjectIds.length == 1)
logging.log(salesProjectIds)
logging.log(salesProjectIds.length)
if(salesProjectIds.length === 1)
{
result.string(salesProjectIds[0]);
}
......
import("system.neonFilter");
import("system.logging");
import("system.neon");
import("system.vars");
neon.closeImage(vars.get("$sys.currentimage"), true);
\ No newline at end of file
logging.log(vars.get("$sys.currentimage"))
//logging.log(vars.get("$sys.currentimage"))
//neon.closeImage(vars.get("$sys.currentimage"), true);
//neon.refresh(["$field.PRICE"]);
//neon.openContextWithRecipe("Productprice", "ProductpriceFilter_view", null, neon.OPERATINGSTATE_VIEW);
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