counter when the form open - InfoPath Dev
in

InfoPath Dev

counter when the form open

Last post 04-27-2011 02:51 AM by Jolya. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-25-2011 03:13 AM

    • Jolya
    • Not Ranked
    • Joined on 04-17-2011
    • Posts 8

    counter when the form open

    Hi,

     

    I have InfoPath form in SharePoint library which allow users to open and fill up the form then print it out but not allow submitting or saving in the library. I have one last requirement to create counter field in the form. This counter should give incremental/ unique number each time the user open the form.

     

    The idea is to have a unique number in that field each time the form is opened or previewed. I am thinking of create a rule on-load event that increment that field.

     

    Im new to infopath I don’t know how to accomplish this…please help!

     

  • 04-25-2011 05:48 AM In reply to

    Re: counter when the form open

    An incremental number would probably require code. Think about the possibilities: what if the user closes the form without saving or submitting? You would need to reset the "next available" number. What if two users open the form at the same time? You'll need to have one of the users get x and the other user get x+1. So, in summary, I don't think on load rules are enough, and I believe you'll need to turn to custom code, since it is not a trivial scenario. Good luck!

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 04-27-2011 02:51 AM In reply to

    • Jolya
    • Not Ranked
    • Joined on 04-17-2011
    • Posts 8

    Re: counter when the form open

    ErnestoM... many thanks for you advice

     i have tried another approch as Clayton descriped here http://claytoncobb.wordpress.com/2009/06/15/auto-numbering-infopath-forms/

    and it is work fine....just i used a custom page after the user submit the form, so he will not go to the form library.

    many thanks

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.