// Method to return a handle to NetUi form element. // The dataSource attribute in NetUi form element, // it will be converted to HTML name attribute. // WL 8.1 specific. This function does not work with Netscape. //function getDistinctPortletNetuiElement(formName, elementName) { // return document[getNetuiTagName(formName, this)][getNetuiTagName(elementName, this)]; //} // Method to return a handle to NetUi form element. // The dataSource attribute in NetUi form element, // it will be converted to HTML name attribute. // WL 8.1 specific. function getDistinctPortletNetuiElement(formObject, elementName) { return formObject[getNetuiTagName(elementName, formObject)]; } // // Method to return a handle to NetUi form element. // The dataSource attribute in NetUi form element, // it will be converted to HTML name attribute. // WL 8.1 specific. // // Note : Unfortunately, getDistinctPortletNetuiElement() does not always work. // Even though it's done as per BEA's documentation. Use this // method as an alternative ONLY. Simply because it's less efficient. // function getNetuiElement(frm, portletLabel, dataSourceName) { var inputElementName = portletLabel + dataSourceName; var selectElementName = portletLabel + 'wlw-select_key:' + dataSourceName; var checkBoxElementName = portletLabel + 'wlw-checkbox_key:' + dataSourceName; if (frm != null && portletLabel != null && dataSourceName != null) { var elementName = ""; for (i=0; i-->