Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to select a portion of a table???
Message
From
06/12/2003 15:41:08
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
How to select a portion of a table???
Miscellaneous
Thread ID:
00856612
Message ID:
00856612
Views:
84
I have created a form which has two "Site" mmdropdownlists. One of these lists will show all of the items in the Site table. The other needs to see only a subset of the table.

I know SQL, so I don't need to get into SQL commands. What I am looking for is, how do I do this in MM .NET?


e.g. mmDropDownList properties...

mmDropDownList SiteObject1

BindingSource = 'Site'
BindingSourceDisplayMember = 'description'
BindingSourceValueMember = 'code'
BindintType = 'TwoWay'
BindingValueSource = 'Orders'
BindingValueSourceMember = 'Site' <--- field 1

----------------------------------------
mmDropDownList SiteObject2

BindingSource = 'Site'
BindingSourceDisplayMember = 'description'
BindingSourceValueMember = 'code'
BindintType = 'TwoWay'
BindingValueSource = 'Orders'
BindingValueSourceMember = 'Temp_Site' <--- field 2

As you can see, the result will be the same. My system needs to show in SiteObject2 all of the items in Site which does not have the word "Office" in it.

It is obvious that a second table would work, but there must be a way to handle this in MM .NET without making a second table. I have looked at creating a view, but when you select the BindingSource, the view is not allowed.

Any suggestions???
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Next
Reply
Map
View

Click here to load this message in the networking platform