define(function () { "use strict"; function DisplayAllValues() { }; DisplayAllValues.prototype.draw = function (oControlHost) { var elPVInfo = oControlHost.container; elPVInfo.innerHTML = '' + '
'; elPVInfo.querySelector(".btnPV").onclick = getAllPromptValues.bind(this, oControlHost); } function getAllPromptValues(oControlHost) { var oControl = oControlHost.page.getControlByName("promptProdLine"); var aValues = oControl.getValues(true); //var elValues = oControlHost.container.lastChild; var elValues = oControlHost.container.querySelector("div"); var sTable = '
'; for (var j = 0; j < aValues.length; j++) { var oValue = aValues[j]; sTable += ''; sTable += ''; sTable += ''; sTable += ''; } elValues.innerHTML = sTable; }; return DisplayAllValues; } );
UseDisplay
' + oValue.use + '' + oValue.display +'