03.08.2021, 00:56 | #1 |
Боец
|
D365, Filter on grid: Default search criteria
Может кто-то уже искал - как сделать по-умолчанию "Contains" вместо "Begins with"? |
|
03.08.2021, 09:16 | #2 |
Banned
|
Программно - кажется никак. В пользовательском интерфейсе - вот так: https://docs.microsoft.com/en-us/dyn...ed/saved-views
|
|
|
За это сообщение автора поблагодарили: DSPIC (1). |
03.08.2021, 11:13 | #3 |
Участник
|
X++: public class MyForm extends FormRun { [DataSource] class MyTable { public void init() { super(); QueryFilter qf = SysQuery::findOrCreateQueryFilter( this.query(), this.queryBuildDataSource(), fieldStr(MyTable, MyField)); qf.value('*'); super(); } } } |
|
|
За это сообщение автора поблагодарили: EVGL (3), DSPIC (5). |
05.08.2021, 01:55 | #4 |
Боец
|
Цитата:
Hi Mary, thanks for the hint. I've done as per your advise - you can check what we've got. However its not working completely as expected: a dropdown list considers pre-typed value only at the moment of its appearance. It means if you type the value, dropdown appears and do pre-filtering the list (as expected); After that if you type new or change previous value (keeping dropdown list opened) it's not taking into account and prefilters the list using old text. So, you always need to close dropdown before typing new values. However it's better than nothing.. So, standard dropdown behavior is the following: when user starts typing into form control, AX automatically shows dropdownlist. Whenever user changes or keeps typing, AX dynamically changes\re-filters the lookup form. Somehow form control and lookup form are connected to each other (lookup form behaves like a suggestion list in visual studio). In case you've suggested we're getting just a static range\filter which is not changed until user re-open dropdown list. P.S. Sorry for my english text, have no russian keyboard anymore |
|
|
|