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 : DRAWRADAR

Definition

Based on the FORMSHOW graphics library, displays COLUMN, LINE or AREA types of RADAR chart

Syntax

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

Example 1

 		   
#includeSYSpathMS4BI "\zInclude\includeChart.h"  
 
 ConnectDB{Ms4DB}(LEnvDemoExcelDB); 
 	  FormShow :	DrawRADAR, title : "  RADAR Line  Business 2011 by  EMPLOYEE "  , TYPE : $RDLINE   
			use View   (" [ms4EmplTotalBusiness2012]")  ;

 FormShow : theme : "blueopal"    DrawRADAR , height : "430",  width :"730",   
 	title : "  RADAR Line  Business 2011 by  EMPLOYEE "  , TYPE : $RDCOLUMN    
			use View   (" [ms4EmplTotalBusiness2012]")  ;
	

Example 2 : $MS4DBTMP : Note : this example can be applied to any and all types of chart.

 		   
#includeSYSpathMS4BI "\zInclude\includeChart.h"
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 :	DrawRADAR , title :" Business 2011 by  EMPLOYEE " ,  
	TYPE : $RDCOLUMN    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)
integer : $RDLINE := 71 ;
integer : $RDAREA := 72 ;
integer : $RDCOLUMN := 73 ;
integer : $RDSTAR := 74 ;
integer : $RDCIRCLE := 75 ;



MS4SCRIPT : only ADD-ON MS4BI

See also

ToolBarExport, MS4_QUERY $MS4VIEWDBTMP



KEYWORD : FORMIMAGE : DRAWRADAR

Definition

Based on the FORMIMAGE grahics library, displays a classic VERTICAL,HORIZONTAL, STACK ,LINE or AREA RADAR chart.

Syntax

 	
	Table : 
	
	FormImage :	DrawRADAR, title : string/literal, 
		ImageArea : (height) integer, (width) integer ,
	     TYPE : integer, FORMAT: string/literal  use View  ("Table Name or $MS4VIEWDBTMP ");
	or
	Array :
	FormImage :	DrawRADAR, title : string/literal, 
		ImageArea : (height) integer, (width) 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 : DrawRADAR, title : " Business 2011 by  EMPLOYEE " ,
		   ImageArea : 800, 500 ,	  TYPE :  $RDCIRCLE,  FORMAT :"$" 
		   use View   ("  [ms4EmplTotalBusiness2012]")  ;
   END
 ** or ARRAY
   ConnectDB{Ms4DB}(LEnvDemoExcelDB); 
  FormImage : DrawRADAR, title : " RADAR Standard   xxxxxxx" ,
  ImageArea :500, 300 ,TYPE : $RDSTAR,  FORMAT :"$" 
  use  
 Array  Label   : "Coord "      : "40","80","120","160","200","240","280","320","360"  ,
 Array   value  : "ScoreA"      :  10,20,30,40,50,60,70,80,90 ,
 Array   Value  :  "ScoreB"     :  20,40,50,12,10,30,40,50,60 ;

	  

Prerequisites

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

Remarks

IncludeChart.h :

chart type : (FORMSHOW ,FORMIMAGE )
goto to see FORMSHOW


MS4SCRIPT : only ADD-ON MS4BI

See also

ToolBarExport, MS4_QUERY $MS4VIEWDBTMP



KEYWORD : FORMEXCEL : CHART

Definition

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

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(xlRadar),  title :  " type xlRadar : Business 2011,2012,2013 by  EMPLOYEE "
		use View   (" [ms4EmplBusinessDollars20111213]")  ; 
    END ;	
	  

Prerequisites

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

Remarks

IncludeChartExcel.h :

(70) chart type :
define xlRadar -4151 ** Radar.
define xlRadarFilled 82 ** Filled Radar.
define xlRadarMarkers 81 ** Radar with Data Markers.
define ....


MS4SCRIPT : only ADD-ON MS4BI

See also

ExcelExportImage_JPG, ToolBarExport



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(xl3DRADAR), title :  " Business 2011 by  EMPLOYEE "  
		use   View  ("[ms4EmplTotalBusiness2011]")
			ExcelExportImage_JPG("c:\temp\ms4ImageExcelRADAR3D1.jpg") ; 
 END;	
	  

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


Copyright 2019 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.00.0005.02.2019
  • MS4BIRE v.00.0005.02.2019
  • MS4SCRIPT v.00.0005.02.2019
  • help 02/2019

MS4BI in 5 minutes