Hi
The connected-property of my IBCConnection is set to true but the server-settings are only valid on my development machine. Therefore I have to set the connected-property to false before I deploy the application. Otherwise it generates a connection-error on startup.
Now I have found the IBCConnection.Options.KeepDesignConnected property which is exactly what I need. But if I set it to false it has a side effect on the TIBTable and TIBCQuery objects. The TIBCTable.Active property is not loaded from the design-time setting neither.
I have migrated an old BDE-Application and the table-objects are always opened from the design-time setting during the form-creation.
Is it intended that the KeepDesignConnected settings effects the active-property too?
regards
Oliver
KeepDesignConnected
-
AndreyZ
Re: KeepDesignConnected
Hello,
The KeepDesignConnected property is used to prevent an application from establishing a connection at the time of startup. Setting the Active property of any dataset component (TIBCTable, TIBCQuery, etc.) to True requires an active connection, otherwise, datasets they will not be able to obtain any data. As you set KeepDesignConnected to False, it means that TIBCConnection will be inactive (it disregards the value of Connected property) when you load your forms. Therefore, TIBCTable and TIBCQuery will be inactive as well.
The KeepDesignConnected property is used to prevent an application from establishing a connection at the time of startup. Setting the Active property of any dataset component (TIBCTable, TIBCQuery, etc.) to True requires an active connection, otherwise, datasets they will not be able to obtain any data. As you set KeepDesignConnected to False, it means that TIBCConnection will be inactive (it disregards the value of Connected property) when you load your forms. Therefore, TIBCTable and TIBCQuery will be inactive as well.
Re: KeepDesignConnected
Hello,
In my application (MDI-application) I don´t want to establish a connection at the time of startup because I read the server-settings from a config file and connect later.
The TIBCTable, TIBCQuery object are on the MDI-child-forms which are not created on startup.
When these forms are created the connection is active and the TIBCTable.active setting is true most of the time. I don´t want to add all the open calls in the FormCreate (~ 300 Forms)
Therefore I would need a
KeepDesignConnected=false
KeepDesignActive=true
regards
Oliver
In my application (MDI-application) I don´t want to establish a connection at the time of startup because I read the server-settings from a config file and connect later.
The TIBCTable, TIBCQuery object are on the MDI-child-forms which are not created on startup.
When these forms are created the connection is active and the TIBCTable.active setting is true most of the time. I don´t want to add all the open calls in the FormCreate (~ 300 Forms)
Therefore I would need a
KeepDesignConnected=false
KeepDesignActive=true
regards
Oliver
-
AndreyZ
Re: KeepDesignConnected
For the time being IBDAC doesn't have such functionality. You can leave your suggestion at our UserVoice page at http://devart.uservoice.com/forums/1046 ... components , and if there are many votes for your suggestion, we will implement it.