Hi
I'm trying to create a custom collection workflow for the ArcGIS Mobile for Windows application (10.2.1) which I know is out of support soon, but hoping someone might have come across this.
In the workflow I want to use the standard SelectFeatureTypePage to allow the user to select a feature type to collect. However, when I create a new instance of the SelectFeatureTypePage and transition to it, there are no feature types listed, despite there being layers in the project with AllowNew = true.
I can see that the SelectFeatureTypePage has a FeatureTypeListControl property which has a FeatureSourceInfos property, but this is read-only, so I can't populate it with layer sources.
The code I have is:
SelectFeatureTypePage selectFeatureTypePage <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">SelectFeatureTypePage</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
selectFeatureTypePage<SPAN class="punctuation token">.</SPAN>Title <SPAN class="operator token">=</SPAN> <SPAN class="string token">"Collect"</SPAN><SPAN class="punctuation token">;</SPAN>
selectFeatureTypePage<SPAN class="punctuation token">.</SPAN>Note <SPAN class="operator token">=</SPAN> <SPAN class="string token">"Select the type of feature"</SPAN><SPAN class="punctuation token">;</SPAN>
selectFeatureTypePage<SPAN class="punctuation token">.</SPAN>ImageSource <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>ImageSource<SPAN class="punctuation token">;</SPAN>
selectFeatureTypePage<SPAN class="punctuation token">.</SPAN>ShowFeatureSources <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">true</SPAN><SPAN class="punctuation token">;</SPAN>
selectFeatureTypePage<SPAN class="punctuation token">.</SPAN>ClickBack <SPAN class="operator token">+</SPAN><SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">EventHandler</SPAN><SPAN class="punctuation token">(</SPAN>OnSelectFeatureTypeBackCommandExecute<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
selectFeatureTypePage<SPAN class="punctuation token">.</SPAN>FeatureTypeSelected <SPAN class="operator token">+</SPAN><SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">EventHandler</SPAN><SPAN class="operator token"><</SPAN>FeatureTypeEventArgs<SPAN class="operator token">></SPAN><SPAN class="punctuation token">(</SPAN>OnFeatureTypeSelection<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
MobileApplication<SPAN class="punctuation token">.</SPAN>Current<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Transition</SPAN><SPAN class="punctuation token">(</SPAN>selectFeatureTypePage<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
The constructors for SelectFeatureTypePage and FeatureTypeListControl also do not have arguments to pass in a set of layer infos.
Has anyone successfully used the SelectFeatureTypePage in the ArcGIS Mobile SDK? How did you get it to populate the list of feature types?
Any help greatly appreciated.
Regards
John