2
사용자가 "원점으로 이동"을 클릭하면 경고를 쉽게 생성하고 올바른 레코드로 양식을 열 수 있습니다.Dynamics AX 액티브 버퍼가 필요한 양식으로 경고
내가 열려고하는 양식이 활성 버퍼를 필요로 할 때 그렇게 할 수 없습니다. init
메서드 내에서 args()
에 올바른 버퍼가 있는지 확인합니다.
내 진짜 질문은 :
경고를 만들 때 폼에 올바른 버퍼를 추가하려면 어떻게? 아니면 MenuItem
에 추가해야하나요? 왜냐하면 내가 알기로 알리미는 내가 MenuItem
을 제공하기 때문에 어디로 향해야하는지 알고 있기 때문이다. 그래서 폼을 초기화 할 수 있도록 올바른 버퍼를 제공해야합니까?
Args args;
MyTable myTable;
MenuFunction menuFunction;
// Find the record that needs to be passed. This could also be done through a
// select or a call to any function returns a record of the type needed.
myTable = MyTable::find(123);
menuFunction = new MenuFunction(menuitemDisplayStr(MyMenuItem), MenuItemType::Display);
args = new Args();
args.record(myTable);
menuFunction.run(args);
: