Problem of pass parametrs - InfoPath Dev
in

InfoPath Dev

Problem of pass parametrs

Last post 06-26-2006 09:59 PM by liorlankri. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-25-2006 05:47 AM

    Problem of pass parametrs

    I have in my form a Data Connection to a Web Service (type Recive).
    There are 2 parameters that the WS get (the methode),first one type string (called "Name") and seconed type Integer(calles "ModeType"). In my form I have this code:

    Set dataObj=XDocument.DataObjects("AAA")
    Set dataDom=dataObj.DOM


    dataDom.setProperty _
    "SelectionNamespaces","xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"" " & _
    "xmlns:tns=""http://tempuri.org/"" "

    dataDom.selectSingleNode ("/dfs:myFields/dfs:queryFields/tns:AAA/tns:ModeType").text=XDocument.DOM.selectSingleNode("/my:myFields/my:AAA/my:MT").text
    dataDom.selectSingleNode ("/dfs:myFields/dfs:queryFields/tns:AAA/tns:Name").text=strName

    I get Error : " Input string was not in a correct format."
    What is the problem???
  • 06-25-2006 09:47 PM In reply to

    Re: Problem of pass parametrs

    Sorry. I gave wromg code. This is the code

    Dim type
    type=XDocument.DOM.selectSingleNode("/my:myFields/my:AAA/my:Type").text

    Set dataObj=XDocument.DataObjects("AAA")
    Set dataDom=dataObj.DOM


    dataDom.setProperty _
    "SelectionNamespaces","xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"" " & _
    "xmlns:tns=""http://tempuri.org/"" "

    dataDom.selectSingleNode ("/dfs:myFields/dfs:queryFields/tns:AAA/tns:ModeType").text=type ("/dfs:myFields/dfs:queryFields/tns:AAA/tns:Name").text=strName

    I get Error : " Input string was not in a correct format."
    What is the problem???
    By the way: the field "Type" is a field which Data Type is Whole number
  • 06-26-2006 09:59 PM In reply to

    Re: Problem of pass parametrs

    Any one??

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