namespaces - InfoPath Dev
in

InfoPath Dev

namespaces

Last post 03-20-2006 02:33 AM by Coita Thierry. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-09-2006 04:04 PM

    • dada
    • Not Ranked
    • Joined on 02-28-2006
    • Posts 1

    namespaces

    Hi,
    I'm trying to add a rule to a textbox that gets data from my secondary datasource but I keep getting this error:

    Reference to undeclared namespace prefix: 'tns'.

    I have my namespaces declared like so :

    XDocument.DOM.setProperty "SelectionNamespaces", "xmlns:s0=""http://xxx/CDS/wsSAPLookup"" xmlns:tns=""http://xxx/CDS/wsSAPLookup"" xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"" xmlns:my=""http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-01-08T22:33:58"""


    What's puzzling is I am already using this second data source to put values in a drop list and I'm not getting any errors with that.

    Any ideas ?
  • 03-20-2006 02:33 AM In reply to

    Hi,

    Are you sure that you don't have a / at the end of the namespace?

    like this:
    xmlns:tns=""http://xxx/CDS/wsSAPLookup/""

    One times I have forget and that didn't work anymore :)

    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.