Kirix Support Forums

Refresh Table Marks in a Script

Please post any help questions, requests or other feedback here.

Refresh Table Marks in a Script

Postby MEB on Tue Aug 26, 2014 1:51 pm

I have a script which updates values in a table that is currently open. The table has marks based on the values that are being updated. After the update is finished what do I need to add so that the marks refresh? I don't want to move from the current record after the refresh is finished.

If I page the table up or down a screen, the marks are refreshed. If I open and close another table, the marks are refreshed.
Registered User
Posts: 13
Joined: Wed Nov 12, 2008 3:46 pm

Re: Refresh Table Marks in a Script

Postby Ben on Thu Aug 28, 2014 3:50 pm

This code below uses setFilter to force a refresh on the window. It has the side effect of modifying any active filter your table window may have. It may still be of some use.

Code: Select all
var docs = HostApp.getDocuments();

for (var i = 0 ; i < docs.length; ++i)

    catch (e)
Ben Williams
Kirix Support Team
User avatar
Kirix Support Team
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Return to Strata Help & Feedback