Db Control Stuck in Container if DataField Bad
Original Reporter info from Mantis: jwhitten
-
Reporter name: John Whitten
Original Reporter info from Mantis: jwhitten
- Reporter name: John Whitten
Description:
Data-aware control gets "stuck" in the upper-left corner of its container on drop (i.e., cut-n-paste) if the "DataField" property is set and the field doesn't exist.
Steps to reproduce:
This is an odd issue, but it seems consistently reproducible. I have a GroupBox which contains a number of data-aware controls, which have been copied from another similar Form/GroupBox with the purpose of re-arranging them to be a new form-- I'm actually using Frames, but I doubt that's relevant. I also suspect that the fact they're copied is only marginally relevant. However, here's how the problem happens...
I select a data-aware control (in this instance, a dbDropDown widget) and copied it and then pasted it back to the same GroupBox container. I got a popup error message saying "In file (blahblah).lfm (queryWidgetName): Field Not Found: (fieldName)". I hit "cancel" (the only button available) and then it shows me the newly pasted control in the upper left-hand corner. Inspecting the control shows the "DataField" property as being the same as the original control (which is as it should be) and which is further itself a copy of the control from the other form... (confused yet? :-) so the fields in all the controls still contain the old fields from the other form.
The problem is that the new control is pretty much Nailed in-place there in the GroupBox (it won't budge) until I go in and manually set the DataField name to something else that exists (blank works also). After that, I can drag and position the control normally.
Additional information:
This is of course a minor issue, but it could be annoying to someone who runs into it. This bug report documents both the issue and the workaround until it can (maybe, eventually, some-day possibly) get fixed.
Mantis conversion info:
- Mantis ID: 24701
- OS: Windows
- OS Build: 7
- Build: 41613
- Platform: PC
- Version: 1.0.10
- Monitored by: » @lacak.sk (LacaK)