MS4BI HELP 2019

by MS4script
01-Introduction
Preface & Copyright
Getting started
Demos Simple
02- Declarations
Structure
Type
03- Instructions
Conditions if,do,while..
String functions Str..()
Get + Include functions Get, Include..
Date-Time Day, Time, Year.
Display
Call
Formulas Complex
04- Database
Connector Ado, Odbc, Dsn, SAP, Ms4
Connect DB Create, delete
Import DataSource Import, Consolidation
Administration Admin, User
05- Sql-Query
Sql
Query Form : BTS,SHOW
Grid option
06- Charts
Forms Show, 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.
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 Special
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
14- Cloud.
Account Open
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 2019 version 1

Chapter 6 : CHARTS

KEYWORD : FORMSHOW : DRAWPIE

Definition

Based on the FORMSHOW graphics library, displays a classic or doughnut pie chart.

Syntax

 	
	Simple :
	
	FormShow :	DrawPIE ,  title : string/literal , ANGLE : integer , 
	  TYPE : integer, FORMAT: string/literal  use View  ("Table Name or $MS4VIEWDBTMP ");
	  
	or 
	
	FormShow : optional theme : string/literal     
	DrawPIE , optional height : integer, 	width :integer , 
	title :string/literal , ANGLE : integer , 
      TYPE : integer, FORMAT: string/literal  use View  ("Table Name or $MS4VIEWDBTMP ");
	
	

Example 1

 		   
#includeSYSpathMS4BI "\zInclude\includeChart.h"  
 
 ConnectDB{Ms4DB}(LEnvDemoExcelDB); 
 
 FormShow :	DrawPIE , 
 title :"Example PIE Form" , ANGLE :120 , 
 TYPE : $STANDARD, FORMAT: "$"  use View  ("[ms4EmplTotalBusiness2011]");
	  or
 FormShow : theme : "blueopal"    DrawPIE , height : "430",  width :"730", title :"" , ANGLE :120 , 
  TYPE : $STANDARD, FORMAT: "pers"  use View  ("[ms4TotalPopulByProvince]"); 
	

Example 2 : $MS4DBTMP : NB: This example can be applied to any and all chart types

 		
text :   tabname :="ms4EmplTotalBusiness2011"  ,varname := "%a%"; 
   
ConnectDB{Ms4DB}(LEnvDemoExcelDB); 
  Ms4_query{ms4db}  option : into  $MS4DBTMP 
  (" SELECT  *    from  [%s]   as a  where a.LASTNAME LIKE '%s' ",tabname,varname) ;

  ConnectDB{Ms4DB}($MS4DBTMP);
	FormShow :	DrawPIE , title :" Business 2011 by  EMPLOYEE " , ANGLE :120 ,
	TYPE : $STANDARD, FORMAT: "$"  use   View  ($MS4VIEWDBTMP)   ;
 	

Prerequisites

- include header file : driver:\MondaySoftware\MS4BI\zInclude\IncludeChart.h
- ConnectDB{Ms4DB} (DB Name )

Remarks

IncludeChart.h :
THEME :
CONSTANT_STRING :
**theme Form Show (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";
visualise chart themes for FORMSHOW

Chart type : (FORMSHOW ,FORMIMAGE, FORMMORRIS)
integer : $STANDARD := 1 ;
integer : $DONUT := 2 ;


MS4SCRIPT : only ADD-ON MS4BI

See also

ToolBarExport, MS4_QUERY $MS4VIEWDBTMP



KEYWORD : FORMIMAGE : DRAWPIE

Definition

Based on the FORMIMAGE graphics library, displays a classic, doughnut or 3D pie chart.

Syntax

 	
	Table : 
	
	FormImage :	DrawPIE, title : string/literal, 
		ImageArea : (height) integer, (width) integer ,
		Radius :integer, POSITION :  horizontal coordinate integer, verticle coordinate integer ,  
	    TYPE : integer, FORMAT: string/literal  use View  ("Table Name or $MS4VIEWDBTMP ");
	or
	Array :
	FormImage :	DrawPIE, title : string/literal, 
		ImageArea : (height) integer, (width) integer ,
		Radius :integer, POSITION :  horizontal coordinate integer, verticle coordinate integer ,
	    TYPE : integer, FORMAT: string/literal
		use  
 		array Label : literal    : literal 1,literal 2,3,4 .....,
 		array value : literal    : integer 1,integer 2,3,4 .....;
	 
	

Example

 		   
 #includeSYSpathMS4BI "\zInclude\includeChart.h"  
 
 BEGIN /* table */
 	   ConnectDB{Ms4DB}(LEnvDemoExcelDB); 
		FormImage :	DrawPIE, title : " Business 2011 by  EMPLOYEE " , 
		ImageArea : 800, 500 ,
		Radius :120,POSITION :360, 270 , TYPE : $STANDARD, FORMAT: "dollars$"  
  END
 ** or ARRAY
  	FormImage :	DrawChartPIE, title : " TITLE X XXXXXXXXXXXXXXXXXXXXX " , 
		ImageArea : 800, 500 ,
		Radius :120, POSITION :360, 270 , TYPE : $STANDARD, FORMAT: "UNIT % $ etc.."  
		use  
 		array Label : "Labels" 		:"A0","B1","C2","D3","E4","F5","G6","H7","I8","J9",
 		array value : "Application " 	: 50,2,3,4,7,10,25,48,41,10;

	  

Prerequisites

- include header file : driver:\MondaySoftware\MS4BI\zInclude\IncludeChart.h
- ConnectDB{Ms4DB} (DB Name )

Remarks

IncludeChart.h :

Chart type :
integer : $STANDARD := 1 ;
integer : $DONUT := 2 ;
integer : $3DPIE := 3 ;

MS4SCRIPT : only ADD-ON MS4BI

See also

ToolBarExport, MS4_QUERY $MS4VIEWDBTMP



KEYWORD : FORMMORRIS : DRAWPIE

Definition

Based on the FORMMORRIS graphics library, displays a classic or doughnut pie chart.

Syntax

 	
  
     FormMorris :	DrawPIE , 
	 title : string/literal ,  
	  TYPE : integer, FORMAT: string/literal  use View  ("[Table Name or $MS4VIEWDBTMP]");
 	  
	

Example

 		   
 #includeSYSpathMS4BI "\zInclude\includeChart.h"  
 
  ConnectDB{Ms4DB}(LEnvDemoExcelDB); 
 
     FormMorris :	DrawPIE , 
	 title :"-bkb-   Example Morris Form PIE" ,  
	  TYPE : $DONUT, FORMAT: "$"  use View  ("[ms4EmplTotalBusiness2011]");

	  

Prerequisites

- include header file : driver:\MondaySoftware\MS4BI\zInclude\IncludeChart.h
- ConnectDB{Ms4DB} (DB Name )

Remarks

IncludeChart.h :

Chart type :
integer : $STANDARD := 1 ;
integer : $DONUT := 2 ;


MS4SCRIPT : only ADD-ON MS4BI

See also

ToolBarExport, MS4_QUERY $MS4VIEWDBTMP



KEYWORD : FORMEXCEL : CHART

Definition

Based on the FORMEXCEL graphics library, displays charts in PIE, BAR, SCATTER, RADAR etc. format.

Syntax

 	
 FormExcel : Chart(chart type: integer) ,  title :  string/literal   use  View  ("[Table Name or $MS4VIEWDBTMP]"); 
		or
 FormExcel : Chart(chart type: integer) , height : "xx%", width : "xx%" 
             title :  string/literal   use  View  ("[Table Name or $MS4VIEWDBTMP]"); 

		
 	

Example

 		   
 #includeSYSpathMS4BI "\zInclude\IncludeChartExcel.h"  
    BEGIN
 	   ConnectDB{Ms4DB}(LEnvDemoExcelDB); 
 		FormExcel : Chart(xlPie) ,  title :  "xlPie : Business 2011 by  EMPLOYEE " 
		use  View{Ms4DB} ("[ms4employeeTotalBusiness2011]"); 
    END;	
	  

Prerequisites

- include header file : driver:\MondaySoftware\MS4BI\zInclude\IncludeChartExcel.h
- ConnectDB{Ms4DB} (DB Name )

Remarks

IncludeChartExcel.h :

(70) Chart type :
define xlPie 5 ** Pie.
define xlPieExploded 69 ** Exploded Pie.
define xlPieOfPie 68 ** Pie of Pie.
define ....

MS4SCRIPT : only ADD-ON MS4BI

See also

ToolBarExport, MS4_QUERY $MS4VIEWDBTMP



KEYWORD : EXCELEXPORTIMAGE_JPG

Definition

Based on the FormExcel graphics library, exports charts in JPG image format.

Syntax

 	
 FormExcel : Chart(Chart type: integer) ,  title :  string/literal   use  View  ("[Table Name or $MS4VIEWDBTMP]"); 
 			ExcelExportImage_JPG( string/literal : Directory and JPG file name) ;		
 		
 	

Example

 		   
#includeSYSpathMS4BI "\zInclude\IncludeChartExcel.h"   
 
** ************************************************************
** EXPORT EXCEL CHART
** ***********************************************************	
 BEGIN
 	   ConnectDB{Ms4DB}(LEnvDemoExcelDB); 
		FormExcel : Chart(xl3DPie), title :  " Business 2011 by  EMPLOYEE "  
		use   View  ("[ms4EmplTotalBusiness2011]")
			ExcelExportImage_JPG("c:\temp\ms4ImageExcelPIE3D1.jpg") ; 
 END;	
	  

Interested in our project? contact@monday-software.com
The Monday Software team


Copyright 2020 by Monday Software

the official sites :
www.monday-software.com
www.ms4bi.com
demos.ms4bi.com
getms4bi.com
getms4bifree.com
cloud.ms4bi.com
cloud.testing.ms4bi.com
www.ms4script.com

Our purpose : Keep it simple !


written with ms4script
  • MS4BI v.01.0027.01.2020
  • MS4BIRE v.01.0021.10.2019
  • MS4SCRIPT v.01.0027.01.2020
  • help 06/2019

MS4BI in 5 minutes