BookmarkSubscribeSubscribe to RSS Feed
dhmeakin

Community Trekker

Joined:

Jul 28, 2012

Sorting in a Script

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

Re: Sorting in a Script

Here's an example:

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

dhmeakin

Community Trekker

Joined:

Jul 28, 2012

Re: Sorting in a Script

Thanks,

Worked like a charm.

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