In D365FO we get few BP warnings.
- If you use event handler most of the time we are getting "The parameter 'e' is not" BP.
- (FormDataSourceEventArgs e) Most of the time we are not using this. We use this in lookup method.
To rectify this need to use below command.
SuppressBPWarning('BPParameterNotUsed', 'False positive')
Below is the example for validate method.
[FormDataSourceEventHandler(formDataSourceStr(WHSLocation, WMSLocation), FormDataSourceEventType::ValidatingWrite), SuppressBPWarning('BPParameterNotUsed', 'False positive')] public static void WMSLocation_OnValidatingWrite(FormDataSource sender, FormDataSourceEventArgs e) { }
Keep Daxing!!
No comments:
Post a Comment