Dynamic DDL values - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Dynamic DDL values

Last post 03-22-2006 01:49 AM by Coita Thierry. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-20-2006 02:22 AM

    Dynamic DDL values

    Hi Guys,

    I have a drop down list which contains many values. One option is also to choose "other" in case the required part is not in the ddl yet. A text box pops up and you can enter the required part there.
    What I want to know: Is it somehow possible to update the ddl, so that the next time the form will be opened to send a new request, the entry made into the "other text box field" is populated in the ddl. Do I need to use secondary datasource for the ddl content to realize something like that. Another important point is that the values in the ddl are in alphabetical order and also should be in order after the update.

    Thx in advance
    Listen to Motörhead cos they play Rock'n Roll :)
  • 03-20-2006 02:37 AM In reply to

    Hi,

    I think the best is use a secondary datasource that is updated when an new entry is made!

    For the problem of sorting you can add an xsl:sort in your view after have made a preserve code block for that don't erase your xsl:sort!

    ++

    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 03-22-2006 01:38 AM In reply to

    Thx Virgul,

    but does someone has some more detailed information as I am struggeling a bit to get started ?
    Listen to Motörhead cos they play Rock'n Roll :)
  • 03-22-2006 01:49 AM In reply to

    For preserve code block see here:
    http://www.infopathdev.com/howto/tips/default.aspx?i=ae7e79f32dcf4aa4a5f511883ebd8149

    xsl:sort must be in the apply-templates Tag!

    For make an insert in the secondary datasource if it's a xml document (in C#):


    IXMLDOMDocument2 oDomgetHRGBisher = (IXMLDOMDocument2)thisXDocument.GetDOM("getHRGBisher");
    IXMLNODE Test = oDomgetHRGBisher.selectSingleNode("Root/RepeatingNode");
    IXMLDOMDocument ddladd = (IXMLDOMDocument)thisXDocument.CreateDOM();
    ddladd.loadXML("<item>" + textbisher + "</item>");
    Test.appendChild(ddladd.selectSingleNode("/item"));


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