POST
|
Along with the great info Steve provided you might want to check out the 'Customize Info Window' conceptual doc in the help: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_customize.htm Kelly, this link is broken, could you please update it? Thanks
... View more
02-11-2014
11:08 AM
|
0
|
0
|
353
|
POST
|
We are looking to get started using the LGIM and its a little daunting having to source data that will load easily and completly into the schema. Is there a resource that I can use to find the generic datasets that contain most of the needed attributes. This would be for the simple datasets such as roads, rivers, waterbodies ect. Are the defined off for instance TIGERline and NHD respectively? Thanks in advance for any advice.
... View more
11-22-2013
11:26 AM
|
0
|
0
|
1092
|
POST
|
Robert, I am trying to create a legend in the FLEX viewer (using builder) that allows for layer groupings. I contacted ESRI Tech Support and they indicated that the best way to achieve this is through the use of your tool. I downloaded and successfully added the widget "For_AppBuilder3.5" to my FLEX builder. Now I am trying to figure out how to actually group the layers I want grouped. When I published the data from ArcMAP (10.1 sp1), it was grouped and as such the layer id from the REST service skips numbers where the layer group is. I have tried to find documentation regarding your widget on how to achieve the grouping - but cannot seem to find it. Can you provide a link to instructions? I should qualify that I am using feature services, not map services!! Thanks kindly for a great service. Bret.
... View more
11-13-2013
04:06 AM
|
0
|
0
|
1066
|
POST
|
I have never used CityEngine before - but our organization does have a license. We were designing a hypothetical work flow yesterday, and I am wondering if its possible to display a feature service in a CityEngine webscene? If its not possible now (@ ver. 10.2), are there plans in the future to make it work?
... View more
11-06-2013
04:49 AM
|
0
|
3
|
689
|
POST
|
Dan, Unfortunately this document is not available for posting publicly but I can provide it to you directly. I see that you have private messaging disabled. If you go to Settings>User Control Panel and enable Private Messaging we can sort this out. Regards, Jason R. Jason - could you provide a copy of this to me please? Bret
... View more
10-01-2013
04:42 AM
|
0
|
0
|
197
|
POST
|
I too am interested in doing what vwolfley and insanebunny are trying to do - has anybody found a work around? Thanks
... View more
07-10-2013
01:01 PM
|
0
|
0
|
898
|
POST
|
I am looking to do the same thing - has this been functionality been updated as a possibility in the 2 years since this thread was originally posted?
... View more
07-09-2013
10:47 AM
|
0
|
0
|
925
|
POST
|
Brilliant! It works flawlessly. Thank you so very much for your dedication to this community. I am running into a new problem now! When my field technician reopens a feature for editing (such as adding information concerning when he mailed a written warning, follow up inspection date, etc) The address and pin fields are changing to erroneous values. Is there a way to make the script run ONLY WHEN NEW FEATURES ARE CREATED and not just when the edit form loads? or is there a way to LOCK the fields once they have been filled in once? or can I make the script not fill in the attributes if there is already text in the control box? Thanks in advance!!!
... View more
10-03-2012
06:10 AM
|
0
|
0
|
379
|
POST
|
I'm glad that it works for you, and hope that you don't find my house to be in violation of irrigation codes! 🙂 BTW, here's an example on how IsPointIn() works:
Sub InitilizeForm
Dim objLayer
'Get a reference to the first layer
Set objLayer = Application.Map.Layers("Violations")
Dim objEditForm
Set objEditForm = objLayer.forms("EDITFORM")
Dim pControls
Set pControls = ThisEvent.Object.Pages("PAGE1").Controls
Dim pPt
Set pPt = Application.CreateAppObject("Point")
pPt.X = Map.PointerX
pPt.Y = Map.PointerY
'Call when adding a new feature
If objEditForm.Mode = 3 Then
pControls("txtAddress").value = ""
pControls("txtPIN").value = ""
'Find Address & PIN # from Parcels Layer
Dim objParcels
Set objParcels = Application.Map.Layers("Parcels")
Dim rsGrid
Set rsGrid = objParcels.Records
rsGrid.movefirst
Do While Not rsGrid.eof
If rsGrid.Fields.Shape.Ispointin(pPt) Then
pControls("txtAddress").value = rsGrid.Fields("ADDR1").Value
pControls("txtPIN").value = rsGrid.Fields("PIN").Value
Exit Do
End If
rsGrid.Movenext
Loop
End If
Set objLayer = Nothing
Set objEditForm = Nothing
Set pControls = Nothing
Set pPt = Nothing
Set objParcels = Nothing
Set rsGrid = Nothing
End Sub
Thanks again! I currently have the Lat/Lon fields filled in using GPS.Latitude and GPS.Longitude. However, if they do not have a gps signal (such as in the office) and they want to add a violation based on a complaint (people call and say "soandso is watering when they are not supposed to" I would like these fields to be filled in based on where they clicked on the map. Is it possible to grab Lat/Lon from the map and not the GPS unit? I know about Map.PointerX/Y, but those give me state plane coordinates and I want DD. Is there a simple conversion scripts perhaps? Thanks
... View more
08-30-2012
07:12 AM
|
0
|
0
|
379
|
POST
|
Because you have a large parcels dataset, using IsPointIn() will slow down your data capture process. it has to loop through all the records inside your pacel layer to find one that contains the point. So, in your case, I would use FindNearestXY() to find a parcel intersected with the collected point. This will perform much better on a large datasets like your. So, here is a new "InitilizeForm" sub for you. Let me know if it works for you.
Sub InitilizeForm
Dim objLayer
'Get a reference to the first layer
Set objLayer = Application.Map.Layers("Violations")
Dim objEditForm
Set objEditForm = objLayer.forms("EDITFORM")
Dim pControls
Set pControls = ThisEvent.Object.Pages("PAGE1").Controls
Dim dblX, dblY
dblX = Map.PointerX
dblY = Map.PointerY
'Call when adding a new feature
If objEditForm.Mode = 3 Then
pControls("txtAddress").value = ""
pControls("txtPIN").value = ""
'Find Address & PIN # from Parcels Layer
Dim objParcels
Set objParcels = Application.Map.Layers("Parcels")
Dim rsGrid
Set rsGrid = objParcels.Records
Dim Rec
Rec = rsGrid.FindNearestXY(dblX,dblY,0,map.Extent)
If Rec > 0 Then
rsGrid.MoveFirst
rsGrid.move(Rec -1)
pControls("txtAddress").value = rsGrid.Fields("ADDR1").Value
pControls("txtPIN").value = rsGrid.Fields("PIN").Value
End If
End If
Set objLayer = Nothing
Set objEditForm = Nothing
Set pControls = Nothing
Set dblX = Nothing
Set dblY = Nothing
Set objParcels = Nothing
Set rsGrid = Nothing
Set Rec = Nothing
End Sub
Brilliant! It works flawlessly. Thank you so very much for your dedication to this community.
... View more
08-30-2012
06:36 AM
|
0
|
0
|
493
|
POST
|
Your code above does not work for AXF files. You need to modify it and use DataSource object, then call Openlayer method to get the Recordset. As of now, your code above only works with shapefiles. If you can provide me a few records from ACPA_parcels and export those features out to a shapefile, I can help you with the coding tomorrow. I need a parcel feature that has the same projection with your point file. Attached is a subset of parcels. Thanks so much for taking the time. I'll be in the office early tomorrow.
... View more
08-29-2012
12:53 PM
|
0
|
0
|
493
|
POST
|
Just a curiosity, did you toggle the "Repeat Attribute" button?! However, I don't think it's matter because if you code it right, your address and pin values will be overwrited each time you place a new point! Attached is the .apx file with the code in it. You can make you your own polygon layer. The parcel layer is too large to send unless you have dropbox or something similar. Thanks!
... View more
08-29-2012
11:19 AM
|
0
|
0
|
493
|
POST
|
Just a curiosity, did you toggle the "Repeat Attribute" button?! However, I don't think it's matter because if you code it right, your address and pin values will be overwrited each time you place a new point! I don't know where that button is. So I'm going to assume no. Also, there are still kinks in it. I'm going to upload a folder for you to play with. I can't get the OnCancelEvent script to work properly either. Give me 5 minutes. Again, thanks so much. You are the only one in all of cyberspace who is helping me.
... View more
08-29-2012
10:58 AM
|
0
|
0
|
493
|
POST
|
Sorry to hear that! Did my attached example work for you? If it's not a big deal, post your 2 features, apl files, and vbs in here. I'll try to look into it for you. I figured out the problem!~ but not the solution. So when I click to create a feature, the correct attribute fill in the table, BUT if I click Cancel rather than Ok to accept the new feature (something that could happen in the field if the inspector clicks the wrong place), when I click a new location the old locations attributes are still stuck in the record select and the form waiting to be accepted. So is there a way to code in "If the point doesn't get placed (the user clicks cancel) it clears all of the attributes stored" PROGRESS!! THANKS!
... View more
08-29-2012
10:26 AM
|
0
|
0
|
493
|
POST
|
Just tried your suggestion. Created a whole new map document. Even updated the parcel layer to a more up-to-date version and it still fills in with the exact same incorrect address and pin. (the same incorrect info from the original map) This information is stuck in the memory somewhere (which is very odd). I am frustrated and I need this to be ready tomorrow at 9am. I'm going to redo the whole thing. Fresh check out of all the data and recreate the whole .apl and .vbs. Unless you have any other ideas. Thanks for your commitment to helping, Robert This is so strange. I have re-checked out all the data and created a new map document. I even tried it on a different computer. It simply won't work properly. The same address and pin get put in the form every time it opens no matter where i place the point. Anyone ever have experience like this? It seems like a problem with the record select. It isn't selecting the attributes from the Ispointin() function is it stuck on some other one. Any ideas?
... View more
08-29-2012
09:56 AM
|
0
|
0
|
587
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|