Create Custom Action for Rules with Time Span Selection

Hi all, we would like to create a custom Action to be used in Rules the user can define a time interval, like for example, in the “Retrieve and store remote recordings from ” built-in action.

Currently we are only able to provide a list of Interval Items in a Multi-Select dialog.

Is there a way we can use the built-in time interval selection or can we at least provide a custom selection widget somehow?

Kind Regards

Daniel

Actions can be used in rules with a specified time interval. Below is an example using the BatAction plugin sample:

https://doc.developer.milestonesys.com/mipsdk/index.html?base=gettingstarted%2Fintro_rulesystem.html&tree=tree_Search.html)

https://doc.developer.milestonesys.com/mipsdk/index.html?base=samples%2FPluginSamples%2FBatAction%2FREADME.html&tree=tree_Search.html

From your question, it seems you already have a multi-select dialog implemented. However, I am not familiar with the "Retrieve and store remote recordings from " feature, and I find it challenging to understand your current implementation. Could you please elaborate on what you have developed so far and what you aim to implement?

Hi Bo,

thank you for the answer, I try to be more specific.

We want the user to be able to specify a specific time range like he can when defining built-in rule “Retrieve ans store recordings from”

According to the BatAction example we were able to create a working Plugin, but the user is only able to choose in this multi-selection dialog:

Is there a way to implement our plugin so we can offer the time span selection dialog like in the built-in rule above?

Hi Daniel,

All your observations are correct. Unfortunately I also have to say that you have already found the best way to use this.

There is unfortunately no way to create a time span selection when you are developing actions using the MIP SDK. The example you found in “Retrieve and store remote recordings from ” has been developed by Milestone internally using methods different from the MIP SDK.

Thank you Bo!

That is not the answer we hoped for, but at least we have a definitive answer.