The <action> Element Attributes
target
Specifies the location where the action will take place. The available option is browser.
saveViewToAnnoSet
Specifies that if the current view is an annotation set, the annotation set is saved, if the value is set to true. If the value is set to false, the current view is not saved. If annoSetNameSeed is defined, a new annotation set is created and named according to the values of annoSetNameSeed, annoSetNameSuffixUser, and annoSetNameSuffixDate.
annoSetNameSeed
Specifies a name for the annotation set. Together with annoSetNameSeed and annoSetNameSuffixUser, the annotation set name is unique.
annoSetNameSuffixUser
Appends the current user's name to the name of the automatically created annotation set, if the value is set to true.
annoSetNameSuffixDate
Appends the current date to the name of the automatically created annotation set, if the value is set to true.
|
If annoSetNameSuffixUser is set to true then the current date is appended after the user name.
|
copyViewToClipboard
Copies the current view to the clipboard, if the value is set to true. If the view state is an annotation set, then the link and image are both copied. If you paste the contents in Microsoft Excel, Microsoft PowerPoint, or Microsoft Word and click the image link, Creo View opens in the corresponding web page and displays the annotation set as the first page.
|
Creo View will only open if you are running with Windchill.
|
The Content of the <action> Element
The content of the <action> element defines which URL to open and how. When the content is a URL:
• If you are using a web toolkit to build your server, the window will open from the web browser that Windchill is running in.
• Otherwise, the window will open in the default web browser.
In addition, you can also provide substitutions for properties to edit the URL. Creo View searches the property you list in the element content and replaces its value to create a new URL.
Example: Opening a Standard URL
<action
target="browser">
http://somewhere.com
</action>
In this case, the web browser opens www.somewhere.com.
Example: Opening a URL with Substitutions
<action
target="browser">
http://somewhere.com/content.jsp?material=<!MATERIAL!>
</action>
In this case, if the selected item has a property called MATERIAL and its value is set to steel, it will replace the relevant substring of the URL with the property value. In this case, the web browser would open http://somewhere.com/content.jsp?material=steel.
|
You can define several substitutions in a single URL. Define substitutions by enclosing the property to be substituted with <! (less than) and !> (greater than).
|