Search - InfoPath Dev Sign in | Join | Help InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads Search More Search Options Page 4 of 8 (79 items) « First ... < Previous 2 3 4 5 6 Next > ... Last » Re: Random figure with button Thank you for your quick response. Still some questions: Why do I have to write "&&" in the "else if..." row? random = ((Math.round(Math.random() * 10)) % 2) + 4: What is the % 2 doing? Why do you add 2, 4, 6 and 8? Thanks for your patience. Posted to Code (Forum) by Joern on 08-31-2011 Re: Random figure with button In Excel I got what I want. Please find attached a screenshot for explanation: In Column C You find a couple of results. In Column B You find the corresponding cumulated probability of every result Cell G14 contains following formula: =VLOOKUP(RAND();B15:C52;2;TRUE) Is it possible to do this in code in IP 2003 so that the button click will ... Posted to Code (Forum) by Joern on 08-30-2011 Re: Random figure with button I got it. As Karsten said, I needed to translate not only "field1" into German but also "myFields". Now, there is another question arising: Is it possible to weight the probability of a random integer? For instance: In 40% of the cases I receive the integer 0 or 1, in 25% of the cases I receive the integer 2 or 3, and so ... Posted to Code (Forum) by Joern on 08-30-2011 Re: Random figure with button Hello Karsten, thank you for translating. Well, in the meanwhile I assumed by myself, that the mentioned 'Copy XPath'-possibility is for IP 2007, since I did not find any button to copy it. Is there any possibility to see the XPath of a field in IP 2003? Posted to Code (Forum) by Joern on 08-30-2011 Re: Random figure with button Thank you so much for your response. Unfortunately, I do not see the 'Copy Xpath'-possibility you advised me to select. Thus, I took your ("/my:myFields/my:field1") and simply translated 'field' into German, but then I receive following message: 'XDocument.DOM.selectSingleNode(...)' is null or no object. Any ... Posted to Code (Forum) by Joern on 08-29-2011 Re: Random figure with button Thanks for your response. Well, it's a form that the user can download from Sharepoint. Then, he's sending his input via e-mail to me. I assumed to put code in the Microsoft Script editor. And how do I put the random integer in a certain field, let's say in field1? Thanks in advance for your effort. Posted to Code (Forum) by Joern on 08-28-2011 Random figure with button Hi All, unfortunately I am absolutely not familiar with programming in InfoPath. I want to have a button that generates a random integer between 0 and 10 and sets it in another field. Do you have any idea how I can do this in IP 2003? Thank you very much in advance for your efforts. Cheers, Joern Posted to Code (Forum) by Joern on 08-26-2011 Re: easy: repeating table gets unique values from repeating section I know, this thread is quite old bur is it already solved? I'm interested in a summary of a repeating table in an other repeating table as well. Posted to Newbie Questions (Forum) by Joern on 05-26-2011 Re: Sum if with infopath Thanks Hilary. How is the repeating table populated? I couldn't find any data connection... Posted to Newbie Questions (Forum) by Joern on 05-25-2011 Re: Sum if with infopath Is there a way to open your form with IP2003, Jimmy? Posted to Newbie Questions (Forum) by Joern on 05-25-2011 Page 4 of 8 (79 items) « First ... < Previous 2 3 4 5 6 Next > ... Last » Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.