Name

global.PPMConsoleHelper

Description

No description available

Script

var PPMConsoleHelper = Class.create();
PPMConsoleHelper.prototype = {
  initialize: function() {},
  
  type: 'PPMConsoleHelper'
};

/**
* @description gets the console metadata like the display column metadata and the pm_console_table (mapped tables) information
* @param {String} sysClassnName table's name
* @param {String} context 
* @return a complex js structure of seperated display column metada and pm_console_tables.  For sample output run this method from the background script with appropriate args.
**/
PPMConsoleHelper.getConsole = function(sysClassName, context) {
  return JSON.parse(new SNC.PlannedTaskAPI().getConsole(sysClassName, context));
};

/**
* @description gets the console metadata like the display column metadata and the pm_console_table (mapped tables) information, note this method doesn't give further information of advanced columns
* @param {String} sysClassnName table's name
* @param {String} context 
* @return a complex js structure of combined display column metada and pm_console_tables.  For sample output run this method from the background script with appropriate args.
**/
PPMConsoleHelper.getGridEntityMetadata = function(sysClassName, context){
  return JSON.parse(new SNC.PlannedTaskAPI().gridEntityMetadata(sysClassName, context));
};

/**
* @description gets the console metadata like the display column metadata and the pm_console_table (mapped tables) information, note this method does give further information of advanced columns.
* @param {String} sysClassnName table's name
* @param {String} context 
* @return a complex js structure of combined display column metada and pm_console_tables.  For sample output run this method from the background script with appropriate args.
**/
PPMConsoleHelper.getPmConsoleConfig = function (sysClassName, context) {
  return JSON.parse(new SNC.PlannedTaskAPI().gridEntityMetadataMulti(sysClassName, context));
};

/**
* @returns the AG grid key. 
**/
PPMConsoleHelper.getAgGridKey = function() {
  return new SNC.PlannedTaskAPI().getAgGridKey();
};

Sys ID

8dca4890c75e201063e1e5e603c26039

Offical Documentation

Official Docs: