on 2022 Dec 05 5:24 AM
Dear SAP Community,
I'm new to SAP DMC we have a requirement where we need to create custom view plugin that shows the cowntdown
Timer for 2 min (e.g. 00:02:00, 00:01:59, ...., 00:00:00) .the timer should start on click of Start Button from POD.
and stop the Timer on click of Complete Button from POD.
is there a way that we can show the timer i.e., custom view plugin on Start of SFC and stop the timer on complete of SFC
note:there are standard start and complete plugins are assigned to each of the buttons respectively.
Thanks in advance.
regards,
Anvesh
Hi Anvesh,
Yes this is perfectly possible and I wrote something very similar last year. You have two options, you can use the internal POD events that are triggered when the SFC is started and completed or you can use the external POD Notifications and then attach a production process to the Start and Complete buttons that send a notification into your plugin.
Thanks
Kevin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anvesh,
Yes the events are detailed in the POD developers guide Plugin Events although it doesn't appear to have all of the events listed .
Add this to your handleOnBeforeRenderingPlugin function
this.subscribe("StartExecutionEvent", this.onStartExecutionEvent, this);
this.subscribe("FinishedExecutionEvent", this.onFinishedExecutionEvent, this);
Then create your two event handlers eg
onStartExecutionEvent: function(sChannelId, sEventId, oData){ }
oData contains information about the event that you can use in your function.
The other approach is to use the external POD notifications which may give you a little more flexability. If you are using my yoman tool to start you POD build then it already adds the boilerplate code for external notifications .
Hope this helps
Kevin
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.