Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / March 2006

Tip: Looking for answers? Try searching our database.

Drop-downs and data sources

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Philip Colmer - 13 Mar 2006 17:50 GMT
I've got a purchase request form that has some drop-downs populated from
data sources. For example, the line items have got:

* Department
* Account code

When the user picks "Department", the SQL query for Account Code is updated
so that only account codes valid for the selected department are returned.

I've now hit a problem. If a user has got a line item and selected the
department and account code, that is all fine. If the user then inserts a
second line item and picks a different department where the first account
code isn't valid, the display refreshes and instead of getting the textual
name of the account code, the value is displayed instead.

I understand why this is happening. The query for the data source is being
updated for the new line item, the account code isn't valid in the new
department so the lookup can't be performed so IP defaults to showing the
value instead.

What I need, though, is to find a solution where the text will always be
displayed. I've come up with some options but I'm not sure how viable they
might be.

Option 1: create fresh data sources for each line item, thus ensuring that a
given SQL query is unique to that row.
Option 2: somehow display static representations of the data, i.e. changing
the drop-down to a text field so that the name is displayed.

Does anyone else have any suggestions, or thoughts on the options I've come
up with?

--Philip
Bojana Marjanovic [MSFT] - 16 Mar 2006 21:06 GMT
I'm not sure why your first row should be affecting the second row. The only
reason I can see this happening is if you actually have the Department and
Account Code fields bound to the secondary data source and not just getting
the drop-down values from it.
Is this the case?
-Bojana

> I've got a purchase request form that has some drop-downs populated from
> data sources. For example, the line items have got:
[quoted text clipped - 30 lines]
>
> --Philip
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.