os:activityAction element

Specifies the Accelerator functionality based on a datatype, such as selection or document.

Usage

<os:activityAction
  context = "sContext">
  child elements
</os:activityAction>

Attributes

Attribute Type Required Description

context

sContext

Yes

The context in which the activity menu item is visible. One of the following values:

selection

Default. A selected region was clicked.

document

The document was clicked.

link

An anchor tag was clicked.

Child elements

Element

os:execute

os:preview

Child element sequence

os:executeos:preview

Parent elements

Element

os:activity

Examples

The following Accelerator XML allows the user to quickly send document details to a blogging service. It uses a separate os:activityAction element for each of the defined contexts.

<?xml version="1.0" encoding="utf-8" ?> 
<os:openServiceDescription
    xmlns="https://www.microsoft.com/schemas/openservicedescription/1.0">
  <os:homepageUrl>http://example.com/</homepageUrl> 
  <os:display>
    <os:name>Blog with MyBlogs</name> 
    <os:icon>http://example.com/favicon.ico</icon>
  </os:display>
  <os:activity category="blog">
    <os:activityAction context="selection">
      <os:execute method="get" action="http://www.example.com/BlogIt.aspx">
        <os:parameter name="title" value="{documentTitle}" /> 
        <os:parameter name="SourceURL" value="{documentUrl}" /> 
        <os:parameter name="description" value="{selection}" type="html" /> 
      </os:execute>
    </os:activityAction>
    <os:activityAction context="document">
      <os:execute method="get" action="http://www.example.com/BlogIt.aspx">
        <os:parameter name="title" value="{documentTitle}" /> 
        <os:parameter name="SourceURL" value="{documentUrl}" />
      </os:execute>
    </os:activityAction>
    <os:activityAction context="link">
      <os:execute method="get" action="http://www.example.com/BlogIt.aspx">
        <os:parameter name="title" value="{linkTitle}" /> 
        <os:parameter name="SourceURL" value="{link}" />
      </os:execute>
    </os:activityAction>
  </os:activity>
</os:openServiceDescription> 

Element information

Minimum supported system

Windows XP with SP2
Can be empty No