Apriest Posted April 30, 2010 Share Posted April 30, 2010 Ok so I've been working on automating some of the more tedious things we have to do in "Corrigo" a web based dispatching application at my company. But I can't for the life of me seem to click on an object that I really need to click on. I know I could just use mouse coords but I'd rather build a script that would work on any resolution and for all our dispatchers. Plus the item in the drop down that I'm trying to click on isn't always in the same place. That said. Here's the script I've got so far. Basically I get the window and frame the objects are in. I click the drop down button to display a menu with 3 selections in it "Zone, Team, Portfolio" and I try to click on portfolio. $oIE = _IECreate("http://wt53p.corrigo.com/CorpNet/default.aspx",1) $oframe = _IEframeGetObjByName($oIE, "content") $obutton = _IEGetObjById($oframe, "oDropDownSelectorButton") $oPortfolio = _IEGetObjById($oframe, "oPortfolioSelectBox") $obutton.click $oPortfolio.click And this is the section of HTML that I'm almost positive should be where I'm getting the object I'm trying to click.... but I can only manage to get the dropdown button to work. Selecting portfolio won't work. I even went as far as trying to use Tesseract to OCR the screen and click portfolio. But as far as I can tell Tesseract.au3 won't actually return a mousepos of the text it finds... Can anyone help? expandcollapse popup<TD style="WIDTH: 120px" id=tdDropDownCell align=right> <DIV style="WIDTH: 160px" noWrap><BUTTON style="VISIBILITY: visible" id=oDropDownSelectorButton class=dbcomboCommonDDDownButton onclick=onchangeDropDownSelection();><SPAN class=dbcomboSpanInDDDownButton>6</SPAN></BUTTON> <SPAN id=oDropDownType class=txtPDropDownInPage width="160px;" nowrap="nowrap">Team</SPAN> </DIV></TD> <TD style="VISIBILITY: visible" id=oDropDown vAlign=top align=left><TEXT style="VISIBILITY: hidden" id=oCommunitySelectBox value="3" name="oCommunitySelectBox" type="hidden"></TEXT><TEXT style="VISIBILITY: hidden" id=oPortfolioSelectBox value="1" name="oPortfolioSelectBox" type="hidden"></TEXT><tool:dbcombo id=oTeamSelectBox value="All Teams" name="oTeamSelectBox" LoadContextID="65" ContextValue="17" size="37" tweakX="0" clientonselectFunction="DoDBComboTeamonselectFunction2" parentType="SQL_TEAM_EMP_ACESS" ASPDBCODESWITCH="true" tabToNextFieldOnEnter="true" namebase="nameBoTeamSelectBox"> <DIV id=nameBoTeamSelectBox class=dbcomboMainSpanFont><NOBR id=nameBoTeamSelectBox_ulbHolder><INPUT style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt" id=nameBoTeamSelectBox_ulbTextBox class=inputTagWOBorders value="All Teams" size=37 name=nameBoTeamSelectBox:ulbTextBox autocomplete="off"><SPAN onblur=DbComboGenericBlur(); id=nameBoTeamSelectBox_ulbSpanDBCom lang="" onfocus=DbComboGenericFocus(); name="nameBoTeamSelectBox:ulbSpanDBCom"><BUTTON id=nameBoTeamSelectBox_ulbSearchButton lang="" class=dbcomboDDDownButton tabIndex=-1><SPAN class=dbcomboSpanInDDDownButton>6</SPAN></BUTTON> </SPAN><INPUT id=nameBoTeamSelectBox_ulbQueryHidden value="All Teams" type=hidden name=nameBoTeamSelectBox:ulbQueryHidden> <INPUT id=nameBoTeamSelectBox_ulbReQueryonload value=true type=hidden name=nameBoTeamSelectBox:ulbReQueryonload> <INPUT id=nameBoTeamSelectBox_ulbReQueryRecordsHidden value=10 type=hidden name=nameBoTeamSelectBox:ulbReQueryRecordsHidden> <INPUT id=nameBoTeamSelectBox_ulbValueHidden type=hidden name=nameBoTeamSelectBox:ulbValueHidden> <DIV style="Z-INDEX: 10; POSITION: absolute; DISPLAY: none" id=nameBoTeamSelectBox_ulbResultsSpan class=dbcomboResultsSpanWO name="nameBoTeamSelectBox_ulbResultsSpan"><SPAN id=nameBoTeamSelectBox_ulbSpanWRP class=dbcomboSpanResultsSpanWO name="nameBoTeamSelectBox_ulbSpanWRP"><SPAN style="DISPLAY: none" id=nameBoTeamSelectBox_ulbSpacer><SPAN style="CLIP: rect(5px 50px 50px 5px); POSITION: absolute; OVERFLOW: hidden; TOP: -3px; LEFT: -3px" id=nameBoTeamSelectBox_ulbClipper><SELECT style="DISPLAY: none; FONT-FAMILY: Verdana; FONT-SIZE: 8pt" id=nameBoTeamSelectBox_ulbDropDown tabIndex=-1 size=10 name=nameBoTeamSelectBox:ulbDropDown></SELECT> </SPAN></SPAN></SPAN> <DIV style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; DISPLAY: none; PADDING-TOP: 0px" id=nameBoTeamSelectBox_ulbStDsSp class=dbcomboMainSpanFont></DIV> <DIV style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 100%; PADDING-RIGHT: 0px; PADDING-TOP: 0px" id=nameBoTeamSelectBox_ulbStatusBar class=dbcomboStatusBarWO align=center ?><NOBR><BUTTON style="DISPLAY: none" id=nameBoTeamSelectBox_ulbMoreResultsButton class=dbcombo7MoreResultsButton tabIndex=-1 name=nameBoTeamSelectBox:ulbMoreResultsButton>More...</BUTTON> </NOBR></DIV></DIV></NOBR></DIV></tool:dbcombo></TD> <TD></TD></TR> Link to comment Share on other sites More sharing options...
Juvigy Posted April 30, 2010 Share Posted April 30, 2010 Install debugbar or something similar. It will help you a lot when working with IE. Link to comment Share on other sites More sharing options...
Apriest Posted April 30, 2010 Author Share Posted April 30, 2010 I have it. It's not helping with this particular object. Link to comment Share on other sites More sharing options...
Apriest Posted April 30, 2010 Author Share Posted April 30, 2010 It almost seems like when I click on the drop down bar it's opening another frame... but if that's the case it's one that disappears the second I click anywhere else. Making it impossible to nail down. I do know that the HTML reads like this on the default search view which is "zone". <script for=window event=onload> // Reset UI standard call OnUIReset("Property,Team,Portfolio", "Zone, Team, Portfolio", "Property", "Zone", "3",""); and when I manually select the portfolio search view it reads <script for=window event=onload> // Reset UI standard call OnUIReset("Property,Team,Portfolio", "Zone, Team, Portfolio", "Portfolio", "Portfolio", "1",""); Based on this idea I tried using _IEBodyWriteHTML to that frame to change it. But that just made the frame blank. Link to comment Share on other sites More sharing options...
DaleHohm Posted April 30, 2010 Share Posted April 30, 2010 The code you show does not contain the definition of any elements that would render the "Zone, Team, Portfolio" drop-down you describe. You need to figure out how these are rendered in HTML before you can instantiate references to them and act upon them. Just not much I can do to help with the information you have provided so far. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Apriest Posted May 1, 2010 Author Share Posted May 1, 2010 The code you show does not contain the definition of any elements that would render the "Zone, Team, Portfolio" drop-down you describe. You need to figure out how these are rendered in HTML before you can instantiate references to them and act upon them. Just not much I can do to help with the information you have provided so far. Dale Hmm if it's not there I can only assume it's somewhere else in the HTML of that frame. Unfortunately I'm not good enough with HTML to pick it out I guess. I thought I did pretty well finding the drop down selector button. On the off chance that anyone is "angel of mercy" enough to pour through the page I'll include it here. I've spent far too many hours already so I'm willing to stoop for begging for help. Thanks in advance. expandcollapse popup<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns:tool><HEAD><META content="IE=5.0000" http-equiv="X-UA-Compatible"> <TITLE>Directory</TITLE> <META content="text/html; charset=utf-8" http-equiv=Content-Type><!--ensures this page is always reloaded--> <META content=4/29/2010 http-equiv=Expires><!--imports styles--><LINK rel=stylesheet href="/CorpNet/asp/legacy/shared/js/global.css"> <STYLE> .showLink { FONT-WEIGHT: normal; FONT-SIZE: 9pt; VERTICAL-ALIGN: middle; WIDTH: 180px; COLOR: black; FONT-FAMILY: Arial; HEIGHT: 19px; BACKGROUND-COLOR: silver; TEXT-ALIGN: left; TEXT-DECORATION: none } </STYLE> <xml id=source src=""></xml><xml id=style src="/CorpNet/asp/legacy/maintmgr/xsl/wo_search.asp"></xml><xml id=sortFields_data src=""><search> <onetitle>Number starts with</onetitle> <onefieled>WONumber</onefieled> <twotitle>Contact Name contains</twotitle> <twofieled>contName</twofieled> <threetitle validate="checkPhoneNumbers">Contact Telephone starts with</threetitle> <threefieled>contAddr</threefieled> <fourtitle>Location contains</fourtitle> <fourfieled>location</fourfieled> <fivetitle>Item contains</fivetitle> <fivefieled>item</fivefieled> <sixtitle>Task contains </sixtitle> <sixfieled>task</sixfieled> <seventitle>Notes contains</seventitle> <sevenfieled>note</sevenfieled> <eighttitle>Description contains</eighttitle> <eightfieled>WODesc</eightfieled> <xmlSourse>/CorpNet/asp/legacy/shared/xml/xml_sxo.asp?sqlid=372</xmlSourse> </search> </xml><!-- String Object Extentions --> <script language=javascript src="/CorpNet/asp/legacy/shared/js/string_prototypes.js"></SCRIPT> <!-- Validation Objects --> <script language=javascript src="/CorpNet/asp/legacy/shared/js/obj_validation.js"></SCRIPT> <!-- Common XML functions --> <script language=javascript src="/CorpNet/asp/legacy/shared/js/common_xml.js"></SCRIPT> <!-- Common Page Update functions --> <script language=javascript src="/CorpNet/asp/legacy/shared/js/common_page_edit.js"></SCRIPT> <!-- Sort HTML Table by Column --> <script language=javascript src="/CorpNet/asp/legacy/shared/js/sortHTMLTable.js"></SCRIPT> <!-- keep status in XML header --> <script language=javascript src="/CorpNet/asp/legacy/shared/js/keep_status_info.js"></SCRIPT> <!-- prototype functions - EvanP --> <script language=javascript src="/CorpNet/asp/legacy/shared/js/jsprototype.js"></SCRIPT> <!-- common site functions - Prab/David --> <script language=javascript src="/CorpNet/asp/legacy/shared/js/common.js"></SCRIPT> <script language=javascript src="/CorpNet/asp/legacy/shared/js/events.js"></SCRIPT> <script for=window event=onload> // Reset UI standard call OnUIReset("Property,Team,Portfolio", "Zone, Team, Portfolio", "Property", "Zone", "3",""); // if dialog - set fixed window height if ( g_PopUpDialog == true ) { window.dialogHeight = '500px'; } // set Print Popup Box InitPopup(oPrint); // set Transfer Popup Box InitPopup(oTransact); // set Resident Service Popup Box InitPopup(popSR); // set Transfer Popup Box InitPopup(oTransactRef); // if delete record not exists yet if (g_deleteRecordMeessage == ''){ g_deleteRecordMeessage = "Are you sure you want to delete?"; } // start of exceptions for page shaping if (g_searchpage != ''){ // search options in template or in XML source if ( g_searchOptionsInXML.length == 0 ) { populateSortFields(); } else { populateSortFieldsFromSideXMLSource(); } searchSection.style.display = "block"; oBody.Restore(); if (g_IsSysAdmin != ''){ tblShowAll.style.top = -10 tblSearch.style.top = 0 } } else { searchSection.style.display = "none" g_search_type = 0 preSearch(parseInt(g_search_type)) } // keep status for Equipment list if (g_object == "rcsequipment"){ SetStatusInfoGeneric( "rcsequipment", g_WODetail_objpath); } if (g_object == "CommLease"){ tableFooterButton.style.display = "none"; } if (g_object=='communitybuilderaccess'){ document.all.tags("input").item("btnAdd").className="btnHeader140"; document.all.tags("input").item("btnAdd").value="Password Sender"; document.all.tags("input").item("btnDelete").className="btnHeader140"; document.all.tags("input").item("btnDelete").value="Revoke Access"; } //end of exceptions for page shaping if (source.xml == ""){ xslTarget.innerHTML = "<TABLE id='tblData' class='rowover'cellpadding='0' cellspacing='0' border='0' width='760px' style='table-layout:fixed'>"+ "<tr><td align='center'class='txtDataRowArea'>" + "<div class='txtTableLeadIn' nowrap=nowrap>Please make a selection or enter search criteria and click Search.</div></td></tr></table>"; } setTableHeader(0); // show filter buttons status ? // set filter header checkIfAllDoneFilter(); //-- Use status Bar - enable after page load if (g_statusbar) { enableStatusButtons(true); } // pre-set search by values if passed to page if (g_searchfield != '') { btn_search.sortFields.value = g_searchfield; btn_search.sortInput.value = g_searchvalue; } ClearWaitCursor(); </SCRIPT> <script language=Javascript> // W-O labels var g_WorkOrderLabel = "Work Order"; var g_WorkOrderMultiLabel = "Work Orders"; // printouts sets var g_PrintOnlyOneReport = true; var URLHTMLWOSINGLEPRINTOUT = '/CorpNet/asp/legacy/maintmgr/wodetails/printout/xhtmlprintout.asp?woid='; var URLHTMLWO_MULTI_PRINTOUT = '/CorpNet/asp/legacy/maintmgr/wodetails/printout/xhtmlprintout_list.asp?woidList='; var g_lenOfLowerButtons = '364'; // ASP variables - convert to xml approach asap... var g_UseWizard = 'false'; var URLSRVREQWONEW = '/CorpNet/asp/legacy/maintmgr/wodetails/wodetails.asp?woid=0&leaseID='; var URLSRVREQWONEWVACANT = '/CorpNet/asp/legacy/maintmgr/wodetails/wodetails.asp?woid=0&AssetID='; var g_tabWidthInternal = '744'; var g_IsSysAdmin = "No"; var g_obid = "0"; var g_obName = ""; var g_object = "wosearch"; var g_domain = '0'; var g_teamid = '17'; var g_leaseGroupID = '0'; var g_searchOptionsInXML = ""; var g_curvendorobjectid = '-1'; var g_searchpage = "wo_search.asp" var g_xmlSourseSearch = "/CorpNet/asp/legacy/shared/xml/xml_sxo.asp?sqlid=372" var g_filterField = "@StatusID"; var g_deleteRecord = ""; var g_summary_page = "wodetails/wodetails.asp?woid="; var g_addNewRecord = ""; var g_OKButton = ""; var g_BackButton = ""; var g_CancelButton = ""; var g_addon_URL = ""; var g_containStartWith = true; var g_PopUpDialog = false; var g_NoShowAll = true; var g_MoreThan100Records = true; var g_WorkOrderFilterButton = true; var g_commid = '3'; var g_tableHeaderSearch = "Work Orders "; var g_searchAll = "Work Orders "; var g_UserID = '65'; var g_TableWidth = '760'; // customer info in WO Details var g_Tenant_ID = '0'; var g_Tenant_TypeID = '0'; // mixed with Portfolio selection var g_lastselect = "community"; var g_curportfolioid = "1"; // search by parameers passed var g_searchfield = ""; var g_searchvalue = ""; var g_discontProduct = "0"; var g_AppID = '1'; var g_CurUserID = "65"; var g_CurUserName = "Priest, Anthony"; // message to user when record ought to be deleted var g_deleteRecordMeessage = ""; // custom add to header instead of normal "Search" var g_tableHeaderSearchAddon = ""; // End ASP variables var g_row_id = 0; var g_search_count = 0; var g_search_type = 0; var g_boolDirty = false; // ----- paging ----- var intWOStat = 1; // get WOs for this status var intPageSize = 100; // rows per page var intCurPage = 1; // current page var intWOCount = 0; // wos count var intPages = 1; var urlView = "/CorpNet/asp/legacy/shared/xml/xml_sxo.asp?sqlid=372"; var urlPageCount = ""; var intWOLast = 0; var intWOFirst = 0; var g_curChoice = ''; // ^^^--- paging ---^^^ // statuses var g_objpath="wosearch"; var g_WOstatuses="110101"; var Global_Status = ""; var Global_Status1 = ""; var Global_Status2 = ""; var Global_Status3 = ""; var Global_Status4 = ""; var Global_Status5 = ""; // save Product/Location Info URL var XMLURLPLPRODLOCUPDATE="/CorpNet/asp/legacy/newsysadmin/mh_product/xml/mh_prodloc_save.asp" var XMLURLSAVETRANSACTION="/CorpNet/asp/legacy/mh_transaction/xml/mh_transaction_save.asp" // update DOM var g_xmlMain = new ActiveXObject("microsoft.xmldom"); // identity filter if needed var ident_filter = "" // status Bar var g_WODetail_objpath = "wo_detail"; var g_statusbar = false; // ref to commuinity settings stored in parent window - for speed var xmlCommSettigs = null; var g_WOStreetAddrSystemSetting = "-1"; // street address settings //-------------------------------------- // enable buttons //-------------------------------------- function enable_buttons_local(){ window.btn_action1.btnDelete.disabled = false; } //-------------------------------------- // disable buttons //-------------------------------------- function disable_buttons_local(){ window.btn_action1.btnDelete.disabled = true; } </SCRIPT> <!-- Corp Serach JS File --> <script language=javascript src="/CorpNet/asp/legacy/shared/js/corpsearchlib.js"></SCRIPT> </HEAD> <BODY style="BEHAVIOR: url(/CorpNet/asp/legacy/behaviors/remember.htc)" id=oBody pageName="wosearch"> <TABLE id=pageTable class=tblPageTable cellSpacing=0 cellPadding=0 width="100%" height="100%"> <TBODY> <TR> <TD vAlign=top align=left><!-- Header and Drop Down selectors --> <STYLE>@media all { tool\:dbcombo { behavior: url(/CorpNet/asp/legacy/behaviors/dbcombo/dbcombo7.htc); } } </STYLE> <STYLE>@media all { tool\:dbcombo17 { behavior: url(/CorpNet/asp/legacy/behaviors/dbcombo/dbcombo1_7.htc); } } </STYLE> <DIV style="Z-INDEX: 10; POSITION: relative; LEFT: 0px"> <TABLE style="POSITION: relative; WIDTH: 100%; TABLE-LAYOUT: fixed; TOP: 0px; LEFT: 0px" class=txtPageHeadingBar border=0 cellSpacing=5 cellPadding=0> <COLGROUP> <COL width=370> <COL width=420> <COL width=*> <TBODY> <TR> <TD id=oPageTitleHeader class=txtPageHeading title="Work Orders "> <DIV noWrap>Work Orders </DIV></TD> <TD align=right> <TABLE style="WIDTH: 420px; TABLE-LAYOUT: fixed; VISIBILITY: visible" id=oDropDownSelector border=0 cellSpacing=0 cellPadding=0> <COLGROUP> <COL width=160> <COL width=260> <TBODY> <TR> <TD style="WIDTH: 120px" id=tdDropDownCell align=right> <DIV style="WIDTH: 160px" noWrap><BUTTON style="VISIBILITY: visible" id=oDropDownSelectorButton class=dbcomboCommonDDDownButton onclick=onchangeDropDownSelection();><SPAN class=dbcomboSpanInDDDownButton>6</SPAN></BUTTON> <SPAN id=oDropDownType class=txtPDropDownInPage nowrap="nowrap" width="160px;">Zone</SPAN> </DIV></TD> <TD style="VISIBILITY: visible" id=oDropDown vAlign=top align=left><TEXT style="VISIBILITY: hidden" id=oTeamSelectBox name="oTeamSelectBox" type="hidden" value="17"></TEXT><TEXT style="VISIBILITY: hidden" id=oPortfolioSelectBox name="oPortfolioSelectBox" type="hidden" value="1"></TEXT><tool:dbcombo id=oCommunitySelectBox name="oCommunitySelectBox" value="Los Angeles" LoadContextID="65" ContextValue="3" size="37" tweakX="0" clientonselectFunction="DoDBComboCommonselectFunction2" parentType="SQL_COMM_EMP_ACESS" ASPDBCODESWITCH="true" tabToNextFieldOnEnter="true" namebase="nameBoCommunitySelectBox"> <DIV id=nameBoCommunitySelectBox class=dbcomboMainSpanFont><NOBR id=nameBoCommunitySelectBox_ulbHolder><INPUT style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt" id=nameBoCommunitySelectBox_ulbTextBox class=inputTagWOBorders value="Los Angeles" size=37 name=nameBoCommunitySelectBox:ulbTextBox autocomplete="off"><SPAN onblur=DbComboGenericBlur(); id=nameBoCommunitySelectBox_ulbSpanDBCom lang="" onfocus=DbComboGenericFocus(); name="nameBoCommunitySelectBox:ulbSpanDBCom"><BUTTON id=nameBoCommunitySelectBox_ulbSearchButton lang="" class=dbcomboDDDownButton tabIndex=-1><SPAN class=dbcomboSpanInDDDownButton>6</SPAN></BUTTON> </SPAN><INPUT id=nameBoCommunitySelectBox_ulbQueryHidden value="Los Angeles" type=hidden name=nameBoCommunitySelectBox:ulbQueryHidden> <INPUT id=nameBoCommunitySelectBox_ulbReQueryonload value=true type=hidden name=nameBoCommunitySelectBox:ulbReQueryonload> <INPUT id=nameBoCommunitySelectBox_ulbReQueryRecordsHidden value=10 type=hidden name=nameBoCommunitySelectBox:ulbReQueryRecordsHidden> <INPUT id=nameBoCommunitySelectBox_ulbValueHidden type=hidden name=nameBoCommunitySelectBox:ulbValueHidden> <DIV style="Z-INDEX: 10; POSITION: absolute; DISPLAY: none" id=nameBoCommunitySelectBox_ulbResultsSpan class=dbcomboResultsSpanWO name="nameBoCommunitySelectBox_ulbResultsSpan"><SPAN id=nameBoCommunitySelectBox_ulbSpanWRP class=dbcomboSpanResultsSpanWO name="nameBoCommunitySelectBox_ulbSpanWRP"><SPAN style="DISPLAY: none" id=nameBoCommunitySelectBox_ulbSpacer><SPAN style="CLIP: rect(5px 50px 50px 5px); POSITION: absolute; OVERFLOW: hidden; TOP: -3px; LEFT: -3px" id=nameBoCommunitySelectBox_ulbClipper><SELECT style="DISPLAY: none; FONT-FAMILY: Verdana; FONT-SIZE: 8pt" id=nameBoCommunitySelectBox_ulbDropDown tabIndex=-1 size=10 name=nameBoCommunitySelectBox:ulbDropDown></SELECT> </SPAN></SPAN></SPAN> <DIV style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; DISPLAY: none; PADDING-TOP: 0px" id=nameBoCommunitySelectBox_ulbStDsSp class=dbcomboMainSpanFont></DIV> <DIV style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 100%; PADDING-RIGHT: 0px; PADDING-TOP: 0px" id=nameBoCommunitySelectBox_ulbStatusBar class=dbcomboStatusBarWO align=center ?><NOBR><BUTTON style="DISPLAY: none" id=nameBoCommunitySelectBox_ulbMoreResultsButton class=dbcombo7MoreResultsButton tabIndex=-1 name=nameBoCommunitySelectBox:ulbMoreResultsButton>More...</BUTTON> </NOBR></DIV></DIV></NOBR></DIV></tool:dbcombo></TD> <TD></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV> <DIV id=divTableContent class=classPageContent> <TABLE style="WIDTH: 760px; TABLE-LAYOUT: fixed; MARGIN-LEFT: 0px" border=0 cellSpacing=0 cellPadding=0> <TBODY> <TR> <TD> <TABLE style="POSITION: relative; WIDTH: 760px; TABLE-LAYOUT: fixed; TOP: 5px" border=0 cellSpacing=0 cellPadding=0> <COLGROUP> <COL width=300> <COL width=290> <TBODY> <TR align=left> <TD><SPAN style="VISIBILITY: hidden" id=pageheading class=txtPageHeading>Work Orders Search</SPAN></TD> <TD style="PADDING-RIGHT: 9px" id=tableOKButton align=right></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!-- dialog description message --><!-- Show detail header for selected object, started for Contact pages --><!--Begin search section --> <DIV style="POSITION: relative; DISPLAY: block; TOP: 0px; LEFT: 0px" id=searchSection> <TABLE style="POSITION: relative; TOP: 0px; LEFT: 0px" cellSpacing=1 cellPadding=0> <TBODY> <TR> <TD> <TABLE style="POSITION: relative; TOP: -10px; LEFT: 0px" id=tblShowAll border=0 cellSpacing=0 cellPadding=0 align=left> <TBODY> <TR> <TD vAlign=left align=left><A id=showallRef onclick="preSearch(0); return false" href=""><SPAN style="CURSOR: hand" id=showall></SPAN></A></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD> <TABLE style="POSITION: relative; TOP: 0px; LEFT: 0px" id=tblSearch cellSpacing=0 cellPadding=0> <FORM name=btn_search> <TBODY> <TR> <TD class=txtTableLeadIn align=left>Search for <SPAN id=searchLabel>Work Orders </SPAN> where <SELECT id=sortFields class=inputTagSelectEntry onchange="if (this.options[this.options.selectedIndex].value!='0') sortInput.focus();" name=sortFields persist="true"> <OPTION selected value=0>(None Selected)</OPTION><OPTION value=WONumber>Number starts with</OPTION><OPTION value=contName>Contact Name contains</OPTION><OPTION language=checkPhoneNumbers value=contAddr>Contact Telephone starts with</OPTION><OPTION value=location>Location contains</OPTION><OPTION value=item>Item contains</OPTION><OPTION value=task>Task contains</OPTION><OPTION value=note>Notes contains</OPTION><OPTION value=WODesc>Description contains</OPTION></SELECT> </TD> <TD class=txtTableLeadIn> <INPUT onblur="this.value = ltrim(this.value); checkValidateIfExists(sortFields);" style="WIDTH: 120px" id=sortInput class=inputTagTextEntry onkeypress="if (window.event.keyCode==13){preSearch(1); return false};" maxLength=50 name=sortInput persist="true"> </TD> <TD style="PADDING-TOP: 2px"> <BUTTON style="WIDTH: 70px; classBorderType: both" id=searchButtonLocal class=btnWhiteBackGroundInside onclick=preSearch(1); value="Search"> <DIV style="POSITION: relative; TEXT-ALIGN: center; WIDTH: 58px; HEIGHT: 20px; TOP: 0px" id=btnOverBorder_ms__id12_divIDInternalUnique noWrap><SPAN style="POSITION: relative; TOP: 2px"><SPAN style="POSITION: relative; VISIBILITY: visible; TOP: 0px" id=btnOverBorder_ms__id12_bLeftBorder>|</SPAN><SPAN style="WIDTH: 56px; FONT-WEIGHT: bold" id=btnOverBorder_ms__id12_bSpan><SPAN>Search</SPAN></SPAN><SPAN style="POSITION: relative; VISIBILITY: visible; TOP: 0px" id=btnOverBorder_ms__id12_bRightBorder>|</SPAN></SPAN></DIV></BUTTON> </TD></TR></FORM></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV><!-- result if more then 100 records --> <TABLE style="WIDTH: 760px; DISPLAY: none; TABLE-LAYOUT: fixed; dispaly: none" id=tblMoreThen100 border=0 cellSpacing=0 cellPadding=0> <TBODY> <TR style="HEIGHT: 40px"> <TD style="COLOR: red; VERTICAL-ALIGN: bottom" id=tdMoreThen100 class=textboxlabelbold></TD></TR></TBODY></TABLE><!--End search section --> <DIV style="POSITION: relative; WIDTH: 760px; TOP: 10px; LEFT: 0px"> <DIV style="WIDTH: 760px; OVERFLOW: hidden"><!-- header --> <TABLE style="WIDTH: 760px" class=tblHeaderBar border=0 cellSpacing=0 cellPadding=0> <TBODY> <TR> <TD style="WIDTH: 435px" id=tableHeaderText class=txtTableTitle>Work Orders - <SPAN id=spanCount class=txtTableRowCount></SPAN>0 records found</TD> <FORM name=btn_action> <TD> </TD> <TD style="PADDING-RIGHT: 10px; DISPLAY: block" id=tableHeaderButton noWrap align=right> <DIV><SPAN id=spnUpButtons></SPAN><SPAN style="DISPLAY: inline" class=permControlled accessLevelRequired="2" boundurl="/corpnet/asp/legacy/maintmgr/wo_search.asp" permXMLpath="window.parent.document.all('oGrantedURLAccessDOM')" controlType="show-hide"></SPAN></DIV> <DIV> <TABLE style="POSITION: relative; WIDTH: 100%; TABLE-LAYOUT: fixed; TOP: 0px; LEFT: 0px" border=0 cellSpacing=0 cellPadding=0> <COLGROUP> <COL width=200> <TBODY> <TR class=textboxlabelbold> <TD><BUTTON id=btnStatusUp class=popupDialogButtonBorderedGreyBack onclick=changeFilterOptions()><SPAN class=popupDialogButtonSpanIn>z</SPAN></BUTTON> <SPAN style="CURSOR: hand" id=spnFilterName class=txtColHeadLabelNoHeightInDispBoardThin onclick=changeFilterOptions()>Work Order Filter: <B>On</B></SPAN> </TD></TR></TBODY></TABLE></DIV></TD></FORM></TR></TBODY></TABLE></DIV></DIV><!-- Show Table content --> <DIV style="POSITION: relative; WIDTH: 600px; TOP: 10px; LEFT: 0px" id=xslTarget align=left> <TABLE style="TABLE-LAYOUT: fixed; ro--hover-background: #EAEEF7; roHoverBackground: #EAEEF7; ro--hover-color: black; roHoverColor: black; ro--selected-background: #334268; roSelectedBackground: #334268; ro--selected-color: white; roSelectedColor: white; ro--shade-background: #dddddd; roShadeBackground: #dddddd; ro--light-background: white; roLightBackground: white; ro--selected-link-color: white; roSelectedLinkColor: white; roReturnedLinkColor: #324395" id=tblData class=rowover border=0 cellSpacing=0 cellPadding=0 width=760> <TBODY> <TR> <TD class=txtDataRowArea align=middle> <DIV class=txtTableLeadIn noWrap>Please make a selection or enter search criteria and click Search.</DIV></TD></TR></TBODY></TABLE></DIV><!-- footer --> <DIV style="POSITION: relative; WIDTH: 760px; OVERFLOW: hidden; TOP: 10px; LEFT: 0px"> <FORM name=btn_action1> <TABLE style="WIDTH: 760px; HEIGHT: 22px" class=tblFooterBar border=0 cellSpacing=0 cellPadding=0> <TBODY> <TR style="HEIGHT: 22px"> <TD style="PADDING-LEFT: 10px; DISPLAY: block" id=tableFooterButton width=*><!-- additional lower buttons --> <DIV style="DISPLAY: inline" class=permControlled accessLevelRequired="2" controlType="show-hide"><SPAN id=spnDownButtons><BUTTON style="POSITION: relative; WIDTH: 70px; LEFT: 0px; classBorderType: both" id=idPrintMe class=btnDetailHeaderBackGroundInside title="Print One" onclick=doPrintMe();> <DIV style="POSITION: relative; TEXT-ALIGN: center; WIDTH: 58px; HEIGHT: 20px; TOP: 0px" id=btnOverBorder_ms__id13_divIDInternalUnique noWrap><SPAN style="POSITION: relative; TOP: 2px"><SPAN style="POSITION: relative; VISIBILITY: visible; TOP: 0px" id=btnOverBorder_ms__id13_bLeftBorder>|</SPAN><SPAN style="WIDTH: 56px; FONT-WEIGHT: bold" id=btnOverBorder_ms__id13_bSpan><SPAN>Print One</SPAN></SPAN><SPAN style="POSITION: relative; VISIBILITY: visible; TOP: 0px" id=btnOverBorder_ms__id13_bRightBorder>|</SPAN></SPAN></DIV></BUTTON><BUTTON style="POSITION: relative; WIDTH: 70px; LEFT: 0px; classBorderType: both" id=idPrintMeAll class=btnDetailHeaderBackGroundInside title="Print All" onclick=doPrintMeAll();> <DIV style="POSITION: relative; TEXT-ALIGN: center; WIDTH: 58px; HEIGHT: 20px; TOP: 0px" id=btnOverBorder_ms__id14_divIDInternalUnique noWrap><SPAN style="POSITION: relative; TOP: 2px"><SPAN style="POSITION: relative; VISIBILITY: visible; TOP: 0px" id=btnOverBorder_ms__id14_bLeftBorder>|</SPAN><SPAN style="WIDTH: 56px; FONT-WEIGHT: bold" id=btnOverBorder_ms__id14_bSpan><SPAN>Print All</SPAN></SPAN><SPAN style="POSITION: relative; VISIBILITY: visible; TOP: 0px" id=btnOverBorder_ms__id14_bRightBorder>|</SPAN></SPAN></DIV></BUTTON></SPAN><BUTTON style="WIDTH: 70px; DISPLAY: none; VISIBILITY: hidden; classBorderType: both" id=btnDelete class=btnDetailHeaderBackGroundInside disabled onclick=DeleteOne(); name=btnDelete value="Delete"> <DIV style="POSITION: relative; TEXT-ALIGN: center; WIDTH: 58px; HEIGHT: 20px; TOP: 0px" id=btnOverBorder_ms__id15_divIDInternalUnique noWrap><SPAN style="POSITION: relative; TOP: 2px"><SPAN style="POSITION: relative; VISIBILITY: visible; TOP: 0px" id=btnOverBorder_ms__id15_bLeftBorder>|</SPAN><SPAN style="WIDTH: 56px; FONT-WEIGHT: bold" id=btnOverBorder_ms__id15_bSpan><SPAN>Delete</SPAN></SPAN><SPAN style="POSITION: relative; VISIBILITY: visible; TOP: 0px" id=btnOverBorder_ms__id15_bRightBorder>|</SPAN></SPAN></DIV></BUTTON> </DIV></TD> <TD style="PADDING-LEFT: 10px"><BUTTON style="POSITION: relative; WIDTH: 120px; DISPLAY: none; LEFT: 0px; classInitWidth: 120px" id=btnPrevPage class=btnDetailHeaderBackGroundInside title="<< Previous" disabled onclick=pagePrev(); value="<< Previous"> <DIV style="POSITION: relative; TEXT-ALIGN: center; WIDTH: 108px; HEIGHT: 20px; TOP: 0px" id=btnOverBorder_ms__id16_divIDInternalUnique noWrap><SPAN style="POSITION: relative; TOP: 2px"><SPAN style="POSITION: relative; VISIBILITY: visible; TOP: 0px" id=btnOverBorder_ms__id16_bLeftBorder>|</SPAN><SPAN style="WIDTH: 106px; FONT-WEIGHT: bold" id=btnOverBorder_ms__id16_bSpan><SPAN><< Previous</SPAN></SPAN><SPAN style="POSITION: relative; VISIBILITY: visible; TOP: 0px" id=btnOverBorder_ms__id16_bRightBorder>|</SPAN></SPAN></DIV></BUTTON><BUTTON style="POSITION: relative; WIDTH: 120px; DISPLAY: none; LEFT: 0px; classInitWidth: 120px" id=btnNextPage class=btnDetailHeaderBackGroundInside title="Next 100 >>" disabled onclick=pageNext(); value="Next 100 >>"> <DIV style="POSITION: relative; TEXT-ALIGN: center; WIDTH: 108px; HEIGHT: 20px; TOP: 0px" id=btnOverBorder_ms__id17_divIDInternalUnique noWrap><SPAN style="POSITION: relative; TOP: 2px"><SPAN style="POSITION: relative; VISIBILITY: visible; TOP: 0px" id=btnOverBorder_ms__id17_bLeftBorder>|</SPAN><SPAN style="WIDTH: 106px; FONT-WEIGHT: bold" id=btnOverBorder_ms__id17_bSpan><SPAN>Next 100 >></SPAN></SPAN><SPAN style="POSITION: relative; VISIBILITY: visible; TOP: 0px" id=btnOverBorder_ms__id17_bRightBorder>|</SPAN></SPAN></DIV></BUTTON> </TD></TR></TBODY></TABLE></FORM></DIV><!-- TRANSACTION POPUP box --> <DIV style="Z-INDEX: 5; POSITION: absolute; DISPLAY: block; VISIBILITY: hidden; TOP: 20px; CURSOR: hand; LEFT: 10px" id=oTransact lang=true onmouseout=CheckHidePopup(this);> <TABLE border=0 cellSpacing=15 cellPadding=15> <TBODY> <TR> <TD> <DIV style="BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BACKGROUND-COLOR: #ebebeb; BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid"> <TABLE border=0 cellSpacing=0 cellPadding=0 width=140> <TBODY> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick="return doCreateTransfer(oTransact, '7', 'Adjustment');"> Adjustment</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick="return doCreateTransfer(oTransact, '3', 'Receipt');"> Receipt</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick="return doCreateTransfer(oTransact, '8', 'Return');"> Return</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick="return doCreateTransfer(oTransact, '9', 'Transfer');"> Transfer</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick="return doCreateTransfer(oTransact, '6', 'Issue');"> Issue</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV><!-- SR POPUP box --> <DIV style="Z-INDEX: 5; POSITION: absolute; DISPLAY: block; VISIBILITY: hidden; TOP: 20px; CURSOR: hand; LEFT: 10px" id=popSR lang=true onmouseout=CheckHidePopup(this);> <TABLE border=0 cellSpacing=15 cellPadding=15> <TBODY> <TR> <TD> <DIV style="BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BACKGROUND-COLOR: #ebebeb; BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid"> <TABLE border=0 cellSpacing=0 cellPadding=0> <TBODY> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick="return selectSR(popSR, 'SR');" noWrap> <DIV style="PADDING-LEFT: 3px">Service Request</DIV></TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick="return selectSR(popSR, 'SRU');" noWrap> <DIV style="PADDING-LEFT: 3px">Service Request In Location</DIV></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV><!-- TRANSACTION POPUP box --> <DIV style="Z-INDEX: 5; POSITION: absolute; DISPLAY: block; VISIBILITY: hidden; TOP: 20px; CURSOR: hand; LEFT: 10px" id=oTransactRef lang=true onmouseout=CheckHidePopup(this);> <TABLE border=0 cellSpacing=15 cellPadding=15> <TBODY> <TR> <TD> <DIV style="BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BACKGROUND-COLOR: #ebebeb; BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid"> <TABLE border=0 cellSpacing=0 cellPadding=0 width=140> <TBODY> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick="return doCreateTransferRef(oTransactRef, '6', 'Accidental Leak');"> Accidental Leak</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick="return doCreateTransferRef(oTransactRef, '7', 'Added');"> Added</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick="return doCreateTransferRef(oTransactRef, '8', 'Recovered');"> Recovered</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV><!-- PRINT POPUP box --> <DIV style="Z-INDEX: 5; POSITION: absolute; DISPLAY: block; VISIBILITY: hidden; TOP: 20px; CURSOR: hand; LEFT: 10px" id=oPrint lang=true onmouseout=CheckHidePopup(this);> <TABLE border=0 cellSpacing=15 cellPadding=15> <TBODY> <TR> <TD> <DIV style="BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; OVERFLOW-Y: scroll; BACKGROUND-COLOR: #ebebeb; WIDTH: 200px; HEIGHT: 140px; BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid"> <TABLE border=0 cellSpacing=0 cellPadding=0 width=180> <TBODY> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick='return selectPrint(oPrint, "70", "Customer");'> Customer</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick='return selectPrint(oPrint, "73", "Customer (w/Notes & Actions)");'> Customer (w/Notes & Actions)</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick='return selectPrint(oPrint, "74", "Customer (w/Notes & Punch List)");'> Customer (w/Notes & Punch List)</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick='return selectPrint(oPrint, "72", "Customer (w/Notes)");'> Customer (w/Notes)</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick='return selectPrint(oPrint, "71", "Invoice");'> Invoice</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick='return selectPrint(oPrint, "68", "Standard");'> Standard</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick='return selectPrint(oPrint, "69", "Vendor");'> Vendor</TD></TR> <TR> <TD class=showLink onmouseover=OnPopUpTDMouseOver() onmouseout=OnPopUpTDMouseOut() onclick='return selectPrint(oPrint, "75", "Voice User Print");'> Voice User Print</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV><!-- This DIV overlay is used to display the wait cursor --> <DIV style="Z-INDEX: -1; CURSOR: auto" id=oOverlay class=divOverlay></DIV><!-- DEBUG buttons --><BUTTON accessKey=X style="Z-INDEX: 5; WIDTH: 0px" id=btnx onclick=ShowXML(source.XMLDocument);></BUTTON><BUTTON accessKey=y style="Z-INDEX: 5; WIDTH: 0px" id=btny onclick=ShowXML(oBody.XMLDocument);></BUTTON><BUTTON accessKey=1 style="Z-INDEX: 5; WIDTH: 0px" id=btn1 onclick=AddNew();></BUTTON> <!-- Add ancor for rowover behavior --> <TABLE style="Z-INDEX: -5; POSITION: absolute; WIDTH: 0px; TOP: 0px; CURSOR: default; BEHAVIOR: url(/CorpNet/asp/legacy/behaviors/rowover.htc); LEFT: 0px; ro--hover-background: #EAEEF7; roHoverBackground: #EAEEF7; ro--hover-color: black; roHoverColor: black; ro--selected-background: #334268; roSelectedBackground: #334268; ro--selected-color: white; roSelectedColor: white; ro--shade-background: #dddddd; roShadeBackground: #dddddd; ro--light-background: white; roLightBackground: white; ro--selected-link-color: white; roSelectedLinkColor: white; roReturnedLinkColor: #324395"> <TBODY></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE> <script language=Javascript> //--------------------------------- // Private JScript Functions //--------------------------------- var pathObject_Global = 'wosearch'; var gWODaysCancelled = 14; var gWODaysCompleted = 14; //var defWOStatMask = '110101'; //g_WOstatuses; //''; //<!-- status checker for WO Filter --> var idWOStyleChecksStatus = new ActiveXObject("Microsoft.XMLDOM"); reloadXMLRootPOST("/CorpNet/asp/legacy/maintmgr/xsl/status_checks.xsl", idWOStyleChecksStatus); //<!-- XML statuses for WO Filter checkers --> var idxmlWOStatusList = new ActiveXObject("Microsoft.XMLDOM"); // if XML is not uploaded yet var g_KeeperName = "xmlLGpostXML"; var xSTR = window.parent.document.all[g_KeeperName].XMLdocument.xml; if ( xSTR == '' ) { reloadXMLRootPOST("/CorpNet/asp/legacy/maintmgr/xsl/wostatuslistsearch.asp", idxmlWOStatusList); window.parent.document.all[g_KeeperName].XMLdocument.loadXML(idxmlWOStatusList.xml); } else { idxmlWOStatusList.loadXML(window.parent.document.all[g_KeeperName].XMLdocument.xml); } var URLDLGWOPOPUPSTATUS = "/CorpNet/asp/legacy/maintmgr/storemgr/popupchecks.asp"; var XMLURLMASKSAVE="/CorpNet/asp/legacy/maintmgr/dispatch/maskupdate.asp"; //--------------------------------- // checkIfAllDoneFilter - set header to status filter handel //--------------------------------- function checkIfAllDoneFilter(){ var path = pathObject_Global; var xpath = "//object[@id='" + path + "']/statusbar/status[@value='false']" var oOffCnt = xmlStatusGeneric.selectNodes(xpath).length; oOffCnt = oOffCnt - 0; // 0 status are disabled in the source always var xpath = "//object[@id='" + path + "']/statusbar/status[@value='true']" var oOnCnt = xmlStatusGeneric.selectNodes(xpath).length; var b_btnStatusUp = document.all("btnStatusUp"); if ( b_btnStatusUp ) { if (oOnCnt == 0 && oOffCnt > 0) { spnFilterName.innerHTML = g_WorkOrderLabel + " Filter: <b>On</b>"; b_btnStatusUp.className = 'popupDialogButtonBorderedGreyBack'; } else { if (oOnCnt > 0 && oOffCnt == 0) { spnFilterName.innerHTML = g_WorkOrderLabel + " Filter: <b>Off</b>"; b_btnStatusUp.className = 'popupDialogButtonBorderedWhiteBack'; } else { spnFilterName.innerHTML = g_WorkOrderLabel + " Filter: <b>On</b>"; b_btnStatusUp.className = 'popupDialogButtonBorderedGreyBack'; } } } } //--------------------------------- // changeFilterOptionsOver - get options //--------------------------------- function changeFilterOptionsOver(path, xmlDataDOC, xmlDataStyle, spnID, headtext){ var xpath = "//object[@id='" + path + "']/statusbar"; var oStatus = xmlStatusGeneric.selectSingleNode(xpath); var args = Array(window.window, oStatus, xmlDataDOC, xmlDataStyle, path, headtext); var url = URLDLGWOPOPUPSTATUS; var par = "center=yes;help=no;status=no;dialogWidth=400px;dialogHeight=376px;scroll=no;"; var xmlstr = openDialog(url, args, par) ; if (xmlstr) { var nodes = xmlDataDOC.selectNodes("//root/row") for (var i=0; i<=nodes.length-1; i++){ var name = "bxStat_" + nodes(i).getAttribute("ID"); var xpath = "//object[@id='" + path + "']/statusbar/status[@id='" + name + "']/@value" var xP = xmlstr.selectSingleNode(xpath).text; updateStatusXMLGeneric(name, xP , path); } // update mask on server saveDispatchBoadMask(path, xmlDataDOC, null); saveValueMask("wosearchCanc", gWODaysCancelled); saveValueMask("wosearchComp", gWODaysCompleted); // keep mask g_WOstatuses = buildStatusMask(path, xmlDataDOC); // update global keeper for XML window.parent.document.all[g_KeeperName].XMLdocument.loadXML(xmlDataDOC.xml); return true; } else { return false; // nothing changed } } //--------------------------------- // changeFilterOptions - get options //--------------------------------- function changeFilterOptions(){ // remove old removeElementGeneric("//object[@id='" + pathObject_Global + "']"); // init check set initPickXMLchecks(); // get filter if ( changeFilterOptionsOver(pathObject_Global, idxmlWOStatusList, idWOStyleChecksStatus, null, 'Work Order Filter ') ) { /* // change URL for ROW counter var CountUrl = srcWOCounter.src; var pos = CountUrl.indexOf("&statuses="); if (pos>0) { CountUrl = CountUrl.substr(0, pos+10) + g_WOstatuses + '&CompletedAge=' + gWODaysCancelled; } reloadXMLRootPOST(CountUrl, srcWOCounter.XMLDocument); // change URL for detail rows var pos = xmlURL.indexOf("&statuses="); if (pos > 0) { xmlURL = xmlURL.substr(0, pos+10) + g_WOstatuses + '&CompletedAge=' + gWODaysCancelled; } // create list of reasons var xPx = "//reason/row[@IsDirty='1']"; var nodes = idxmlWOStatusList.selectNodes(xPx); var reasons = '&reasons='; var reasonsList = ''; if ( nodes.length > 0 ) { for ( var i=0; i<=nodes.length-1; i++ ) { reasonsList = reasonsList + nodes(i).getAttribute("ID") + "," } } xmlURL = xmlURL + reasons + reasonsList; // update mask on server saveDispatchBoadMask(pathObject_Global + "reasons", null, reasonsList); */ // set filter header checkIfAllDoneFilter(); // show result preSearch(1); // loadXMLLocal(xmlURL); } } //--------------------------------- // initPickXMLchecks - set/get checks from XML checks store //--------------------------------- function initPickXMLchecks(){ // set default settings by masks specified buildDefaultSetByMask(g_WOstatuses, idxmlWOStatusList); // set initial values - wo status var rootname = pathObject_Global; var nodes = idxmlWOStatusList.selectNodes("//root/row") for (var i=0; i<=nodes.length-1; i++){ var name = "bxStat_" + nodes(i).getAttribute("ID"); // create status node SetStatusInfoGeneric(name, rootname); // set initial settins var xpath = "//object[@id='" + rootname + "']/statusbar/status[@id='" + name + "']" var oStatus = xmlStatusGeneric.selectSingleNode(xpath); if (oStatus){ oStatus.setAttribute("value", nodes(i).getAttribute("default")); oStatus.setAttribute("show", nodes(i).getAttribute("show")); } } } //--------------------------------- // buildDefaultSetByMask //--------------------------------- function buildDefaultSetByMask(mask, xmlDOM){ var nodes = xmlDOM.selectNodes("//root/row") for (var i=0; i<=nodes.length-1; i++){ var bit = mask.substr(i, 1); var value = ((bit == '1')? 'true' : 'false') ; nodes(i).setAttribute("default", value); } } //--------------------------------- // buildStatusMask //--------------------------------- function buildStatusMask(path, xmlDOM){ var nodes = xmlDOM.selectNodes("//root/row") var mask = "" for (var i=1; i<=nodes.length; i++){ var name = "bxStat_" + i; var xpath = "//object[@id='" + path + "']/statusbar/status[@id='" + name + "']/@value"; var xP = xmlStatusGeneric.selectSingleNode(xpath); if (xP){ mask += ((xP.text == 'true')? '1' : '0') ; } else { mask += '0'; } } return mask; } //--------------------------------- // saveValueMask //--------------------------------- function saveValueMask(path, curval){ var sendXMLstring = "<root maskname='" + path + "' mask='" + curval + "'/>" var sendXML = new ActiveXObject("microsoft.xmldom"); sendXML.async = false; sendXML.loadXML(sendXMLstring); // post XML by HTTP var httpDOM = new ActiveXObject("Microsoft.XMLHTTP"); httpDOM.open("POST", XMLURLMASKSAVE, false); httpDOM.send(sendXML); // if Saved OK if (httpDOM.status == 200){ } return curval; } //--------------------------------- // saveDispatchBoadMask //--------------------------------- function saveDispatchBoadMask(path, xmlDOM, str){ if ( str == null ) { var curmask = buildStatusMask(path, xmlDOM); } else { var curmask = str; } var sendXMLstring = "<root maskname='" + path + "' mask='" + curmask + "'/>" var sendXML = new ActiveXObject("microsoft.xmldom"); sendXML.async = false; sendXML.loadXML(sendXMLstring); // post XML by HTTP var httpDOM = new ActiveXObject("Microsoft.XMLHTTP"); httpDOM.open("POST", XMLURLMASKSAVE, false); httpDOM.send(sendXML); // if Saved OK if (httpDOM.status == 200){ } return curmask; } //------------------------ // openDialog - open modal dialog //------------------------ function openDialog(url, name, action){ var loc_id; if (action){ var par = action; } else { var par = "center=yes;help=no;status=no;dialogWidth=400px;dialogHeight=206px;scroll=no;"; } return window.showModalDialog(url, name, par); } //</SCRIPT> </BODY></HTML> Link to comment Share on other sites More sharing options...
Apriest Posted May 1, 2010 Author Share Posted May 1, 2010 WOOT! Ok so I found the Javascript file that the HTML of the frame references and I THINK I even found the function for the drop down selecting. Is it possible anyone could help me out with figuring out the code for selecting "Portfolio". Thanks again expandcollapse popup//------------------------------------ function _SelectDropDown(tabsFrame, type, label, selectedID, IsInPage) { HideAllSelectBoxes(tabsFrame, IsInPage); var objSelectBox; // Now expose the appropriate select box if ( IsInPage ) { switch(type) { case "Team": objSelectBox = tabsFrame.all("oTeamSelectBox"); break; case "Portfolio": objSelectBox = tabsFrame.all("oPortfolioSelectBox"); break; case "Property": objSelectBox = tabsFrame.all("oCommunitySelectBox") break; case "Vendor": objSelectBox = tabsFrame.all("oCommunitySelectBox") break; case "LeaseGroup": objSelectBox = tabsFrame.all("oLeaseGroupSelectBox") break; case "Domain": objSelectBox = tabsFrame.all("oDomainSelectBox") break; case "StoreRoom": objSelectBox = tabsFrame.all("oStoreRoomSelectBox") break; } } else { switch(type) { case "Team": objSelectBox = tabsFrame.oTeamSelectBox; break; case "Portfolio": objSelectBox = tabsFrame.oPortfolioSelectBox; break; case "Property": objSelectBox = tabsFrame.oCommunitySelectBox break; case "Vendor": objSelectBox = tabsFrame.oCommunitySelectBox break; case "LeaseGroup": objSelectBox = tabsFrame.oLeaseGroupSelectBox break; case "Domain": objSelectBox = tabsFrame.oDomainSelectBox break; case "StoreRoom": objSelectBox = tabsFrame.oStoreRoomSelectBox break; } } // if object does not exist // alert(objSelectBox.tagName); if ( !objSelectBox ) { tabsFrame.all("oDropDownType").innerText = " "; // No Objects return; } if ( objSelectBox.tagName.toLowerCase() == 'dbcombo' || objSelectBox.tagName.toLowerCase() == 'dbcombo17') { // dbcombo type selector update //alert(objSelectBox.tagName); //objSelectBox.SetValue(objSelectBox.GetValue()) } else { // check error if ( !objSelectBox.style.display ) { return; } // show select box objSelectBox.style.display = "inline"; // Update the selected index var options = objSelectBox.options; if (objSelectBox.value != selectedID){ // "combobox" type selector if ( objSelectBox.type == 'COMBOBOX' ) { for(i = 0; i < objSelectBox.getOptionCount(); i++) { if (objSelectBox.getOptionValue(i) == selectedID) { objSelectBox.value = selectedID; break; } } } else { // "select" type selectory for(i = 0; i < options.length; i++) { if (options(i).value == selectedID) { objSelectBox.selectedIndex = i; break; } } } } } if ( IsInPage ) { tabsFrame.all("oDropDownType").innerText = label; } else { tabsFrame.oDropDownType.innerText = label; } Link to comment Share on other sites More sharing options...
DaleHohm Posted May 1, 2010 Share Posted May 1, 2010 You need to find the element defined in the HTML. Here's how you should be able to find it: close all IE windows except the one you are working with to simplify your selections, click on the Webbrowser Spy button in the DebugBar toolbar (looks like an eye). Find your IE instance in the list and expand it. Click on each document under it in turn and click on the IE Interpretted Source tab and then use the Find to find the word Portfolio until you find where the dropdown element you want is defined as an HTML element. Once you have that, determine whether it is in a frame you need to drill into, what kind of an element it is and whether you need to select it by tagname or if it has an ID or name you can use... go from there. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now