|
POST
|
Yes, if you have your NTMA project within a flexviewers folder in the server root folder. Using IIS, I have my FV projects directly in the inetpub/wwwroot/ folder as I don't like the extra "flexviewers" in the path. I set mine so that the output folder would be U:\inetpub\wwwroot\NTMA (I have my server C:\ mapped to the local U:\ drive) and the Output folder URL would be: http://KAB1-AS2.global.amec.com/NTMA Don't know if most output directly to the server folder, but this is what I had to do to get it to behave the same running from the browser vs within flex (I don't have a web server running on my FlashBuilder box). I actually develop as something like http://KAB1-AS2.global.amec.com/NTMA_tmp, then when done, my release build would be without the _tmp. R_
... View more
01-31-2013
07:00 AM
|
0
|
0
|
1953
|
|
POST
|
Robert, I have no problem using GitHub (in fact I just did ), but won't that make it difficult for us to give you your check marks for answering? R_
... View more
01-30-2013
08:05 AM
|
0
|
0
|
1581
|
|
POST
|
Doug, Re-read the posts, and not quite sure what you need. If you are trying to do this programatically, then you would want to have a go at the excludedLayers array. However, it sounds kind of like you just want to be able to statically pick which layers/sublayers show in the TOC. If that is it, Robert has the excludelayer tag in the config.xml that lets you exclude either a layer, or some/all of the sublayers. No coding required. R_
... View more
01-29-2013
10:47 AM
|
0
|
0
|
2104
|
|
POST
|
Yes, I can succesfully manipulate the toc.excludeLayers, but is very specific about it's "needs". If you tell it to remove a sublayer that isn't there, it ignores. If you tell it to remove all ids, it will remove them, but keep the name in the TOC. need to exlude the layername without any sublayers defined if you want to completely remove from the TOC. Might put a couple trace statements in as such: if(idsArray[0] == "")
idsArray = null;
var excludes:Object ={
name: name,
ids: idsArray,
isbasemap: false
}
trace("excludes.name ",excludes.name);
trace("excludes.name ",excludes.ids);
excludedLayers.addItem(excludes); and change the excludlayer tag settings in the config to get an idea of the syntax/formatting required. But, if you get it right, it works. I am not using any basemaps in my TOC, so I didn't have to mess with that section, I just let it add all basemaps to the exclude list, but as Robert mentioned, you would have to modify it anywhere that it getting called. R_ On my LayerListWidget, I modified the toc.as portion of it to only add layers in the excluded layers list. Was a lot easier as my list to exclude was much larger than the list to include.
... View more
01-29-2013
10:36 AM
|
0
|
0
|
2104
|
|
POST
|
To GISDev: I was wondering if you have a basic viewer application setup that uses your own mapservices with pop-ups and all the widgets appear as expected at start-up, without requiring a refresh of the browser? The reason I ask is because in the following post "Issues upgrading Flexviewer 3.1 (uncompiled)" from 12/18/2012 other users were commenting about the same issue and the ESRI person was unable to confirm whether this was a bug or not. I am having the same issues as the original poster of this thread. I do. Running all my own basemaps and operational layers (all in my matching spatial reference, tiled or dynamic). Arcgis basemaps = false, WKID is set in map tag to my state plane system and both extents set. Running 15 widgets plus some in the UI section. <map esrilogovisible="false" wraparound180="false" initialextent="549317 122136 603788 152861" fullextent="549317 122136 603788 152861" top="40" wkid="32149" addarcgisbasemaps="false" > I have popups on many of my operational layers, and a couple of them use the CDATA description option (not both), but most just pull from the fields. In case this helps (somehow), R_
... View more
01-29-2013
08:29 AM
|
0
|
0
|
1520
|
|
POST
|
Ethan, Are you sure that the cache that was built for your image service is in the same spatial reference of your flex app? This is what it sounds like, tiled maps would not show, and dynamic would be slowed down considerably having to re-project on the fly. R_
... View more
01-29-2013
08:07 AM
|
0
|
0
|
2344
|
|
POST
|
think it's your crossdomain file or lack of that is keeping me from seeing your data. Looked into it a little anyway, don't know that you are going to get around the infowindow being on top of other features. It can be dragged out of the way, and can set myMap.infoWindow.closeButtonVisible = true and you can close it when needed. This is type of situation that I would use a popup. I like control of "when" my info shows. R_
... View more
01-29-2013
08:01 AM
|
0
|
0
|
785
|
|
POST
|
Rhett, I guess the only thing you missed is that Doug is not talking about the TOCWidget. Guess I should read the posts a little better 🙂 R_
... View more
01-29-2013
07:34 AM
|
0
|
0
|
2104
|
|
POST
|
Doug, That is correct, it will still show up in the TOC structure just unchecked. Currently there is no way to just add one layer of a map service as type dynamic and not have all the rest of the layers show up in the TOC. Am I missing something here: Seems that in the TOCWidget.xml <excludelayer mapservice="RCC WasteSites">0,2</excludelayer> with 3 layers in my dynamic map service will only display layer id=1 in the TOC (and only draws that layer)? Also, Doug, I have seen some that have done similar and thier approach was to put all layers in the exclude list, then programatically remove the layers they want to see. Depending on the amount of "work" it needs to do, might be easier than manipulating the visibleLayers array. R_
... View more
01-28-2013
04:36 PM
|
0
|
0
|
2104
|
|
POST
|
Don't know if this will refresh the relationships or not, but have you set the autorefresh option in your layer tag? http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Layer_tag/01m30000000p000000/ R_
... View more
01-28-2013
04:15 PM
|
0
|
0
|
462
|
|
POST
|
Well, without security access to your data/config, it's hard to see what "you have so far". I don't have any way to test, but what happens if you comment out the myMap.infoWindow.hide(); on onMouseOutHandler ? R_
... View more
01-28-2013
04:05 PM
|
0
|
0
|
785
|
|
POST
|
Brent, Often when something works from Flashbuilder, but not from the browser is a localhost/path issue. Have you set the Output folder URL in the flashbuilder properties to the http://servername/fvapp? If you run it from Flashbuilder without it set properly, it will either run as http://localhost/ or C:\inetpub\wwwroot\flexviewer\ (which will work through FlashBuilder, but not the browser). If you see the c:\ path in your browser URL, this is what is causing the issue as the broswer should say http://servername/fvapp regardless of whether lauched from FlashBuilder or directly in browser. Just a thought, R_
... View more
01-28-2013
01:37 PM
|
0
|
0
|
1953
|
|
POST
|
Justin, Could you clarify a little? What do you mean by not having the opportunity to fill in the second value? Are you saying that as soon as you "click" in the second box it is executing the search? Of course, in your example the "AND" expression is the same thing as the first one so it is redundant. basically, the way I read it is says if a=b AND a=b, then..... Possibly doing an AND on the same criteria is confusing it? R_
... View more
01-28-2013
11:23 AM
|
0
|
0
|
1581
|
|
POST
|
Andy, I know this isn't exactly what you are after, but the eSearchWidget will let you configure multiple expressions and values within it. Would probably be cleaner to just have a dropdown on the eSearchWidget to pick the desired layer/search rather than two separate widgets. R_
... View more
01-28-2013
11:06 AM
|
0
|
0
|
2149
|
|
POST
|
More on this, not sure if it's my syntax, or an issue that might help figure it out. If I have a field setting as such: <field name="PHOTO_ID" alias="PHOTO" hyperlinkgridfield="true" hyperlinkaliastext="Photo" hyperlinkgridicon="assets/images/i_camera.png"/> I can click on the camera icon in the results window and it will open the hyperlinked photo in a new web browser. However, if I click on the camera icon in either the fixed or float DG, I get the following error, THEN it will still open the image in a new browser once I dismiss the error. TypeError: Error #1009: Cannot access a property or method of a null object reference.
at widgets.eSearch::eSearchWidget/clickSearchRelateResult()
at widgets.eSearch::SearchWidgetFloatDG/clickRow()
at widgets.eSearch::SearchWidgetFloatDG/__resultsGrid_gridClick()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at spark.components::Grid/dispatchGridEvent()
at spark.components::Grid/dispatchGridClickEvents()
at spark.components::Grid/grid_mouseDownDragUpHandler()
at MethodInfo-5341() However, if I set the field tag to this: <field name="PHOTO_ID" alias="PHOTO" hyperlinkgridfield="true" hyperlinkaliastext="Photo" /> I don't get the icon in the grid, just the text, BUT, it will let me click on it and opens in new browser with no error. So to summarize, it doesn't appear as if the hyperlinkgridicon is working correctly from either of the datagrids, only the results window. R_ PS, can repeat with 3.1.2, 3.1.4, and 3.1.5 - no others tested 🙂
... View more
01-24-2013
12:40 PM
|
0
|
0
|
1898
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2026 04:00 PM | |
| 1 | 09-14-2022 07:53 AM | |
| 1 | 09-14-2022 08:23 AM | |
| 1 | 05-21-2026 08:53 AM | |
| 1 | 05-14-2026 04:28 PM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|