/
ccRemoteQuery.AutoCloseSession

ccRemoteQuery.AutoCloseSession

Parameter

Boolean;

Beschreibung

Die Eigenschaft AutoCloseSession schließt automatisch die Session somit  entfällt dadurch das explizite SessionHandling.

Beispiel

ccRemoteQuery := TccRemoteQuery.Create;
try
  ccRemoteQuery.AutoCloseSession := False; // neu Session wird nicht automatisch geschlossen
  ccRemoteQuery.SessionId := ccScriptEngine.GetResource('SessionId', '');
  ccRemoteQuery.RootUrl := 'http://localhost:4430';
  ccRemoteQuery.User := '';
  ccRemoteQuery.Password := '';
  // Create Close Session entfällt
  ccRemoteQuery.Connection := '';
  ccRemoteQuery.CommandText := 'select...';
  ccRemoteQuery.Open;
  try
    for i:=0 to ccRemoteQuery.RecordCount-1 do
    begin
    //cRemoteQuery.GetFieldValueByName('FieldName',i) );
    end;
    ccScriptEngine.SetResource('SessionId', ccRemoteQuery.SessionId);
  finally
    ccRemoteQuery.Close;
  end;
finally
  ccRemoteQuery.Free;
end;

Related content

ccRemoteQuery.AutoCloseSession
ccRemoteQuery.AutoCloseSession
More like this
TccRemoteQuery.GetFieldValueByName
TccRemoteQuery.GetFieldValueByName
More like this
TccRemoteQuery.GetFieldValueByName
TccRemoteQuery.GetFieldValueByName
More like this
TccRemoteQuery.GetFieldValueByName
TccRemoteQuery.GetFieldValueByName
More like this
TccRemoteQuery Beispiel
TccRemoteQuery Beispiel
More like this
TccRemoteQuery Beispiel
TccRemoteQuery Beispiel
More like this