Hello, I'm working with the trial version of DBXL and I can see it will allow me to do what I need but having a problem completing my test with it.I can bind a repeating table directly to the DBXL secondary connection and it will display the data perfectly. What I really need to do though it to copy/clone data from the DBXL connection to a repeating table in the main data source. I have found a number of examples on copying secondary data and I cannot seem to be able to get it to work. I defines the NameSpace for it,(which may be wrong but no errors at this point) but I get nothing back when I try to access the secondary from my JS. I'm thinking there could be difference between referencing the DBXL created data source and just a standard Sharepoint list data source. DBXL is getting it's data from SharePointQuery using the GetListItemsStr method. Since it will populate a bound repeating table I can see that it is working properly. But is JS when I try to get the value and copy it to the main Repeating Table I get nothing. No errors, no nothing.I am still pretty new to JS on Infopath and less than three days new to DBXL.I have to use Infopath 2003 at this point as it is deployed globally with my firm. The server is Windows 2003 with Sharepoint MOSS 2007 Standard.Here is the code which I got from InfopathDev and modified to try and do what I want but it is still not working. I have some things commented out that I have tried also but I left them in in case they help?
***************************************************************************************************************************************************
Get a copy of the main DOM node.
var clone = XDocument.DOM.selectSingleNode("/my:myFields/my:group3/my:Test_Details").cloneNode(true);
// Clear the main DOM nodes.
XDocument.DOM.selectNodes("/my:myFields/my:group3/my:Test_Details").removeAll();
// Copy nodes from 2DS to main DOM.
var nodes = XDocument.GetDOM("GetListItemsStr").selectNodes("/ns1:myFields/ns1:dataFields/ns1:GetListItemsStr");
XDocument.UI.Alert(nodes.text);
var node;
while(node = nodes.nextNode())
{
clone.selectSingleNode("/my:HuInput").text = node.selectSingleNode("Test_Serial_Number").text;
XDocument.UI.Alert(node.text);
XDocument.View.ExecuteAction("xCollection::insert", "group4_7");
//XDocument.DOM.selectSingleNode("/my:myFields/my:group3/my:Test_Details").appendChild(clone.cloneNode(true));
}
*********************************************************************************************************************************************************
I have two different Namespace definitions I have tried and while they do not produce errors neither works:
********************************************************
//XDocument.GetDOM( "GetListItemsStr" ).setProperty( "SelectionNamespaces" , 'xmlns:ns1="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"');
XDocument.GetDOM( "GetListItemsStr" ).setProperty( "SelectionNamespaces" , 'xmlns:ns1="http://qdabra.com/databaseservice"');
**************************************************************************************************
I was going to post a pic of the DBXL secondary data source from InfoPath but I can't figure out how to do it on this forum.
Any help would be greatly appreciated.
Thanks everyone!!!!!