POST
|
Hi Klara, the offset suggestion worked perfectly. Many thanks for your help.
... View more
05-17-2022
09:06 AM
|
0
|
0
|
2464
|
POST
|
I am trying to add five cards to a row in Hub but am having through to center them across the page. I've used the out of the box set up that adds three by default. I have adjusted the html to display 5 in one line rather than 3 but am having trouble centering them. At the moment they are left aligned (see image below). Could you help in getting them centered on the page? This is the .html ****** <div class="col-xs-12 col-sm-6 col-md-2"> <div class="calcite-web"> <div class="card-base contrast-safe-text"> <div class="card-image-wrap"> <img alt="Bridge Club, 1954" class="card-image" src="https://hubcdn.arcgis.com/opendata-ui/assets/assets/images/bridge3-ab9c41a43f1bf4379a90134a0658f4c2.jpg" style="text-align: center;"> <div class="card-image-caption" style="text-align: center;"> Florida, January 1954 </div> </div> <div class="card-content"> <h4 style="text-align: center;"><b>Sustainable and Planned Settlement Patterns</b></h4> <p style="text-align: center;">Residential Density, Housing Vacancies, Housing Completions, Property Prices, Rental Prices</p> <div aria-label="actions" class="btn-group btn-group-justified" role="group"> <a class="btn btn-primary" href="#SettlementPatternsTestBox">Explore</a> </div> </div> </div> </div> </div> ********** Any help would be much appreciated. Thanks. Justin
... View more
05-16-2022
07:08 AM
|
0
|
3
|
2510
|
POST
|
Thanks for clearing that up Owen. Thought it might be something like that!
... View more
03-06-2019
08:19 AM
|
0
|
0
|
252
|
POST
|
I'm rebuilding a Cascade Storymap in Portal from scratch which was originally developed in AGOL. We have quite a bit of text and graphics in the immersive section text boxes. This works well in AGOL, the text box will size itself based on the amount of content. In Portal the the box will not resize and scroll bar appears instead. An internal scroll bar in a cascade Storymap does not work. Am I missing something here or are there fundamental differences between the Portal and AGOL Storymap builders? Any assistance would be greatly appreciated
... View more
03-04-2019
09:23 AM
|
0
|
2
|
325
|
POST
|
Hi Jonathan, Thanks for your comments on this! I've tried your suggestions but can't seem to get this to work. My script tool makes a series of adjustments to "ThemesIndicators_1" with the last bit being DeleteField. At this point my table is fully processed and ready to be exported to excel in the way that I want it (if possible). I guess what I want to do is save ThemesIndicators_1 as ThemesIndicators_2 and make this available as an output parameter in my main model so I can proceed with the Table to Excel function. This is the last part of my script: arcpy.DeleteField_management("ThemesIndicators_1", ["IndCode"]) OutTable = os.path.join(arcpy.env.scratchGDB,"ThemesIndicators_2") arcpy.CopyFeatures_management(ThemesIndicators_1, OutTable) arcpy.SetParameterAsText(0, "ThemesIndicators_2") After many different attempts I still can't get this to run on the server as ThemesIndicators_2 can't be found in the scratch gdb for it to work. Error here: c:\arcgisserver\directories\arcgisjobs\geoprocessing_dev\airogeoprofile_roi_gpserver\j225cda15bd37482c85f1f67aaddb3270\scratch\scratch.gdb\ThemeIndicators_2 does not exist or is not supported Failed to execute (Table To Excel). Failed to execute (Model2). Failed to execute (GeoProfile_RoI_2).
... View more
09-27-2016
02:20 PM
|
0
|
1
|
858
|
POST
|
HI Jonathan, As it stands GeoProfile is being written to the main .gdb where all of the other data is. I set this at the start of the Python script tool: env.workspace = r"C:\Projects\GeoProcessingTools\GeoProfile_RoICensus\GeoProfile_RoI.gdb" I've traced this down and it seems that the file that I require (GeoProfile) to be linked to the Table to Excel is not appearing the the Jobs Scratch directory at all when run on server. In fact, it seems that my python script tool is not actually editing and making permanent changes when it runs on server at all however it does this perfectly when run on my local machine. How would I set 'GeoProfile' to be set to a scratch gdb?
... View more
09-26-2016
08:27 AM
|
0
|
1
|
858
|
POST
|
Hi Jonathan, No, not quite. GeoProfile is the final table that I want to export to an Excel file. GeoProfile is set as an output parameter in the script and I then connect GeoProfile to the Table to Excel tool in the main model. It seems that when operating on Server the Table to Excel tool is not finding 'GeoProfile' and then can't export the final Excel file. Thanks Justin
... View more
09-25-2016
08:45 AM
|
0
|
3
|
858
|
POST
|
Hi Jonathan, Yes, I want to be able to download an Excel file. This is set to 'file' so no problem there. I have had a look at the logs on Server Manager and it seems that the problem may be with the parameter that I am taking from the DataPrep python script tool. The final table that I need to link to Table to Excel (essentially GeoProfile, the output parameter from the DataPrep script) seems to be inaccessible when I run on Server. This is the error log that I get on Server Manager: Error executing tool. Model2 Job ID: j91533738840043b48bf730482226e32e : ERROR 000732: Input Table: Dataset c:\arcgisserver\directories\arcgisjobs\geoprocessing_dev\airogeoprofile_roi_gpserver\j91533738840043b48bf730482226e32e\scratch\scratch.gdb\GeoProfile does not exist or is not supported Failed to execute (Table To Excel). Failed to execute (Model2). Failed to execute (GeoProfile_RoI_2). This is a snippet of the last code in the script tool. There are a number of different things happening here such as joining other tables, deleting fields etc. The final table, in the order that I need is then called GeoProfile. I then tried to set this as the output parameter in the script tool so I can connect it to the Table to Excel tool within the main model. " arcpy.JoinField_management("ThemesIndicators_1", "IndCode", "PopSummaryS", "Indicators", ["IndCode","Census2011"]) arcpy.JoinField_management("ThemesIndicators_1", "Indicator", "ThemesIndicators_Comps_1", "Indicator", "State;Carlow;DCC;SDCC;Fingal;DLR;Kildare;Kilkenny;Laois;Longford;Louth;Meath;Offaly;Westmeath;Wexford;Wicklow;Clare;Cork_ City;Cork_Co;Kerry;Limerick;Tipperary;Waterford;Galway_City;Galway_Co;Leitrim;Mayo;Roscommon;Sligo;Cavan;Donegal;Monaghan") arcpy.DeleteField_management("ThemesIndicators_1", ["IndCode"]) arcpy.Copy_management("ThemesIndicators_1", "GeoProfile") arcpy.SetParameterAsText(0, "GeoProfile") except: pass " You may notice something incorrect here Thanks for your help Justin
... View more
09-24-2016
12:54 AM
|
0
|
5
|
858
|
POST
|
I have a GeoProcessing tool that develops a Census profile based on a user defined study area - the final output using Table to Excel. The model operates perfectly in ArcGIS and produces the output that i require. It also publishes to Server without any errors or warnings. However, when I run the tool on ArcGIS Server I get an error saying that the .xls is <empty>. Any ideas what could be happening here? Image below of model and then error when I run the model Thanks Justin
... View more
09-23-2016
09:28 AM
|
0
|
10
|
2644
|
POST
|
Hi Dan, I'm only getting back to looking at this now. I've looked at different options and now think that it seems to be possible to pass out a parameter from the python script tool. I could then use this to connect to my Table to Excel tool. Having tried a few things I have got the model working properly but when I publish to Server and then try and run I get an error saying that one of the files is not available (error log below). I'm sure something is not correct when trying to set my output parameter from the script. The snippet of script below shows what I am doing. After all the required processing the final table I need is "ThemesIndicators_1". I then make a copy of this and call it "GeoProfile" and set it as the second parameter. This is then set as an Output parameter and set as Derived. I then use the GeoProfile parameter to link to the Table to Excel. arcpy.DeleteField_management("ThemesIndicators_1", ["IndCode"]) arcpy.Copy_management("ThemesIndicators_1", "GeoProfile") arcpy.SetParameterAsText(0, "PopSummary") arcpy.SetParameterAsText(1, "GeoProfile") except: pass The error log I get is as follows: Error executing tool. GeoProfile_RoI_1 Job ID: ja6f026ab686b4517b76521ac646cd166 : ERROR 000732: Input Table: Dataset c:\arcgisserver\directories\arcgisjobs\geoprocessing_dev\airogeoprofile_roi_gpserver\ja6f026ab686b4517b76521ac646cd166\scratch\scratch.gdb\GeoProfile does not exist or is not supported Failed to execute (Table To Excel). Any advice would be great Thanks
... View more
09-21-2016
07:24 AM
|
0
|
0
|
446
|
POST
|
I have been developing a detailed demographic profiling model that allows users to draw a user defined area and pull back a demographic profile. Within the main model there is a sub-model (DataPrep) that contains a .py script that runs a series of key data prep routines (adding new columns, calculations, transposing etc) to produce the final table. Within this sub-model I then have another sub-model that contains the 'Table to Excel' tool - this take the final table and exports it to an excel file. This all works fine and the overall model runs in the correct order. However, if I make the output from the 'Table to Excel' tool a parameter it causes the 'Table to Excel' tool to run before the .py script that does all of prep work on the data.I need to have the output of the 'Table to Excel' as a parameter in the main model as I am using this model to publish as a service for a geo-processing widget in a Javascript viewer. Is there a way to prevent this from happening? appreciate any comments Justin
... View more
09-16-2016
04:09 PM
|
0
|
3
|
1407
|
POST
|
HI FC, I tried that. The model itself ran on ArcGIS but once I tried to publish the service the same error came up. Code with double quotes below. Perhaps this is not what you meant? arcpy.CalculateField_management("PopSummary", "PcPop65p", "'(!Sum_Pop_65pT11! / !Sum_Pop_T11! )*100'", "PYTHON_9.3") Thanks Justin
... View more
09-12-2016
05:20 AM
|
0
|
2
|
1081
|
POST
|
Hi, I have a model working in ArcGIS 10.3 that uses a .py script to run through a series of routines. One of them is Calculate Field and I have use Python_9.3 in the code. However, when I try and publish the service on my server I get an error: "Tool Calculate Field cannot use VB expression for service" This is the code in the .py script. Any ideas where the problem is? I don't have VB anywhere. arcpy.CalculateField_management("PopSummary", "PcPop014", '(!Sum_Pop_014T11! / !Sum_Pop_T11! )*100', "PYTHON_9.3") Thanks Justin
... View more
09-12-2016
03:05 AM
|
0
|
4
|
2451
|
POST
|
Hi Dan, No, it just seems to be a random sort. I've some up with a bit of a work around using alpha codes, the do a sort management (ascending), join to a another tables with the alpha codes and proper variable names and finally use delete field to clear out the junk. It's a bit of a mess but works none the less! Would you know where I can send in an official bug? Thanks Justin
... View more
09-12-2016
02:59 AM
|
0
|
1
|
394
|
Online Status |
Offline
|
Date Last Visited |
06-09-2023
09:38 AM
|