Jump to content


Photo

[mobile] PhoneBook mobile app


  • Please log in to reply
20 replies to this topic

#21 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 354 posts
  • LocationMelbourne Australia

Posted 29 March 2018 - 12:51 AM

Mohammed, I am having trouble with the TUnimDBListGrid Refreshing (I change the data and issue a refresh but old data still shows), can you please advise - Thanks.

 

procedure TCalendarmForm.MyDateChangeValue(Sender: TObject);
begin
  if ByPassFlag = True then Exit;
  //////////////////////////////////////////////////////////////////////////////
  ListGrid.BeginUpdate;
  UniMainModule.tblCart.Close;
  DateTimeToString(DateStr, 'yyyy-mm-dd', MyDate.Date);
  BookingDateStr:= '(BookingDate = DATE '+Chr(39)+DateStr+Chr(39)+')';
  UniMainModule.tblCart.Filter:= BookingDateStr;
  UniMainModule.tblCart.Filtered:= True;
  UniMainModule.tblCart.Open;
  ListGrid.EndUpdate;
  UniSession.AddJS(CalendarmForm.ListGrid.JSName+'.refresh;');
  //////////////////////////////////////////////////////////////////////////////
end;
 
If I leave the form (via grid row Disclose Button) and then return via new form's Close Button - the new data shows up ?
 
I tried UniSession.Synchronize; after Refresh but it makes no difference.
 
Please advise.

  • 0

Andy





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users