CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

CGJQDropDown and DataLink

by dslaporte » 20 Mar 2013 20:50

I've found it!

IWCGJQDropDown.Val

Thanks! =)
dslaporte
 
Posts: 22
Joined: 25 Feb 2013 14:34

by Jorge Sousa » 20 Mar 2013 22:10

Hi dslaporte

I don't know exactly what you asking for.

Are you trying to change the selection programmatically?

You've to use property DropDown.Val

Best Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by zsleo » 28 Apr 2013 04:48

Daniel,

I confused myself again with this...

This issue is, I think, non-converntional Delphi nomencleture.

I hope you dont main me expaning on your explanation for future reference.

DataSource == List of Customers
ListSource == Suburbs List

To link a drop down list to Customers.PostCode

DropDown.DataLink.DataSource := Customers
DropDown.DataLink.ListSource := Suburbs
DropDown.DataLink.FieldName := SRecID <<== Customers.SuburbRecID
DropDown.DataLink.ListSelectFieldName := SuburbRecID <<== Suburbs.SuburbRecID
DropDown.DataLink.ListLookupResultFieldName := SuburbName <<== Suburbs.SuburbName
DropDown.DataLink.ListFieldNames := SuburbName <<== Suburbs.SuburbName

CGD Support, please be free to correct / add / edit this post without reference. For example, how will I have two fields from the list in the drop down.

Regards

Zane
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Jorge Sousa » 29 Aug 2013 23:29

I was looking at this old post, sorry, I believe you sorted it out, since we've been in touch :)

I just wanted to add this:

We named the property ListFieldNames, on the plurar form, because it's part of DataLink class, and because we want to add multiple column list for dropdown in the future.

And we don't want to change property names in the middle of updates, and provoque breaking changes in the code, in this case, since is a published property, also the .dfm loading process.

Dropdown only will look for the first FieldName of DropDown.DataLink.ListFieldNames.

Best Regards
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

Previous

Return to JQDropDown

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.