Develop > Tailoring > Links > Posting > Automatic updates using Format Control subroutines > Create the Format Control record for automatic posting

Create the Format Control record for automatic posting

The Subroutines process of Format Control defines Automatic Posting. The application called is post.fc. Posting takes place before the request is added or updated in the database.

Important: As posting may add a new record to the target file, you must fill in all fields that are part of a Unique or No Nulls key using the Source Field / Target Field table, otherwise posting fails.

  1. Click Tailoring > Format Control.
  2. In the Name field of the Format Control Initializations form, type ocmq.open.newemployee.quote.
  3. Click Search.
  4. If no record exists, click New.

    The Format Control record for ocmq.open.newemployee.quote opens.

  5. Click More or the More Actions icon and then select Subroutines. You can also click Subroutines on the form.
  6. Click More or the More Actions icon and then select Show Expanded Form.

    The long version of the Subroutines form opens.

  7. Type the following values in the first available slot.

    NamesValues
    file$file
    nameocmq.post.contacts
    promptemoloyee.id
    Error MessageCould not post to contacts file.
    Application Namepost.fc
    CommentsPOST
    Addtrue
    Beforetrue

    Note: The name parameter passes the name of the Link record you created, and the prompt parameter passes the source field for the Link relationship.

  8. Click Back. A prompt asks if you want to save the changes to the Format Control record.
  9. Click OK to save the record.