Hi Dears
I have problem with Txdatawebdataset in WebCore
when I load data
I need check record count of table directly after loading data
but Always it give to me zero "0" result
pls guide me
I guess this could be an issue about async behaviour of Web-Requests. The data isn't immediately available after your command load.
I use record-count in the AfterOpen-Event of the dataset..
Since Load is called asynchronously, there is no "code immediately" after it. It's asynchronous, you have to wait until it's completed and only then you can access the record count. Use the AfterOpen event.
HI DEAR
I DO THESE CODS IN AFTER OPEN
AND I HAVE DBRESPONSIVEGRID ON NEWFORM
procedure TMAINFORM.TGOODSMAfterOpen(DataSet: TDataSet);
var
newform: TFMENUSEARCH;
begin
If TGOODSM.RecordCount>0 then
BEGIN
newform := TFMENUSEARCH.CreateNew(procedure(AForm: TObject)
begin
// (AForm as TFMENUSEARCH).WRSP_SRCH.EventStopPropagation:=[];
end
);
newform.Caption := 'Saft Kish';
//used to manage Back button handling to close subform
window.location.hash := 'search_goods';
newform.ShowModal(procedure(AValue: TModalResult)
begin
//ShowMessage('Form 2 closed with new value:'+newform.frm2Edit.Text);
//WebEdit1.Text := newform.frm2Edit.Text;
end
);
END;
end;
BUT WHEN FORM START SHOWING
MY CODES IN DBRESPONSIVEGRID.ONITEMCREATE
DO NOT WORK
procedure TFMENUSEARCH.WRSP_SRCHItemCreated(Sender: TObject;
Index: Integer);
begin
CurrencyString :='';