Loop through catalog variables CATALOG CLIENT SCRIPT (portal or classic UI)

if (typeof spModal != 'undefined') { //--service portal var allFields = g_form.getFieldNames(); for (var fieldName in allFields) { alert(allFields[fieldName]); } }else{ //--classic ui var varMap = gel('variable_map'); var items = varMap.getElementsByTagName("item"); for (var i = 0, len = items.length; i < len; ++i) { var variable = items[i].getAttribute("qname"); alert(variable); } }


Popular posts from this blog

GlideRecord setValue

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy