LEXI Promo BR Web Scripting Bridge
BR Web Scripting Bridge - Getting Started PDF Print E-mail
Written by Chris Shields   

Introduction

I started working with web technology for ADS in 2006. This caused me to start to consider how I might be able to make BR run on the Web. After a two years of pondering this question, I finally sat down to put my ideas into practice. The result was the BR Web Scripting Bridge. Last year I gave a presentation to illustrate the power of Web as an application platform. This year I want to take you through the process, step-by-step, so you can start building your own web applications.

Setting Up Your Web Server

The first step is to install the application stack on your computer. This consists of at least two essential components, Apache and PHP. These programs are widely available for all operating systems. We are going to focus on a simple workstation setup. This is the same system I use for doing all my development for eventual deployment on a production server. We are going to start with a prepackaged distribution called WampServer because it is easy to setup and get right into programming.

Your system may produce various warnings you when the service tries to start. This is normal and should be allowed.

  • Run the WampServer installer located on the [where will the files be stored?]. You can also download it at www.wampserver.com/en/.
  • Select an install location
  • Select the default browser executable
  • Make sure the 'Start Wamp Server Now' box is checked and finish the install.
  • At this point you should have an icon in the System Tray indicating the server is running. Enter the following address into your browser: http://127.0.0.1/

The IP address points to the local computer on port 80. This should bring up the default page provided by the Wamp Server. You now have a fully functional web server that supports many of the most popular web applications like MediaWiki and phpBB.

Installing the BR Web Scripting Bridge

  • 1.Unzip the 'bridge_[version].zip' file
  • 2.Left-click the WampServer icon in the system tray and select 'www directory' from the menu.
  • 3.Copy the 'demo' to [install location]\www
  • 4.Put a valid 4.2+ brserial.dat file into the 'br' folder located within the demo files.
  • 6.Enter the following address into your browser:
  • http://127.0.0.1/demo/
  • 7.Select the 'demo' project from the list.You should now see the Bridge demo page running on your own computer.
  • 8.Select one of the example programs to ensure the Bridge is functioning properly.

Writing A Hello World Program

Now we want to create a simple program that prints some text to the page. We'll start by creating a new text file named hello.brs and adding a single line to it.

1000 print "Hello World"

Now we browse to this page by entering the following URL into our browsers

http://127.0.0.1/demo/adapter.php?BR_SOURCE=hello.brs
 

BR Forum Annoucements

FileIO

The FileIO library is a powerful BR library designed to aid the BR programmer in Read and Write access in a revolutionary way that brings much of the convenience of SQL to the BR Programmer. If FileIO is used properly, your File Layouts become the source for your BR Form Statements and your read/write access. Using FileIO also gives the BR Programmer access to a whole host of powerful development tools.

ScreenIO

The ScreenIO library is a powerful library that builds on FileIO. ScreenIO is the fastest way we know of to develop business software.

A ScreenIO license is now included in the purchase of your BR license, in all copies of BR 4.32c and higher. Contact Gordon Dye of Business Rules Corp at gordon.dye@brulescorp.com , or (248) 619-0400 to update your BR license to the latest version. If you already have the appropriate BR license, then simply download ScreenIO from the link above! To use ScreenIO in older versions of BR, a special license may be purchased from Sage AX. For information, contact Gabriel Bakker of Sage AX at gabriel.bakker@gmail.com .

Lexi

Entering line numbers is a constant distraction to the flow of creative thought. Programmers shouldn't have to concern ourselves with counting line numbers when we have computers to count for us. Allow LEXI to handle these cumbersome details for you. Enjoy better focus and greater productivity today.

Web Scripting Bridge

The BR Web Scripting Bridge is a free tool that enables the BR programmer to write interactive web pages that seamlessly integrate with your existing software suite. See the Sourceforge Page below for more information about the BR Web Scripting Bridge.

Audit BR

Audit BR is a powerful addon to FileIO that creates an Audit Log and can compare your BR data files between any two points in time. Using Audit BR will make your debugging and development more effecient, and it can also be used to find problems and fix them before they become bigger.