Invalid Cast error when selecting columns for lookup combo in TwwRecordViewPanel
Steps to reproduce:
- Open MainDemo
- View RecordViewDemoForm & select Select Fields on the record view panel.
- Select a field, eg Zip, open ControlAttributes.LookupCombo.DisplayColumns.
- In the collection editor, click to add an item.
- Invalid cast error is raised.
The field could be assigned a lookup source, but it doesn't really matter. The error seems to appear when adding an item to the collection under any condition.
Here is the IDE error:
[18BDC5D8]{dfmxinfopower260.bpl} Fmx.Wwprpedt.TwwGridColumnsProperty.GetValue + $680
[5005A49E]{rtl260.bpl } System.ErrorAt (Line 5750, "System.pas" + 3) + $4
[5005FC4B]{rtl260.bpl } System.@AsClass (Line 18051, "System.pas" + 3) + $5
[18BDC5D8]{dfmxinfopower260.bpl} Fmx.Wwprpedt.TwwGridColumnsProperty.GetValue + $680
[50178F47]{rtl260.bpl } System.Classes.TBasicAction.Execute (Line 17455, "System.Classes.pas" + 6) + $1
[50CFDEE2]{vcl260.bpl } Vcl.ActnList.TCustomAction.Execute (Line 261, "Vcl.ActnList.pas" + 19) + $35
[50178DAF]{rtl260.bpl } System.Classes.TBasicActionLink.Execute (Line 17364, "System.Classes.pas" + 3) + $3
[50D157D4]{vcl260.bpl } Vcl.Controls.TControl.Click (Line 7534, "Vcl.Controls.pas" + 7) + $7
[50D946F0]{vcl260.bpl } Vcl.ComCtrls.TToolButton.Click (Line 21643, "Vcl.ComCtrls.pas" + 0) + $0
[50D15C9F]{vcl260.bpl } Vcl.Controls.TControl.WMLButtonUp (Line 7675, "Vcl.Controls.pas" + 7) + $6
[50D15292]{vcl260.bpl } Vcl.Controls.TControl.WndProc (Line 7420, "Vcl.Controls.pas" + 91) + $6
[50161F4E]{rtl260.bpl } System.Classes.TStringList.Find (Line 7382, "System.Classes.pas" + 8) + $1
[5016210E]{rtl260.bpl } System.Classes.TStringList.IndexOf (Line 7452, "System.Classes.pas" + 23) + $13
[0D4BEE95]{themeloader260.bpl} Idetheme.Updater.TCustomIDEThemeUpdater.ContainsFormClass + $D
[50092A4F]{rtl260.bpl } System.SysUtils.AnsiCompareText (Line 7110, "System.SysUtils.pas" + 1) + $2F
[50162822]{rtl260.bpl } System.Classes.TStringList.CompareStrings (Line 7696, "System.Classes.pas" + 7) + $1
[50161F4E]{rtl260.bpl } System.Classes.TStringList.Find (Line 7382, "System.Classes.pas" + 8) + $1
[50D14ECC]{vcl260.bpl } Vcl.Controls.TControl.Perform (Line 7198, "Vcl.Controls.pas" + 10) + $8
[50D1940A]{vcl260.bpl } Vcl.Controls.GetControlAtPos (Line 10000, "Vcl.Controls.pas" + 4) + $75
[50D194D2]{vcl260.bpl } Vcl.Controls.TWinControl.ControlAtPos (Line 10023, "Vcl.Controls.pas" + 13) + $E
[50D14ECC]{vcl260.bpl } Vcl.Controls.TControl.Perform (Line 7198, "Vcl.Controls.pas" + 10) + $8
[50D195A0]{vcl260.bpl } Vcl.Controls.TWinControl.IsControlMouseMsg (Line 10047, "Vcl.Controls.pas" + 15) + $29
[50D19BA8]{vcl260.bpl } Vcl.Controls.TWinControl.WndProc (Line 10224, "Vcl.Controls.pas" + 112) + $6
[50D9681D]{vcl260.bpl } Vcl.ComCtrls.TToolBar.UpdateButtonState (Line 22921, "Vcl.ComCtrls.pas" + 11) + $27
[50D9685E]{vcl260.bpl } Vcl.ComCtrls.TToolBar.UpdateButtonStates (Line 22932, "Vcl.ComCtrls.pas" + 3) + $4
[50D992E8]{vcl260.bpl } Vcl.ComCtrls.TToolBar.WndProc (Line 24530, "Vcl.ComCtrls.pas" + 104) + $6
[50D19314]{vcl260.bpl } Vcl.Controls.TWinControl.MainWndProc (Line 9977, "Vcl.Controls.pas" + 3) + $6
[50179C9C]{rtl260.bpl } System.Classes.StdWndProc (Line 17959, "System.Classes.pas" + 11) + $2
[50E6ECCF]{vcl260.bpl } Vcl.Forms.TApplication.ProcessMessage (Line 10747, "Vcl.Forms.pas" + 23) + $1
[50E6ED12]{vcl260.bpl } Vcl.Forms.TApplication.HandleMessage (Line 10777, "Vcl.Forms.pas" + 1) + $4
[50E6F045]{vcl260.bpl } Vcl.Forms.TApplication.Run (Line 10915, "Vcl.Forms.pas" + 26) + $3
[0051D06E]{bds.exe } bds.bds (Line 214, "" + 7) + $7
-
Yes. One of the issues fixed in the update you sent me. Thanks.
https://woll2woll.zendesk.com/hc/en-us/community/posts/360041965693/comments/360011116793
Please sign in to leave a comment.
Comments
2 comments