Function: MnOnDataLoad
▸ MnOnDataLoad(): (target: any, key: any, descriptor: PropertyDescriptor) => void
Decorator that marks a method as an event handler for data load event.
This event is fired :
- On initial load of the form.
- When
refresh()method is called. - When the user clicks the
Refreshbutton on the form.
Remarks
Available on pages: Record only.
Registration: Automatic registration at runtime.
For more information, see Microsoft Client API Reference
Example
Data Load
@MnComponent({
scope: {
pageType: "record",
table: "account"
}
})
export class MyComponent {
@MnOnDataLoad()
onDataLoad() {
Xrm.Navigation.openAlertDialog({ text: "Data loaded" });
}
}
Returns
fn
▸ (target, key, descriptor): void
Parameters
| Name | Type |
|---|---|
target | any |
key | any |
descriptor | PropertyDescriptor |
Returns
void