advanced find Bookmarklet

convert advanced find equal to in

Source (rumseycrm.rumsey.com)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3Avar%20contentPanel%3D%24%28%27%23crmContentPanel%20%3E%20iframe%27%29%3Bif%28contentPanel%26%26contentPanel.length%3E0%29%7Bvar%20targetFrame%3DcontentPanel%5B0%5D.contentWindow%3Bvar%20isFetchModified%3Dfalse%3BtargetFrame.ExecuteQuery%28%29%3Bvar%20xml%3DtargetFrame.%24get%28%22FetchXml%22%29.value%3Bvar%20xmlDoc%3D%24.parseXML%28xml%29%2C%24xml%3D%24%28xmlDoc%29%3B%24xml.find%28%27condition%5Bvalue%5D%27%29.each%28function%28i%2Cd%29%7Bvar%20inCondition%3D%27%27%3Bvar%20multipleValues%3D%24%28d%29.attr%28%27value%27%29%3Bif%28multipleValues.indexOf%28%27%3B%27%29%3D%3D%3D-1%29return%3BmultipleValues.split%28%27%3B%27%29.forEach%28function%28c%29%7BinCondition+%3D%28%27%3Cvalue%3E%27+c+%27%3C/value%3E%27%29%3B%7D%29%3B%24%28d%29.attr%28%27operator%27%2C%27in%27%29%3B%24%28d%29.removeAttr%28%27value%27%29%3B%24%28d%29.html%28inCondition%29%3BisFetchModified%3Dtrue%3B%7D%29%3Bif%28isFetchModified%29%7BtargetFrame.%24get%28%22FetchXml%22%2C%24get%28%22resultRender%22%29%29.value%3D%27%3Cfetch%20version%3D%221.0%22%20output-format%3D%22xml-platform%22%20mapping%3D%22logical%22%20distinct%3D%22true%22%3E%27+xmlDoc.documentElement.innerHTML+%27%3C/fetch%3E%27%3B%7DtargetFrame.changeArea%28targetFrame.ResultsPage%29%3BtargetFrame.%24get%28%27resultRender%27%29.submit%28%29%3B%7Delse%7Balert%28%27Cannot%20locate%20Advanced%20Find%20Frame%27%29%3B%7Dvoid%200%3B%7D


Rate it:


Tags:

Comments

Comments so far. Add yours.