<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Repeating table Elements from Secondary source</title><link>https://www.infopathdev.com:443/forums/thread/3518.aspx</link><pubDate>Tue, 28 Nov 2006 01:53:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3518</guid><dc:creator>Nara Chilluvuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3518.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3518</wfw:commentRss><description>Thanks for your response Stavi.  I tried to be as clear as possible hence the loooooong post :D&lt;br /&gt;&lt;br /&gt;Anyway, after much researching and trying various options I finally found the answer based on a work-around from this post in the How-To section&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=9f6fda3a14c14ac4924cf0a382928432&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=9f6fda3a14c14ac4924cf0a382928432&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;I had tried various approaches but not really tried to understand the use of Current() until I came across this How-to. &lt;br /&gt;&lt;br /&gt;To sum it up,&lt;br /&gt;1) I created a drop down list 'Scenario' &amp; an Expression box 'Value' both in a repeating table 'TestData'&lt;br /&gt;&lt;br /&gt;2) I also created a secondary Datasource 'TDList' to a Sharepoint list with the structure (ID, Scenario, Value)&lt;br /&gt;&lt;br /&gt;3) I then linked 'Scenario' to this datasource and made it display TDList.Scenario but save the Value as TDList.ID&lt;br /&gt;&lt;br /&gt;4) I linked the expression box to Data in the General properties tab and using the Fx button linked it to the 'Value' field in the TDList secondary datasource.  &lt;br /&gt;&lt;br /&gt;5) I also applied a filter to the above Value field as follows:&lt;br /&gt;   a) Select Field or Group 'Scenario' from Secondary source&lt;br /&gt;   b) condition 'is equal to'&lt;br /&gt;   c) Enter a Formula 'current()/Scenario' where Scenario is the name of the field linked to the Dropdown box as specified in step 1.&lt;br /&gt;&lt;br /&gt;As a result when I selected a scenario from TDList using the Dropdown list the Value expression box fetched the relevant row from the list based on the value of scenario in the current row of the repeating table.&lt;br /&gt;&lt;br /&gt;Hope this helps others.&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;Nara</description></item><item><title>Re: Repeating table Elements from Secondary source</title><link>https://www.infopathdev.com:443/forums/thread/3517.aspx</link><pubDate>Fri, 24 Nov 2006 15:45:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3517</guid><dc:creator>Stavi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3517.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3517</wfw:commentRss><description>ok, thats a long post, in short, you want to get data from a row in a repeating table but always end up with data from first row?&lt;br /&gt;&lt;br /&gt;Assuming I understood correctly. Infopath uses the first row because it forgets which row you where using. To avoid this create a field outside your repeating table. Change your rules so the first thing it does is populate the extra field with the id for the selected row&lt;br /&gt;&lt;br /&gt;you can then use the extra field as reference for infopath to find the correct row</description></item><item><title>Repeating table Elements from Secondary source</title><link>https://www.infopathdev.com:443/forums/thread/1677.aspx</link><pubDate>Mon, 20 Nov 2006 03:48:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1677</guid><dc:creator>Nara Chilluvuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1677.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1677</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I am trying to create an InfoPath/SharePoint based test workflow for our manual testing requirements. &lt;br /&gt;&lt;br /&gt;In the past we have had these as Word documents which testers would print and execute manually and then save the results of the test to a sharepoint site for the test manager to track.&lt;br /&gt;&lt;br /&gt;I have now converted the test script template to an Infopath form and written some code to automatically save it to a InfoPath library.&lt;br /&gt;&lt;br /&gt;As this solution has progressed the test manager would now like to reference Test Data held in a XML document in the Test Script document.  So I have set up the Test Data as a Secondary datasource and get all data on form load.&lt;br /&gt;&lt;br /&gt;The document structures are as follows:&lt;br /&gt;&lt;br /&gt;MAIN DATASOURCE (THE DOCUMENT)&lt;br /&gt;- MyTestTable (Group)&lt;br /&gt;    - Name&lt;br /&gt;    - ID&lt;br /&gt;    - TestType&lt;br /&gt;    - Summary (Group)&lt;br /&gt;        - TestStatus&lt;br /&gt;        - DateCompleted&lt;br /&gt;        - Project&lt;br /&gt;        - Phase&lt;br /&gt;        - DefectIDs&lt;br /&gt;    - TestCaseSteps (Group)&lt;br /&gt;        - TestCaseTable (Repeating Group)&lt;br /&gt;            - StepNumber&lt;br /&gt;            - Condition&lt;br /&gt;            - Result&lt;br /&gt;            - Status&lt;br /&gt;            - DefectID&lt;br /&gt;            - TestData (Repeating Group)&lt;br /&gt;                - Scenario&lt;br /&gt;                - Value&lt;br /&gt;&lt;br /&gt;SECONDARY DATASOURCE (XML TESTDATA FILE)&lt;br /&gt;- TestData (Group)&lt;br /&gt;    - DataSetDescription&lt;br /&gt;    - TestDataPair (Repeating Group)&lt;br /&gt;    - Scenario (Text - Dropdown list)&lt;br /&gt;    - Value (Rich Text - Expression box)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have laid out the Test Script form in tables as follows:&lt;br /&gt;&lt;br /&gt;1) One main table "Test Details" to contain the Name, ID, TestType &amp; all elements of the Summary group.&lt;br /&gt;&lt;br /&gt;2) A second table "Test Steps" with repeating rows containing the StepNumber, Condition, Result, TestData, Status &amp; Defect ID elements&lt;br /&gt;&lt;br /&gt;3) A "Test Data" repeating Group is set up as a repeating table within the "Test Steps" table above with the Scenario, Value elements.&lt;br /&gt;&lt;br /&gt;The Scenario &amp; Value in the main datasource are linked to the Scenario &amp; Value from the Secondary datasource such that on load the Scenario drop down list displays all the scenarios listed in the Secondary source.  On selection, the Value Expression box displays the matching value from the Secondary datasource.  I have done this using rules and it works fine for a single row.&lt;br /&gt;&lt;br /&gt;MY PROBLEM&lt;br /&gt;If I have more than one row in the Test Steps table then, immaterial of which Scenario I select from the drop down box in the row, the value field always fetches the top most scenario from the secondary datasource used in any of the Steps and populates all Value fields in the entire test steps table with the same value.  It seems to be because the rules are not referencing by row location from the Secondary datasource for each row in the test script table.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;E.g.&lt;br /&gt;&lt;br /&gt;Step    Condition       Result      Scenario    Value   Status  DefectID&lt;br /&gt;1       Condition1      Result1     Scn3        Val3&lt;br /&gt;&lt;br /&gt;When I enter the next row, the value in the first row changes&lt;br /&gt;&lt;br /&gt;1       Condition1      Result1     Scn3        Val1&lt;br /&gt;2       Condition1      Result1     Scn1        Val1&lt;br /&gt;&lt;br /&gt;When I enter the 3rd row, it automatically takes the value from the second row&lt;br /&gt;&lt;br /&gt;1       Condition1      Result1     Scn3        Val1&lt;br /&gt;2       Condition1      Result1     Scn1        Val1&lt;br /&gt;3       Condition1      Result1     Scn2        Val1&lt;br /&gt;&lt;br /&gt;As you can see, the value field for all rows in the repeating table fetch values from the highest Scenario in the source XML (Secondary datasource).  Hope I have been clear in my description of the problem. &lt;br /&gt;&lt;br /&gt;My questions are around whether it is possible to achieve what I am trying? How do I ensure that the text in the Value ExpressionBox is based on the Scenario that has been selected for the specific row?  I am willing to write code if required as I have done some rudimentary JScript code till date.  &lt;br /&gt;&lt;br /&gt;Any help will be greatly appreciated.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Nara&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>