Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

Replicate menuItem by x++

$
0
0

Im trying to call a menuItem by code, but looks like I'm missing

args.record().dataSource()

 

-------------------

When I call the BOMReportFinished (action) from a button I have a args.record().dataSource() returning true.

but when I call it from code like this:

 

args.record(inventsum::find("C-1202BCA-B",'0087361'));

new MenuFunction(MenuItemActionStr(BOMReportFinished),MenuItemType::Action).run(Args);

 

args.record().dataSource() return false;

 

Do I need to add something to my args to have args.record().dataSource() return true;

 

Thanks

 

 

 

 

 


Viewing all articles
Browse latest Browse all 9880

Trending Articles