162
|
Chapter 7
Applications
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.");
}
Facilities Management Application Example Code (
continued
)
Summary of Contents for 15606-011408-9300 - MAP R6.3 UPG
Page 1: ...15306 010000 5060 October 2001 Autodesk MapGuide Release 6 Developer s Guide ...
Page 6: ...vi ...
Page 16: ...16 ...
Page 30: ...30 ...
Page 84: ...84 ...
Page 134: ...134 ...
Page 202: ...202 ...