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.