get all integers between and including a start and end number. - InfoPath Dev
in

InfoPath Dev

get all integers between and including a start and end number.

Last post 09-26-2012 04:20 AM by tashatstanwell. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 09-23-2012 08:03 PM

    get all integers between and including a start and end number.

    Hello

    Can anyone assist with how I can get/list all numbers between and including two numbers?

    eg. user enters start number: 1 and end number: 50. I need to get 1, 2, 3, 4, 5....50

     

  • 09-24-2012 07:03 AM In reply to

    Re: get all integers between and including a start and end number.

    Where would the list of numbers get stored?

    I'm thinking custom code (or qRules) might be needed for this, but please explain how the list of numbers will be stored or used, to see if there's a non-code solution.

    Thanks.

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


  • 09-24-2012 09:43 PM In reply to

    Re: get all integers between and including a start and end number.

    Hi Ernesto

    The numbers need to be exported and used to create seperate items in another list.

    Basically, we have a central admin role which allocates groups of eTickets to a site admin.  The site admin will then allocate eTickets to individuals.

    Infopath will provide the UI and the information will be stored in Sharepoint.

    ErnestoM:

    Where would the list of numbers get stored?

    I'm thinking custom code (or qRules) might be needed for this, but please explain how the list of numbers will be stored or used, to see if there's a non-code solution.

    Thanks.

  • 09-25-2012 04:13 PM In reply to

    Re: get all integers between and including a start and end number.

    Hi Ernesto

     To clarify further, at this point if I could just get all the integers, including start and end, concatenated in a text field, I'm sure that will suffice.  We then have Nintex Workflow which hopefully can extract all the integers into a collection and then using that collection, create the items in an eTicket list (custom Sharepoint List).

     Thanks

  • 09-26-2012 03:15 AM In reply to

    Re: get all integers between and including a start and end number.

     Here is (sort of) a solution. It works, but the problem is that InfoPath only allows a certain number of iterations to happen in the form rules. It seems that the difference between start and end can only be around 15 or 16. Anything larger and I get an error.

    Maybe it helps you to dig deeper for a better solution, though I'm thinking code or qRules might be needed to make this more efficient.

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


  • 09-26-2012 04:20 AM In reply to

    Re: get all integers between and including a start and end number.

    Thank you so much! That's a great start.

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