Group:  Other Microsoft Office Products » microsoft.public.infopath
Thread: Add Item To Dropdown List Box Populated By Secondary Data Source

Add Item To Dropdown List Box Populated By Secondary Data Source
Ezack 10/28/2008 8:44:10 PM
Hello,
I need to add an item to a dropdown list box that is populated by a
secondary data source (web service). I do not need to persist this value to
the secondary data source. I only need it in the dropdown. It's basically
an "Other" option. How can I do this?

THanks,
ezack
RE: Add Item To Dropdown List Box Populated By Secondary Data Source
Swathi (GGK Tech) 10/29/2008 5:04:03 AM
Hi,
Create an xml in which it contains both web service data and the ‘other’
value. And get the values in to drop down by using this xml.

--
Swathi Porandla
http://www.ggktech.com



"Ezack" wrote:

[Quoted Text]
> Hello,
> I need to add an item to a dropdown list box that is populated by a
> secondary data source (web service). I do not need to persist this value to
> the secondary data source. I only need it in the dropdown. It's basically
> an "Other" option. How can I do this?
>
> THanks,
> ezack
RE: Add Item To Dropdown List Box Populated By Secondary Data Sour
Ezack 10/29/2008 1:27:02 PM
Can you clarify a little what you mean by this? How do I "create an xml"?
Can I do this in InfoPath?

-ezack

"Swathi (GGK Tech)" wrote:

[Quoted Text]
> Hi,
> Create an xml in which it contains both web service data and the ‘other’
> value. And get the values in to drop down by using this xml.
>
> --
> Swathi Porandla
> http://www.ggktech.com
>
>
>
> "Ezack" wrote:
>
> > Hello,
> > I need to add an item to a dropdown list box that is populated by a
> > secondary data source (web service). I do not need to persist this value to
> > the secondary data source. I only need it in the dropdown. It's basically
> > an "Other" option. How can I do this?
> >
> > THanks,
> > ezack
RE: Add Item To Dropdown List Box Populated By Secondary Data Source
S.Y.M. Wong-A-Ton 11/1/2008 5:55:01 AM
Since you cannot use rules to add an item to the drop-down list box (or the
data source that is bound to the drop-down list box), you will have to write
code to get this done.

First you must retrieve a reference to the secondary data source using the
DataSources object (see
http://www.bizsupportonline.net/infopath2007/infopath-basics-main-secondary-data-source.htm).
Once you have a reference, you can copy the structure of an existing
repeating node from the secondary data source, change the values to contain
the values for the 'Other' item, and then add the new repeating node to the
secondary data source. You can do something similar as described in this
article:
http://www.bizsupportonline.net/infopath2007/4-way-programmatically-add-row-repeating-table.htm

---
S.Y.M. Wong-A-Ton
http://www.bizsupportonline.net - InfoPath solutions, articles, and tutorials


"Ezack" wrote:

[Quoted Text]
> Hello,
> I need to add an item to a dropdown list box that is populated by a
> secondary data source (web service). I do not need to persist this value to
> the secondary data source. I only need it in the dropdown. It's basically
> an "Other" option. How can I do this?
>
> THanks,
> ezack
RE: Add Item To Dropdown List Box Populated By Secondary Data Sour
Anuma(GGK Tech) 12/31/2008 7:02:10 AM
Hi,
Cna you verify below link to create xml file and bind it to Dropdown. http://www.infopathdev.com/blogs/greg/archive/2005/07/06/Create-a-Cascading-List-from-a-Flat-Data-Source.aspx
--
Anuma Reddy
http://www.GGKtech.com



"Ezack" wrote:

[Quoted Text]
> Can you clarify a little what you mean by this? How do I "create an xml"?
> Can I do this in InfoPath?
>
> -ezack
>
> "Swathi (GGK Tech)" wrote:
>
> > Hi,
> > Create an xml in which it contains both web service data and the ‘other’
> > value. And get the values in to drop down by using this xml.
> >
> > --
> > Swathi Porandla
> > http://www.ggktech.com
> >
> >
> >
> > "Ezack" wrote:
> >
> > > Hello,
> > > I need to add an item to a dropdown list box that is populated by a
> > > secondary data source (web service). I do not need to persist this value to
> > > the secondary data source. I only need it in the dropdown. It's basically
> > > an "Other" option. How can I do this?
> > >
> > > THanks,
> > > ezack

Home | Search | Terms | Imprint
Newsgroups Reader