cancel
Showing results for 
Search instead for 
Did you mean: 

SFC Card Core Plugin Extension Events Issue

sabahatshaikh
Explorer
0 Kudos
153

Hi Experts,

I am working on core plugin extensions in SAP DM where in I am extending the SfcCardExtensionProvider  whenever there is change of resource status.

As per the github code for SfcCardExtensionProvider there are only four events mentioned in

PluginEventExtension.js.

I wanted to know are only those for events supported for SfcCardExtensionProvider or other events like ON_CLOSE_PLUGIN or ON_POD_SELECTION_CHANGE_EVENT are also supported by SfcCardExtensionProvider ?

I tried using other events like ON_CLOSE_PLUGIN or ON_POD_SELECTION_CHANGE_EVENT but the SfcCardExtensionProvider does not captures it whenever I changes the resource status through changeEquipmentStatus plugin and the plugin is closed.

Also, is there a way we can call plugin events of SfcCardExtensionProvider from any other extension plugin for example changeEquipmentStatus?

Reference Blog for plugin Extension 

Thanks and Regards,

Sabahat Shaikh

SAP Digital Manufacturing SAP Digital Manufacturing Insights @ManoelCosta 

View Entire Topic
ManoelCosta
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi! For Sfc Card plugin, the supported events are:

  • onSelectionChangeEvent()
  • onQuantityChangeEvent()
  • onPageChangeEvent()
  • refreshHeaderInformation()

As docummented at https://github.com/SAP-samples/digital-manufacturing-extension-samples/blob/main/documentation/jsdoc... and implemented as an example at https://github.com/SAP-samples/digital-manufacturing-extension-samples/blob/main/dm-coreplugin-exten...

Br,
Manoel

sabahatshaikh
Explorer

Hi Manoel,

Thank you for your response.

I found out the solution. It is possible to trigger an event by publishing it through another extension provider.

For example, publishing PageChangeEvent from changeEquipmentStatusExtensionProvider. Since PageChangeEvent is supported by SFCCardExtension, it was captured by SFCCardExtensionProvider and it rendered new details on the SFC Card as per custom logic.

Thanks and Regards,

Sabahat Shaikh