CopyTable Question - InfoPath Dev
in

InfoPath Dev

CopyTable Question

Last post 03-20-2013 09:05 AM by camens. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 03-19-2013 10:37 PM

    CopyTable Question

    Trying to use the CopyTable command for the first time. In the PDF, on page 14 under 'Add Rules to Repeating Section', item 4) Add Action, point c) says @ID = ID field in the SharePoint List data source. I am adding the other fields with the Insert Field button, using edit XPath to add the number function, which seems to work. But the final /@ID is giving me a problem. Typing /@ID gives me an error of no such field. I do not know what you mean by ID from Sharepoint List data source. Do I use the Insert Field button to add a field, but which field? Sorry, don't get it...
  • 03-20-2013 12:59 AM In reply to

    Could you attach a screenshot of your SharePoint data source? It may be the case that the ID has a namespace and would instead be something like d:ID, or possibly the capitalization is different.
    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 03-20-2013 08:42 AM In reply to

    The wording in the document appears inconsistent....is it the ID from the SharePoint list secondary data source? I've attached the secondary data source screen shot. Just typing /@ID gives me an error, inserting the ID field from my secondary data source also gives me an error.
  • 03-20-2013 09:00 AM In reply to

    Hi-

    The data connections will vary from form to form. We'll just need to look at the full xpath to modify the instructions to fit your scenario.

    You can right click on the ID node in the secondary data source and select Copy Xpath. This will tell us whether the ID field in your data connection has an @ before it, or something else. Can you get that for us? It will be something like this:

    /dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/@ID

    or

    /dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/ID

    (or something similar)

    Thanks.

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


  • 03-20-2013 09:05 AM In reply to

    The path is /dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:ID, so I used /d:ID and it worked. Thanks.
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.