Article View: borland.public.cppbuilder.database.multi-tier
Article #81Encode in DatasetProvider
From: Emmanuel
Date: Fri, 01 Apr 2005 04:25
Date: Fri, 01 Apr 2005 04:25
27 lines
1652 bytes
1652 bytes
in the help doc
I found that ,
void __fastcall TDBClientTest::ProviderGetData(TObject *Sender,
TCustomClientDataSet *DataSet)
{
while (!DataSet->Eof)
{
TField *pSensitive = DataSet->FieldByName("SensitiveData");
DataSet->Edit();
pSensitive->AsString = DoEncrypt(pSensitive->AsString);
DataSet->Post();
DataSet->Next();
}
}
It can encrypt the data, I can suceesfully do that
but in help DOC
__property TRemoteEvent BeforeApplyUpdates
1. The client dataset receives a BeforeApplyUpdates event, where it can
encode custom information into an OleVariant.
How Can I encode custom information into an OleVariant, is there any sample?
I have use over 1 week to try it, but still fail.
Is there any body help me?
Emmanuel
Technical Details
Message-ID:
<424ccc4b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news-zh.switch.ch!irazu.switch.ch!switch.ch!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: fcd2b,ae5bd11d762aa5c1,start X-Google-Attributes: gidfcd2b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Emmanuel" <emmanuel@erphk.com> Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: Encode in DatasetProvider Date: Fri, 1 Apr 2005 12:25:24 +0800 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 221.127.228.76 Message-ID: <424ccc4b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1112329291 221.127.228.76 (31 Mar 2005 20:21:31 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news-zh.switch.ch!irazu.switch.ch!switch.ch!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail