Subscribe Bookmark RSS Feed

Sorting in a Script

dhmeakin

Community Trekker

Joined:

Jul 28, 2012

When sorting a table using the sort platform it is possible to check replace table.

There does not seem to be a boolean flag in the scrip call to do the same.

Other than renaming the new temp table to the old table name and closing the old table is there another solution?

2 REPLIES
pmroz

Super User

Joined:

Jun 23, 2011

Here's an example:

dt << sort(By(:name("Year-Quarter")), Order(Ascending), replace table);

dhmeakin

Community Trekker

Joined:

Jul 28, 2012

Thanks,

Worked like a charm.

My mistake was to set "replace table =1".