import("system.neon"); import("system.vars"); import("system.result"); import("Offer_lib"); var presentationMode = vars.get("$sys.presentationmode"); if (presentationMode != neon.CONTEXT_PRESENTATIONMODE_EDIT) { var reportData = OfferUtils.buildOfferReport(vars.get("$field.OFFERID")); if (reportData != null) { result.string(reportData[1]); } }