Forum > Databases

Disappearing value JVDBLookupCombo ....

(1/1)

1HuntnMan:
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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TFrmProposals.DBNavProposalsClick(Sender: TObject;  Button: TDBNavButtonType);begin  JvDBLukUpCmboCntk.Refresh;end; 
Anyone have a suggestion on how to solve this?

Tks ...

1HuntnMan:
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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TFrmProposals.DBNavProposalsBeforeAction(Sender: TObject;  Button: TDBNavButtonType);begin  JvDBLukUpCmboCntk.Refresh;end; 

Navigation

[0] Message Index

Go to full version