cancel
Showing results for 
Search instead for 
Did you mean: 

Custom POD Plugin

javierrubio_01
Explorer
0 Kudos
650

Hi,

Does anybody know what the steps are to develop a custom plugin and execute it from a Digital Manufacturing Cloud POD?. My understanding is that the custom plug is a UI5 component that can be embedded in the standard POD.

If I need to enhance the standard POD by adding a new search field ( sales order ) and display results in the worklist based on this new field, do I need to develop a new xml view with the search field in my plug in?.

How do I link up my plug's controller and the POD's controller?. I usually do that by leveraging EventBus ( EventBus.publish in the custom component and EventBus.subscribe in the main app ). But how does the main app ( standard POD ) 'listen' to the plug's event ?.

Yet, how do I pass the new custom search field to the API to fetch data?. Is this coded in my custom plug in or do I need to extend the standard POD?. Do I need to enhance the API as well?

Thanks,

Javier

Accepted Solutions (0)

Answers (2)

Answers (2)

javierrubio_01
Explorer
0 Kudos

Hi Ardit, Kevin,

Is it operationPodSelectionExtensionProvider the plugin extension for adding a new field ( sales order ) in the search area and

worklistExtensionProvider the plugin extension for adding a new column and build the logic to read the search area and populate that column?.

If so, can you please let me know the events I need to use for that?, I am still struggling to be honest

Regards,

Javier

ArditZeqiraj
Newcomer
0 Kudos

Hi Javier,

Here is a pretty nice blog for doing this :https://blogs.sap.com/2022/04/11/building-a-custom-digital-manufacturing-cloud-pod-plugin-the-easy-way/

And here you have some examples : https://github.com/SAP-samples/digital-manufacturing-extension-samples

BAS is used here as dev environment but you can develop and deploy also locally with others(some things will change).

My understanding is that the custom plug is a UI5 component that can be embedded in the standard POD.

Yes they are embedded in the standard PODs.

If I need to enhance the standard POD by adding a new search field ( sales order ) and display results in the worklist based on this new field, do I need to develop a new xml view with the search field in my plug in?

There are standard PODs like the worklist POD that can be enhanced and others that can not. You can find in the examples some of them.

How do I link up my plug's controller and the POD's controller?. I usually do that by leveraging EventBus ( EventBus.publish in the custom component and EventBus.subscribe in the main app ). But how does the main app ( standard POD ) 'listen' to the plug's event ?

There are events that are configured in the pod designer to which your POD can subscribe.

You can build also custom pod notifications through the APIs.


how do I pass the new custom search field to the API to fetch data?. Is this coded in my custom plug in or do I need to extend the standard POD?. Do I need to enhance the API as well?

You would need to extend the plugin/or build the new one.


Before going to the specific case, I would start trying the examples. Then you can explore more and implement the specific case.


All the best,

Ardit

Kevin_Hunter
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Javier,

It sounds like you want to input an order into the POD rather than an SFC , if so there is no need to customise that as thats what the Order POD is for.

As Ardit has pointed out check out my blog that explains how to build your first POD plugin and check the developers guide that you can find HERE. As for the events all of the standard plugins use events already that you can also subscribe to in custom plugins as well as adding your own ones, you will find details HERE

Thanks

Kevin

javierrubio_01
Explorer
0 Kudos

Thanks Ardit, Kevin,

If I want to display another column in the standard worklist plug, do I need to build this column separately in a custom plug and call this custom plug from the standard plug or do I need to extend the standard worklist plug?.

If the approach is the former, then I'd need to use events to link up both plugs?, if the approach is the latter where can I find the standard plug code?. Does it have extension points?.

Regards,

Javier

javierrubio_01
Explorer
0 Kudos
Hi Ardit, sorry but when you said that 'There are standard PODs like the worklist POD that can be enhanced and others that can not' what do you mean?. If I need to enhance the standard POD by adding a new search field ( sales order ) and display results in the worklist based on this new field, do I need to develop a new xml view with the search field in my plug in?