Skip to content
Snippets Groups Projects
Commit 9a0d912a authored by b.ulrich's avatar b.ulrich
Browse files

fix

parent c28f4635
No related branches found
No related tags found
No related merge requests found
import("Sql_lib");
import("Loghistory_lib");
import("system.vars");
import("system.db");
......@@ -5,7 +6,10 @@ import("system.result");
import("Context_lib");
var val = vars.get("$local.value");
var type = db.cell("select OBJECT_TYPE from SALESORDER where OBJECT_ROWID = '" + val + "'")
var type = newSelect("OBJECT_TYPE")
.from("SALESORDER")
.newWhere("OBJECT_ROWID", val)
.cell()
result.string(db.cell(ContextUtils.getNameSql(type, val)));
......@@ -2,5 +2,6 @@ import("system.result");
import("system.neon");
import("system.vars");
import("system.project");
import("Context_lib");
result.string(project.getDataModel(project.DATAMODEL_KIND_CONTEXT, vars.get("$local.value"))[1]);
\ No newline at end of file
result.string(ContextUtils.getTranslatedTitle(project.getDataModel(project.DATAMODEL_KIND_CONTEXT, vars.get("$local.value"))[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