Function: MnOnStageSelected
▸ MnOnStageSelected(): (target
: any
, key
: any
, descriptor
: PropertyDescriptor
) => void
Decorator that marks a method as an event handler for stage selected.
This event is fired when the stage of a business process flow is selected.
Remarks
Available on pages: Record only.
Registration: Automatic registration at runtime.
For more information, see Microsoft Client API Reference
Example
Notify on form that the business process flow stage is selected
@MnComponent({
scope: {
pageType: "record",
table: "opportunity"
}
})
export class NotifyOnBPFStageSelectedComponent {
@MnOnStageSelected()
onStageSelected(eventArg: FormEventArg) {
eventArg.formCtx.ui.setFormNotification("Business process flow stage selected", "INFO", "BPFStageSelected");
}
}
Returns
fn
▸ (target
, key
, descriptor
): void
Parameters
Name | Type |
---|---|
target | any |
key | any |
descriptor | PropertyDescriptor |
Returns
void