Adding Revision Control Options to a Page

You can use the common revision control functionality for any new object type that is to be under revision control. You can control how revisions are created and handled on the Revisions list page, Properties page, and the Revisions category. The common revision control functionality allows the following for all object types that are under revision control:

  • Create a revision from the Revisions list page
  • Create a revision from the Properties page
  • Display the Revisions category for the context object

The commands used for this functionality are added with the Product Line Management shared component installation.

  1. Open the Run MQL window:
    1. From the compass, select Collaboration and Approvals.
    2. In the navigation pane, click Utilities > Run MQL.
    To run an MQL command, enter the command in the MQL Command box and click Run or press Enter.
  2. To add the command to create a revision to a menu on an object's Revisions list page, run the following MQL command:

    modify menu <menu name> add command PLCRevisionCreateNewActionLink;
    where <menu name> is the Revisions page menu to which you want to add the command.

    Selecting this command from the menu opens the Create New Revision dialog box that allows users to create a revision for the context object.
  3. To add the command to create a revision to a menu on an object's Properties page, run the following MQL command:

    modify menu <menu name> add command PLCCreateRevisionPropertiesActionLink;
    where <menu name> is Properties page menu to which you want to add the command.

    Selecting this command from the menu opens the Create Revision dialog box that allows users to create a revision for the context object.
  4. To display the Revisions category for a type of object, run the following MQL command:

    modify menu <menu name> add command PLCRevisionsTreeCategory;
    where <menu name> is category menu to which you want to add the command.

    The Revisions category is displayed in the object type's category menu. This category lists all revisions of the context object.
    Note: If you want to modify some of the fields in the Revisions table, do not modify the original table, because it is used by other functions. Make a clone of the original table, then modify the cloned table.