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); } }

Comments

Popular posts from this blog

GlideRecord setValue

variable advanced reference qualifier example

URL link in addInfoMessage