From b10be62d4092e6d1e182e020655118b588299ad0 Mon Sep 17 00:00:00 2001 From: continuousscale25 <82359278+continuousscale25@users.noreply.github.com> Date: Sat, 28 Aug 2021 04:24:37 -0700 Subject: [PATCH] Create BIGLEAF --- BIGLEAF | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 BIGLEAF diff --git a/BIGLEAF b/BIGLEAF new file mode 100644 index 0000000..dcb1619 --- /dev/null +++ b/BIGLEAF @@ -0,0 +1,81 @@ +/** + + * @NApiVersion 2.x + + * @NScriptType Portlet + + * @NModuleScope SameAccount + + */ + +define(['N/runtime'], + +/** + + * @param {portlet} portlet + + */ + +function(runtime) { + + /** + + * Renders CloudExtend Analytics Portlet. + + * + + * @param {Object} params + + * @param {Portlet} params.portlet - The portlet object + + * used for rendering + + * @param {number} params.column - Specifies whether portlet + + * is placed in left (1), center (2) or right (3) + + * column of the dashboard + + * @param {string} params.entity - (For custom portlets only) + + * references the customer ID for the selected customer + + * @Since 2015.2 + + */ + + function renderView(params) { + + params.portlet.title = 'CloudExtend Analytics Portlet'; + + var url = runtime.getCurrentScript() + +.getParameter({ name: "custscripturl" }); + + var height = runtime.getCurrentScript() + + .getParameter({ name: "custscriptheight" }); + + var content = ''; + + params.portlet.html = content; + + } + + + + return { + + render: renderView + + }; + +});