devxlogo

How to determine current filter/sort associated with DataWindow

How to determine current filter/sort associated with DataWindow

Question:
How can I determine the current filter and/or sortassociated with a DataWindow?

For example:

s_old_filter = dw_1.WhatsTheCurrentFilter()dw_1.SetFilter(“”)dw_1.Filter()// Do somethingdw_1.SetFilter(s_old_filter)dw_1.Filter()

Answer:
You can use the Describe function:

ls_OldFilter = dw_1.Describe( “datawindow.table.filter” )
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist