Infopower VCL Twwdblookupcombo with Calculated field as select field of DB lookup combo.

165 views
Skip to first unread message

Divyesh Vadhwana

unread,
Nov 24, 2015, 5:58:12 AM11/24/15
to woll2woll.infopower
Hi,

I recently upgraded my Delphi 2007 code to Delphi XE8. On one of the form, I am getting an error "Item cannot be found in the collection corresponding to the requested name or ordinal" on clicking of dropdown of the wwDBLookupCombobox. I observe that in my case select property of lookup combo box is set to a calculated field of ADOdataset. If I change it to one of the regular field of ADOdataset then this issue will not occur. 

Can some one please guide me on how to proceed with this error ? Are we still allow(in newer version) to use calculated field as select property in db lookup combo box ?

Regards,
Divyesh

roy....@gmail.com

unread,
Nov 24, 2015, 12:25:10 PM11/24/15
to Divyesh Vadhwana, woll2woll...@googlegroups.com
I’m wondering if the issue is that the component is trying to sort by the calculated field which may not supported for the backend.  Try setting the property OrderByDisplay to false to see if this corrects the issue for you.

-Roy
--
You received this message because you are subscribed to the Google Groups "woll2woll.infopower" group.
To unsubscribe from this group and stop receiving emails from it, send an email to woll2wollinfopo...@googlegroups.com.
Visit this group at http://groups.google.com/group/woll2wollinfopower.
To view this discussion on the web visit https://groups.google.com/d/msgid/woll2wollinfopower/9ec4fce3-4bdb-4541-8cc5-d6b4b2b6473b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages