netsuite filter的选择框 代码控制-CarlZeng
ListIN_InventoryNumber_INTERNALID(this) 用来把多选的列表框div构造出来 SearchIN_InventoryNumber_INTERNALID(document.forms[‘main_form’].elements.IN_InventoryNumber_INTERNALID_display.value) //用来把internalid传递给弹出的…
ListIN_InventoryNumber_INTERNALID(this) 用来把多选的列表框div构造出来
SearchIN_InventoryNumber_INTERNALID(document.forms[‘main_form’].elements.IN_InventoryNumber_INTERNALID_display.value)
//用来把internalid传递给弹出的div搜索框中
经典代码行:
<TR><TD valign=top style=‘padding-top:3px’ nowrap align=right class=‘smalltextnolink’>
<span style=“white-space: wrap” id=“IN_InventoryNumber_INTERNALID_fs_lbl” class=“smalltextnolink”>
<A class=‘smalltextnolink’ tabindex=-1 title=“What’s this?” href=‘javascript:void(“help”)’ style=‘cursor:help’ onclick=“return nlFieldHelp(402,’NONE_NEEDED’,’IN_InventoryNumber_INTERNALID’, this)” onmouseover=“this.className=’smalltextul’; return true;” onmouseout=“this.className=’smalltextnolink’; “></A>
</span></TD><TD nowrap><span id=‘IN_InventoryNumber_INTERNALID_fs’ style=‘white-space: nowrap’>
function SearchIN\_InventoryNumber\_INTERNALID(value) { hideAutoSuggestLoadingImage();if ( isValEmpty(value) || value==\_short\_popup\_help || value==\_popup\_help ) { getFormElement(parent.document.forms\['main\_form'\],'IN\_InventoryNumber\_INTERNALID').value = '';getFormElement(parent.document.forms\['main\_form'\],'IN\_InventoryNumber\_INTERNALID\_display').isvalid = true;window.isvalid = true;getFormElement(parent.document.forms\['main\_form'\],'IN\_InventoryNumber\_INTERNALID').onchange();return; } var doExactMatchQuery = NLPopupSelect\_getExactMatchQuery( getFormElement(parent.document.forms\['main\_form'\],'IN\_InventoryNumber\_INTERNALID\_display') );if ( value.indexOf(\_mult\_popup\_help) != -1 ) return; else if ( getMultiSelectValues(document.forms\['main\_form'\].elements\['IN\_InventoryNumber\_INTERNALID'\]).length != 0 ) { if ( value == null || value.length == 0) {parent.document.forms\['main\_form'\].elements\['IN\_InventoryNumber\_INTERNALID'\].value = '';return; }var a = getMultiSelectValues(document.forms\['main\_form'\].elements\['IN\_InventoryNumber\_INTERNALID'\]).split('\\005');var currentlinenum = a.length;var lines = value.replace(/\[\\n\\r\]+$/, '').split(/\\n|\\r/);if (currentlinenum > lines.length) {a.length = lines.length;parent.document.forms\['main\_form'\].elements\['IN\_InventoryNumber\_INTERNALID'\].value = a.join('\\005');currentlinenum = lines.length; }if (currentlinenum==1 && lines.length==1) {parent.document.forms\['main\_form'\].elements\['IN\_InventoryNumber\_INTERNALID'\].value = '';value = lines\[0\]; }else { value = lines\[currentlinenum\]; }if (value == null || value.length == 0) return;}window.status = 'Searching...';window.setIsInited(window, false);var eventVar = ''; if( window.lastKeyStroke == 13 ) { window.lastKeyStroke = -1; eventVar = 'enterEvent=T'; } NLPopupSelect\_displayLoadingDiv('IN\_InventoryNumber\_INTERNALID', true,'Searching...'); loadSlavingResults('/app/common/search/search.nl?filter=IN\_InventoryNumber\_INTERNALID&searchtype=Transaction&q=IN\_InventoryNumber\_INTERNALID&st='+encode(value+(doExactMatchQuery ? '\\\\' : ''))+'&f=T'+ '&'+eventVar+'');} embedded: function NLPopupSelect\_displayLoadingDiv(fieldName, bMultiselect, sMessage) 6611{ 6612 if(window.popupDivLoadingMessage == null) 6613 { 6614 var div = document.createElement("DIV"); 6615 div.id = "popup\_load\_message"; 6616 div.style.backgroundColor = "white"; 6617 div.style.position = "absolute"; 6618 div.style.borderWidth='1px'; 6619 div.style.borderStyle='solid'; 6620 div.style.borderColor='black'; 6621 div.style.width = "150"; 6622 window.popupDivLoadingMessage = div; 6623 } 6624 var msg = sMessage == null ? "Loading" : sMessage; 6625 window.popupDivLoadingMessage.innerHTML = ""+msg+" |