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.
Kirix Support Forums
Refresh Table Marks in a Script
2 posts
• Page 1 of 1
Re: Refresh Table Marks in a Script
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)
{
try
{
docs[i].setFilter('');
}
catch (e)
{
print("exception");
}
}
Ben Williams
Kirix Support Team
Kirix Support Team
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
2 posts
· Page 1 of 1
Return to Strata Help & Feedback