ILOG Rules for .NET User Guides > ILOG Rule Solutions for Office > Writing and editing rules > Tutorial: Editing rules in Word 2007 > Step 7: Insert and format a rule property

In this step, you insert a rule property to display the status of Default Special Offer: Pricing" rule that you corrected in the previous step.

You then update the default rule format to apply this change to all other rules in the document.

Insert a rule property
  1. Click anywhere in the "Default Special Offer: Pricing" rule.
  2. The properties of the rule are displayed in the Rule Properties section of the RuleDoc pane.
    Several of these properties are displayed in the header section of each rule in the document: Author, Creation Date, Last Modification Author, and Last Modification Date.
  3. Place the insertion point in the header section of the "Default Special Offer: Pricing" rule immediately after the line that displays the Last Modification Date.
  4. Type "Status:" then press SPACE.
  5. On the Rules tab, in the Format group, click Insert Rule Property.
  6. images/ribbongroup_format.png
    A submenu appears and lists the available rule properties.
  7. Select Status
  8. A content control containing the value of the Status rule property is inserted into the document at the cursor position.
    The name of the associated rule property appears as the title of the content control and an edit icon appears to the side of the content control.
    images/edit_contentcontrol.png
  9. Click the edit icon and select Validated in the list of options to change the value of the rule property.
  10. Select the text label "Status:". On the Home tab, in the Styles group, click More, and apply the RulePropertyName text style to the text label.
  11. The header section of your rule should now look like this:
    images/edit_contentcontrol2.png
Update the default rule format
  1. On the Rules tab, in the Format group, click Set as Default Rule Format.
  2. If you are prompted to confirm that you want to replace the existing Default Rule Format, click Yes.
  3. The format of the current rule, including the layout and formatting of the displayed rule properties, is saved as default. This format will be used for all new rules that you create.
    You can also apply the default format to existing rules using the Apply Default Rule Format button in the Ribbon.
  4. Press CTRL+A to select the whole document.
  5. On the Rules tab, in the Format group, click Apply Default Rule Format.
  6. The default rule format is applied to all business rules in the document.
  7. Click Save (or press CTRL+S) to save your changes.
  8. Well done! You have successfully completed all the steps in this tutorial.