Adding the Component Versions Widget to Your Process Apps

You can add the Component Versions widget to any SBM process app form. This would enable your users to see the list of component versions associated with that process app's items. This would not show a list of snapshots.

To modify a process app to use the Component Versions widget:

  1. In SBM Composer, open the process app to which you want to add the widget.
  2. Add an HTML/JavaScript widget to the state form.
  3. Set the width to expand the entire width of the cell.
  4. Copy and paste the following into the JavaScript widget:
    $INCLUDE(rlm/deploymentUnitView.htm)
    <script> 
    var mtParameters = \
    {
     "recordId" : $RECORDID(),
     "tableId": $TABLEID(),
     "projectId": $PROJECTID(),
     "mode":"view",
     "widgetType": "MT" 
    }
     AddLoadCallback(function()\
    {rlm.deploymentUnitView.loadWidget
    (mtParameters,"nocallback");});
    </script>
  5. Deploy the process app.
Note: You cannot add more than one instance of this widget to the same state form. If you do so, only one instance will be loaded and working.