| 4D v18dataStore.getInfo( ) | ||||||||||||||||||||||||||||||||
| 
 | 
    4D v18
 dataStore.getInfo( ) 
         | |||||||||||||||||||||||||||||||
| Property | Type | Description | |||||||||||||||
| type | string | 
 | |||||||||||||||
| networked | boolean | 
 | |||||||||||||||
| localId | text | ID of the datastore on the machine. Corresponds to the localId string given with the Open datastore command. Empty string ("") for main datastore. | |||||||||||||||
| connection | object | Object describing the remote datastore connection (not returned for main datastore). Available properties: 
 | 
 C_OBJECT($info)
 
 $info:=ds.getInfo() //Executed on 4D Server or 4D
  //{"type":"4D","networked":false,"localID":""}
 
 $info:=ds.getInfo() // Executed on 4D remote
  //{"type":"4D","networked":true,"localID":""}On a remote datastore:
 C_OBJECT($info;$connectTo;$remoteDS)
 
 $connectTo:=New object("hostname";"111.222.33.44:8044";"user";"marie";"password";"aaaa")
 $remoteDS:=Open datastore($connectTo;"students")
 $info:=$remoteDS.getInfo()
 
  //{"type":"4D Server",
  //"localID":"students",
  //"networked":true,
  //"connection":{hostname:"111.222.33.44:8044","tls":false,"idleTimeout":2880,"user":"marie"}}
	Product:  4D
	Theme:  ORDA - DataStore
	
        
        
	
	4D Language Reference ( 4D v18)
	
	
	
 Add a comment
Add a comment