Recent

Author Topic: Disappearing value JVDBLookupCombo ....  (Read 884 times)

1HuntnMan

  • Full Member
  • ***
  • Posts: 244
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Disappearing value JVDBLookupCombo ....
« on: August 10, 2024, 05:54:15 pm »
I don't know if this is an issue with the JvDBLookUpCombo component itself because I don't have this issue so much in other forms in the app. I'm building.
Here's the deal.  I have a Proposals form with a panel at the top that contains a DBNavigator, a search by index, Save, Cancel and Close buttons.  Below that panel is a DBGrid and the rest of the form below is just a panel containing DBEdits, JVDBLookUp combo's, and one memo field component for Notes.  I can test and all works fine as other forms except on this one form if you use the DBNavigator to skip up and down, Bof, Eof, the value in just one JvDBLookupCombo (Contact lookup for LastName, FirstName and Mi) disappears. You can see it in the grid and it's in the table.  I can roll the mouse above the grid and the lastname refreshes just fine.
I've tried using the OnClick event for the Navigator but that doesn't do it!
 
Code: Pascal  [Select][+][-]
  1. procedure TFrmProposals.DBNavProposalsClick(Sender: TObject;
  2.   Button: TDBNavButtonType);
  3. begin
  4.   JvDBLukUpCmboCntk.Refresh;
  5. end;
  6.  

Anyone have a suggestion on how to solve this?

Tks ...

1HuntnMan

  • Full Member
  • ***
  • Posts: 244
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: Disappearing value JVDBLookupCombo ....
« Reply #1 on: August 11, 2024, 10:08:00 pm »
Also, I tried this next strategy but the behavior is the same for JvDBLookUpCombo for the Contact LastName.  The drop-down box containing the Last Name disappears on any click on the DbNavigator.  Tried this for the BeforeAction event.  Didn't change anything.

Code: Pascal  [Select][+][-]
  1. procedure TFrmProposals.DBNavProposalsBeforeAction(Sender: TObject;
  2.   Button: TDBNavButtonType);
  3. begin
  4.   JvDBLukUpCmboCntk.Refresh;
  5. end;
  6.  

 

TinyPortal © 2005-2018