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” )

devx-admin

Share the Post: