Contents

Introduction
Welcome
System requirements
Licensing details
What is the registration
Quick start guide
Using ASPRunnerPro
Working with projects
Navigation bar
Templates
What are templates
Cars
Classified ads
Events
Jobs
Knowledge base
News
Paypal
Real estate
Sporting
Vacation houses
Connecting to the database
Datasource tables
Master-detail relationship between tables
SQL query page
About SQL query designer
Query Designer
SQL
Results
Charts
Creating chart
Chart types
List of chart types
Accumulation chart
Area chart
Bubble chart
Column/Bar charts
Combined chart
Financial OHLC/Candlestick charts
Gauge chart
Line chart
Pie/Doughnut charts
Chart parameters
Chart appearance
Using SQL to shape chart data
Reports
Creating report and setting parameters
Report totals and layout
Choose pages
Choose fields
Fields order and totals
Miscellaneous settings
Security
Login page
User login settings
Advanced security settings
User group permissions
Dynamic permissions
Audit and record locking
Choose theme
Visual Editor
About
Toolbars
Page Elements
Adding ASP code snippet
Adding CAPTCHA
Insert button
Insert Google Map
"View as" settings
"View as" settings: Custom
"View as" settings: Map
"Edit as" settings
Validation types
Lookup wizard
Menu builder
Events
Output directory settings
After you are done
FTP upload
FrontPage Publishing
Advanced topics
Events
Predefined actions
Send a simple email
Send an email with new data
Send an email with old data
Save new data in another table
Save old data in another table
Insert a record into another table
Check if specific record exists
Display a message on the Web page
Redirect to another page
Sample events
Appearance
Add dropdown list box with values for search
Add foldable section
Change cell background color
Change font in dropdown list
Change row background color
Change width of edit box with AJAX popup
Change width of text field on Quick Search panel
Disable record editing
Hide controls on Add/Edit pages, based on logged user name
Redirect to details page after master record was added
Show data from master table on detail view/edit/add page
Show dropdown list of US states if US was selected in country list
Show pop-up window
Make search button return data only when search value was entered
Database
Before deleting a record check if related records exist
Show list of customer orders
Select multiple values from checkboxes or a list field and have them appear as individual database entries
Update multiple records on the List page
Update multiple tables
Dynamic SQL query
Email
Email selected records
Send an email with updated fields only
Send mass email to all users
Upload
Check size and extension of uploaded files
Rename uploaded files
Upload files to users folders
Misc
Check if start date is ealier than end date
Speed up data entry using events
Save user data in session variables
Implementing 'single sign on' feature
Redirect to user info edit page
Global events
Login page
Before process
Before login
After successful login
After unsuccessful login
Before display
JavaScript OnLoad
Menu page
Before process
Before display
Register page
Before process
Before registration
After successful registration
After unsuccessful registration
Before display
JavaScript OnLoad
Change password page
Before process
Before change password
After password changed
Before display
JavaScript OnLoad
Remind password page
Before process
Before password reminder sent
After password reminder sent
Before display
JavaScript OnLoad
After application initialized
Menu item: Modify
Table events
Add page
Before process
Before record added
After record added
Before display
JavaScript OnLoad
Copy page
OnLoad
Edit page
Before process
Before record updated
After record updated
Before SQL query
Before display
JavaScript OnLoad
List page
Before process
Before record deleted
After record deleted
After group of records deleted
Before SQL query
Before record processed
After record processed
Before display
JavaScript OnLoad
Get Row Count
Custom Query
Custom record fetch
Report page
Before process
Before display
Before SQL query
JavaScript OnLoad
Chart page
Before process
Before SQL query
Before display
JavaScript OnLoad
Update chart settings
Printer-friendly page
Before process
Before SQL query
Before record processed
After record processed
Before display
JavaScript OnLoad
View page
Before process
Before SQL query
Before display
JavaScript OnLoad
Search page
Before process
Before display
JavaScript OnLoad
Import page
Before record inserted
Before import started
After import finished
Export page
Before process
Before SQL query
JavaScript OnLoad
Before record exported
After table initialized
Page life cycle overview
Common event parameters
Programming topics
ASPRunnerPro session variables
ASPRunnerPro templates
Data Access Layer
Debugging tips
How to calculate values on the fly
How to control Inline Add/Edit functionality from script
How to perform Add/Edit via SQL
Javascript API
Master-details relationships
runner_mail function
Template files processing rules (Files.txt)
Template language
Troubleshooting "Operation must use an updateable query" errors
Useful functions and links
Using JOIN SQL queries
Connecting to database
Connecting to MS Access database
Connecting to MS SQL Server database
Connecting to FoxPro database
Connecting to MySQL database
Connecting to Oracle database
Connecting to MS Excel database
Connecting to CSV or Text file
Publishing ASP application to the remote Web server
Using third party FTP client to publish ASP pages to the remote Web server
Using FrontPage to publish ASP pages to the remote Web server
Demo account
What is the Demo Account?
Terms and Conditions
Enterprise Edition
Online report/chart builder
Online report/chart builder v2.0 - Installation notes
Creating web report
Creating web chart
Internet Information Services (IIS)
How to add external css/asp/js files
ODBC
AJAX-based Functionality
Multilanguage support
Stylesheets
Rich Text Editor plugins
Web interface guide
Frequently Asked Questions
Error: Cannot update. Database or object is read-only
Error: Data provider could not be initialized
Error: Data type mismatch in criteria expression
Error: Invalid use of Null: 'Replace'
Error: I enter correct login and password but receive Invalid Login error. I use SQL Server.
Error: Login failed for user 'MACHINE_NAME\IUSR_MACHINE_NAME'
Error: Operation must use an updateable query.
Error: Row cannot be located for updating
Error: Specified driver could not be loaded due to system error 5 (Oracle in OraHome92)
Error: Syntax error in UPDATE statement.
Error: Syntax error in INSERT INTO statement
Error: The Microsoft Jet database engine cannot open the file (unknown).
Error: Too many fields defined
Error: Unable to open registry key 'Temporary (volatile) Jet DSN for process ...
How to work with Access database stored on the remote computer?
How can I add new ODBC Datasource
I cannot find ODBC Administrator applet on Windows 2000 machine
I cannot connect to my Excel (Access) database
Reserved Access, T-SQL, ODBC keywords.
Where can I download latest ODBC drivers
Order ASPRunnerPro online

 
Home
ASPRunner Professional 6.2 manual
Prev Page Next Page
 
 

Query Designer tab

 

Query Designer gives you the ability to use the simple graphical interface to construct SQL statements.

yellowbulbNote: if you modify default SQL query, make sure that key column(s) are included into fields list. This is required to provide edit/delete/view functionality.

qd_first

To switch between tables use Tables list panel on the left.

What is supported

· Inner joins, outer joins

To add join click on the Add Table button, select table and then drag and drop any field from first table to the joined table. To setup join type click on the line between tables, select foreign keys on the Table link properties dialog in both tables and choose join type.

qd_join1

qd_join2

More info on using JOIN SQL queries.

SQL query:

SELECT

carsmodels.id,

carsmodels.model,

carsmodels.make

FROM carsmodels

INNER JOIN carsmake ON carsmodels.make = carsmake.make

yellowbulbNote: It's recommended to use aliases for fields from joined tables to avoid confusion when two fields from different tables have the same name.

· Calculated fields

To add calculated fields use empty grid below all field names:

qd_calculated

SQL query:

SELECT

id,

Make,

Model,

YearOfMake,

Picture,

Horsepower,

EPACity,

Price,

color,

features,

price*0.1 AS discount

FROM carscars

· WHERE clause

You can add where clause in the Filter column. If you need to add two or more conditions use Or... columns.

qd_where

SQL query:

SELECT *

FROM carscars

WHERE YearOfMake =2004

For more complicated queries wrap condition by brackets:

SELECT *

FROM carscars

WHERE ( YearOfMake =2004 OR YearOfMake =2005 )

· ORDER BY clause

If you'd like to specify default sorting order on the list page (ascending or descending) select Sort Type in the corresponding column for necessary fields.

· GROUP BY clause

To add GROUP BY clause click Group By button and select one of groupping function in Group By column.

qd_orderby

SQL query:

SELECT

Make,

Model,

AVG (YearOfMake)

FROM carscars

GROUP BY id, Make, Model

ORDER BY Make

What is not supported

· Stored procedure calls (Workaround: create a view that calls stored procedure and use this view as a datasource)
· Update/Delete/Insert/Create queries
· Unions
· DISTINCT keyword

yellowbulbNote: If your query for some reason doesn't work create view/query in your database and use this query as a datasource in ASPRunnerPro.

1. Run MS Access and create new query. Switch to SQL view.
2. Type your SQL query there.
3. Save this query as qryNewQuery.
4. Run ASPRunnerPro and use qryNewQuery as datasource table.

 

 

Converted from CHM to HTML with chm2web Standard 2.83 (unicode)