<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: incrementing a unqiue id</title><link>https://www.infopathdev.com:443/forums/thread/14837.aspx</link><pubDate>Thu, 26 Oct 2006 09:02:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14837</guid><dc:creator>spudy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14837.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14837</wfw:commentRss><description>I have several repeating groups which all have a field with a unqiue identifier. These are displayed as master/detail controls. Imagine these relate to different aspects of a room such as window, walls, ceiling, floor etc.&lt;br /&gt;&lt;br /&gt;I have another master/detail control that needs to sit inside each of the detail sections of the afore mentioned controls. Imagine that these relate to work that needs to be performed to correct faults found. I want all of the work required to be stored in a repeating group that is not nested within the indivdual groups they relate to but has a reference to them.&lt;br /&gt;&lt;br /&gt;ceiling - ceilingtype&lt;br /&gt;        - ceilinguID&lt;br /&gt;               - workrequired&lt;br /&gt;                             -work&lt;br /&gt;                             -workrequiredID&lt;br /&gt;wall   - walltype&lt;br /&gt;       - walluID&lt;br /&gt;               - workrequired&lt;br /&gt;                             -work&lt;br /&gt;                             -workrequiredID&lt;br /&gt;&lt;br /&gt;floor  - floortype&lt;br /&gt;       - flooruID&lt;br /&gt;               - workrequired&lt;br /&gt;                             - work&lt;br /&gt;                             - workrequiredID&lt;br /&gt;&lt;br /&gt;I have created the sharedgroup on the same level as the ceiling, wall and floor as it is not unique to either of these groups. &lt;br /&gt;&lt;br /&gt;The first issue is a information message showing on the sharedgroup when placed inside the detail view of the other groups:&lt;br /&gt;&lt;br /&gt;"the selected control cannot repeat here because the field to which it is bound is not part of the correct group. The field must be part of the group to which the repeating control is bound."&lt;br /&gt;&lt;br /&gt;This does not seem to cause any issue with functionality, although it causes me to wonder that there must be a correct way to achieve this.&lt;br /&gt;&lt;br /&gt;My other issue is, once creating a new item in the nested master repeating control I want to pick up the walluID or ceilinguID or flooruID of the currently selected control and store it as the workrequiredID. This is proving difficult.&lt;br /&gt;&lt;br /&gt;Can you shed any light on how I should be doing this?&lt;br /&gt;&lt;br /&gt;Many thanks in advance for help!</description></item><item><title>Re: incrementing a unqiue id</title><link>https://www.infopathdev.com:443/forums/thread/14836.aspx</link><pubDate>Wed, 25 Oct 2006 10:15:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14836</guid><dc:creator>spudy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14836.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14836</wfw:commentRss><description>Excellent, thankyou Matt - now when I look at it that makes perfect sense.</description></item><item><title>Re: incrementing a unqiue id</title><link>https://www.infopathdev.com:443/forums/thread/14835.aspx</link><pubDate>Tue, 24 Oct 2006 13:18:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14835</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14835.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14835</wfw:commentRss><description>To set the value of the roomUniqueID in the wall group, use a default value formula like this: &lt;br /&gt;&lt;br /&gt;../../my:uniqueID&lt;br /&gt;&lt;br /&gt;No need for current(). Also, another idea on generating unique IDs is to use a GUID for each one.  You can use up to a quintillion before getting to a 50% chance of a collision.</description></item><item><title>Re: incrementing a unqiue id</title><link>https://www.infopathdev.com:443/forums/thread/14834.aspx</link><pubDate>Mon, 23 Oct 2006 10:52:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14834</guid><dc:creator>spudy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14834.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14834</wfw:commentRss><description>Thankyou for the response.&lt;br /&gt;&lt;br /&gt;I was looking for a way to create a unqiue ID that could be assigned to a row that would remain fixed so that I could reference the rows and filter according on this unique ID. &lt;br /&gt;If any row is deleted, the row number is never reused. &lt;br /&gt;&lt;br /&gt;I have managed to do this by creating a field outside of the repeating group. Using a rule the number is incremented when new row is inserted. This value is then assigned to the a field in the new row.&lt;br /&gt;&lt;br /&gt;I am now looking to take this a step further. When looking through the contents of a building, there are four walls in one given room. &lt;br /&gt;&lt;br /&gt;Using a master/detail repeating table each room is added as an item in the repeating table with the UID assigned. Nested within the detail section there is another repeating group for walls. For each wall in the room the details, type &amp; condition need to be recorded. These are added to the repeating group but need to have a reference to the unique ID of the wall to enable filtering in a different view.&lt;br /&gt;&lt;br /&gt;room:(repeating group)&lt;br /&gt;     --type&lt;br /&gt;     --condition&lt;br /&gt;     -- unique ID&lt;br /&gt;     wall (repeating group)&lt;br /&gt;         --type&lt;br /&gt;         --condition&lt;br /&gt;         --room unique ID&lt;br /&gt;&lt;br /&gt;How do I get the unqiue ID of the room and assigned this value to the new row created for wall repeating table.&lt;br /&gt;&lt;br /&gt;I have tried current()/my:roomunqiueID&lt;br /&gt;I have checked the xpath expression and no errors are returned but it does nothing. Other actions on the same condition are functioning.&lt;br /&gt;&lt;br /&gt;Any ideas? Do I make any sense?&lt;br /&gt;&lt;br /&gt;thanks</description></item><item><title>Re: incrementing a unqiue id</title><link>https://www.infopathdev.com:443/forums/thread/14833.aspx</link><pubDate>Fri, 20 Oct 2006 09:46:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14833</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14833.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14833</wfw:commentRss><description>Hi Spudy,&lt;br /&gt;&lt;br /&gt;Is it a unique identifier for &lt;b&gt;each new repeating group &lt;/b&gt;or for &lt;b&gt;each new row in a repeating group&lt;/b&gt;?&lt;br /&gt;&lt;br /&gt;Assuming that its the latter...&lt;br /&gt;To have a serial number for each row in a repeating group,there is a tutorial on "How to assign an Autogenerated number to a repeating field" in the following link.&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=d663d7df90e94e65abb02632966e8127&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=d663d7df90e94e65abb02632966e8127&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>incrementing a unqiue id</title><link>https://www.infopathdev.com:443/forums/thread/12963.aspx</link><pubDate>Thu, 19 Oct 2006 16:51:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12963</guid><dc:creator>spudy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12963.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12963</wfw:commentRss><description>I have a requirement to addd a unique identifier with each new repeating group added. The way I am trying to do this is as follows:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;var uidIncrementor = XDocument.DOM.selectSingleNode("//my:aspectUniqueID").nodeTypedValue;&lt;br /&gt;uidIncrementor = uidIncrementor + 1;&lt;br /&gt;XDocument.DOM.selectSingleNode("//my:aspectUniqueID").nodeTypedValue =  uidIncrementor;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The aspectUniqueID field is an integer and I was rather hoping that the uidIncrementor would be recognized as such. But rather than adding the two integers it is creating a sting with both values in using concat. Something simple here I need to do just can't figure it out. Any guidance would be great.&lt;br /&gt;&lt;br /&gt;Thanks</description></item></channel></rss>