Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » ListBox(ListBox implementation in my project)
ListBox [message #1008567] Wed, 13 February 2013 04:41 Go to next message
Shweta Tiwari is currently offline Shweta TiwariFriend
Messages: 10
Registered: February 2013
Junior Member
Hi,

I am working on scout project where I have to insert listbox in a form, data will be inserted in the listbox from database. Could you please suggest me some way to create this listbox.

Thanks in advance.

Regards,
Shweta Tiwari
Re: ListBox [message #1008574 is a reply to message #1008567] Wed, 13 February 2013 07:12 Go to previous messageGo to next message
Patrick Bänziger is currently offline Patrick BänzigerFriend
Messages: 23
Registered: September 2011
Junior Member
Hello Shweta

I assume you know how to insert the listbox itself into the form with the help of the Scout perspective. If not, please say so.

I suggest that you use a LookupCall and an associated LookupService to load the data.
In the list box in your form, simply override
getConfiguredLookupCall()
and return the class of your new LookupCall.
For your LookupService, have a look at the AbstractSqlLookupService, where you only need to override "getConfiguredSqlSelect()" to get you started.

The Scout perspective will easily let you create a LookupCall with a LookupService, by right clicking the "LookupCall" folder(in the "shared" part of your project) and choosing the "New LookupCall" option.

Does this help you?

Patrick
Re: ListBox [message #1008599 is a reply to message #1008574] Wed, 13 February 2013 09:07 Go to previous message
Shweta Tiwari is currently offline Shweta TiwariFriend
Messages: 10
Registered: February 2013
Junior Member
Thanks a lot for the solution....its working
Previous Topic:Limiting input in FormFields
Next Topic:Scout 3.9.0 M5 displays "bundle order prefix" warning
Goto Forum:
  


Current Time: Mon Dec 22 06:22:41 GMT 2014

Powered by FUDForum. Page generated in 0.01629 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software