Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread TDataColumn class has a new Key property
Tue, Mar 3 2020 7:57 PMPermanent Link

Richard Harding

Wise Nutrition Coaching

<<The TDataColumn class has a new Key property that must be set for any existing columns in datasets. If the Key property is not set, then transactions won't work correctly.>>

If it must be set for all existing columns in the dataset then under what circumstances should it be set to the default value of false.

I do not understand what is required for the Key property. Would someone be able to explain it to me?

Richard
Tue, Mar 3 2020 8:51 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< If it must be set for all existing columns in the dataset then under what circumstances should it be set to the default value of false. >>

The wording of that sentence in the release notes wasn't very clear, but the operative word was "any", not "all".  What is meant is that EWB can't automatically set the Key property for *existing* dataset columns (well, it can, but you'll need to use the refresh toolbar button in the TDataColumns editor under the inspector), so you will need to set that property for any existing dataset columns *that are actually key columns in that dataset*, not all columns in the dataset.

So, if you had a prior dataset that had a key column CustNo and 12 other columns, you'll just need to set the Key property to True for the CustNo TDataColumn instance in the dataset.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Mar 3 2020 9:33 PMPermanent Link

Richard Harding

Wise Nutrition Coaching

Thank you TIm

Richard
Image