“Acquire GPS” in a module

  • Franz
        4 years ago #19542

        Hi,

        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)
          4 years ago #19545
          Up
          0
          Down
          ::

          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.

          Franz
              4 years ago #19546
              Up
              0
              Down
              ::

              thank you!
              maybe in future the auto fields will be present automatically (just like within “apps”)

              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)
                4 years ago #19547
                Up
                0
                Down
                ::

                Feel free to add your feedback to this thread so we find it easier again.

                Franz
                    4 years ago #19548
                    Up
                    0
                    Down
                    ::

                    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
                      4 years ago #19549
                      Up
                      0
                      Down
                      ::

                      Hello Franz,

                       

                      you can use the auto fields in your “main application” and extend the interface of the module to pass the gps parameters from the app into your module. in your module you can use the interface input parameter to map this into the module variable “Scan result”.

                      Franz
                          4 years ago #19552
                          Up
                          0
                          Down
                          ::

                          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)
                            4 years ago #19620
                            Up
                            0
                            Down
                            ::

                            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/

                          Viewing 8 posts - 1 through 8 (of 8 total)

                          You must be logged in to reply to this topic.