-
TomYU replied to the topic Client don't connect server in the forum kbmMW 6 years ago
ki,kim
delete this topic.
-
TomYU replied to the topic Scheduler Do not execute SynchronizedAfterRun in the forum kbmMW 6 years ago
I had to change Queue to Synchronize to ensure that my application can run normally.
-
TomYU started the topic About RunInTransaction of kbmMWUNIDACStoreProc in the forum kbmMW 6 years ago
hi,kim
How to set the server’s kbmMWUNIDACStoreProc1.RunInTransaction equal to False on the client.
There is a stored procedure, I don’t need kbmMW to open the transaction by default.
best regards
Tom YU.
-
TomYU replied to the topic smartbind and Listview in the forum kbmMW 6 years ago
Hi,
I tried and still did not solve the problem, I sent an email to you, pay attention to check.
best regards
Tom YU.
-
TomYU started the topic Scheduler Do not execute SynchronizedAfterRun in the forum kbmMW 6 years ago
hi,kim
Scheduler.Run(procedure
begin
r1 := kbmMWPooledSimpleClient1.SendPing;
if not VarIsNull(r1) then
r2:=r1;
end)
.SynchronizedAfterRun(procedure
beginlog.Info(kbmMWNativeHTTPClientTransport1.Host);
…
I run project use debug mode,found SynchronizedAfterRun is not executed most of the time.This is a very serious problem!!!
best regards
Tom YU.
-
TomYU replied to the topic Client don't connect server in the forum kbmMW 6 years ago
hi,
I’m sorry,I made a mistake!
best regards
Tom YU.
-
TomYU replied to the topic Client don't connect server in the forum kbmMW 6 years ago
hi,
I found set kbmMWTCPIPIndyClientTransport1.VerifyTransfer and kbmMWTCPIPIndyServerTransport1.VerifyTransfer =True, Client can connect server.
if set VerifyTransfer=False for server and client, Client can’t connect server.
best regards
TomYU.
-
TomYU started the topic Client don't connect server in the forum kbmMW 6 years ago
hi,kim
i update to kbmMW 5.13.00, found client don’t connect server. and I sent the demo project by email, please check it carefully.
best regards
Tom YU
-
TomYU replied to the topic Issue of kbmMWClientQuery.AutoFieldDefsOnOpen property. in the forum kbmMW 6 years ago
hi,kim
5.13 fixed! Thank you.
Best regards
TomYU.
-
TomYU replied to the topic smartbind and Listview in the forum kbmMW 6 years ago
hi,kim
5.13 not fixed!
Best regards
TomYU.
-
TomYU replied to the topic Issue of TkbmMWLoadBalancedServerList in the forum kbmMW 6 years ago
hi,kim
5.13 fixed!
Thank you.
Best regards
TomYU.
-
TomYU replied to the topic Run method will not trigger WhenException. in the forum kbmMW 6 years ago
hi,kim
5.13 fixed!
thank you!
best regards
TomYU
-
TomYU replied to the topic Run method will not trigger WhenException. in the forum kbmMW 6 years ago
Code written like the following will not trigger WhenException.
Scheduler.Run(Task1)
.WhenException(procedure(const AException:Exception)
begin
ShowMessage(AException.Message);
end)
.Activate; -
TomYU started the topic Run method will not trigger WhenException. in the forum kbmMW 6 years ago
hi,kim
The following code will not trigger WhenException.
procedure TForm4.Button1Click(Sender: TObject);
begin
Scheduler.Run([Task1,Task2])
.WhenException(procedure(const AException:Exception)
begin
ShowMessage(AException.Message);
end)
.Activate;end;
procedure TForm4.Task1(const AScheduledEvent: IkbmMWScheduledEvent);
begin
raise…[Read more] -
TomYU started the topic The configuration framework supports reading and writing TObjectList in the forum kbmMW 6 years, 1 month ago
hi,kim
The configuration framework supports reading and writing ObjectList.
eg:
TRemoteDBConnObject = class(TDBConnObject)
private
[kbmMW_Config(‘DBPort’,mwcdReadWrite)]
FDBPort: string;
[kbmMW_Config(‘DBServer’,mwcdReadWrite)]
FDBServer: string;
public
property DBServer:string read FDBServer write FDBServer;
property DBPort:string read FDBPort…[Read more] -
TomYU started the topic in the forum kbmMW 6 years, 1 month ago
hi,kim
The configuration framework supports reading and writing ObjectList.
<span class=”VIiyi” lang=”en”><span class=”JLqJ4b ChMk0b” data-language-for-alternatives=”en” data-language-to-translate-into=”zh-CN” data-phrase-index=”0″>E.g</span></span>:
TRemoteDBConnObject =…[Read more]
-
TomYU replied to the topic kbmMemTable1.IsDataModified in the forum kbmMemTable 6 years, 1 month ago
hi,
Thank you for your reply and agree with you.
If this method is added to kbmMWClientQuery, it will let me not use the helper class.
best regards.
Tom yu.
-
TomYU replied to the topic kbmMemTable1.IsDataModified in the forum kbmMemTable 6 years, 1 month ago
This is the helper class I wrote to solve the above problem:
function TkbmMWClientQueryHelper.IsModified: Boolean;
var
i: TkbmNativeInt;
j: TkbmNativeInt;
pRec, pOrigRec, pOldRec: PkbmRecord;
aRecords: TkbmList;
st: TUpdateStatus;
aOldV, aNewV: Variant;
begin
if Self.State in [dsInsert, dsEdit] then
Self.Post;
Result := False;
with Self…[Read more] -
TomYU started the topic kbmMemTable1.IsDataModified in the forum kbmMemTable 6 years, 1 month ago
Result of kbmMemTable1.IsDataModified is not the result I expected.
Suppose a kbmMemTable has a record, when I modify a field, but the new value is the same as the original value of the field. At this time, I think the data set has not been modified. The result of the IsDataModified method should be False.
procedure TForm4.Button1Click(Sender:…[Read more]
-
TomYU started the topic Issue of kbmMWClientQuery.AutoFieldDefsOnOpen property. in the forum kbmMW 6 years, 2 months ago
hi,kim
I set kbmMWClientQuery.AutoFieldDefsOnOpen=mwafoOnce and the Field object is rebuilt after each ClientQuery.Open.
I had to write a helper class and rewrite the Open method.
TkbmMWClientQueryHelper = class helper for TkbmMWClientQuery
procedure Open;
end;
procedure TkbmMWClientQueryHelper.Open;
begin
inherited Open;if…[Read more]
- Load More
