-
Filter and 'both' mode control using Frames
A Happy New Millenium to everyone!
I am evaluating ASP-db Pro - what a great product!
I am developing a web page that integrates a database with a GIS. I have
the GIS environment in one frame (using frames because GIS repaints are
relatively expensive) and ASP-db in a second frame.
Using the excellent MagicCell feature the ASP-db frame includes
hyperlinks to tell the GIS frame to display a corresponding feature.
Similarly the GIS frame can use targetted URLs to tell the ASP-db frame
to display a corresponding record, but this raises two questions:
1. With 'both' mode can the initial mode be controlled? (In the above
case I want to force it to be a form.)
2. Can an initial Filter be defined? At present I am 'tweaking' dbSQL
if an ID has been passed from my GIS frame, eg:
SQL = Request.QueryString("Gis_id"
If SQL <> "" Then SQL = " WHERE id='" & SQL & "'"
SQL = "SELECT * FROM table" & SQL
This kind of works if the ASP-db frame happens to be displaying a grid
at the time, it reduces the grid to the required row. This can then be
displayed as a form, and the Grid or Filter buttons can be used to
obtain other rows in the table if required.
However if the ASP-db frame happens to be displaying a form at the time
(which is what I really want for this particular function), the above
does not work at all: the record currently displayed in the form does
not change to the one requested in the SQL.
Advice to resolve these queries will be appreciated.
Regards,
David Archer
-
Filter and 'both' mode control using Frames (reply)
David,
1. This feature is in the advanced version (version Y2K) of ASP-db (X.dbOptions="StartBoth=form". If neccessary, can be implemented in the Pro and EP versions. Check with support's example bank to see whether there is an immediate solution with the Pro version first.
2. ASP-db doesn't use ADO's filtering as ADO's filtering doesn't work well and not acceptable in multi-users environment. ASP-db uses SQL to perform filtering and editing which is more reliable. The method you are using is the same. You are on the right track.
FK
------------
David Archer at 12/31/99 11:55:01 PM
A Happy New Millenium to everyone!
I am evaluating ASP-db Pro - what a great product!
I am developing a web page that integrates a database with a GIS. I have
the GIS environment in one frame (using frames because GIS repaints are
relatively expensive) and ASP-db in a second frame.
Using the excellent MagicCell feature the ASP-db frame includes
hyperlinks to tell the GIS frame to display a corresponding feature.
Similarly the GIS frame can use targetted URLs to tell the ASP-db frame
to display a corresponding record, but this raises two questions:
1. With 'both' mode can the initial mode be controlled? (In the above
case I want to force it to be a form.)
2. Can an initial Filter be defined? At present I am 'tweaking' dbSQL
if an ID has been passed from my GIS frame, eg:
SQL = Request.QueryString("Gis_id"
If SQL <> "" Then SQL = " WHERE id='" & SQL & "'"
SQL = "SELECT * FROM table" & SQL
This kind of works if the ASP-db frame happens to be displaying a grid
at the time, it reduces the grid to the required row. This can then be
displayed as a form, and the Grid or Filter buttons can be used to
obtain other rows in the table if required.
However if the ASP-db frame happens to be displaying a form at the time
(which is what I really want for this particular function), the above
does not work at all: the record currently displayed in the form does
not change to the one requested in the SQL.
Advice to resolve these queries will be appreciated.
Regards,
David Archer
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
|
|