Показать сообщение отдельно
Старый 05.08.2021, 01:55   #4  
DSPIC is offline
DSPIC
Боец
 
1,077 / 1234 (44) ++++++++
Регистрация: 11.04.2008
Цитата:
Сообщение от Stitch_MS Посмотреть сообщение
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();
        }

    }

}
Almost there but not enough. Here is my answer to a requester.

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