Class ConnectionEditor
Connection assistant dialog. Hosts a ConnectionParamsControl (driver picker + dynamic parameter grid + test) and OK/Cancel. Opened from the object inspector "Connection String" property and from the new report wizard. For a .Net provider the connection string is stored in the report; for the HTTP Agent driver the API key + Hub database are stored in dbxconnections.ini (Delphi-compatible) and the report only keeps the alias.
Inheritance
Implements
Inherited Members
Namespace: Reportman.Designer
Assembly: Reportman.Designer.dll
Syntax
public class ConnectionEditor : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Constructors
View SourceConnectionEditor()
Declaration
public ConnectionEditor()
Methods
View SourceDispose(bool)
Limpiar los recursos que se estén usando.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
View SourceEdit(string, string, bool, string, string, long, IWin32Window, out ConnResult)
Generic entry point: shows the assistant and returns the user's choices.
Used by /dbconfig and by ShowDialog. When prefillAgent
is true the dialog opens in HTTP Agent mode with the given parameters.
Declaration
public static bool Edit(string provider, string connstr, bool prefillAgent, string agentApiKey, string agentBaseUrl, long agentHubDbId, IWin32Window owner, out ConnectionEditor.ConnResult result)
Parameters
| Type | Name | Description |
|---|---|---|
| string | provider | |
| string | connstr | |
| bool | prefillAgent | |
| string | agentApiKey | |
| string | agentBaseUrl | |
| long | agentHubDbId | |
| IWin32Window | owner | |
| ConnectionEditor.ConnResult | result |
Returns
| Type | Description |
|---|---|
| bool |
ShowDialog(ref string, FrameMainDesigner, string)
Edit the connection of an existing report DatabaseInfo. Keeps the historical signature used by the object inspector. On OK it updates the DatabaseInfo driver/provider factory/connection string (HTTP Agent → provider factory empty + connection string empty, params written to dbxconnections.ini).
Declaration
public static bool ShowDialog(ref string sql, FrameMainDesigner framemain, string datainfotalias)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sql | |
| FrameMainDesigner | framemain | |
| string | datainfotalias |
Returns
| Type | Description |
|---|---|
| bool |