Issue with ITableSort interface in ArcObjects .NET 10.4 SDK

5713
8
Jump to solution
05-12-2016 12:58 PM
GlynnFlowerday
New Contributor II

I am having an issue with the ITableSort interface whilst migrating a project from VS 2010 using the ArcObjects .NET 10.2 SDK into VS 2015 using the ArcObjects .NET 10.4 SDK.

I have code that uses the ITableSort.Ascending property but this now says it is an unsupported type in 10.4. However in the help http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#ITableSort.htm it says it is still available. Has anybody else come across this?

Cheers

Glynn

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

This is a new bug in 10.4 (BUG-000095459). We have Technical Article 000001060 talking about the relevant issues http://support.esri.com/technical-article/000001060

There are many interface properties which have input parameters (typically the parameters are indexes) that are affected in ArcObjects 10.4 Visual Studio 2015 VB.NET, like ITableSort, IFieldsEdit, etc. Workaround for VB.NET would be the same as suggested in Article 000001060.

This bug is fixed in 10.5.1 (check bug status: http://support.esri.com/bugs/nimbus/QlVHLTAwMDA5NTQ1OQ==).

View solution in original post

8 Replies
GlynnFlowerday
New Contributor II

Further to this, I should add that I am using VB.NET. It looks to be still available when using C#.

0 Kudos
by Anonymous User
Not applicable

This is a new bug in 10.4 (BUG-000095459). We have Technical Article 000001060 talking about the relevant issues http://support.esri.com/technical-article/000001060

There are many interface properties which have input parameters (typically the parameters are indexes) that are affected in ArcObjects 10.4 Visual Studio 2015 VB.NET, like ITableSort, IFieldsEdit, etc. Workaround for VB.NET would be the same as suggested in Article 000001060.

This bug is fixed in 10.5.1 (check bug status: http://support.esri.com/bugs/nimbus/QlVHLTAwMDA5NTQ1OQ==).

GlynnFlowerday
New Contributor II

Thanks! I also got around it by keeping my code in VS 2015 (VB.NET) and calling another DLL I wrote in C# that used the ITableSort interface.

Harald_ØysteinLund1
Esri Contributor

Hi, is there a fix on this. Does 10.5 handle this? 

0 Kudos
GlynnFlowerday
New Contributor II

Hi, there was no fix in 10.4. What I ended up doing was a DLL in C# that handled the iTableSort interface. I am uncertain if the issue is sorted in 10.5.

Cheers

Glynn

Harald_ØysteinLund1
Esri Contributor

Hi,

Thank you for the answer. I ended up with a C# dll handling the ITableSort. Worked fine.

Harald.

0 Kudos
GlynnFlowerday
New Contributor II

Glad it worked for you ☺.

Cheers

Glynn

0 Kudos
RiverTaig1
Occasional Contributor

The IQueryFilterDefinition interface is often easier to use if you are just trying to sort. 

IQueryFilterDefinition.PostfixClause Example

0 Kudos