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 4 : DATABASES & CONNECTORS

Definition

- connects databases with MS4DB, ADO, ODBC, SAPLOGON or DSN oracle data sources
- connectors are defined between open and closed brackets: {connector }

Syntax

  		 
			function{connector}(string ...DB Name or other depending on the function) ;
 	

Example 1 MS4 DB

  		
<-local pc>   
    text : Lcurrentdb :="#DRIVERSYS+\MANDRAGOREPLANETE\MS4BI\01-GETTING-STARTED-UNICODE\ms4bilangConso.db" ; 
    or
   <-local server>
   text : Lcurrentdb :="#WWWMS4BISERVER+\ms4bilangConso.db" ; 
   DBconnect {Ms4DB} (Lcurrentdb); 
  FormPlus : DrawGrid, title :"MS4 DB : ms4LangConsolidation China/Japan : Relation -> ?? = b.city  " 
  use   View  ("[ms4LangConsolidation]")  ;


	

Example 2 ADO DB

  
 DBconnect{Ado:"xls"}( LFile1Excel);
     display "insert Table Japanese : CONSOLIDATION 1  ";
       Ms4_SQL{Ado:"xls"}(" SELECT  * into " + " %s " + "  from  [中国最大の都市のリスト$] ", Table1SheetJapanese) return x ;
 	 

Example 3 ODBC DB

  
 DBconnect{xls}( LFile1Excel);
     display "insert Table Japanese : CONSOLIDATION 1  ";
       Ms4_SQL{ xls}(" SELECT  * into " + " %s " + "  from  [中国最大の都市のリスト$] ", Table1SheetJapanese) return x ;
 	 

Example 4 SAPLOGON

  
BEGIN ** Declare SAPLOGON
 	** Server/host ID system
		SetHost{SAPLOGON}("yourServer");
		SetSystemNumber{SAPLOGON}("02");
	** Mandant
		SetClient{SAPLOGON}("800");
	
		SetUID{SAPLOGON}("username"); 
		SetPWD{SAPLOGON}("password"); 
	** language
		setLang{SAPLOGON}("EN");
			DBconnect{SAPLOGON} return MsgConnect ;
      		  if(MsgConnect > 0)
      		  then display "EXIT PGM" ; 
      		        Exit;
              End_if;
 END ;

BEGIN  **
  	display "IMPORTANT Create   MS4 CUBE  for   Input DATA :  CHART : PIE, BAR, DASHBOARD, REPORTING ..",LEnvDemoSAPT001DB ;
  			 Ms4_Query  {SAPLOGON}  IMPORT  : New Ms4Db  
             BEGIN  
        		 	  DBconnect {Ms4DB} (LEnvDemoSAPT001DB)   , 
		    		  Create:table("SapT000T001Conso") 
             END 
			  (" SELECT * from t000,t001 where   t001.mandt = t000.mandt ") return (msgsql)  ;

Example 5 DSN ORACLE

  
BEGIN  Declare  DSN
 	SetDsnName{DsnOdbc}("DSNyourName");
	** Name DB
	DBconnect{DsnOdbc}("DEV");
	
	SetUID{DsnOdbc}("YourDBName"); 
	SetPWD{DsnOdbc}("yourPasswordDBName");  
END;

BEGIN  ** SQL
 
	** SQL
	 Ms4_Query: Win{DsnOdbc}(" SELECT * from t001 where rownum < 50 ") return (msgsql)  ; ** LIMIT not exist SQL oracle

Visualise Example : DB Connect Ado + MS4DB

ADO prerequisites

- You must have OFFICE 97 (32 bits)
- or you must install AccessDatabaseEngine-EN-2007-32bit.exe
as specified when installing MS4BI
- or run AccessDatabaseEngine-EN-2007-32bit.exe voir : driver\MandragorePlanete\DataEngineInstall
IMPORTANT: if you have a later OFFICE version than 97, installation of dataAccessDatabaseEngine-EN-2007-32bit
will have no negative impact on your current OFFICE configuration

DSN ORACLE prerequisite

- You must have a user logon and password that is recognised by your CENTRAL database to install the DSN via ODBC
- You must install Oracle Client on your computer ( see win32_11gR2_client on the Oracle website, it's the Oracle version of our tests )

Remarks

DRIVER :
MS4
ODBC
ADO :string : the ADO connectors must be present in the directory :

driver:\MandragorePlanete\MS4BI\zDriversADO

See also

Examples of ADO connections to: Access, BDF, Excel, TXT, CSV

driver:\MandragorePlanete\MS4BI\zConnectors-ADO

See also

Examples of ODBC connections to: Access, BDF, Excel, TXT, CSV, DBASe, FOXPRO

driver:\MandragorePlanete\MS4BI\zConnectors-ODBC

See also

Examples of SAPLOGON and DSN connections:

driver::\MandragorePlanete\MS4BI\03-DEMO-DESKTOP-BI-SAP

See also

ALL Examples Imports/connections :

driver::\MandragorePlanete\MS4BI\zConnectorsx-Import\Examples

See also

IMPORT NEW DB, DBEXIST, DBCREATE, DBCONNECT, DBDELETE,DBCLOSE,DBBACKUP, TABLEEXIST,VIEWEXIST, MS4_SQL, EXPORT_TABLE, EXPORT_SCHEMA, Sql_DestroyEnv



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