PHPRunner 8, ASPRunnerPro 9 and ASPRunner.NET 8 added an option to use multiple database connections in single project. This article explains how you can access data from multiple databases in your events.
Fairly often we want to split long forms into several steps letting users fill a few fields on each step. Besides making a long form easier to fill out for your users you can also save partial results between pages.
Here is how this can be done in PHPRunner, ASPRunnerPro and ASPRunner.NET.
Lets assume we have Cars table with about 20 fields and we want to split Add/Edit pages into three steps.
1. Create two custom views
Create two custom views (Cars1 and Cars2) based on Cars table
Date/time calculations can be perform either on database side or in your server side language (PHP, ASP, C#) or even in Javascript. We’ll try to cover all those scenarios.
When copying and pasting code from this article to your application replace table name (mytable) and field names (posted, dob).
MySQL
Calculating age
SELECT DATE_FORMAT(NOW(), '%Y') - DATE_FORMAT(dob, '%Y') - (DATE_FORMAT(NOW(), '00-%m-%d') < DATE_FORMAT(dob, '00-%m-%d')) from mytable AS age
30 days before date
select posted, DATE_SUB(posted, INTERVAL 30 DAY) from mytable
Date plus 30 days
select posted, DATE_ADD(posted, INTERVAL 30 DAY) from mytable
Difference between two dates in days
select posted, DATEDIFF(now(), posted) from mytableContinue Reading "Date/time handling in web applications"
Happy Halloween everyone! Just a little Halloween fun project. To make your website more interesting you can choose to display a random background image for each visitor. Here is how it’s going to look: How to add this functionality to your project. 1. Download a set of sample images and unzip it to the output folder keeping directory structure. This should create a folder named backgrounds with a few images in there. You are free to add more images or to remove any you don’t…Continue Reading “Random page background: Halloween edition”
PHPRunner 8.0/ASPRunnerPro 9.0/ASPRunner.NET 8.0 are here. Purchase info and download links.
Click any image to see the full size screenshot.
Major new features
- Dashboards
- Multiple database connections (part of Enterprise Edition)
- Import page with columns mapping
- New Printer page/PDF options (portrait/landscape, fit to page, scale)
We are working on the next version of all our code generation products. We plan to release all three products at the same time and expect all of them to carry the same set of functionality.
Download PHPRunner 7.1 preview
Starting with this update we will offer both 32-bit and 64-bit versions of our software. 64-bit version will solve out of memory issue that may occur while working with large projects having hundreds of tables and thousands of fields.
Continue Reading "New features in PHPRunner 7.1, ASPRunnerPro 8.1 and ASPRunner.NET 7.0"
Major new features
-
Add CSS rules manually in Style Editor to build professionally looking pages. Take a look at this customized login page: page background, input controls and Facebook button appearance were adjusted via CSS rules added in Style Editor. Click this image to open sample app in browser.
We are glad to announce a first public preview of ASPRunner.NET 6.0. This is a not a stable release, feel free to use it for evaluation purposes. We expect final version to be available in a few weeks. ASPRunner.NET 6.0 is built on the top of MVC3 framework. Download links: http://asprunner.com/files/asprunnernet60-trial-setup.exe http://asprunner.com/files/asprunnernet60-trial-setup.zip Here is the list of features that are not implemented yet in this preview. All features below will be available in the final version. Right now SQL Server and MySQL databases are supported….Continue Reading “ASPRunner.NET 6.0 preview”
This tutorial shows how to use conditional formatting in PHPRunner/ASPRunnerPro projects.
Our first example illustrates the profitability of the product line where we have a list of products with their respective monthly profit figures. All positive numbers are displayed in black and all negative in red. Changing the font color of this field based on its value helps the viewer immediately spot the losing products and take necessary actions.