|
POST
|
I am using the TOC Widget and have it configured to usenewesridescription=false. This way I get the nice little popup window with the service description information. I have included a link to a web page in the description, and can click from the popup to follow the link. I would like it to close the description popup when I click on the link, but not able to figure out where that popup is being handled so that I could try to put an onClick listener or something so that I can have it close the popup on click of the link. Does this sound like a simple modification? If so, any idea where I would go to capture/handle this? Thanks, R_
... View more
12-04-2012
12:37 PM
|
0
|
2
|
1371
|
|
POST
|
The attachements are stored in the GDB itself. You should be able to see them in ArcMap by identify feature and click the attachments dropdown: [ATTACH=CONFIG]19699[/ATTACH] or identify it with ArcCatalog and see them as well: [ATTACH=CONFIG]19700[/ATTACH] R_
... View more
12-04-2012
12:32 PM
|
0
|
0
|
2226
|
|
POST
|
Nice. Have not had a chance to really test it, but haven't broken it yet 🙂 Definatly worth another point.... I did notice the config.xml example still has this line: <disablebuttons>result</disablebuttons><!--possible values one or more not all four search types comma separated text,graphic,spatial,grid,datagrid -->
I see the pdf has been updated, just thought I'd point out that the "result" option is not in the xml example. R_
... View more
12-03-2012
10:33 AM
|
0
|
0
|
1692
|
|
POST
|
Now that I slow down and look at it, of course that is what you would get trying to just put a trace on an object. I don't have a way to test or dive into this, but my thinking was to see if you could go to the part of the code that is building/populating the record object and trace the values being loaded into it. If it is actually passing the zeros, you could if/then change them there. If it is being populated with blanks here, then you would know that it is getting changed elsewhere (I.e, somewhere in the Excel formatting or such) and could go from there. R_
... View more
12-01-2012
11:58 AM
|
0
|
0
|
1788
|
|
POST
|
Don't know if this could apply, but at the bottom of this post http://forums.arcgis.com/threads/57913-Popups-Viewer-3.0?highlight=popup+click+tolerance it says the popup extent sent to the server is twice the line symbol width for dynamic layers (not sure how it handles points/polys). Not sure what you exact data and/or needs are, but maybe have a duplicate layer loaded with alpha="0" and a a symbol width large enough to cover your graphic extent. Point your popupconfig at the invisible layer with large symbols, disable the selection symbology and it would appear as if the popup is coming from the original data, not the invisible, overlapping set and would have the scroll arrows for all features that overlap. R_
... View more
11-30-2012
01:55 PM
|
0
|
0
|
1802
|
|
POST
|
It is possible that before populating the field, you could use the as3xls functions to format that field as text. Excel might not interpret the blanks as zeros. Otherwise, I would put a trace statement in there and find out exactly what is being sent as zeros. If blanks are zeros, but spaces or nulls are not, you might try something like the coding in red below. {
CursorManager.setBusyCursor();
sheet = new Sheet();
var dataProviderCollection:ArrayCollection = excelgrid.dataProvider as ArrayCollection;
var rowCount:int = dataProviderCollection.length;
sheet.resize(rowCount + 1,excelgrid.columnCount);
var columns:Array = excelgrid.columns;
columns.splice(0, 1) // to delete the first column which is the number of each record , because this field has no datafield, the excel
//function does not work if we include it in the table like it is included now
var i:int = 0;
for each (var field:DataGridColumn in columns)
{
fields.push(field.dataField.toString());
sheet.setCell(0,i,field.dataField.toString());
i++;
}
for(var r:int=0; r < rowCount; r++)
{
var record:Object = dataProviderCollection.getItemAt(r);
/*insert record starting from row no 2 else
headers will be overwritten*/
trace("record = ",record);
if (record == ""){
record = " "; // or set record = null; to see if something works
}
insertRecordInSheet(r+1,sheet,record);
}
var xls:ExcelFile = new ExcelFile();
xls.sheets.addItem(sheet);
CursorManager.removeBusyCursor();
var bytes: ByteArray = xls.saveToByteArray();
var fr:FileReference = new FileReference();
fr.save(bytes,"DirectoryofForestProductsIndustries.xls");
}
else
{
Alert.show("Make sure your search produces any results before using this tool");
CursorManager.removeBusyCursor();
}
}
... View more
11-30-2012
11:57 AM
|
0
|
0
|
1788
|
|
POST
|
I am utilizing the following code from the MapServicesWidget: case "dynamic":
{
var dynLayer:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(url);
dynLayer.alpha = alpha;
dynLayer.id = label;
dynLayer.name = label;
dynLayer.token = token;
dynLayer.visible = visible;
dynLayer.useMapTime = useMapTime;
dynLayer.sublayerid = sublayerid ;
dynLayer.popupconfig= popupconfig;
if (autoRefresh > 0)
{
setInterval(dynLayer.refresh, autoRefresh * 1000);
}
if (imageFormat)
{
dynLayer.imageFormat = imageFormat;
}
if (visibleLayers)
{
var vizLayers:Array = visibleLayers.split(",");
for (i = 0; i < vizLayers.length; i++)
{
vizLayers = Number(vizLayers); // convert to Numbers
}
dynLayer.visibleLayers = new ArrayCollection(vizLayers);
}
if (proxyUrl && useProxy)
{
dynLayer.proxyURL = proxyUrl;
}
map.addLayer(dynLayer);
break;
} This allows me to pick from a list, and load the service into the current map. Was wondering if there is a way to set the popupconfig file to use for each sublayer (similar to the config.xml file) so that when i load the service with the widget (something like in red above), it will recongnize the appropriate popupconfig.xml file? Thanks for any suggestions, R_
... View more
11-29-2012
05:07 PM
|
0
|
3
|
2296
|
|
POST
|
Not sure what is going on here. OSE_ID (Type: esriFieldTypeString, Alias: OSE_ID, Length: 15 )
testnull (Type: esriFieldTypeString, Alias: testnull, Length: 50 )
I have reduced it down to two fields for testing. I have tried with only blanks, only spaces, or only nulls (and combinations) in the OSE_ID field, and it will not put the space, blank, or null in the picklist. However, I have all three (blanks, spaces, nulls) in the testnull field and it seems to be working perfectly. It adds a blank value (which selects both blanks and space), and a null (which selects all nulls) and the all (which selects all, including blanks and nulls). (the OSE_ID field was existing in the featureclass, the testnull I added with ArcMap.) Not sure what is going on with my data and the OSE_ID field, but it appears to be related to my data. Will have to look into it more come monday. Also, is there some way to put a dateFormat tag somewhere to make it possible to use the uniquvaluefromfield with esriFieldTypeDate? If I try to use this option on a date field, it populates the list with the huge numbers (ms from start date/time I believe) and not the formatted date. As such, all searches for a date will fail as it seems to submit the ms value for the query, but the data in the field is actually DD/MM/YYYY. (It works, of course, if I put my date in a text field, but it doesn't sort properly when done this way.) As is, it will select any null values in the date field, and if you select all, it gets them all. Just can't get individual dates that are not null. R_ Update: thought maybe since I didn't have any values with data in the testnull (other than blanks, spaces, and nulls), that might be why it is working. Just added some data to some of the values, still working as designed, not sure what is up with my one field.
... View more
11-29-2012
03:51 PM
|
0
|
0
|
1692
|
|
POST
|
Not sure what you mean about an "arrow" in the legend widget. a couple things though, is the server you are connecting to version 10 or greater? If not, then your data need to be public so it can utilize the esri legend service. See http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Legend_widget/01m300000034000000/ for more info. Also, often if you can see the REST endpoint in the browser, and not in your flex app, most likely there is not a crossdomain.xml file on the server you are connecting to allowing it. If you install the debugger version of flash player, you will see the sandbox security violation if this is the case. (the browser will allow you to load from a server without crossdomain permissions, Flex won't). R_
... View more
11-29-2012
02:06 PM
|
0
|
0
|
583
|
|
POST
|
Thought maybe since I had both in there it was causing an issue so I tried both. With all blanks it will populate the dropdown with a blank option. Will nulls and no blanks or spaces, there is no null option. R_
... View more
11-29-2012
01:38 PM
|
0
|
0
|
1692
|
|
POST
|
I agree that the null should be handled by the data producer. My issue is that I update my data from a join to an oracle database on a regular basis. Once you have rows in your feature class, you CAN NOT add a non nullable field to the feature class (so, why does it even give you the option? just so it can give you an error I guess). So, every time I update it, it sticks all the nulls in there. Also, any time you add a feature, it automatically assigns a null to every field you don't populate (since I can't set to not accept nulls) I had my script, after the updates, go in and converted all the nulls, and modified the fields to not allow them. However, it seems that each service pack (except for 5) breaks something in the arcpy package so I have to go re-do all my scripts again. Finally just decided to let ESRI tell me what I "want" and live with it. So, now I have both blanks and nulls. personally, I don't think the nulls should even exist. Well, for that matter, they don't :). In other words selct for item <> "non null value" does not select nulls. Seems like if it isn't equal to "non null value" it should select it, but appearantly, it is not not equal to it either. So far I've never came across a case where I would prefer a null over a blank. Maybe now that version 10.1 is out and I have sp5 on my 10.0 I can re-visit this without it breaking (doubt there will be a service pack 6). R_
... View more
11-29-2012
01:32 PM
|
0
|
0
|
1692
|
|
POST
|
Nice job. However, I will still get the null value error if I click the clear button before a search. not sure if it will affect anything else, but I modified the clear() function to this and it "fixes" it: if (qFeatLayer){ // My Change
qFeatLayer.clearSelection();
} // End My Change
graphicsLayerBuffer.clear();
graGraphicsLayer.clear();
clearMessage();
Also, I see we can now search for blank/spaces with the uniquevalues option, but will not populate the list with or select any nulls. Thanks again, this widget just gets better and better, R_
... View more
11-29-2012
09:58 AM
|
0
|
0
|
1692
|
|
POST
|
Also, depending on the size of you datasets, if you put an attributeindex on the fields being used to join each table, join speed can increase substatially. R_
... View more
11-28-2012
02:04 PM
|
0
|
0
|
1972
|
|
POST
|
Glad to hear it is working better. Noticed there is still one print statement inside a for loop: for field in fields:
print field.name
fieldinfo.addField(field.name, field.name, 'VISIBLE', '')
remove that will speed it up, but probably still take overnight. R_
... View more
11-28-2012
01:01 PM
|
0
|
0
|
1972
|
|
POST
|
Now you really got me curious. How did you manage to figure out that it was because the glowfilter on out of extent feature? was there some trace error or something that pointed you in that direction, or just trial/error? R_
... View more
11-28-2012
11:50 AM
|
0
|
0
|
1941
|
| Title | Kudos | Posted |
|---|---|---|
| 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 | |
| 1 | 05-07-2026 02:10 PM |
| Online Status |
Online
|
| Date Last Visited |
2 hours ago
|