CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

DropDown with ListDataSource and no DataSource

by zsleo » 22 Oct 2013 11:37

IW XIV; CDG 1.8.xx

I gave a DropDown with ListDataSource and no DataSource.

How do I capture the user selected item in the DropDown

TIA

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

by Jorge Sousa » 22 Oct 2013 14:13

Hi

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

by zsleo » 22 Oct 2013 21:30

Thanks, but how do I get the record of the selected Item?

TIA

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

by Jorge Sousa » 22 Oct 2013 23:42

Hi

DropDown.ItemsByValue[DropDown.Val]

or

DropDown.Items[DropDown.SelectedIndex] // If DropDown.SelectedIndex >= 0

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

by zsleo » 23 Oct 2013 05:33

For me it should be "think before you ink".

Sorry, but I meant DB record.
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Jorge Sousa » 23 Oct 2013 09:38

Hi Leo

Ahh, the DB Record

Then you have to Locate It in the ListDataSource.DataSet with DropDown.Val

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

by zsleo » 24 Oct 2013 03:12

Okay.

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


Return to JQDropDown

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.