Hello everyone, thanks for taking a look and possibly helping me solve this headache. I'm using DMX 2004, SQL 2000, and VB.NET
I've setup an Intranet page using a simple form and a textbox to search for a specific security change request. This page has multiple datasets, one for each departments security list, each dataset has the 'Show Record if dataset is NOT empty' server behavior applied.
The problem is that no matter what record I search for, every single dataset shows up.
For example, lets say I'm searching for record '97', which happens to be a test entry from engineering. I get the appropriate security group list for engineering, but I also get all the other department lists as well, although they are blank whereas the engineering security list is populated.
Why is this??
Each dataset references the same texbox to get their value - would this cause a problem? Also, they all reference the same database table, just specific columns - is this a problem??
What I shoud see once the record has been found are the values from ds_scRequests(populated) and ds_dep1(populated) but nothing else.
What the page is currently returning is ds_scRequests(populated)
ds_dep1(populated)
ds_dep2(empty, but showing)
ds_dep3(empty, but showing)
ds_dep4(empty, but showing)
ds_dep5(empty, but showing)
...
ds_dep10(empty, but showing)
Any ideas as to how I can get only ds_scRequests and ds_dep1 to show up?
Thanks for the help, it's much appreciated!
Steve
I've setup an Intranet page using a simple form and a textbox to search for a specific security change request. This page has multiple datasets, one for each departments security list, each dataset has the 'Show Record if dataset is NOT empty' server behavior applied.
The problem is that no matter what record I search for, every single dataset shows up.
For example, lets say I'm searching for record '97', which happens to be a test entry from engineering. I get the appropriate security group list for engineering, but I also get all the other department lists as well, although they are blank whereas the engineering security list is populated.
Why is this??
Each dataset references the same texbox to get their value - would this cause a problem? Also, they all reference the same database table, just specific columns - is this a problem??
Code:
ds_scRequests
SELECT scrid, senderName, depName, empNameF, empNameL, ...
FROM myDB
WHERE scrid = ? [COLOR=red](? = Textbox Form Variable)[/color]
/* --- Department Security List Datasets --- */
ds_dep1
SELECT secName1, secName2, secName3, ...
FROM myDB [COLOR=red](same database table as above)[/color]
WHERE scrid = ? [COLOR=red](same form variable as above)[/color]
ds_dep2
SELECT secName4, secName5, secName6, ...
FROM myDB [COLOR=red](same database table as above)[/color]
WHERE scrid = ? [COLOR=red](same form variable as above)[/color]
(one dataset for each department)
What I shoud see once the record has been found are the values from ds_scRequests(populated) and ds_dep1(populated) but nothing else.
What the page is currently returning is ds_scRequests(populated)
ds_dep1(populated)
ds_dep2(empty, but showing)
ds_dep3(empty, but showing)
ds_dep4(empty, but showing)
ds_dep5(empty, but showing)
...
ds_dep10(empty, but showing)
Any ideas as to how I can get only ds_scRequests and ds_dep1 to show up?
Thanks for the help, it's much appreciated!
Steve