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 13: WINDOWS

KEYWORD: BEGIN_TRANSACTION ... END_TRANSACTION

Definition

Creates a Windows transaction including one or more Windows dialogue boxes.

Syntax

 		   	 
BEGIN_TRANSACTION : VarCodeTransaction EXECUTE TRANSACTION 
         (condition) with VarExit operator (!=, <, >,=) varExit2
 ...
 
 END_TRANSACTION
	

Example

 	
#includeSYSpathMS4BI "\zInclude\IncludeSysMs4Windows.h"     
Begin_Transaction : Trans1 Execute Transaction With VarExit != 1	
  Begin_Dialog		
   API instructions
  End_Dialog	
   	instruction + Exit transaction for VarExit
End_Transaction ;
	

transaction 1

Prerequisites

#includeSYSpathMS4BI "\zInclude\IncludeSysMs4Windows.h"

Remarks

This example :
driver:\MondaySoftware\MS4BI\zDemo-Simple\win-00-MondaySoftware.ms4
- handles the exit from a transaction, this is imperative
\

See also

BEGIN_DIALOG, END_DIALOG, OPENDIALOG, BEGIN_INITIALIZE, END_INITIALIZE, BEGIN_SPLASH, END_SPLASH, SHOWSPLASH
SHOWDIALOG, DESTROYDIALOG, REFRESHDIALOG,CLOSEDIALOG



KEYWORD : BEGIN_DIALOG ... END_DIALOG

KEYWORD : OPENDIALOG

Definition

Creates one or more Windows dialogue boxes in a Windows transaction.
Opens and displays a dialogue box

Syntax

 		   	 
 BEGIN_TRANSACTION
 BEGIN_DIALOG  
 		x, y, varheight,varWidth, "Your  title ",VarWinDialog1
-- API instructions-
            
 END_DIALOG
BEGIN_DIALOG  
		x, y, varheight,varWidth, "Your  title ",VarWinDialog2
-- API instructions-
           
 END_DIALOG 
 ... OPENDIALOG(VarWinDialog1,VarWinDialog2,..)
			-- instructions-
 END_TRANSACTION
	

Example

 	
#includeSYSpathMS4BI "\zInclude\IncludeSysMs4Windows.h"     
Begin_Transaction : Trans1 Execute Transaction With VarExit != 1	
Begin_Dialog		
                     BackgroundColor : Color(192,193,218)
 			WinExtendStyle :  :WS_EX_CLIENTEDGE
			WinStyle 	   :  :WS_OVERLAPPED & CenterDialog
	 		1, 1, 800,600, "MS 4  : Presentation  ",UserDialog
 	Frame     ....
	Grid 10,60, 530, 500, Grid1 Property : 
	ButtonText...                        

       Frame  	...	
 	 
End_Dialog	
             
	OpenDialog (UserDialog1); 
  	instruction
	instruction Exit transaction for VarExit
 		BEGIN /* Exit Transaction */
 			Require  x := Pressed(ButtonQuit);
			IF (X Not_Void) THEN 
				SetStatusDialog(UserDialog1:SW_HIDE);
				Exit_TRANS1 := 1 ;
			End_if;
		END  ;

End_Transaction ;
	

transaction 2

Prerequisites

#includeSYSpathMS4BI "\zInclude\IncludeSysMs4Windows.h"

Remark 1

This example :
driver:\MondaySoftware\MS4BI\zInclude\Call\Ms4TrialVersionServer.ms4
- handles the exit from a transaction, this is imperative
- you can declare several dialogue boxes in one transaction

Remark 2

- SHOWDIALOG(VarWindDialog) Makes a dialogue box visible
- DESTROYDIALOG(VarWinDialog) Deletes a dialogue box
- REFRESHDIALOG(VarWinDialog) Refreshes a dialogue box
- CLOSEDIALOG (VarWinDialog) Closes a dialogue box

See also

BEGIN_TRANSACTION, END_TRANSACTION, BEGIN_INITIALIZE, END_INITIALIZE, BEGIN_SPLASH, END_SPLASH, OPENDIALOG



KEYWORD : BEGIN_INITIALIZE ... END_INITIALIZE

Definition

Optional: for initializing variables in a Windows transaction.

Syntax

 		   	 
 BEGIN_TRANSACTION
  BEGIN_DIALOG 
  ...
  END_DIALOG
  BEGIN_DIALOG 
  ...
  END_DIALOG
    BEGIN_INITIALIZE (optional)
        -- instructions-
    END_INITIALIZE
            OPENDIALOG(VarWinDialog1,..)
			 instructions + exit transaction 

 END_TRANSACTION
	

Example

 	
#includeSYSpathMS4BI "\zInclude\IncludeSysMs4Windows.h"     
Begin_Transaction : Trans1 Execute Transaction With VarExit != 1	
Begin_Dialog		
 
 	Frame     ....
	Grid 10,60, 530, 500, Grid1 Property : 
	ButtonText...                        

       Frame  	...	
 	 
End_Dialog	
       		Begin_Initialize
			SetWinTxt(Wtitle1:" MONDAY SOFTWARE  &  MS4 BI  ");
			SetWinTxt(wtitleSplash:" MONDAY SOFTWARE  ");
			SetWinTxt(Wtitle3:" Presentation ");
			SetWinTxt(Wtitle4:"MONDAY SOFTWARE");
			 
	 		SetFontsGroup (12, 8, 0, 0,Fw_NORMAL,0,1, 0, Ansi_CHARSET, Out_DEFAULT_PRECIS,
			Clip_DEFAULT_PRECIS, Default_QUALITY, Ff_SWISS, "New Courrier":,
			Buttonwww,Buttonemail) ;
			SetWinTxt(Frame4:PostalAddress);
			SetWinTxt(Cercle1:"Exit");
			Color(192,193,218) return(Color1);
			SetColorText(Buttonwww:Blue, Color1);SetColorText(Buttonemail: Blue, Color1);
				GetDirSysPathMS4BI(filePath); 
				concatene  filePath, "\zPicture\PgmBmp\monday-logo1.bmp" into fileMondayLogo;
				concatene  filePath, "\zPicture\PgmCursor\hand-l.cur" into filehandlcur;				
 		           ShowSplash(Splash1: 2500) ;
 	
			
	 	End_Initialize
      
	OpenDialog (UserDialog1); 
  	instruction
	instruction Exit transaction for VarExit
  

End_Transaction ;
	

Prerequisites

#includeSYSpathMS4BI "\zInclude\IncludeSysMs4Windows.h"

Remarks

This example :
driver:\MondaySoftware\MS4BI\zDemo-Simple\win-00-MondaySoftware.ms4

See also

BEGIN_TRANSACTION, END_TRANSACTION, BEGIN_DIALOG, END_DIALOG, BEGIN_SPLASH, END_SPLASH, SHOWSPLASH
SHOWDIALOG, DESTROYDIALOG, REFRESHDIALOG, CLOSEDIALOG



KEYWORD : BEGIN_SPLASH...END_SPLASH, SHOWSPLASH

Definition

Creates a splash dialogue in a Windows transaction.

Syntax

 		   	 
 BEGIN_TRANSACTION
  BEGIN_DIALOG 
      x, y, varheight,varWidth, "Your  title ",VarWinDialog1
	  ....
  END_DIALOGUE
   
  BEGIN_SPLASH
   		x, y, varheight,varWidth, "Your  title ",VarWinDialog2
  END_SPLASH
         -- instructions-
	 	SHOWSPLASH( VarWinDialog2: timer nbr) ; 
    		 instructions + exit transaction 

 END_TRANSACTION
	

Example

 	
#includeSYSpathMS4BI "\zInclude\IncludeSysMs4Windows.h"     
 
INTEGER : Exit_TRANSFRAMMSGWAIT :=0,I;
	 
	Begin_Transaction : Trans1 Execute Transaction With Exit_TRANSFRAMMSGWAIT != 1
		Begin_Dialog
			BackgroundColor : Color(192,193,218) ** (0,174,174)  
			WinExtendstyle : :WS_EX_CLIENTEDGE
			WinStyle 		 : :Ws_DLGFRAME
			
			500, 10, 200,200, "MS4 SCRIPT : Wait message frame ",UserDialog 
			
		End_Dialog
Begin_Splash
		BackgroundColor : Color(192,193,218)
		WinExtendStyle : :Ws_Ex_DlgModalFrame
		WinStyle 	 : :Ws_POPUP & CenterDialog 0,0,250,100 ,"MS4 SCRIPT :  Wait APP ",Splash1
		
		Frame 10, 10,220,70, wtitleSplash Attribut :
		FillColor : 144,136,176		 FrameColor : 250,250,250
		ShadowText : 1,2 Color(0,0,0)	 SetColorText : 185,50,90
		DrawText : Dt_CENTER
		SetFonts :
		20,8,0,0,Fw_NORMAL,0,0,0,"Arial"
End_Splash
SetWinTxt(wtitleSplash:" WAIT ....................  MONDAY SOFTWARE   ");
         ShowSplash(Splash1: 6500) ;
		 SetStatusDialog(UserDialog:Sw_HIDE);
		 
		Exit_TRANSFRAMMSGWAIT := 1 ;
		 		 	
End_Transaction ;
	

Prerequisites

#includeSYSpathMS4BI "\zInclude\IncludeSysMs4Windows.h"

transaction 3

Remarks

This example :
driver:\MondaySoftware\MS4BI\zInclude\Call\Ms4wait2.ms4

See also

BEGIN_TRANSACTION, END_TRANSACTION, BEGIN_DIALOG, END_DIALOG, BEGIN_INITIALIZE, END_INITIALIZE
SHOWDIALOG, DESTROYDIALOG, REFRESHDIALOG, CLOSEDIALOG



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