Hi,
Recyclable jForm Create and Init sequence has changed and broken my App. I don't know when this change happened but with the latest
LAMW from GIT my application crashes. It was working perfectly. I have tried all sorts of ways to get my App to not crash and no luck.
How am I meant to Create and Init Recyclable jForms in LAMW App?
I create Recyclable jForms as below:
procedure EditStockTakeItems( pCallingForm : jForm; poDocument : TDocumentTransferObj; pOnCloseCallback : TNotifyEvent );
begin
if frmStockTakeItems = nil then
begin
gApp.CreateForm(TfrmStockTakeItems, frmStockTakeItems);
frmStockTakeItems.pCallingForm := pCallingForm;
frmStockTakeItems.poDocument := poDocument;
frmStockTakeItems.Init(gApp);
end
else
begin
frmStockTakeItems.pCallingForm := pCallingForm;
frmStockTakeItems.poDocument := poDocument;
frmStockTakeItems.Show;
end;
frmStockTakeItems.SetCloseCallBack(pOnCloseCallback, pCallingForm );
end;