T
Thom Anderson
Hi. I have been asked to create a web tool for my company. Basically an
employee will use a user control (a tree view containing information about
our company) and when they get to where they want on the tree, the will
click a node. The node click event should go to the (database, cache,
session var, xml file (it doesn't matter at this time)) and return a list of
reports that can be run.
That list of reports is dependent on two things. 1 - what they clicked on,
2- who the web user is. The click event already gives me that information,
that isn't the problem.
Here is where I don't know what to do.
The web user will be given a choice of reports to run. Let's assume that
the number of choices is 5. But those 5 choices were dependent on what they
clicked and who the web user is. The back end database is SQL Server and
there are about 100 stored procedures that could be called potentially. But
if you're user A, you might not be allowed to see the 4th column in stored
procedure 65, but user B can see column 4. It kind of depends on what
department they're in.
The report data has to be shown on the screen. A datagrid is what I'd like
to use. But I don't want to create 100+ data grids for every possible
stored procedure resultset (they do not have to return the same number of
columns).
I was thinking the web page could have one data grid and we push the results
of the stored procedure into it at runtime. The formatting of each stored
procedure resultset has to be stored somewhere, be it database or local XML.
What do you think is the best approach?
Here's the other thing I don't know what to do. Each stored procedure
doesn't require the same input parameters. Some have 2, some have 3, some
more. And There has to be a drop-down list built at runtime and the
available parameter options have to be placed in it for the user to select
from. This is tough.
Any suggestions for this data dynamic web page?
employee will use a user control (a tree view containing information about
our company) and when they get to where they want on the tree, the will
click a node. The node click event should go to the (database, cache,
session var, xml file (it doesn't matter at this time)) and return a list of
reports that can be run.
That list of reports is dependent on two things. 1 - what they clicked on,
2- who the web user is. The click event already gives me that information,
that isn't the problem.
Here is where I don't know what to do.
The web user will be given a choice of reports to run. Let's assume that
the number of choices is 5. But those 5 choices were dependent on what they
clicked and who the web user is. The back end database is SQL Server and
there are about 100 stored procedures that could be called potentially. But
if you're user A, you might not be allowed to see the 4th column in stored
procedure 65, but user B can see column 4. It kind of depends on what
department they're in.
The report data has to be shown on the screen. A datagrid is what I'd like
to use. But I don't want to create 100+ data grids for every possible
stored procedure resultset (they do not have to return the same number of
columns).
I was thinking the web page could have one data grid and we push the results
of the stored procedure into it at runtime. The formatting of each stored
procedure resultset has to be stored somewhere, be it database or local XML.
What do you think is the best approach?
Here's the other thing I don't know what to do. Each stored procedure
doesn't require the same input parameters. Some have 2, some have 3, some
more. And There has to be a drop-down list built at runtime and the
available parameter options have to be placed in it for the user to select
from. This is tough.
Any suggestions for this data dynamic web page?