QField — using Python init functions Unicorn Meta Zoo #1: Why another podcast? ...

Mistake in years of experience in resume?

Arriving in Atlanta after US Preclearance in Dublin. Will I go through TSA security in Atlanta to transfer to a connecting flight?

Is Bran literally the world's memory?

How would this chord from "Rocket Man" be analyzed?

Has a Nobel Peace laureate ever been accused of war crimes?

My bank got bought out, am I now going to have to start filing tax returns in a different state?

What *exactly* is electrical current, voltage, and resistance?

Additive group of local rings

"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"

Implementing 3DES algorithm in Java: is my code secure?

Does Feeblemind produce an ongoing magical effect that can be dispelled?

Suing a Police Officer Instead of the Police Department

Protagonist's race is hidden - should I reveal it?

Why did C use the -> operator instead of reusing the . operator?

What is this word supposed to be?

What is the best way to deal with NPC-NPC combat?

Is it acceptable to use working hours to read general interest books?

Why is this method for solving linear equations systems using determinants works?

Do I need to protect SFP ports and optics from dust/contaminants? If so, how?

PIC mathematical operations weird problem

Split coins into combinations of different denominations

What is the term for a person whose job is to place products on shelves in stores?

Why did Israel vote against lifting the American embargo on Cuba?

Retract an already submitted recommendation letter (written for an undergrad student)



QField — using Python init functions



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraHow to set a default value for attributes in shapefiles?How to use python to set a variable to a value from a vector attribute table for GRASSButton to run Python Script on Custom Form Open QGISGetting script file name as object in Python?Qfield - multiple users/tabletsQField won't open portable projectUsing QField for QGIS?Using QField Relation Reference for Attribute Table?Collecting data in related tables using Qfield?Python QGIS 2.18 to QGIS 3 : Shp file attribute joins and how do i specify the join fields?Qfield and Qfield sync plugin





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







4















We are using the field mapping application QField with QGIS 2.18 for on-site data collection.



I've looked through the documentation and am still unsure, so am bring this question here: Is it possible to use python scripts using the python init function specification in the layer field properties?



I currently use a script to automatically assign object modification date and time. I am looking use this, because as far as I can tell, the now() function only works when the object is created. Updating existing points does not update the now() variable.










share|improve this question














bumped to the homepage by Community 23 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    4















    We are using the field mapping application QField with QGIS 2.18 for on-site data collection.



    I've looked through the documentation and am still unsure, so am bring this question here: Is it possible to use python scripts using the python init function specification in the layer field properties?



    I currently use a script to automatically assign object modification date and time. I am looking use this, because as far as I can tell, the now() function only works when the object is created. Updating existing points does not update the now() variable.










    share|improve this question














    bumped to the homepage by Community 23 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      4












      4








      4


      1






      We are using the field mapping application QField with QGIS 2.18 for on-site data collection.



      I've looked through the documentation and am still unsure, so am bring this question here: Is it possible to use python scripts using the python init function specification in the layer field properties?



      I currently use a script to automatically assign object modification date and time. I am looking use this, because as far as I can tell, the now() function only works when the object is created. Updating existing points does not update the now() variable.










      share|improve this question














      We are using the field mapping application QField with QGIS 2.18 for on-site data collection.



      I've looked through the documentation and am still unsure, so am bring this question here: Is it possible to use python scripts using the python init function specification in the layer field properties?



      I currently use a script to automatically assign object modification date and time. I am looking use this, because as far as I can tell, the now() function only works when the object is created. Updating existing points does not update the now() variable.







      qgis python qfield






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 7 '17 at 21:53









      user25976user25976

      931928




      931928





      bumped to the homepage by Community 23 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 23 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          This can be done without Python support.



          Add the expression now() to the field and activate "apply default value on update".



          Unfortunately, there is currently no Python support for QField.



          See this anwer .






          share|improve this answer


























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "79"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f243174%2fqfield-using-python-init-functions%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            This can be done without Python support.



            Add the expression now() to the field and activate "apply default value on update".



            Unfortunately, there is currently no Python support for QField.



            See this anwer .






            share|improve this answer






























              0














              This can be done without Python support.



              Add the expression now() to the field and activate "apply default value on update".



              Unfortunately, there is currently no Python support for QField.



              See this anwer .






              share|improve this answer




























                0












                0








                0







                This can be done without Python support.



                Add the expression now() to the field and activate "apply default value on update".



                Unfortunately, there is currently no Python support for QField.



                See this anwer .






                share|improve this answer















                This can be done without Python support.



                Add the expression now() to the field and activate "apply default value on update".



                Unfortunately, there is currently no Python support for QField.



                See this anwer .







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 16 '18 at 9:08

























                answered Jul 9 '18 at 13:15









                Matthias KuhnMatthias Kuhn

                19.4k15194




                19.4k15194






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f243174%2fqfield-using-python-init-functions%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Щит и меч (фильм) Содержание Названия серий | Сюжет |...

                    Венесуэла на летних Олимпийских играх 2000 Содержание Состав...

                    Meter-Bus Содержание Параметры шины | Стандартизация |...