Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Order by with multiple columns on sql generates a Data Set that is not editable
Mon, Jul 28 2014 9:56 AMPermanent Link

Jianfei Xu

Hi, I use SQL query to sort, if only sort one column, dataset still editable, however, if sort by multi-column, dataset not editable. How can I make dataset editable for multi-column sort situation
Mon, Jul 28 2014 9:58 AMPermanent Link

Uli Becker

Jianfei,

have all sorted columns indexes?

Uli
Mon, Jul 28 2014 10:21 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Jianfei


To expand a bit on what Uli says. In ElevateDB the SORT BY clause must match exactly to an index if you want to be able to edit the data. So if you sort

SORT BY fld1 ASC, fld2 DESC

the it would not be editable if you have an index fld1 ASC; fld2 ASC

Essentially think of it as being like a table, if you can set an index using a table (TEDBTable) then it will be editable. If not then ElevateDB has to create a temporary table to hold the data in the order you want so a) it takes longer for the query to run and b) the data is insensitive.

Roy Lambert
Mon, Jul 28 2014 11:22 AMPermanent Link

Jianfei Xu

Thanks, I will test again based on your information.
Image