This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
WEB Server list

WEB Server list 


 

WEB Server list -> Function result 
Parameter Type   Description
Function result  Collection in Collection of the available Web Server objects

The WEB Server list command returns a collection of all Web server objects available in the 4D application. 

A 4D application can contain anywhere from one to several Web servers: 

  • 1 Web server for the host database (default Web server)
  • 1 Web server for each component. 

All available Web servers are returned by the WEB Server list command, whether they are actually running or not. 

Note: The default Web server object is automatically loaded by 4D at startup. On the other hand, each component Web server that you want to use must be instantiated using the WEB Server command. 

You can use the name property of the Web server object to identify the database or component to which each Web server object in the list is attached. For a detailed description of the Web server object, please refer to the WEB Server command. 

Example  

We want to know how many running web servers are available: 

 C_COLLECTION($wSList)
 C_LONGINT($vRun)
 
 $wSList:=WEB Server list
 $vRun:=$wSList.countValues(True;"isRunning")
 ALERT(String($vRun)+" web server(s) running on "+String($wSList.length)+" available.")



See also 

WEB Server
webServer.stop( )

 
PROPERTIES 

Product: 4D
Theme: Web Server
Number: 1716

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18 R3

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)