4D v19dataStore.getInfo( ) |
||||||||||||||||||||||||||||||||
|
4D v19
dataStore.getInfo( )
|
Propriété | Type | Description | |||||||||||||||
type | chaîne |
| |||||||||||||||
networked | booléen |
| |||||||||||||||
localID | chaîne | ID du datastore sur la machine. Correspond à la chaîne localId donnée avec la commande Open datastore. Chaîne vide ("") for le datastore principal. | |||||||||||||||
connection | objet | Objet décrivant la connexion au datastore distant (non retourné par le datastore principal). Propriétés disponibles :
|
C_OBJECT($info)
$info:=ds.getInfo() //Exécutée sur 4D Server ou 4D
//{"type":"4D","networked":faux,"localID":""}
$info:=ds.getInfo() // /Exécutée sur 4D distant
//{"type":"4D Server","networked":vrai,localID":""}
Sur un datastore distant :
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":vrai,
//"connection":{hostname:"111.222.33.44:8044","tls":faux,"idleTimeout":2880,"user":"marie"}}
Produit : 4D
Thème : ORDA - DataStore
4D - Langage ( 4D v19)
4D - Langage ( 4D v19.1)