Managing dropdown lists with XML files - InfoPath Dev
in

InfoPath Dev

Managing dropdown lists with XML files

Last post 04-04-2006 06:26 PM by Shiraz Cupala. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-31-2006 04:55 AM

    • spudy
    • Top 150 Contributor
    • Joined on 03-23-2006
    • United Kingdom
    • Posts 67

    Managing dropdown lists with XML files

    Hopefully someone can provide some wisdom on a couple of issues for me.

    I have dropdown lists that are populated from an XML file. On adding the datasource I was prompted to add the XML file to the form, which I did. As I develop more items are required to be added to dropdown lists.

    Is there a way I can re-add the modified XML file without having to remove and then add the dataconnection again. This one XML file feeds numerous dropdowns and each time I am having to revisit each dropdown and point them back to the dataconnection.

    A separate issue but on similiar theme is that I have one dropdown list that holds somewhere in the region of 1300 items (yeah I know, it is excessive - but until the business logic is applied there is little I can do!)

    What I want to do is give the option to set items as favourites. This would write the selected items to an XML file which would then be used to populate another dropdown list of Favourites. Problem is that as the file resides outside of the form a security warning occurs each time the form is loaded. Is it possible to include this in the form and still permit the user to add items?

    Spudy.
  • 03-31-2006 06:58 AM In reply to

    Re: Managing dropdown lists with XML files

    To modify the data connection without having to revisit the drop-downs click "Modify" on the Data Connections wizard instead of "Remove" and then "Add". After clicking modify, browse to your updated XML file and add it. You might notice that when InfoPath copies the XML doc into the solution it might append a number to the end of the filename to specify it from the previous internal XML file.

    The favorites list is a cool idea. I think a little bit more information is necessary to tackle it though. If you want to set a global favorites list (i.e. User-independent) then you could just add a "favorite" field to each of the nodes and when you populate the favorites drop-down list use a data filter to include only those entries.

    Hope this helps, let us know your progress on the favorites thing!
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 04-04-2006 06:26 PM In reply to

    Re: Managing dropdown lists with XML files

    In InfoPath 2007 coming soon, a feature called the Data Connection Library will actually provide this type of favorites list functionality. It's probably not exactly what you're looking for but similar.
    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.