Automate

 View Only
  • 1.  Evolve - Set focus on specific field after webservice

    Posted 08-22-2025 02:35

    hi

    A very annoying thing happens (and so I get complaints from users...) when a webservice is executed, mainly with webservices based on Studio XML Queries.

    The form gets a sort of refreshed (saving though what was there) and by that it returns to the top of the page. This enforces the user to scroll back to where the user was when the webservice was triggered (e.g. by clicking a button).

    What can I do to bring the user back to where the user was (or on a specific field)?



    ------------------------------
    Ed Meiners
    Lead Consultant MDIM
    Wessanen Nederland Holding BV
    Amsterdam
    ------------------------------


  • 2.  RE: Evolve - Set focus on specific field after webservice

    Employee
    Posted 08-22-2025 19:38
    Edited by Sigrid Kok 08-22-2025 19:39

    Hi Ed

    I was trying this out in 25.1, and it didn't jump around. So maybe upgrade? :)

    It's been a long time ago that I tried this - perhaps on Foundation.  I  believe it's a combination of setting a class name on a field you want to focus on and using custom rule (javascript) that focuses on it.

    I may be missing something, again, I can't double check this because a web service execution doesn't move me to the top in this version.

    All of the Javascript developers out there - what am I missing?

    Hope this gives you the start of an idea :)

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    *Precisely Software Inc.
    ------------------------------



  • 3.  RE: Evolve - Set focus on specific field after webservice

    Posted 08-28-2025 03:01

    hi Sigrid,

    You have directed me in the good direction. The custom rule didn't work but with some help of my friend Chat, I found this custom rule to work.

    It is really difficult to work with Studio Queries in Evolve. It seems that "refresh" (I belief the technical term is "render") of the form is after the data is placed in the form. Hence, this has for example impact on logfields. Rules on logfields, like formatting which are per default "Run rule on form load" often do not respond as expected.

    Upgrade... hmmm, well yes, we will but to solve bugs it is a rather expensive thing to do...

    Anyway, thanks!



    ------------------------------
    Ed Meiners
    Lead Consultant MDIM
    Wessanen Nederland Holding BV
    Amsterdam
    ------------------------------



  • 4.  RE: Evolve - Set focus on specific field after webservice

    Employee
    Posted 08-28-2025 18:00

    There you go, Ed! 

    I believe the last time I looked at this was with Foundation, which I haven't had access to in years. Glad it is working for you. :)

    And yes, upgrades take some time. I just wanted to let you and others know that it works better these days. 

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    *Precisely Software Inc.
    ------------------------------