Filter secondary data based on primary data values - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Filter secondary data based on primary data values

Last post 04-23-2009 12:24 AM by Moumst. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 04-23-2009 12:24 AM

    • Moumst
    • Not Ranked
    • Joined on 04-23-2009
    • Posts 3

    Filter secondary data based on primary data values

    Hi there,

     Is it possible to use the xdXDocument extension in XPathExpression within managed code function.

     Let's say I need to extract some secondary data values for a specific treatment based on values contained in primary data source. In fact I need to get the same values I have in a given dropdown list box to populate a reapeating table.

     Here is my problem:

    DataSource dsPostes = DataSources["Secondary DataSource"];
    XPathNavigator navPostes = dsPostes.CreateNavigator();
    XPathNodeIterator listePostesEquipement = navPostes.Select("/dfs:myFields/dfs:dataFields/tns:GetAllDataResponse/tns:GetAllDataResult/ns1:Equipement/ns1:Poste[../ns1:Equipement = xdXDocument:get-DOM()/my:OrdreManoeuvre/my:ListeElementReseau/my:ElementRéseau]", NamespaceManager);

     In other terms this is what I have in my combobox source data. But when I execute this query in managed code the xdXDocument is not present in the XsltContext. How can I access nodes of another datasource in my query? my:ListeElementReseau is a repeating field.

    If it is not possible I will query the primary data source and loop through the repeating field values to query x times the secondary datasource. But if I can make the xdXdocument extension to work it will be more elegent ;)

    I will appreciate any accurate answer ;)

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.