Autodesk 15606-011408-9300 Developer Guide - Page 162
Count = Count + 1, var LastName = document.Selection.LastName.value
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 162 highlights
Facilities Management Application Example Code (continued) if (selValue[i].selected){ var temp = selValue[i].value; } } if (temp == 'showAll'){ var whereClause = "Space_Status is not null"; } else{ var whereClause = "Space_Status='"+temp+"'"; } var mapLayer = map.getMapLayer("Offices"); mapLayer.setSQLWhere(whereClause); map.refresh(); } } + Function resetForm() + + Description: resets the values in the form to the default values + + Arguments: none + + Return: none + function resetForm(){ document.Selection.reset(); } + Function openSearchWind() + + Description: used to launch the search popup window + + Arguments: none + + Return: none + function openSearchWind(){ var FirstName = document.Selection.FirstName.value; var LastName = document.Selection.LastName.value; var RoomSelected; var Count = 0; var selOptions = document.Selection.roomnum.options; for (var i=0; i < selOptions.length; i++) { if (selOptions[i].selected){ RoomSelected = selOptions[i].value Count = Count + 1; } } if ((FirstName.length == 0) && (LastName.length == 0) && (Count < 1)){ alert("Must enter a value for the first name or last name field. \n Or, select a room before continuing."); } 162 | Chapter 7 Applications