D365FO 更改标准窗体上的lookup

先参照下图找到对应窗体上的控件

D365FO 更改标准窗体上的lookup_第1张图片

 新建Extension class

[ExtensionOf(formStr(PurchTable))]
final class RIC_TP_PurchTableForm_Extension
{
    /// 
    ///
    /// 
    /// 
    /// 
    [FormControlEventHandler(formControlStr(PurchTable, PurchLine_ItemId), FormControlEventType::Lookup)]
    public static void PurchLine_ItemId_OnLookup(FormControl sender, FormControlEventArgs e)
    {
        InventTable::lookupItem(sender);
        FormControlCancelableSuperEventArgs ce = e as FormControlCancelableSuperEventArgs;
        ce.CancelSuperCall();
    }

}

 

你可能感兴趣的:(D365,FO)