Properly defining the /dsnamesrc in CopyTable when the source is a secondary data source? - InfoPath Dev
in

InfoPath Dev

Properly defining the /dsnamesrc in CopyTable when the source is a secondary data source?

Last post 06-23-2009 10:36 PM by Patrick Halstead. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-23-2009 04:13 PM

    Properly defining the /dsnamesrc in CopyTable when the source is a secondary data source?

    I keep getting this error: Failed to select the source table to copy from.

    Here is my statement: CopyTable /dsnamesrc=Tasks /tablesrc=/my:myFields/my:dataFields /rowsrc=my:Tasks /tabledest=/my:meetingAgenda/my:activeTask /rowdest=my:activeTasks /empty=yes

    My secondary data source is named Tasks, the first group node is called myFields, the 2nd group node (table) is named dataFields, and the 3rd group node (row) is named Tasks.  I believe I typed those in correctly above unless the namespace prefix is supposed to be something else.  I don't know that part.  If I set the source info the same as my destination info, it works, so I am pretty sure the src stuff is correct.  Does the "my" namespace only apply to the main data source?  If so, what do you use for other data sources?


  • 06-23-2009 04:19 PM In reply to

    Re: Properly defining the /dsnamesrc in CopyTable when the source is a secondary data source?

    Looks like I need to use DFS, but now it says the nodes need to match.

    Agh, I typed a bunch of stuff, but then it went away.  I switched the namespace to DFS on my Tasks data connection src names:

    CopyTable /dsnamesrc=Tasks /tablesrc=/dfs:myFields/dfs:dataFields /rowsrc=dfs:Tasks /tabledest=/my:meetingAgenda/my:activeTask /rowdest=my:activeTasks /empty=yes 

    If I don't populate the data for Tasks first, then clicking the CopyTable gives me the same error as before.  If I do populate the data and then do CopyTable, it says:

    The data structure of the Main DOM must match the structure of the secondary DOM

    I tried to make the data structure the same.  I have the same # of fields with all the same data type.

     


  • 06-23-2009 10:36 PM In reply to

    Re: Properly defining the /dsnamesrc in CopyTable when the source is a secondary data source?

    Quick guess is that the names for the nodes need to match up.

    After investigation with you, it seems that the SharePoint list schema has attributes and the version of free qRules we have on the web currently doesn't support attributes (but we are adding it soon - I promise!). So sorry. More soon.

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.