Script step to change button's text

Discussion created by slabin on Jun 8, 2017
Latest reply on Jun 8, 2017 by siplus

I need to filter record in my List Mode. I made a button, named it "Filter" and made script to filter records depending of button's text (with function GetLayoutObjectAttribute). If it is "Filter", script performs find and then sort. If it is "Show All" - finds all records and sorts. All this work, when button text is setting in Layout Mode. How to change this test as scrip step? After finding needed records - change text to "Show All".