Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 16 of 16 total
Thread TButtonCombo & Datasets
Wed, Oct 28 2015 9:00 PMPermanent Link

Raul

Team Elevate Team Elevate

On 10/28/2015 4:35 PM, squiffy wrote:
> Sorry Tim, I'm clearly missing something here.

I was in the same boat and looking at it wrong - current one is designed
for a different purpose.

if linked to dataset then it simply represent a column value and when
dataset is in browse mode it essentially acts as display (label) only.

however if you put the linked dataset in the Edit mode you can now use
the drop down to cahnge the value of the linked field (and set it to one
of the values in the combo item list).

> If the dataset gets loaded from the json string and the combo box is databound to it, and the datacolumn is set to the correct json field, shouldnt that do it?

Not meant for this in its current state  - you'd have to load items
yourself in code and it simply matches the dataset field value with the
item in list.


Raul
Thu, Oct 29 2015 4:01 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

Ok, so just to be clear ...

I *cannot* load the items in a combo box in the same kind of way I would load items into a grid, ie directly from a dataset. I must do it as I am now by stepping through a freshly loaded dataset and adding them one by one.

Is that correct?
Thu, Oct 29 2015 8:30 AMPermanent Link

Raul

Team Elevate Team Elevate

On 10/29/2015 4:01 AM, squiffy wrote:
> I *cannot* load the items in a combo box in the same kind of way I would load items into a grid, ie directly from a dataset. I must do it as I am now by stepping through a freshly loaded dataset and adding them one by one.

AFAIK Yes.

It can be used as a an editor for the dataset field (hence the dataset
and column field) - so you can have combos, tedits, etc to show field
contents (each one would represent single field of the current databaset
record).

So for now you'd to write your own helper function to populate it.

Raul
Fri, Oct 30 2015 6:11 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

That's fine, as long as I know.

Cheers.
Fri, Oct 30 2015 12:55 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< Ok, so just to be clear ...

I *cannot* load the items in a combo box in the same kind of way I would load items into a grid, ie directly from a dataset. I must do it as I am now by stepping through a freshly loaded dataset and adding them one by one.

Is that correct? >>

Correct.  But, the database* functionality will be getting a facelift soon, and one of the items on the list is lists that can bind to a dataset for their values, as opposed to just TStrings.

Tim Young
Elevate Software
www.elevatesoft.com
Sun, Nov 1 2015 10:44 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

Thanks, Tim.
As I say it's no issue. I'd just completely misunderstood and got very confused.
Previous PagePage 2 of 2
Jump to Page:  1 2
Image