I have a uniDBListGrid and UnimLabel that I want to refresh (update) via a unimTimer - please advise in Delphi code - thanks.
procedure TUniMainModule.UnimTimer1Timer(Sender: TObject);
begin
UniMainModule.MyQuery.Refresh; // Data is modified externally
UniSession.AddJS(MainmForm.UnimDBListGrid1.JSName + '.view.refresh();');
IF DataPanelmForm is Showing (shown via Disclosure) then update etc.
DataPanelmForm.lblServicedCalls.Text:= 'ServicedCalls: '+IntToStr(UniMainModule.DataSource1.DataSet.FieldByName('ServicedCalls').AsInteger);
UniSession.AddJS(DataPanelmForm.lblServicedCalls.JSName + '.refresh();');
END
UniSession.Synchronize;