Sort unsaved data

Hi ,

I have an invoice-entry form where I add new records as invoice lines. Each line has a integer field line_number starting with 1.
I want to be able to insert a new line at a given index position / line_number by changing the line_number of that line and re-number the line numbers.
I think I therefore need the foundset.sort() and there comes the problem : In this form the auto save is off because I want to be able to cancel the invoice-entry.

Can foundset.sort() work on unsaved data ?

Regards,

You can specify the index where to create the newRecord.

Sorting unsaved data is not possible currently.

Paul

pbakker:
You can specify the index where to create the newRecord.

Sorting unsaved data is not possible currently.

Paul

Hi Paul,

Thanks, I know the index parameter of newRecord()

Is sorting unsaved data on the Servoy road map ?

I regard the absence of the possibility of sorting unsaved data in code and UI as an issue…

Regards,

+1

I agree, this would be a big improvement.

Regards,

It is something that is on the list for a future version, but no definite ETA.

Paul