Quantcast
Viewing all articles
Browse latest Browse all 72043

Getting an added Menu Item Button on an Extension to Work

I've done an extension on a form. I've added a Menu Item Button. I can't add any methods in the extension, so I created a class for COC. Code snippet:

[ExtensionOf(formStr(InventItemPrice))]
final class InventItemPrice_Extension
{
private xFormRun element;

[FormControlEventHandler(formControlStr(InventItemPrice, BOMCostRoll), FormControlEventType::Clicked)]
public static void BOMCostRoll_OnClicked(FormControl sender, FormControlEventArgs e)
{
}

I copied the event handler for OnClicked and pasted it into the code, see above. When I right mouse click on OnClicked and select Find References, I get the above link. When I run the form and click on the Menu Item Button, I get No object specified on menu item. Why?

I very new to D365 X++, so please excuse my ignorance. I appreciate any help.


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>