Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with combobox in grid and pageframe
Message
From
20/07/2006 08:42:02
 
 
To
19/07/2006 22:22:51
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Oracle
Miscellaneous
Thread ID:
01137212
Message ID:
01137994
Views:
14
If you put code in the pages' click method to view the current value of the combobox when that occurs, is it correct? Or has the value changed from the value that it was before the user clicked on the dropdown but didn't select a new value? If the values in the grid are actually changing, then code somewhere is refreshing the grid to the wrong values. How is the grid actually populated? Is it a filtered table, a query, or what? Where is the code that actually populates the grid? Is it in the combobox? If so, what method is it in? You may want to look at moving that code so it only gets run when the user actually selects a different item from the combobox...


>Yes it is a drop down list.
>
>>What is the style for the combobox? Is it 2-DropDown List?
>>
>>
>>>In my application I have a pageframe with one or more tabs. Sitting on top of the pageframe (not in) is a grid which has a combobox in one of the columns. Clicking on a tab in the pageframe changes the filter on the data in the grid to a different warehouse. The combobox is used to change the vehicle for a route.
>>>
>>>The problem I am having is if the user clicks on the combobox pulling down the list to choose from but instead of clicking on an item from the list the user clicks on a different tab in the pageframe. The result that happens is that the pageframe shows the other warehouse but the data displayed in the grid is a slightly messed up version of the data that was displayed in the warehouse the user was just on. I have code that requeries the cursor adapters for the new warehouse when the user clicks on pageframe tab.
>>>
>>>Is there something to look at to solve this situation or is there a way to prevent the user from exiting the combobox in this fashion?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform