Field Engineer

Field Engineer helps mobile field agents keep track of work assignments, complete with destination routing and inventory management. The application allows an agent to view currently assigned tasks and to capture customer signoff when the job is complete, even when offline.

C# (2.3 MB)
 
 
 
 
 
4.2 Star
(5)
3,126 times
Add to favorites
12/9/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Favorites, and general use of Windows 10
    1 Posts | Last post June 02, 2016
    • 
          I switched (actually was tricked?) to Windows 10 from Windows 7.  I cannot find my old favorites from Windows 7.  Every action is a big pain!  I don't understand how this works and am ready to quit Windows 10.
          Really?  People ask you questions and you route them to other users who may have an answer to their question?  This sucks!  I hate Windows 10.  It's rubbish!
          Please get me back to my other system ASAP.
      Donna Pieper
  • Stay away from this sample code!!!
    1 Posts | Last post April 05, 2016
    • I have had extensive help from Microsoft Support and one of the original developers, and after getting the Demo portion going, I am unable to get my adaptation past the upgrade of Azure Active Directory from BETA to 2.0.6 and then get the request for pulling data to the device via SQLite store.
      
      I wish I would have gone with the Xamarin version but I am not building a phone app, but a Windows Tablet app, not to mention the cost. The Xamarin App sample should be no additional cost since Xamarin is now or shortly in Visual Studio. Stay away from this sample code!!!
  • Unable to get past start up
    1 Posts | Last post November 09, 2015
    • I tried following your directions, but I kept getting an error for using fieldengineer.azure.microsoft.com saying it was already in use. So I set up my own mobile service Field-Staff under my Azure account.
      
      I am getting the following error.
      
      {Method: GET, RequestUri: 'http://localhost:58972/tables/Job?$skip=0&$top=50&__includeDeleted=true&__systemproperties=__version%2C__deleted&$expand=equipments,customer,JobHistories', Version: 1.1, Content: <null>, Headers:
      {
        X-ZUMO-FEATURES: QS,OL
        X-ZUMO-INSTALLATION-ID: b80fd36f-2574-4023-9630-a88edc3a6512
        Accept: application/json
        User-Agent: ZUMO/1.3
        User-Agent: (lang=Managed; os=Windows Store; os_version=--; arch=X86; version=1.3.30130.0)
        X-ZUMO-VERSION: ZUMO/1.3 (lang=Managed; os=Windows Store; os_version=--; arch=X86; version=1.3.30130.0)
      }}
      
         at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient.<ThrowInvalidResponse>d__18.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
         at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient.<SendRequestAsync>d__1d.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
         at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient.<RequestAsync>d__4.MoveNext()
      --- End of 
      
      I think I am missing a step or two since I am deviating from your install steps. Any directions?
  • VB.Net?
    1 Posts | Last post August 16, 2015
    • Why no VB.Net option? Surely you guys have a tool of some sort to automagically convert between C# and VB.Net.
      
      It would be nice to see VB.Net treated in practice as the 1st class citizen it was promoted to be.
  • Setup project not working
    1 Posts | Last post July 31, 2015
    • In the project AzureMobile.Samples.FieldEngineer.Setup, the Program.cs file throws an exception when the PopulateJobTable method attempts to execute its first line of code.  I wrapped a try/catch around the call to context.Set<Job>.Add()
      and it throws a SqlException every time:
      
        {"Cannot create more than one clustered index on table 'tmspoc.Customer'. Drop the existing clustered index 'PK_tmspoc.Customer' before creating another.”}
      
      Here's the code in question:
      
              public static void PopulateJobTable(MobileServiceContext context)
              {
                  context.Set<Job>().Add(new Job { Id = "1009786142", JobNumber = "6", EtaTime = "08:30 AM - 09:30 AM", CustomerId = "6", Status = "On Site", Title = "New customer installation and setup", AgentId = "77f2c0f9-e715-4a13-8069-38e84bcd2a10", StartTime = new DateTimeOffset(2014, 3, 2, 12, 0, 0, TimeSpan.Zero), EndTime = null, CreatedAt = DateTimeOffset.UtcNow });
      ...
      
      Also,
      I think the sample might also be a little out of date because in line 29 of the same file (Program.cs) the URI refers to a non-existent resource producing an HTTP404 when accessed.  If I remove the "tables/equipmentSpecification" part of the URI, the HttpClient does not get a 404.
      
      var url = "https://" + mobileServiceName + ".azure-mobile.net/tables/equipmentSpecification";
      
      
      Is there an updated sample available that works with the current version of Azure Mobile Services?
      
      Thanks
      Matt
      
  • Missing Source Files?
    2 Posts | Last post November 19, 2014
    • I've downloaded the sample and I'm trying to get things running under my own Azure account.  However, just building the solution is failing for the Service project, claiming that the following 4 source files are missing (which of course they are).  What am I missing to get this to compile?  I checked the steps in the instructions, but couldn't seem to find anything related to this.  Thanks.
      
      Error	3	Source file '..\..\Common\AzureMoble.AAD.Graph\AadGroups.cs' could not be found	C:\Users\jschaffe\Documents\Visual Studio 2013\Projects\Win8\Field Engineer\C#\C#\FieldEngineer\AzureMobile.Samples.FieldEngineer.Service\CSC	AzureMobile.Samples.FieldEngineer.Service
      Error	4	Source file '..\..\Common\AzureMoble.AAD.Graph\AadHelperProvider.cs' could not be found	C:\Users\jschaffe\Documents\Visual Studio 2013\Projects\Win8\Field Engineer\C#\C#\FieldEngineer\AzureMobile.Samples.FieldEngineer.Service\CSC	AzureMobile.Samples.FieldEngineer.Service
      Error	5	Source file '..\..\Common\AzureMoble.AAD.Graph\AuthorizeAadGroupAttribute.cs' could not be found	C:\Users\jschaffe\Documents\Visual Studio 2013\Projects\Win8\Field Engineer\C#\C#\FieldEngineer\AzureMobile.Samples.FieldEngineer.Service\CSC	AzureMobile.Samples.FieldEngineer.Service
      Error	6	Source file '..\..\Common\AzureMoble.AAD.Graph\IAadHelperProvider.cs' could not be found	C:\Users\jschaffe\Documents\Visual Studio 2013\Projects\Win8\Field Engineer\C#\C#\FieldEngineer\AzureMobile.Samples.FieldEngineer.Service\CSC	AzureMobile.Samples.FieldEngineer.Service
      
    • This is fixed now. Please get the latest zip file.
  • Database types
    2 Posts | Last post August 15, 2014
    • Are there any good reason for why all the database types are varchar(50), even for numerical columns? What additional measures are needed to change the code to work with a database containing columns with type INT, DateTime etc.?
    • All you have to do is make sure any object that'll hold this data in your code is set to the correct type. If you're creating the database using Entity Framework Code-First than make sure your DataObjects also have the same types. 
      
      Here's a .NET example: http://azure.microsoft.com/en-us/documentation/articles/mobile-services-dotnet-backend-windows-store-dotnet-leaderboard/