Select to view content in your preferred language

Modify FeatureList for ViewFieldCrew [HELP]

837
1
07-07-2011 12:31 PM
AkhilParujanwala
Regular Contributor
I am trying to modify the FeatureList for the ViewFieldCrew page/task but I am unable to make a proper reference to that object.

ViewFieldCrewPage vfp;
_fieldcrewFeatureListControl = vfp.BrowseFeaturesControl.FeatureList;
_fieldcrewFeatureListControl.MenuItems.RemoveAt(0);

I am attempting to simply remove the first menu item in the from the FeatureList menu.

The problem occurs at the first line, stating I need to properly set the instance to the object. The problem is I don't how to set it.

I am using the WPF Out of the Box Solution. I have tried the following:
ViewFieldCrewPage vfp = new ViewFieldCrewPage();

ViewFieldCrewTask fieldcrewTask = MobileApplication.Current.Project.Tasks.GetFirstExtensionOfType(typeof(ViewFieldCrewTask)) as ViewFieldCrewTask;

Neither of these allow me to modify the FeatureList menu.

Kindly advise.

Thanks!
0 Kudos
1 Reply
ATSIT
by
Emerging Contributor
Did you find solution this problem.

I want to open ViewCrewFieldSettingPage from button click. So field crew check details and edit if anything required.

I am unable to obtain reference to the page. Can any one tell me how to get page reference.

Please Help!!
0 Kudos