Hi,
It seems that the CustomColumnFetch event is not fired anymore
when calling GetAllFeatures from a FeatureSource of a ShapeFileFeatureLayer.
Is it a change of behavior ?
It was fired in version 7. It’s not anymore in version 9.
I use the Daily Full Production 9.0.0.64.
Regards,
P.OM
Reportive
PS: I’ve joined a sample to reproduce it.
ColumnFetch.zip (499 KB)
CustomColumnFetch not fired
Hi Puthirak,
Thanks for let us know this bug!
We have fixed it, please get latest package for get this fix. The version should be 9.0.67.0 (9.0.0.67) or higher version.
Regards,
Don
Hi,
The CustomColumnFetch event is called now.
But I have another problem.
I never get the value of columns belonging to the shapefile.
In the attached sample, I asked a column belonging to the shapefile (CODE_UGA) and one unknown (unknownColumn).
In return, I get the value for unknownColumn but not for CODE_UGA.
I use the build 9.0.0.70.
Regards,
P.OM
Reportive
ColumnFetch1.zip (498 KB)
Hi Puthirak,
You’re right, for the logic, CustomColumnFetch only fire once if you use custom column which isn’t in currently shape file.
I think this topic should be helpful for your scenario.
thinkgeo.com/forums/MapSuite/tabid/143/aft/12802/Default.aspx
Regards,
Don
Hi,
The approach described in the topic thinkgeo.com/forums/MapSuite/tabid/143/aft/12802/Default.aspx
doesn’t suit my need.
I’m trying to build an InMemoryFeatureLayer based on the shapefile layer. And I need the data from the shapefile.
If you call GetAllFeatures with the option ReturningColumnsType.AllColumns (and so no custom column asked), like this:
myLayer.FeatureSource.GetAllFeatures(ReturningColumnsType.AllColumns);
You obtains nothing in the ColumnValues property of the features. I’m sorry but for me it’s not a proper behaviour.
Regards,
P.OM
Reportive
Hi Puthirak,
I ran your sample, it looks the “var x” can get both “CODE_UGA” and “unknownColumn” when you GetAllFeatures.
It looks the result don’t works the same as you mentioned.
My test version is 9.0.81.0, have you tried the latest version?
Regards,
Don
Hi,
I’ve only access to these builds:
- 9.0.0.78 Full Production : the problem still exist
- 9.0.79.0 Full Development: the problem is corrected
Regards,
P.OM
Reportive
Hi Puthirak,
We had moved the change to production version.
Please get the version 9.0.0.83 or higher version when you can get them.
Regards,
Don