Search - InfoPath Dev

InfoPath Dev

Search

Page 1 of 2 (14 items) 1 2 Next >
  • Re: reset dom

    Thanks for your help! That works fine!
    Posted to Code (Forum) by buki79 on 09-14-2006
  • Re: reset dom

    Hi, I guess my import code works fine. When I import the same xml file once, twice or three times without reseting it just adds the contents to the form. But if I use the reset function, this next time I use the import function I get the error ''selectSingleNode(..) Null or no object''. This is an example of my import code:if ...
    Posted to Code (Forum) by buki79 on 09-13-2006
  • reset dom

    Hi, I import an xml file into a form by custom code. Now I wanted to insert a link in the custom task pane which resets the form. This peace of code resets the form. var nodes = XDocument.DOM.selectNodes(''/*''); while(node = nodes.nextNode()) node.text='' ''; But when I wanted to import another xml file I get a nullpointer exception. It ...
    Posted to Code (Forum) by buki79 on 09-07-2006
  • Re: populate dropdown during OnLoadEvent

    Ok. I figured it out. I create a view in the database with the desired fields and select this view when I create a secondary datasource. So I can bind the e. g. concatenated fields to a field in the primary datasource. Thanks for hints!
    Posted to Code (Forum) by buki79 on 08-30-2006
  • Re: populate dropdown during OnLoadEvent

    Ok. I understand. But how does the drop down know what value to display, when I use managed code to populate the dropdown. For example, I bind a secondary datasource to the dropdown by the datasource wizard. I add an access database and if I look at the created sql it looks likeselect [id],[course_name] from [courses] as [courses] But now I want ...
    Posted to Code (Forum) by buki79 on 08-29-2006
  • Re: get value from dropdown list with c#

    Hi, you're right :) I missed a slash. thisXDocument.DOM.selectSingleNode(''//my:training_administration/my:courses/my:course/my:id'').text I'm so blind :) Sorry for bothering. Regards, Buki
    Posted to Newbie Questions (Forum) by buki79 on 08-22-2006
  • Re: get value from dropdown list with c#

    Hi, thanks for the hint, but in this case I don't have to deal with SharePoint. I just want to get the selected value from a dropdown list within an InfoPath form. And there I receive this System.NullReferenceException when I want to retrieve the value. I guess this can't be hard to accomplish, but at the moment I'm a bit stuck. Regards, Buki
    Posted to Newbie Questions (Forum) by buki79 on 08-22-2006
  • Re: populate dropdown during OnLoadEvent

    Hi, maybe I get something wrong, but when I look at this secondary data source it is a repeating element. The dropdown list is not a repeating element, so I can't bind the dropdown list to the secondary data source. When I bind the list entries of the dropdown (properties dialog) to the datasource, only an empty row and the first entry is shown ...
    Posted to Code (Forum) by buki79 on 08-22-2006
  • populate dropdown during OnLoadEvent

    Hi, I want to populate a dropdown list when the form is openend. The values should appear depending on a select from a database, e. g. only rooms which are not booked should appear in the list. For this I use the DataObject and submit a query. But as I want to do this in the OnLoadEvent, I can't use forceupdate() to populate the dropdown list. ...
    Posted to Code (Forum) by buki79 on 08-17-2006
  • get value from dropdown list with c#

    Hi, how do I get the selecetd value of a dropdown list? This string id = thisXDocument.DOM.selectSingleNode(''/my:training_administration/my:courses/my:course/my:id'').text; only returns this error: System.NullReferenceException Object reference not set to an instance of an object. at ...
    Posted to Newbie Questions (Forum) by buki79 on 08-16-2006
Page 1 of 2 (14 items) 1 2 Next >
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.