how to disable store Connection.connected on runtime
how to disable store Connection.connected on runtime
hi,
i have set the connection.connected = true (in object inspector) while using the design time, is that any way not to store this behavior during runtime or release mode? because i may connect to the server by using another server/port/username/password, currently connected twice.
the reason i ask here because this behavior already stored before FormCreate, so that i can't override it and ofcause i don't want to set connected = false everytime before i deploy....sometime really missed. thanks a lot.
i have set the connection.connected = true (in object inspector) while using the design time, is that any way not to store this behavior during runtime or release mode? because i may connect to the server by using another server/port/username/password, currently connected twice.
the reason i ask here because this behavior already stored before FormCreate, so that i can't override it and ofcause i don't want to set connected = false everytime before i deploy....sometime really missed. thanks a lot.
Re: how to disable store Connection.connected on runtime
Hello,
To avoid connection independently on the Connected property settings when running the application in design-time, you should set the PgConnection.Options.KeepDesignConnected property to False.
To avoid connection independently on the Connected property settings when running the application in design-time, you should set the PgConnection.Options.KeepDesignConnected property to False.
Re: how to disable store Connection.connected on runtime
thanks for reply.
i'm sorry that in my design mode, there're no KeepDesignConnected property. since the connection already establish (onBeforeConnect event) before FromCreate, so i will also setup connection twice.
i'm sorry that in my design mode, there're no KeepDesignConnected property. since the connection already establish (onBeforeConnect event) before FromCreate, so i will also setup connection twice.
Re: how to disable store Connection.connected on runtime
Hello,
We have added this property to the published section, and it will be available for setting in design-time in the next release.
We have added this property to the published section, and it will be available for setting in design-time in the next release.
Re: how to disable store Connection.connected on runtime
great! any timeline for next release ?
Re: how to disable store Connection.connected on runtime
Hello,
We plan to release the next version in mid-June.
We plan to release the next version in mid-June.
Re: how to disable store Connection.connected on runtime
cool! waiting for next release!
btw, any planning to show more options in design mode too ? such as DisconnectedMode, LocalFailover, etc...
btw, any planning to show more options in design mode too ? such as DisconnectedMode, LocalFailover, etc...
Re: how to disable store Connection.connected on runtime
hello,
We will try to include the missing properties in the published section in the next version
We will try to include the missing properties in the published section in the next version
Re: how to disable store Connection.connected on runtime
hello,
does pgTable/pgQuery have the same properties for not to StoreActive ?
does pgTable/pgQuery have the same properties for not to StoreActive ?
Re: how to disable store Connection.connected on runtime
hello,
Our DataSets don't have such property, if in the design time the DataSet was opened, it will be automatically opened in the run time too.
Our DataSets don't have such property, if in the design time the DataSet was opened, it will be automatically opened in the run time too.
Re: how to disable store Connection.connected on runtime
hi,
but is that possible to call Dataset.Close on FormCreate event ? to avoid Open, Close, Open ?
but is that possible to call Dataset.Close on FormCreate event ? to avoid Open, Close, Open ?
Re: how to disable store Connection.connected on runtime
hello,
If the DataSet is opened in design-time, it will be opened in run-time before the FormCreate event occurs, therefore the DataSet will be open anyway.
If the DataSet is opened in design-time, it will be opened in run-time before the FormCreate event occurs, therefore the DataSet will be open anyway.
Re: how to disable store Connection.connected on runtime
any suggestion ? (except close the dataset everytime before deploy)
thx
thx
Re: how to disable store Connection.connected on runtime
Hello,
Unfortunately, there are no methods for inhibit of DataSet opening in run-time, that was opened in design-time. You should either close it in design-time or call the close method in run-time
Unfortunately, there are no methods for inhibit of DataSet opening in run-time, that was opened in design-time. You should either close it in design-time or call the close method in run-time
Re: how to disable store Connection.connected on runtime
noted, thanks for helping.