-
Dropdown boxes
When I setup my filter to use dropdown boxes (dbFilterDropFlds), it is showing all values in the table, not unique ones. For example, I have city as one of the fields and it is showing all 5 entires that have Lincoln, not just one Lincoln. Do I need to add another option somewhere? Here is my code(Yes, I am using sample code from one of the web pages):
Set EmployeeSearch = Server.CreateObject("AspDB.Free"
EmployeeSearch.dbDBType = "SQL"
EmployeeSearch.dbDSN = "DSN=IntranetData; UID=##; PWD=##"
EmployeeSearch.dbFilterDropFlds="Center,,Emplo yeeTable,Center; Division,,EmployeeTable,Division"
EmployeeSearch.dbStartUp="filter"
FFlds = "LastName,Center,Division,heading=<FONT COLOR=green><B>Enter a Last Name "
FFlds = FFlds & " such as D* or select a Center such as Lincoln or "
FFlds = FFlds & "choose a Division, then click the Apply Filter button.</B></FONT><BR><BR>"
EmployeeSearch.dbFilterFlds = FFlds
EmployeeSearch.dbQuickProps="1;;[EmployeeTable];both;4,auto;std"
EmployeeSearch.dbImageDir="../images/"
EmployeeSearch.dbGridDisplayFlds="FirstName, LastName, WorkTelephone, Division, Center"
EmployeeSearch.dbNavigationItem="filter"
EmployeeSearch.ASPDBFree
Thanks!
Bruce
-
Dropdown boxes (reply)
Bruce,
You must add the DISTINCT parameter like this:
x.dbFilterDropFlds="Center,,EmployeeTable,Cent er,,,,,DISTINCT;
See Programming Example BRW-06 at: http://www.aspdb.com/properties
Mark.
------------
Bruce Arp at 4/17/00 11:59:23 AM
When I setup my filter to use dropdown boxes (dbFilterDropFlds), it is showing all values in the table, not unique ones. For example, I have city as one of the fields and it is showing all 5 entires that have Lincoln, not just one Lincoln. Do I need to add another option somewhere? Here is my code(Yes, I am using sample code from one of the web pages):
Set EmployeeSearch = Server.CreateObject("AspDB.Free"
EmployeeSearch.dbDBType = "SQL"
EmployeeSearch.dbDSN = "DSN=IntranetData; UID=##; PWD=##"
EmployeeSearch.dbFilterDropFlds="Center,,Emplo yeeTable,Center; Division,,EmployeeTable,Division"
EmployeeSearch.dbStartUp="filter"
FFlds = "LastName,Center,Division,heading=<FONT COLOR=green><B>Enter a Last Name "
FFlds = FFlds & " such as D* or select a Center such as Lincoln or "
FFlds = FFlds & "choose a Division, then click the Apply Filter button.</B></FONT><BR><BR>"
EmployeeSearch.dbFilterFlds = FFlds
EmployeeSearch.dbQuickProps="1;;[EmployeeTable];both;4,auto;std"
EmployeeSearch.dbImageDir="../images/"
EmployeeSearch.dbGridDisplayFlds="FirstName, LastName, WorkTelephone, Division, Center"
EmployeeSearch.dbNavigationItem="filter"
EmployeeSearch.ASPDBFree
Thanks!
Bruce
-
Dropdown boxes (reply)
Thanks Mark, I found out I had an old copy of the manual, from like Feb 1999 that didn't include the extra options for this.
Bruce
------------
Mark at 4/17/00 4:15:44 PM
Bruce,
You must add the DISTINCT parameter like this:
x.dbFilterDropFlds="Center,,EmployeeTable,Cent er,,,,,DISTINCT;
See Programming Example BRW-06 at: http://www.aspdb.com/properties
Mark.
------------
Bruce Arp at 4/17/00 11:59:23 AM
When I setup my filter to use dropdown boxes (dbFilterDropFlds), it is showing all values in the table, not unique ones. For example, I have city as one of the fields and it is showing all 5 entires that have Lincoln, not just one Lincoln. Do I need to add another option somewhere? Here is my code(Yes, I am using sample code from one of the web pages):
Set EmployeeSearch = Server.CreateObject("AspDB.Free"
EmployeeSearch.dbDBType = "SQL"
EmployeeSearch.dbDSN = "DSN=IntranetData; UID=##; PWD=##"
EmployeeSearch.dbFilterDropFlds="Center,,Emplo yeeTable,Center; Division,,EmployeeTable,Division"
EmployeeSearch.dbStartUp="filter"
FFlds = "LastName,Center,Division,heading=<FONT COLOR=green><B>Enter a Last Name "
FFlds = FFlds & " such as D* or select a Center such as Lincoln or "
FFlds = FFlds & "choose a Division, then click the Apply Filter button.</B></FONT><BR><BR>"
EmployeeSearch.dbFilterFlds = FFlds
EmployeeSearch.dbQuickProps="1;;[EmployeeTable];both;4,auto;std"
EmployeeSearch.dbImageDir="../images/"
EmployeeSearch.dbGridDisplayFlds="FirstName, LastName, WorkTelephone, Division, Center"
EmployeeSearch.dbNavigationItem="filter"
EmployeeSearch.ASPDBFree
Thanks!
Bruce
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|