Question Brian Schoen · Feb 14, 2024

Working on a custom view for LookupSettings.cls.  I've added code to adda Change Log entry into the table when rows are added/updated.  I'm trying to do the same for when rows are deleted.  How can I pull the key & value for the row when it is selected for delete /un-delete?  The variable rowData is used a pointer for the row index.  I know I'm missing something simple... 

from: ClientMethod removeRow(row, addBack) [ Language = javascript ]

var ThisRow  = ????????

1
0 170
Question Brian Schoen · Jan 12, 2024

I am trying to pull out something similar to an HL7 date/time stamp in a custom zen page , in a javascript code section.

var d new Date();

(Fri Jan 12 2024 16:58:30 GMT-0500 (Eastern Standard Time)

but,
var year = d.getFullYear();

<Error>

d.<formatcmd>  doesn't seem to work.  (d.getmonth, etc.)

Is there and date formatting I can use inside a javascript routine?

3
0 282
Question Brian Schoen · May 14, 2021

We use the Category drop-down for other IT analysts to quickly see interfaces related to their application/group.  This drop0down fails to work (IDs get out of sync with Config Item IDs) if the Production is compiled.    There is no fix available (development was started, but stopped in favor of other items).

Has anyone else run into this issue?  Any custom work-arounds?

Example:

Thanks.

3
0 175
Question Brian Schoen · Nov 6, 2020

I am trying to match on config items that have the same Vendor name in them for custom alerting.

Example:

FromVendornameSiteADT

ToVendornameORM

Where Vendorname could be several systems that have multiple interfaces.

How can I find all config items (interface names) with the same Vendor name, without explicitly naming them?

I was trying to use $Piece to segment out the CamelCase pieces (as the name I want is always the 2nd Capitalized section), but could not find a way to integrate match regex logic (e.g. [A-Z]) inside $Piece or other String extract functions.

9
0 442
Question Brian Schoen · Aug 30, 2016

Ensemble 2015.  Working on an a way to send NACK'd HL7 messages to a flat file for external review/troubleshooting. (Similar to the way BadMessageHandler deals with validation errors.)

I think I have the Alert piece down, but need assistance with the exact syntax to do an SQL query in the DTL (or a custom function) to pull the HL7 message Raw Content into the Alert, based on the SessionID.

(Also, anything special to write alerts to the File Operation?)

Thanks,  Brian

3
0 976
Question Brian Schoen · Jul 14, 2016

We are using the Ens.Alert alerting process to send alerts (via email) to our external service desk application (Service Now). 

Is there a way to suppress multiple alerts for the same error (within a specified timeframe)? (Either Rule or BPL?)  (i.e.  a system starts sending bad data which fails validation or is NAKd by a downstream system -- causing every message to create an Alert.)

Otherwise, every message creates an Alert, which creates a ticket in Service Now.  

Thanks,

Brian

5
0 746