<mx:HBox width="100%" horizontalAlign="center" horizontalGap="10"> <mx:RadioButtonGroup id="radiogroup1" itemClick="changeOpt(event)"/> <mx:RadioButton label="PPIN" groupName="radiogroup1" selected="true" id="idPPIN" styleName="WidgetText" /> <mx:RadioButton label="Parcel" groupName="radiogroup1" id="idParcel" styleName="WidgetText" /> <mx:RadioButton label="Owner" groupName="radiogroup1" id="idOwner" styleName="WidgetText" /> <mx:RadioButton label="Address" groupName="radiogroup1" id="idAddress" styleName="WidgetText" /> </mx:HBox>
private function changeOpt(event:ItemClickEvent):void{ switch(event.label.toLowerCase()){ case "ppin": { txtLabelText.text = "Search Parcels by PPIN (Parcel ID Number) i.e. 1234" queryExpr = "PPIN = '[value]'" break; } case "parcel":{ txtLabelText.text = "Search Parcels by Parcel Number i.e. 1706140002014000" queryExpr = "Parcel_Number = '[value]'" break; } case "owner":{ txtLabelText.text = "Search Parcels by Owner Name i.e. Smith John (Last First)" queryExpr = "NAME LIKE '%[value]%'" break; } case "address":{ txtLabelText.text = "Search Parcels by Address i.e. 244 Cherokee TR" queryExpr = "STREET_ADDRESS LIKE '%[value]%'" break; } } }
queryExpr = configSearchText.expr;
if(queryExpr){ }else{ queryExpr = configSearchText.expr; }
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.