thisXDocument C# - InfoPath Dev
in

InfoPath Dev

thisXDocument C#

Last post 08-13-2007 10:21 AM by hguevara. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 08-08-2007 08:17 AM

    thisXDocument C#

    ADOAdapter employeesDA=(ADOAdapter)thisXDocument.DataAdapters["Employees"];
    // get employee’s ID from the main DOM
    string employeeID=thisXDocument.DOM.selectSingleNode("//my:field2").text;
    // Change the ADOAdapter’s command to retrieve the record of the Employee’s ID entered
    // by the user
    employeesDA.Command="select * from Employees where EmployeeID="+employeeID;
    // get DataObject from the DataObjects collection and call Query to refresh
    // the data object
    DataObject employeesDO=thisXDocument.DataObjects["Employees"];
    employeesDO.Query();

     

    no puedo utilizarlo! me sale error.

    eso ke hize

    el using Microsoft.Office.Interop.InfoPath.SemiTrust; haciendo la referencia.

    porke no puedo utilizar thisXDocument  y komo puedo utilizarlo, necesito una respuesta

    GRACIAS!

  • 08-09-2007 11:06 AM In reply to

    Hola hguevera,

    ¿Que dice el error? Creo que necesitas usar DataAdapters no DataObjects.

    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 08-10-2007 07:42 AM In reply to

    using Microsoft.Office.InfoPath;
    using System;
    using System.Xml;
    using System.Xml.XPath;
    using Microsoft.Office.Interop.InfoPath.SemiTrust;
    namespace Plantilla2
    {
        public partial class FormCode
        {
           
            public void InternalStartup()
            {
                ((ButtonEvent)EventManager.ControlEvents["CTRL11_5"]).Clicked += new ClickedEventHandler(CTRL11_5_Clicked);
            }

            public void CTRL11_5_Clicked(object sender, ClickedEventArgs e)
            {
                IXMLDOMNode nodoSel = thisXDocument.DOM.selectSingleNode("my/////");
            }
        }
    }

     

    Error =

    thisXDocument no existe en el contexto actual

  • 08-10-2007 07:42 AM In reply to

    using Microsoft.Office.InfoPath;
    using System;
    using System.Xml;
    using System.Xml.XPath;
    using Microsoft.Office.Interop.InfoPath.SemiTrust;
    namespace Plantilla2
    {
        public partial class FormCode
        {
           
            public void InternalStartup()
            {
                ((ButtonEvent)EventManager.ControlEvents["CTRL11_5"]).Clicked += new ClickedEventHandler(CTRL11_5_Clicked);
            }

            public void CTRL11_5_Clicked(object sender, ClickedEventArgs e)
            {
                IXMLDOMNode nodoSel = thisXDocument.DOM.selectSingleNode("my/////");
            }
        }
    }

     

    Error =

    thisXDocument no existe en el contexto actual

  • 08-11-2007 09:38 PM In reply to

    Hola hguevera,

     Creo que estás usando el modelo objecto de InfoPath 2003 con un proyecto de InfoPath 2007.  ¿Donde obteniste este código?  Desde un foro o una pagina de web¿?  Si necesitias más informacion como el modelo objecto de InfoPath 2007, puedes practicar con este lab de Microsoft http://msdn2.microsoft.com/en-us/library/bb251747.aspx

    Lo siento que no puedo ayudar más, no uso código con Infopath 2007 mucho, de verdad no tengo en mi ordenador porque tengo muchas otras proyectos en InfoPath 2003.

     Además, porque usas muchas "k" por "que" en tus escritos? Es un poco confusado para los gringos! :)

    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 08-13-2007 10:21 AM In reply to

    quiero llenar una tabla repetida o "extensible" con codigo?

    hay alguna forma de hacerlo!

    tengo tiempo buskando.. eso!

    aver si pongo un video con mi problema!

    lo e intentado sin codigo pero sin mucha suerte

    tengo una tabla con un origen de datos secundario

    lo arrastro y lo pongo como tabla repetida

    a esta tabla quiero agregarle una columna mas con un campo de texto

    cuando le doy la vista previa

    y quiero llenar la ultima columna que e creado me sale todas las filas con el mismo valor "repetidos".

    y lo que busco es que no se repita.

    Gracias

    SaluDos

     

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