MS4BIĀ®

MS4BI HELP 2022

by MS4script
01-Introduction
Preface & Copyright
Getting started
Informations + Cmd/param Server
Demos Simple
02- Declarations
Structure
Type
03- Instructions
Conditions if,do,while..
Char/Text functions Char or Text..()
Get + Include functions Get, Include..
String functions String# (hashtag)
Date-Time Day, Time, Year.
Display
Call
Formulas Complex
04- Database
Connector Ado, Odbc, Dsn, SAP, Ms4
DB Connect Create, delete
Import DataSource Import, Consolidation
Administration Admin, User
05- Sql-Query
Sql
Query Form : BTS,Plus
Grid option
06- Charts
Forms Plus, Win, Image, Excel, Morris...
Pie Std, Donut, 3D...
Bar Std, Stack, Line, Area, Plot
Radar
QrCode, Gauge
Step, Stock...
,Google,Leaflet... GeoMap
,Gantt,Timeline,Org.
DrawWindow [web]
07- Dashboard
Form tab, no tab
Responsive UI
08- Report
Report Hierarchy
Report Design
09- Filters
Dialogue + Call
10- Menus
Menu Design
Menu Frameset
Menu Custom
11-UI : Responsive
Tables Responsive,Frame,position
List Group
Text
Panel Header, body, Footer
Button Button, Progress Bar
Icon & Button
Collapse Group, Panel
Notifications
12- Encryption
Encrypt
Decrypt
13- Windows
Dialogue
Picture, Frame, Button..
MsgBox
Grid

Designer

00-OverView
01-Transaction
02-Setting
05-Import
10-Formula
15-Report-Part1
16-Report-Part2
20-Query-Part1
21-Query-Part2
25-Report-Query-Style
30-QrCodeImage
31-Windows
32-Frame
40-TabStrip
50-Collapse
60-BeginForm
63-Input-SubmitBox
70-Input-Select
71-Input-Insert
72-Input-Update
73-Input-Delete
75-Input-Query
77-ListComBo
81-Button-Link
82-Button-DataList
86-Sticky-Label
91-Insert-PhpJsHtml
92-Insert-MS4script
15- Css, html, Php, js.
Insert Native language Begin_sw..End_Sw
16-Install + tools.
Installation & Configuration This Menu
Generate Native... Php, Html, js..
Code Generator Ms4 Script
MarkDown Ms4 Script
Source Code Menu Help This Menu
written with ms4script
      

BASIC HELP : MS4BI by MS4script

2022 version 1.10

Chapter 5 : SQL and QUERIES

KEYWORD : DRAWGRID

Definition

Creates a WEB grid to interrogate an MS4 DB database

Syntax

   	
	  FormXXX   : DrawGrid, 
	   (optional)Option : BEGIN   Attributes  END
	 title : string or literal  
 	  use   View or Table  ("['your MS4BI DB tablename']")   ;
  	
	
-Option : FormPlus (ONLY)
BEGIN
style :
$MOONLIGHT or $BLACK or $WHITE or $BLUE or $METRO or $SILVER ,
height : xxx (numeric) ,
EXPORTEXCEL : yes or no ,
pagesize : xx (numeric),
popEdit : yes or no ,
ColumMenu : yes or no ,
Pageable : yes or no ,
Resizable : yes or no ,
Sortable : yes or no ,
ExpandFirst : yes or no ,
filterable : yes or no
END
NB :
yes=1
no =0

Example 1

  		   
  DBconnect{Ms4DB}(LEnvDemoExcelDB); 
   
  FormPlus : DrawGrid 
  Option  : 
BEGIN 
    Style     :$METRO ,
    height    :450,  
    pagesize  :20,
    ColumMenu :yes,
    Pageable  :yes,
    Resizable :yes,
    Sortable  :yes,
    ViewResult:yes,
    filterable:yes
END  
title :"-t01-=014     CHART GRID : BUSINESS EMPLOYEE 2011 Dollars and PRODUCTS   " use   View  ("[ms4EmplTotalBusiness2011]")  ;
 
	

Grid and View/Table

CHART GRID : BUSINESS EMPLOYEE 2011 $MS4VIEWDBTMP

Toolbar : Export

Remarks

IncludeChart.h :
THEME :
CONSTANT_STRING :
theme Form Plus (ONLY)
$theme_default "default",
$theme_bts "bootstrap",
$theme_metro "metro",
$theme_moonlight "moonlight",
$theme_blueopal "blueopal",
$theme_silver "silver",
$theme_uniform "uniform",
$theme_flat "flat";

Prerequisites

DBCONNECT {driver} ("['your MS4BI DB name']")

Remarks

Only MS4 DB
Only FormPlus, FORMMS4, FormPchart ,FORMEXCEL (only office 97 'xls')

Example 2 $MS4DBTMP : Make a group selection: the first 10 employees

  
/* select data : */   
 DBconnect{Ms4DB}(LEnvDemoExcelDB); 
 Ms4_query{ms4db}  option : into  $MS4DBTMP 
 (" SELECT OrderID ,CustomerID,	EmployeeID,	OrderDate,	RequiredDate,	ShippedDate "+
  " from   [ms4EmplConsolidationBusiness]  order by EmployeeID desc limit 10 " ) ;  
  
  DBconnect{Ms4DB}($MS4DBTMP);
  FormMS4 : DrawGrid , title :"-t01-=024   -CHART GRID MS4 : BUSINESS EMPLOYEE 2011 $MS4VIEWDBTMP   "
  use   View  ($MS4VIEWDBTMP)   ;
	

Remarks

MS4QUERY : option : into $MS4DBTMP...."select data "
DBconnect { Ms4DB} ($MS4DBTMP) use View ($MS4VIEWDBTMP)
FormXXX : DRAWGRID...........

See also

MS4_QUERY:WEB, MS4_QUERY:WIN, DASHBOARD
Examples :
driver:\MandragorePlanete\MS4BI\02-DEMO-DESKTOP-BI-EXCELandSTANDARD\2-QUERIES
driver:\MandragorePlanete\MS4BI\zConnectors-ADO, ODBC, SQLITE3



KEYWORD : DRAWGRID and COUNT, SUM , AVERAGE

Definition

- Automatic calculation of sums, averages, or numbers of records.
- Creates a WEB query and GRID to interrogate an MS4 DB database based on the selection.

Syntax FormMS4 :SUM OR AVERAGE OR COUNT

   	
	  FormMS4   : DrawGrid, title : string or literal  
	  Option  : 
   BEGIN 
     Footer : Sum  or /and Average or /and Count
   END  
	  use   View  ("['your MS4BI DB tablename']")   ;
  	
	

Example

  		   
   Basic  QueryView : ms4EmplBusinessDollars20111213  " >  ,
             
            FormMS4 :  DrawGrid , title : "" 
             Option  : 
              BEGIN 
                 Footer :  Sum, Count,Average 
            END 
             use View  ("ms4EmplBusinessDollars20111213") 
            ,
          > /* end panel */    
       >/* end Rwd_Col */    
     >;/* end Rwd_Row */ 
	

Grid and View/Table

Basic QueryView : ms4EmplBusinessDollars20111213

LASTNAME BUSINESSID2011 BUSINESSID2012 BUSINESSID2013
Davolio 38789.00 90061.98 65781.13
Fuller 22834.70 74958.60 78108.96
Leverling 19231.80 110988.61 82030.89
Peacock 53114.80 139257.70 57594.95
Buchanan 21965.20 32595.05 21007.50
Suyama 17731.10 45792.00 14475.00
King 17864.80 66689.14 56362.05
Callahan 23161.40 59776.52 50063.11
Dodsworth 11365.70 29577.55 41280.75
,
LASTNAME BUSINESSID2011 BUSINESSID2012 BUSINESSID2013

*TOTAL

226058.50
649697.15
466704.34

**COUNT :

9

***AVERAGE

25117.61
( 226058.50/9)
72188.57
( 649697.15/9)
51856.04
( 466704.34/9)
Source & Copy FormMS4 DrawGrid

Prerequisites

DBCONNECT {driver} ("['your MS4BI DB name']")

Remarks

only MS4 DB
only FORMMS4

See also

MS4_QUERY:WEB, MS4_QUERY:WIN, EDITLINE(Ms4biDesigner), SelectField(Ms4bi Designer)
Examples :
driver:\MandragorePlanete\MS4BI\02-DEMO-DESKTOP-BI-EXCELandSTANDARD\2-QUERIES

Interested in joining us? contact@mgplanete.com
The Mg Planete team


Copyright 2022 by Mandragore Planete

the official sites :
mgplanete.com
getms4bi.com
demos.ms4bi.com
help.ms4bi.com
ms4script.com

Download

official site :
getms4bi.com

Our purpose : Keep it simple !


written with ms4script
  • help 01.010.2022.8

MS4BI in 5 minutes