“Acquire GPS” in a module
-
Franz
5 years ago #19542Hi,
I’m about to create a module which needs the GPS location.
In an “app” there is the auto field “GeoLocation”, this is missing in the “module”.
Is there a workaround for this?Thank you!
Dinkel
Has successfully completed the online course Introduction
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
Has successfully completed the online course Basics (100)
5 years ago #19545::Hi,
You have to create that Auto Field in your module. You can do this in the Data Workbench while editing the module.
For further information I recommend the documentation regarding the Data Workbench.Dinkel
Has successfully completed the online course Introduction
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
Has successfully completed the online course Basics (100)
Franz
5 years ago #19548::update:
I created the autofields for “longitude” and “latitude”, when trying to map the fields to a variable, i get “uncaught path points to undefiend field” in the generated source code lines.this.getGlobals().setVar(“ScanResult”,this.evalAutoField(“Geolocation”,{“QueryParameter”:”latitude”}),”latnum”);
this.getGlobals().setVar(“ScanResult”,this.evalAutoField(“Geolocation”,{“QueryParameter”:”longitude”}),”longnum”);The variable “ScanResult” has been defined in the data work bench of course.
thx.
Christian Kleinschroth
Has successfully completed the online course Introduction
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
Has successfully completed the online course Basics (100)
Has successfully completed the online course Advanced (310)
Has successfully completed the online course Advanced (320)
Has successfully completed the Intermediate Certification
Has successfully completed the Advanced Certification
5 years ago #19549Franz
5 years ago #19552::Hello Christian,
actually this is not my use case. The intention is to have a re-usable module which scans a barcode, gets the location and the timestamp and delivers everything together to the “main application”. passing the gps location from outside doesnt make too much sense here :-/
thx.
Mathieu Roll
Has successfully completed the online course Introduction
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
Has successfully completed the online course Basics (100)
5 years ago #19620::Hello Franz,
you need to predefine your variable structure like i mentioned here.
https://community.simplifier.io/forum/topic/error-path-points-to-undefined-field/
You must be logged in to reply to this topic.