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

2023 version 1.18

Chapter 3 : INSTRUCTIONS

KEYWORD : GETCURRENTDIR

Definition

Returns the current directory for the MS4 script that is being run.

Syntax

  		  	
	     GetCurrentDir(string);
 	

Example

  	
TEXT :	  LCurrentDir;
GetCurrentdir(LCurrentDir);
 	
	

See Also

SetCurrentDir(string);..



KEYWORD : GETDIRSYSPATHWWW

Definition

Returns the root directory of the MS4BI server:

driverInstall:\MandragorePlanete\MS4BI\Winserver\www

Syntax

  		  	
	     GetDirSysPathWWW(string)
  	
	

Example

  	
CHAR    : ldirApp:128 , lenvSqlstring:128  := "\demo\DESKTOP-BI-EXCELandSTANDARD\DESKTOP-BI-CENTRAL-CUBES\Ms4BI-DemoExcelCube.db";
INTEGER :  X  ;
		 
		BEGIN  
  			GetDirSysPathWWW(lDirApp);
			Str_Cat  lDirApp,lenvSqlstring into LEnvDemoExcelDB ;
		 	
 			DBexist{Ms4DB}(LEnvDemoExcelDB) return (X) ;
               END
	
	

Remarks




KEYWORD : GETDIRSYSPATHMS4BI

Definition

Returns the MS4BI tool s root directory :

driverInstall:\MandragorePlanete\MS4BI\

Syntax

  		  	
	     GetDirSysPathMS4BI(string)
 	
	

Example

  	
    
text  :lDirApp , lenvSqlstring := "\02-DEMO-DESKTOP-BI-EXCELandSTANDARD\99-DATABASE\VersionADO\Ms4BI-DemoExcelCube.db", LEnvDemoExcelDB;
   
		BEGIN  

			GetDirSysPathMS4BI(lDirApp);
			Str_Cat  lDirApp,lenvSqlstring into LEnvDemoExcelDB ;
               END
	
	
<

Remarks

>


KEYWORD : GETDIRSYSPATH

Definition

Returns the root directory for :

driverInstall:\MandragorePlanete\

Syntax

  		  	
	     GetDirSysPath(string)
 	
	

Example

  	
GetDirSysPath(LpathDataBaseExcel);
Str_Cat  LpathDataBaseExcel,"\zInclude\css\StyleReportDesign\standardStyleReport.css" into fileCssStyle;
	
	

Remarks




KEYWORD : #DIRSYSPATH+

Definition

Adds the directory located at :

driverInstall:\MandragorePlanete\ to a literal

Syntax

  		  	
	      "#DRIVERSYS+\......DIRECTORY......"
 	
	

Example

  ** Automatically positions in a specified directory  	
SetCurrentDir("#DRIVERSYS+\MandragorePlanete\MS4BI\02-DEMO-DESKTOP-BI-EXCELandSTANDARD\91-SECURITY\ExamplesEncrypt");
	
	

Remarks




KEYWORD : #SYSPATHWWW+

Definition

Includes an MS4 script located in the

driverInstall:\MandragorePlanete\MS4BI\Winserver\www root directory

Syntax

  		  	
	      "#SYSPATHWWW+\......DIRECTORY......\ scriptname.ms4"
 	
	

Example

 
 
#include "#SYSPATHWWW\demo\DESKTOP-BI-EXCELandSTANDARD\99-DATABASE\VersionADO\300-CreateDBDemoExcel.ms4"
DBconnect{Ms4DB}(LEnvDemoExcelDB); FormPlus : DrawGrid, title :"2013" use View ("[ms4EmplTotalBusiness2013]") ;

Remarks




KEYWORD : #SYSPATHMS4BI+

Definition

Includes an MS4 script located in the

driverInstall:\MandragorePlanete\MS4BI\ root directory

Syntax

  		  	
	      "#SYSPATHMS4BI+\......REPERTOIRE......\ scriptname.ms4"
 	
	

Example

 
 
#SYSPATHMS4BI+ "\zInclude\includeChart.h"
or MENU MenuId 111 : Ms4Script_Import : "#SYSPATHMS4BI+\02-DEMO-DESKTOP-BI-EXCELandSTANDARD\90-OTHERS-UI\1300-TableResponsive.ms4",

Remarks




KEYWORD : #WWWMS4BISERVER+

Definition

located your db into Web root directory of MS4BI

Syntax

  		  	
	      "#WWWMS4BISERVER+\yourdbname.db"
 	
	

Example

 
 
text NewDb :="#WWWMS4BISERVER+\Myms4bi.db";
** <Local_server > DBconnect {Ms4DB} (NewDb) ;or DBconnect {Ms4DB} ( "#WWWMS4BISERVER+\yourdbname.db"); or DBDelete{MS4DB}(NewDb);

Remarks

Preferably use a local server to define your database with "#WWWMS4BISERVER+\yourdbname"
You can define your database in a directory on your computer.
Problem: when exporting source code to an https server, the location of the database needs to be edited



KEYWORD : #WWWMS4BISERVERBACKUP+

Definition

Backup your db into Web root directory of MS4BI Backup

Syntax

  		  	
	      "#WWWMS4BISERVERBACKUP+\yourdbname.db"
 	
	

Example

 
 
text NewDb :="#WWWMS4BISERVER+\Myms4bi.db";
** <Local_server > DBBackup{Ms4db}(NewDb) to ("#WWWMS4BISERVERBACKUP+\Myms4bi.db") return (x); if(x =1)then display "Backup Ok" ; else "Backup ko" ;end_if ;

Remarks

Return :
0 Backup error
1 Backup OK



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


The official sites :


Copyright 2020 by Mandragore Planete


Our purpose : Keep it simple !


written with ms4script
  • help 01.020.02.2024

MS4BI in 5 minutes

MS4BI Trial Version : Informations :
this message will disappear : Purchase Professional Licence :

https://www.ms4bi.com