|
POST
|
Huh... I knew it was something simple.. has to get used to Python since it is so different that other languages. Thank you.
... View more
07-25-2014
10:06 AM
|
0
|
0
|
1007
|
|
POST
|
I am novice in python and I am trying to run a function in the field calculator and I get this error. It drives me nuts. What is wrong? Thank you. Error: error 000539: syntaxerror: invalid syntax (<expression>, line 1) Pre-Logic Script Code: def fnfindstation(addstation): if addstation == "151" or addstation == "551": formataddress ="Oleander Station 1 - Shift B" elif addstation == "152" or addstation == "552": formataddress ="Oleander Station 2 - Shift B" else: formataddress = "Outside Station" return formataddress Station = fnfindstation=( !district!)
... View more
07-25-2014
09:56 AM
|
0
|
2
|
1240
|
|
POST
|
here is some code for just printing a table public function generatePDF2():void
{
var myCoreFont1:IFont = new CoreFont ( FontFamily.ARIAL );
myPDF = new PDF(Orientation.PORTRAIT, Unit.MM, Size.TABLOID);
myPDF.setDisplayMode( Display.FULL_PAGE, Layout.SINGLE_PAGE );
myPDF.addPage();
myPDF.setFont(myCoreFont1, 12);
myPDF.addText('List of Development Services Projects - Status', 11, 10);
myPDF.setFont(myCoreFont1, 8);
myPDF.addText('Printed:' + dateFormatter.format(now.toLocaleDateString()), 180, 10);
var gridColumnOwner1:GridColumn = new GridColumn("Project Name", "Name", 90, Align.LEFT, Align.LEFT);
var gridColumnOwner2:GridColumn = new GridColumn("Condition", "Color", 18, Align.LEFT, Align.LEFT);
var gridColumnAddress:GridColumn = new GridColumn("Status", "Status", 20, Align.LEFT, Align.LEFT);
var gridColumnMailCity:GridColumn = new GridColumn("Next Step", "Cur_Status", 20, Align.LEFT, Align.LEFT);
var gridColumnMailStat:GridColumn = new GridColumn("Department", "DS_Department", 35, Align.LEFT, Align.LEFT);
var gridColumnManager:GridColumn = new GridColumn("Project Manager", "Manager", 35, Align.LEFT, Align.LEFT);
var gridColumnCost:GridColumn = new GridColumn("Project Assistant", "Assistant", 35, Align.LEFT, Align.LEFT);
myPDF.setFont(myCoreFont1, 8);
myPDF.textStyle ( new RGBColor ( 0x000000 ), 1 );
//resultsGrid is the name of the datagrid
var grid:Grid = new Grid (resultsGrid.dataProvider.toArray(), 0, 0, new RGBColor (0xC0C0C0),
new RGBColor (0xCCCCCC), true , new RGBColor(0x000000), 1, Joint.ROUND);
var columns:Array = new Array (gridColumnOwner1,gridColumnOwner2, gridColumnAddress, gridColumnMailCity, gridColumnMailStat, gridColumnManager, gridColumnCost);
grid.columns = columns;
myPDF.addGrid(grid, 1, 6);
//export to pdf web service
myPDF.save(Method.REMOTE, "name of server",Download.INLINE,"myPDF.pdf");
} Thank you. I got a bit of work to do. The layers and the attributes are pre-selected by the user before the datagrids are printed out.
... View more
05-08-2014
01:44 PM
|
0
|
0
|
2103
|
|
POST
|
attached is the code I used in my application. Any questions let me know Aaron, thank you for posting the code for printing the display features in a pdf. For the report.pdf, I assume that you used a spark datagrid. Could you please post the code for printing to pdf the datagrid as displayed in the report.pdf? Thanks.
... View more
05-07-2014
05:08 PM
|
0
|
0
|
2103
|
|
POST
|
our suite of apps parses the layers in each map service the apps will use via rest calls (an admin app that sets which users/groups can use which map services/tools, etc). that includes the legends. that's all stored in a sql server table & this reporting tool simply pulls that data out of the table & adds it to the PDF. the map template is from arcMap. i get a PDF of that blank template & measure out the available space for the legend, etc. using a PDF tool (foxit for example)--mainly because the designers either don't know or won't say the space available for each piece of the template. those become constants. the legend,etc. tables are built in server memory & measured against the available space.if they fit, they go in, if not they get added to a supplemental page (next iteration will measure rows & fit as many as possible instead of this binary approach). if you can read coldfusion, i'll try to get a generic example together. Thank you for your reply, Paul. It it very interesting the approach you described and open up to me new possibilities. I have a license of CF 9, and I was using it for web apps but since then I turned my attention to ASP.NET. Based on your reply, it seems that you also have a license for the Foxit PDF SDK to implement in your solution. If you provide a generic example it will be very helpful. Thanks.
... View more
04-29-2014
07:21 AM
|
0
|
0
|
2103
|
|
POST
|
oops didn't see this until just now. sorry no, its the clients. but if you have specific questions i can probably whip up generic cf code. Thank you Paul. I am interested to see how you posted the legend. Any generic code to share, I'd appreciate it. Thanks.
... View more
04-28-2014
11:19 AM
|
0
|
0
|
2103
|
|
POST
|
Yes, it makes sense. I resolved my issue. It was my oversight when I realized that widget B was not pre-loaded as I though it was. Thank you for your time.
... View more
03-21-2014
06:54 AM
|
0
|
0
|
779
|
|
POST
|
I have a widget (A) that needs to share data only with widgets B and widget B needs to shared data only with widget C. A-->B--->C They are all pre-loaded and in the widget A and B is the code addSharedData("xxxxx", arraycollection)... In the B and C widgets there is the line AppEvent.addListener(AppEvent.DATA_PUBLISH, sharedDataUpdated); How do you specify that widget B will get the data only when they are sent from A, and widget C will listen from widget B only. I hope it makes sense. It seems it should be a way that there is AppEvent listener in B that is listening for a specific addSharedData like addShareData2 but I cannot find anything like this. Thank you.
... View more
03-20-2014
06:34 PM
|
0
|
2
|
1226
|
|
POST
|
Lefteris, I was able to dynamically create tabs that contain DataGrids. These grids contain the results of a IndentifyTask for each visible layer in a map. As each tab was added, an event listener was added for such events as ListEvent.ITEM_CLICK, ListEvent.ITEM_ROLL_OUT, etc. These listeners pointed to the same functions so that when the user did something like click on a row in a grid, it would highlight the feature on the map for that individual layer. I put the code in a thread in GIS.StackExhange here. Unfortunately, the link to the working example is no longer valid, since the project was ported over to JavaScript. Thank you Ken. That was very helpful. Do you have by any chance the myInfoRenderer scipt? I just wanted to see how you structure the infowindow. Thank you.
... View more
03-06-2014
08:01 AM
|
0
|
0
|
1190
|
|
POST
|
Lefteris, Sure if you do not make any of those functions specific to the template tab or datagrid. So if you rollover event use the function event like event.target as DataGrid instead of hard coding the datagrid to a specific id. You can have all your tab using the same couple of functions. Thank you Robert. I thought the creationpolicy could be my answer, but I totally misunderstood it, since it just instantiates existing hard coded objects.
... View more
03-04-2014
07:23 AM
|
0
|
0
|
1190
|
|
POST
|
I don???t if it is possible, but I will ask anyway. I hope it makes sense what it follows??? I am using the tabbar and viewstack to create tabs for different layers. The first tab will be created initially and the others will be created dynamically. The first tab will host a datagrid with the attributes for one layer. Also some mouse event actions will be present to provide user experience when they browse over the datagrid. Here is the question. When the second tab is dynamically created, can a datagrid be placed and with the functions that are under the first tab to be under the second tab as well (for example the mouse events) so the user experience will be the same. So, essentially it is more like a template to be adapted for each tab. Your thoughts? Thanks.
... View more
03-03-2014
08:00 PM
|
0
|
5
|
1510
|
|
POST
|
Does anyone know if the creationpolicy setting of the viewstack is set to "all", it means also the all mouse events that are defined in the first tab (tabbar) will be inherited in the subsequent tabs? In other words, if you set under the first tab, mouse events (like mouseover will initiate an action), then when you dynamically create other tabs, will the events be created? I hope I explain well here what I am asking.... Thank you.
... View more
03-03-2014
05:38 PM
|
0
|
0
|
653
|
|
POST
|
Lefteris, That is the problem... The LayerEvent.UPDATE_START and LayerEvent.UPDATE_END that are attached to the feature layer, are added by the AttributeTable Flex API component, and thus they are not exposed to you as a developer. The LayerEvent.UPDATE_START and LayerEvent.UPDATE_END both call CommitProperties function inside the component. The only reason I know this is by using a customized version of FlexSpy to see the eventListeners that are added by the AttributeTable component. The only possibility I can think of is to extend the AttributeTable component and override the CommitProperties function, but I don't know what all the function is doing. You are correct. After it first opens, any refresh is through the api. I am hesitant to spend time and effort to override the CommitProperties function since I don't know the implications I do so. Bummer.
... View more
02-28-2014
01:04 PM
|
0
|
0
|
2172
|
|
POST
|
Lefteris, I have to take back my suggestion as when I did my test app it was not using the AttributeTable widget, but just a Flex API app that was using an AttributeTable component, and I did have a Monkey Patch applied that gives me the removeEventListeners (which normally would not be there). I have now tried to duplicate my success in the test API app, but this time using viewer and the widget, and I have been unsuccessful. Oh, well I thought I had an easier route for you, but I didn't. Thank you for checking it out for me. Do you know what the triggers the attribute table refresh when you zoom in out (changing the extent of the map)? I was unable to find that and it would be a big help for me to take it from there... Thanks.
... View more
02-28-2014
07:18 AM
|
0
|
0
|
2172
|
|
POST
|
Lefteris, Strange in my test application it did exactly what you asked for, prevented the zoom or pan from updating the table. Perhaps, I inserted at the wrong location. Where did you inserted them? Thanks.
... View more
02-27-2014
01:14 PM
|
0
|
0
|
2172
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 2 weeks ago | |
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|