Use the SearchClear() method which is part of the Field class to clear search values on a particular search key field. This is how you canreset search parameters specified by a user when they press the Return to Search button. You can call this using the shortcut notation: RECORD.FIELD.SearchClear(); Or you can declare a field class and then call the method. Put this code in the SearchInit event. If you are clearing a number of fields, I recommend creating a simple function (e.g. ResetSearch) in FieldFormula and calling that function rather than putting a single line of code in the SearchInit event for each field you are clearing. Just makes maintenance a little bit simpler as you only need one function and one call. |
相关文章
- To search for alternate channels that may provide the conda package you’re looking for, navigate
- To search for alternate channels that may provide the conda package you‘re looking for, navigate
- django admin 或xdmin list_display search_fields list_filter 如果显示搜索外键或多对多字段
- ElasticSearch系列 - SpringBoot整合ES:实现分页搜索 from+size、search after、scroll
- ValueError: Length of values does not match length of index
- 算法:图的广度优先遍历(Breadth First Search)
- eclipse 错误信息 "File Search" has encounter a problem 解决
- SqlNullValueException: Data is Null. This method or property cannot be called on Null values.
- LeetCode | Search a 2D Matrix
- Word Search