|
POST
|
I decided to attach a pdf with the 3.5.1 minimum components indicator.
... View more
01-07-2013
07:41 AM
|
0
|
0
|
996
|
|
POST
|
To deploy all of the 3.5.1 onto Windows 7 machines will require some extra paper work and approval process. i will start working on that. that is the best i can do to fix ESRI's 3.5.1 requirement. regards ravi.
... View more
01-07-2013
07:01 AM
|
0
|
0
|
997
|
|
POST
|
RLWatson, good morning. thank you for your reply. I have 'minimum' 3.5.1 components installed on the national CCE configuration as they call it. the only deviation for my desktop over the rest of the national deployed machines, is that I have 'special' / upgraded privileges (i cannot be more explicit). I will also try your start from new 3.5 .net project and add all these files and let you know. thanks for your thoughts. regards ravi.
... View more
01-07-2013
06:57 AM
|
0
|
0
|
997
|
|
POST
|
Dear Readers, i was able to recompile a 9.2 sp5 arcobjects toolbar that had an installer.vb file and an MS installer proj attached to it. as per the web pages, i had to add reference to add.local and 1 more component. at first (with no change - all automatic settings of vs 2010 and the old code as it were) i was able to display the toolbar, click on the buttons and see a few things here and here. the old code was developed with vs2005/ later to 2008 and to 2010 and .net framework 2 to 3.5 and to 4.0 all on an xp machine. i had to revisit the code to move the application to arcgis 10.0 on windows 7 (64 bit os) and vs 2010. now when i started working on the app and wanted to make specific changes, and followed these links. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_migrate_ArcGIS_9_3_Desktop_and_Engine_stand_alone_applications_to_ArcGIS_10/0001000002ns000000/ made project changes as per link (regasm.exe) changes in http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Migrating_ArcGIS_9_3_Desktop_and_Engine_custom_components_to_ArcGIS_10/0001000002m2000000/ Error 1 An error occurred while validating. HRESULT = '80004005' C:\CDriveContents-06Sep2012\DotNetSourceCode\NewGNT-10.0Test\GNTInstaller\GNTInstaller.vdproj GNTInstaller Error 2 Cannot load referenced assembly: 'C:\Windows\assembly\GAC\stdole\7.0.3300.0__b03f5f7f11d50a3a\stdole.dll' C:\CDriveContents-06Sep2012\DotNetSourceCode\NewGNT-10.0Test\GNTToolbar\TlbImp GNTProj Error 3 System.IO.FileLoadException - API restriction: The assembly 'file:///C:\Windows\assembly\GAC\stdole\7.0.3300.0__b03f5f7f11d50a3a\stdole.dll' has already loaded from a different location. It cannot be loaded from a new location within the same appdomain. C:\CDriveContents-06Sep2012\DotNetSourceCode\NewGNT-10.0Test\GNTToolbar\TlbImp GNTProj i have set the target framework to be 3.5 as per the suggestions of the links above and made the target machine to be x86. i had also set the Register for COM interop as checked = true.` i am unable to see the references in Project tab due to the moniker error: An error occurred trying to load the page. Could not resolve mscorlib for target framework '.NETFramework,Version=v3.5,Profile=Client'. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted. whether it is 3.5 client profile or plain 3.5, i get the above error. .net framework has been around for a long time and i am wondering why ArcGIS 10.0 is forcing people to be on 3.5 framework. that is great stumbling block for me as machines nationwide have to be re-configured to use 10.0 arc if this app /toolbar demands 3.5.1 full version installed on client machines. i have set all dlls as not specific version (flag = false as per help links above). any way to move forward with my problems? thanks and regards ravi.
... View more
01-04-2013
01:46 PM
|
0
|
7
|
1799
|
|
POST
|
dear Readers, thank you reading thro this question: we have 9.2 sp5 VB.NET toolbar deployed nationwide that needs to be brought into the 10.0 ArcGIS deskktop (ArcInfo license) world. this 9.2 sp5 vb.net toolbar was 'upgraded' to .NET framework 4.0 from 3.x. the toolbar app has the following: 1. toolbar, Itools, command buttons that call windows forms, IEditTasks, feature layer tasks, graphic - Q1. can I make an assumption that as long as IEditTasks and IFeatureLayer etc are not defined addins.config file, and as long as they are called from Button or a ITool defined in addin.config file. Q1b. I will downgrade the .net framework to 3.5 and hopefully should not have any issues... Q2. using the http://video.esri.com/watch/1940/migrating-your-vba-applications-to-desktop-add_dash_ins - video, i can copy and paste the code from my 9.2 itoolbar project and fix the errors along the way? Q3. Can i remove the installer app and also remove COM registration and deploy this add-in WITHOUT admin privileges? thanks for your time. regards Ravi.
... View more
12-31-2012
10:33 AM
|
0
|
0
|
1020
|
|
POST
|
dear Readers, thanks a lot for taking the read the post. we are unable to use featuredata form from esri in our app for the following reasons: 1. users want the columns to be listed in different tabs based on the info they contain, the feature data layer has 96 columns (yes 96) 2. support tables should be modifiable (could not do it sde domain tables), and 3. we realized something later than more than 1 value is valid for some of the columns in a feature layer driven by attribute support tables. so a new user control was created with some tabs to hold functional column/fields together. inside each of the tab, there was a named stackpanel that contained a grid to hold all columns and their labels. since there were 96, we opted to create those fields from code behind to control the style and be consistent. in the codebehind, we were binding the textboxes (trying to get text boxes to display the selected feature's attribute data 1st - later on single select combo box to match up to attribute values in feature data layer - not to speak about multi-select controls now) . these values were to come from the selected graphics in the mainpage. the controls are in the ucDamsAttributes.XAML. once the user selects a graphic, the datacontext in the ucDamsAttributes page is 'set'. as shown below.
void featLayer4Editing_MouseLeftButtonDown(object sender, GraphicMouseButtonEventArgs e)
{
e.Handled = true;
if (e.Graphic.Geometry is MapPoint)
{
e.Graphic.Selected = true;
_GrphcLastGraphic = e.Graphic;
fdgFeatDataGrid4EditableLayer.ScrollIntoView(e.Graphic, null);
_ucDamsLayer.DataContext = fdgFeatDataGrid4EditableLayer.GraphicsLayer.Graphics[0].Attributes;
//_ucDamsLayer.DataContext = fdgFeatDataGrid4EditableLayer.GraphicsLayer;
// _ucDamsLayer.DataContext = e.Graphic.Attributes;
}
}
the commented versions and the uncommented version did not send the data to the text boxes, although every time, ucPanels datacontext was able to display the 96 odd keys and 96 odd values. but when the binding was set, nothing happened. Binding bBinding = new Binding();
bBinding.Mode = BindingMode.TwoWay;
bBinding.Source = this.DataContext;
if (this.DataContext != null && objDataEntryGrid.DataContext ==null)
{
objDataEntryGrid.DataContext= this.DataContext;
}
//objDataEntryGrid is the grid for arranging the location of the labels, fields etc
PropertyPath ppPath4Binding = new PropertyPath(strBindingPathColumnName);
bBinding.Path = ppPath4Binding;
tbTextBox2BAdded.SetBinding(TextBox.TextProperty, bBinding);
strBindingPathCOlumnName is a parameter to a function that contains the above code snippet. the function will be pasted below. strBindingPathColumnName is the actual column name inthe feature layer that should tie the textboxt.text display to the value of the selected graphic. void LoadTextBoxControlAndTextLabel(string strTextBlockLabel4ControlInParam,
string strControlNameInParam,
StackPanel StackPanel2BProcessed,
double dblTextBoxWidth,
int intTextBoxMaxLength,
string strTextBoxHelperMsg,
string strToolTipMsg,
string strBindingPathColumnName
)
{
Grid objDataEntryGrid = (Grid)StackPanel2BProcessed.Children[0];
RowDefinition objRD = new RowDefinition();
objDataEntryGrid.RowDefinitions.Add(objRD);
int intTargetRow4Add = (objDataEntryGrid.RowDefinitions.Count - 1);
Thickness thickness4Control = SetUniformWidthMarginForDataEntryControls(4);
//add textblock
TextBlock txtBlock2BAdded = new TextBlock();
txtBlock2BAdded = ReturnQualifiedTextBlockWithNamesLabels(strTextBlockLabel4ControlInParam,
strControlNameInParam,
intTargetRow4Add,
thickness4Control);
if (!(System.String.IsNullOrEmpty(strToolTipMsg)))
ToolTipService.SetToolTip(txtBlock2BAdded, strToolTipMsg);
objDataEntryGrid.Children.Add(txtBlock2BAdded);
//add textbox
TextBox tbTextBox2BAdded = new TextBox();
tbTextBox2BAdded.Name = "textBox4" + strControlNameInParam;
tbTextBox2BAdded.Margin = thickness4Control;
tbTextBox2BAdded.Width = dblTextBoxWidth;
tbTextBox2BAdded.MaxLength = intTextBoxMaxLength;
tbTextBox2BAdded.SetValue(Grid.ColumnProperty, 1);
tbTextBox2BAdded.SetValue(Grid.RowProperty, intTargetRow4Add);
//tbTextBox2BAdded.DataContext = this.DataContext;
Binding bBinding = new Binding();
bBinding.Mode = BindingMode.TwoWay;
bBinding.Source = this.DataContext;
if (this.DataContext != null && objDataEntryGrid.DataContext ==null)
{
objDataEntryGrid.DataContext= this.DataContext;
}
PropertyPath ppPath4Binding = new PropertyPath(strBindingPathColumnName);
bBinding.Path = ppPath4Binding;
tbTextBox2BAdded.SetBinding(TextBox.TextProperty, bBinding);
objDataEntryGrid.Children.Add(tbTextBox2BAdded);
if (!(System.String.IsNullOrEmpty(strTextBoxHelperMsg)))
{
//add textblock for helper message
........ //code of not interest to our question.
}
}
this function is called from another LoadControl2ThisStackPanelOrTab like this:
//NID ID
LoadTextBoxControlAndTextLabel("NID ID:", "NIDID", stkPnl4IdentifierTab, 150, 50, "", "Tooltip message...", "NID_ID");
Need suggestions and advise. thank you for your time. regards ravi.
... View more
12-07-2012
01:36 PM
|
0
|
0
|
783
|
|
POST
|
dear Readers, this is the 1st time, i am using group layers and have some questions associated with this. all layers are added at run time based on information present in web.config file. AGS 10.1 Rest services are consumed in the application VS 2010, SP* SL 5.x and ESRI API 3.x. this sl applicaiton is using editor widget and saves the graphics explicitly as explained in: http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#EditToolsExplicitSave I have attached a pdf to indicate the old layer list and old legend to see how it looks. <basics:TabItem Header="Old LayerList">
<StackPanel>
<ListBox x:Name="lstBox4Layers" Background="Transparent" ItemsSource="{Binding ElementName=Map4DataMgmt, Path=Layers}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" x:Name="stkPnl4BoundLayersInfo">
<!-- Background="Transparent" -->
<CheckBox IsChecked="{Binding Visible, Mode=TwoWay}"/>
<Slider Margin="-5,0,0,0" Minimum="0" Maximum="1" Width="50" Value="{Binding Opacity, Mode=TwoWay}" ToolTipService.ToolTip="{Binding Opacity, Mode=TwoWay}" Height="20"/>
<TextBlock Text="{Binding ID, Mode=OneTime}" Margin="5,0,0,0"/>
<ToolTipService.ToolTip >
<ToolTip>
<StackPanel MaxWidth="500">
<TextBlock FontWeight="Bold" Text="{Binding CopyrightText, Mode=OneWay}"/>
<TextBlock FontWeight="Bold" Text="{Binding Title, Mode=OneWay}" />
<TextBlock Text="{Binding ServiceDescription}" TextWrapping="Wrap" Margin="0,10,0,0"/>
<TextBlock Text="{Binding Abstract}" TextWrapping="Wrap" Margin="0,10,0,0"/>
</StackPanel>
</ToolTip>
</ToolTipService.ToolTip>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>
</basics:TabItem>
<basics:TabItem Header="Old Legend">
<esri:Legend x:Name="XXMyLegend" Map="{Binding ElementName=Map4DataMgmt}" LayerItemsMode="Tree" />
</basics:TabItem> Based on the name of the service, at runtime code decides whether it is ags tiled service or ags dynamic service and adds them to the appropriate group layer. End users wanted them to be grouped, so a starting point: i put them into 2 groups, TiledLayerGroup and DynLayerGroup. if (_lstReferenceDisplayURLs[iOrdialInList].Contains("~C"))
{
ArcGISTiledMapServiceLayer atsCachedLayer = new ArcGISTiledMapServiceLayer();
atsCachedLayer.Url = strURLOfCurrentLayer.Replace("~C", "");
atsCachedLayer.ID = _lstReferenceDisplayNames[iOrdialInList].Trim();
// atsCachedLayer.Visible = bCheckedVisibility;
atsCachedLayer.Opacity = dblCurrLayerOpacity;
atsCachedLayer.InitializationFailed += new EventHandler<EventArgs>(MapLayer_InitializationFailed);
// Map4DataMgmt.Layers.Add(atsCachedLayer);
InsertLayerInAGroupLayer(atsCachedLayer, "TiledLayerGroup");
}
else
{
ArcGISDynamicMapServiceLayer adsDynServLayer = new ArcGISDynamicMapServiceLayer();
adsDynServLayer.Url = strURLOfCurrentLayer;
adsDynServLayer.ID = _lstReferenceDisplayNames[iOrdialInList];
adsDynServLayer.Opacity = dblCurrLayerOpacity;
// adsDynServLayer.Visible = bCheckedVisibility;
adsDynServLayer.InitializationFailed += new EventHandler<EventArgs>(MapLayer_InitializationFailed);
InsertLayerInAGroupLayer(adsDynServLayer, "DynLayerGroup");
//Map4DataMgmt.Layers.Add(adsDynServLayer);
}
private void InsertLayerInAGroupLayer(Layer lyr2BInsertedIntoGrpLayer, string strGroupLayerID)
{
GroupLayer glGrpLayer = (GroupLayer)Map4DataMgmt.Layers[strGroupLayerID];
if (glGrpLayer == null)
{
glGrpLayer = new GroupLayer();
glGrpLayer.ID = strGroupLayerID;
Map4DataMgmt.Layers.Add(glGrpLayer);
}
glGrpLayer.ChildLayers.Add(lyr2BInsertedIntoGrpLayer);
}
Q1: why is the layer list on 'Old Layer List' tab not showing like this example: http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#GroupLayers - all children layers are hidden under TiledLayerGroup Checkbox without the ability for me to individually set the transparency or visibiliy. Also, i have to load the layers at run time - not at design time like this example. Q2: it is NOT ok for the users to have all children layers visible and they would like to uncheck something or change it transparency? any examples to show the children layers of a group layers having visibility flags and transparency slider at the users disposal. Q3. I am always forced to set visibiltiy of children layers to be true and it messes up the display and the performance of the application - any ideas to work around the same? thanks for taking the time to read this long posting. regards ravi.
... View more
11-21-2012
09:53 AM
|
0
|
3
|
2979
|
|
POST
|
dear Readers, Questions: 1. how to put fields into different tabs in a feature data form? 2. is it possible to change the text fields to a dropdown that loads from a support table in sql server 2008 r2 (attributes only) in a feature data form. DETAILS: thank you taking the time to read this post. We have a feature layer that has 78 or more columns. User have requested the fields to be put into 5 to 6 tabs based on the information each column holds. currently the app is of the following configuration: 1. esri api 3.0 (silverlight 5.x) 2. development lang c# - visual studio 2010 with latest sp. 3. REST etc from 10.1 (sql server 2008 r2 with spatial etc that works with esri). the application was started with minimal template - then 'modified' to the glass template. featurelayers records load in the grid and the application saves the data to the server using explicit save - since editing in the grid is cumbersome users want columns grouped into different tabs. Users want a 'support table' for many of the columns (displayed as dropdown) to improve data accuracies. http://forums.arcgis.com/threads/68615-Cannot-Select-From-Domain-in-Attribute-Editor?highlight=featuredataform - this link talks about layer getting values from domain table - but features are deleted or users are not able to derive benefit because all features have been deleted. while I get some suggestions, i will closely look into this thread: http://forums.arcgis.com/threads/21714-Editing-Tables-in-Feature-Service-with-Silverlight-4?highlight=support+tables regards ravi.
... View more
11-13-2012
11:51 AM
|
0
|
0
|
591
|
|
POST
|
dear Readers, thank you for taking the time to read through is issue: Main problem: I had a working edit application (explicit save) developed using Minimal template style that was available from VS 2010 project - the team wanted to change the background to glass template and i am having a hard time to merge the style from working code minimal style to nice looking glass style. to understand how to effectively i wanted to open the designer and inspect each of the items; this is what i get. System.MissingMethodException Method not found: 'System.String System.Environment.UnsafeGetFolderPath(SpecialFolder)'. at System.Windows.Application.CleanInBrowserAppDataCache() at System.Windows.Application.Application_Exited(Object sender, EventArgs e) at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags) Microsoft.Windows.Design.Platform.InvalidDesignerUpdateException An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime. I get this error with an option to reload the designer and i get the same error back. http://forums.arcgis.com/threads/49707-quot-Glass-Template-quot-not-opening-properly.?highlight=glass - looked at it - did all the unlock magic etc and nothing changed. So to accomplisgh my task: i tried the other route of modifying the working edit working app code built using default minimal style of vs 2010. Minimal template that comes out of vs 2010 does not have a replacable MyStyles.xaml and all style related information is present in app.xaml. When i tried to merge styles .xaml I had to move my style code from app.xaml to MinimalStyle.xaml and included it as a resource in App.XAML. with difficulty, i moved the minimal styles.xaml to a separate file and called in app.xaml = the app works as it was before. when i tried to replace it with GlassStyles.xaml, it is throwing unable to find name/key XAML parser errors. they fail at value being assigned to a staticresource in setter. <Style x:Name="titleTextStyle" TargetType="TextBlock"> <Setter Property="Foreground" Value="{StaticResource MediumHighlightBrush}" /> <Setters..../> ...... </Style> ..... ..... <SolidColorBrush x:Key="MediumHighlightBrush" Color="#FF022A47" /> how is that the downloadable glass project does not complain (it is a website with no default.aspx - only a default.html) does not complain not being able to locate a key whereas web application project complains. if the templates for vs 2010 have the abiility to swamp templates, it would have been easy. Microsoft.Windows.Design.Platform.InvalidDesignerUpdateException An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime. any ideas would be of great help. regards ravi.
... View more
10-29-2012
02:07 PM
|
0
|
1
|
852
|
|
POST
|
dear Readers, thank you for taking the time to read through this question. http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#MapTipWidget i am using this link and i have been able to get the data to display in a maptip declared in code-behind. i am seeing the pertinet information from a feature layer. i was trying to see whether i could resizxe the grid inside the map tip to make it more readable. i had to scroll from left to right due to the width of the contents to examine the contents. so i thought my maptip width was not enough and i made it 300 and i found that the grid did not expand at all. I had the same size as before and the maptip panel looked large with a constant width grid of name value pairs. is there a way to re-size the grid in the maptip? regards ravi.
... View more
09-26-2012
01:43 PM
|
0
|
1
|
590
|
|
POST
|
Dominique, good morning. thanks a lot for promptly. your code fixed it - further, there was a name conflict in my layer list that caused the issue. i will mark your reply as solving the issue. your 2 answers improved my application issues to a great extent. thanks a lot. regards ravichandran.
... View more
09-24-2012
08:28 AM
|
0
|
0
|
484
|
|
POST
|
thank you - I marked it answered after posting the reply.
... View more
09-24-2012
07:40 AM
|
0
|
0
|
502
|
|
POST
|
Dominique, good morning - SOLVED - thanks for yyour help, it solved the issue. how do i marked it answered - to ensure that it benefits other readers. regards ravi.
... View more
09-24-2012
07:39 AM
|
0
|
0
|
502
|
|
POST
|
dear Readers, thanks for taking the time to read through this post. In order to minimize web traffic, I was thinking about using explicit save as indicated in the link below: http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#EditToolsExplicitSave - it should be noted that in the example, url for the feature layer was set in XAML when the editor was defined. for situations when the url has to changed outside by admin, i had to implement using the URL from web.config and setting the feature layer in code behind and added it as a single item in layerlist <lst> to .LayerIDs member of the editor. this point feature service was set up with geom changes allowed mode. when i made the changes and clicked the save button <Button command="{Binding Save}" ..../> did not commit the changes to the feat layer. so to find out whether whether there was set up problem in the POINT feat layer with feature layer /0 entered in XAML and its layer id entered into LayerList string and IT WORKED. it committed the changes to the server when layerids are defined in XAML when editor is declared. to force save, i found this code and thought it might work = Editor editor = LayoutRoot.Resources["MyEditor"] as Editor; foreach (GraphicsLayer graphicsLayer in editor.GraphicsLayers) { if (graphicsLayer is FeatureLayer) { FeatureLayer featureLayer = graphicsLayer as FeatureLayer; if (featureLayer.HasEdits) featureLayer.Update(); } } in that for each, editor.GraphicsLayers was empty and it exited the loop. so when we are adding the LayerIDs in C# code (or vb.net), it does not do all the magic that setting LayerIDs in XAML does. if tech team can identify those extra magic, then we can add in C# code. thanks and regards ravi.
... View more
09-21-2012
02:10 PM
|
0
|
2
|
944
|
|
POST
|
dear Readers, thanks for taking time to read this query. I refered the sample: http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#EditToolsGeometry for editing points on a feature layer. I find that my map is also moving with the mouse cursor and the edit graphic highlighted in cyan. The only thing I am doing different is adding the feature server service at run-time. after getting MyEditGeometry from Layout.Resource, i am doing everything as per the above link. When i click the point, and try to move the map, the map moves along with the point - so i can move the point feature in a skillful way, then point moves 70 units of distance (for example) and the map follows the point 50 units in the same direction - so effectively, i would have moved the point 20 units of distance. in the above link, the point feature (a blue circle) moves without the map and the map moves independently when no feature is selected for editing. in my problem, i can move the map freely when no point feature is selected. any suggestions - i might not be setting some flag - i checked the flags for map, myEditGeometry and other objects that i thought could be it, but i am not able to change the above mentioned issue. thanks and regards ravi.
... View more
09-21-2012
12:09 PM
|
0
|
3
|
753
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-13-2013 07:52 AM | |
| 1 | 09-10-2013 02:15 PM | |
| 1 | 03-20-2023 06:38 AM | |
| 1 | 05-17-2022 07:41 AM | |
| 1 | 01-04-2021 10:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-10-2025
08:54 PM
|