Giter Site home page Giter Site logo

Comments (5)

ming800 avatar ming800 commented on June 12, 2024

Same issue here, my workOrderId is a string data. Thanks for the tip.

In addition, the dispatcherId should be a integer instead of string. After adding the int() in line 78, it work fine now.

Thanks for the great tool!

Ming

from workforce-scripts.

ming800 avatar ming800 commented on June 12, 2024

Why is the locationField required?
Location field is very useful for many situations. The XY or Lat/Lon are just numbers. It is difficult for none GIS/geographer person to reference the numbers to a location in real world. We use the tool for water utility work orders. The location field is used to store a FacilityID, such as ID/Ma,e for a pump station or valve, an accountNumber for meter repair, or a address for new service installation.

Ming

from workforce-scripts.

ming800 avatar ming800 commented on June 12, 2024

After reading the codes, realize that the dispatcherID is intended for a string name of the dispatcher. The code will looking for the oid for the matching name.

Ming

from workforce-scripts.

crai3162 avatar crai3162 commented on June 12, 2024

@nart-t thanks for your comments on the scripts:

  1. this was an oversight in the script; WorkOrderID can be either int or string; we'll get this clarified.
  2. @ming800 provided a great reply on why we require locationField to be set; in the case where you only need to use X/Y coordinates. you can enter those as the locationField, that is what the Workforce web app does when the reverse geocode does not return an address.

@ming800 thanks for the comment on the dispatcherID, will also make sure we update the scripts for this as well.

from workforce-scripts.

apulverizer avatar apulverizer commented on June 12, 2024

The scripts have been updated so that it does not cast workOrderId to an integer and so that it does cast dispatcherId to integer.

I'm closing this as it should be solved, but feel free to re-open if these changes did not address your issue.

from workforce-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.