Hello World App

 

The WEB APP can execute directly Beas Script

The concept is near the same as in PHP

 

ProgramGroupScript

 

To send anything to the server, use question mark:

beasscript-logo-small

? Hello world

 

 

 

Click on Button "Update"
Switch to window Tools - Web Server (use opened window, don't reopen)

In this window right mouse click -> Restart HTML Server

 

Note:

For better performance the system use always internal cache.
Without restart html server the system don't reload the page

 

While development disable the cache in chrome
Only then the browser reload all changed scripts

chrome_disable_Cashe

 

 

Working with Placeholders

 

beasscript-logo-small

? <h1>my first Beas App</h1>
? Hello @shtml.username@, Today is @today,yyyy/mm/dd@, Time: @currenttime,hh:mm@<br>
? Your connection session Id: @shtml.session_id@ and you working on Station @shtml.station_id@

 

 

createownapp-firsthelloworld

Use SQL statements to create simple lists

beasscript-logo-small

? <h1>Item List in JSON format</h1>
instance datastore lds
lds=select top 10 "ItemCode","ItemName" from "OITM" where "ItemCode">='FP' "Order" by "ItemCode"
lds.saveas=json
? <br>@value@
// You must ALWAYS destroy objects, otherwise this can have mirror effects to other requests.
destroy=lds

 

 

createownapp-itemlist