自動化 - 自動化 scanEZ
 Print 

scanEZ Automation

Select

<Select Target="Tree" Category="Designs" Type="Agents" Name="My Agent"/>
<Select Target="Tree" Category="ByNoteID" Value="2294:2314:2326:2494:2354"/>

Action :Select
Attributes :TargetTree
CategoryThe display name of the first level node
TypeSpecifics values
NameThe display name of the document in the tree
ValueDecimal or hexadecimal values
DescriptionThe Select action is only used to automate control of the Selection Tree.
It will set the focus on a Tree node and select the check box next to the node.



Category works with :
My Selection names - Type and Name are optional
Access Control List
Designs – Type and Name are optional
Documents – Type and Name are optional
Profile Documents – Type and Name are optional
Deletion Stubs – Type and Name are optional
Conflicts – Type and Name are optional
ByNoteID – Requires Value only. Only the following Tree nodes will be searched : Designs, Documents, Profile Documents.

Type is not used with the Category ByNoteID.
For Category other than Designs, Type value is the display name in the Tree.
For the Designs Category, Type values are :
Outlines
Framesets
Pages
Forms
Views
Folders
Navigators
Agents
Images
Applets
Web Services Providers
Web Services Consumers
Java
Jars
Subforms
Shared Fields
Script Libraries
Others
Agent Data
Data Connections
DB2 Access Views
Style Sheets
Shared Columns
Shared Actions
Files
Wiring Properties
Composite Applications
Components
iNotes
XPages
Custom Controls
Themes
Server JavaScript Libraries
Eclipse Files

Name is not used with the Category ByNoteID

Value is only used with the Category ByNoteID.
Focus


<Focus Target="Tree" Category="Designs" Type="Agents" Name="My Agent"/>

Action :Focus
Attributes :TargetTree
CategoryThe display name of the first level node
TypeSpecifics values
NameThe display name of the document in the tree
ValueDecimal or hexadecimal values
DescriptionThe Focus action is used to automate control of the Selection Tree.
Unlike Select, it will set the focus on a tree node.
This can happen at the Category level, the Type level or the Name level.

For more information about Attributes click on Select.
Expand


<Expand Target="Tree" Category="Designs" Type="Agents"/>

Action :Expand
Attributes :TargetTree
CategoryThe display name of the first level node
TypeSpecifics values
NameThe display name of the document in the tree
ValueDecimal or hexadecimal values
DescriptionThe Expand action is used to automate control of the Selection Tree.
It will expand the Category and/or the Type tree node.

For more information about Attributes click on Select.
MySelection


<MySelection>
        <Setparam Field="MySelectionName" Value="Test"/>
        <Setparam Field="TitleOptionType" Value="Column"/>
        <Setparam Field="TitleOptionColumnName" Value="All Documents|($All):2"/>

</MySelection>

Action :MySelection
Attributes :
Parameters :SetParamFieldValueKeepAlive
MySelectionNameName of MySelectionTrue/False
TitleOptionTypeDefault
Field
Formula
Column
TitleOptionFieldNameUser specified document field name
TitleOptionFormulaUser specified formula
TitleOptionColumnNameUser specified view name coupled with the column number
DescriptionThis action is used to automate the 'My Selection' panel.



Field="TitleOptionFieldName" : Use this attribute with TitleOptionType="Field"

Field="TitleOptionFormula": Use this attribute with TitleOptionType="Formula"

Field="TitleOptionColumnName": Use this attribute with TitleOptionType="Column"

If you wish to keep a dialog open, use the KeepAlive attribute in a SetParam action.
SearchBy


<SearchBy Type="UNID">
        <Setparam Field="EnterID" Value="201C6D2F900212A385257A1E0053826F;76B9CD8F3012A32285257A1E00538270"/>
        <Setparam Field="PutSearchInSelType" Value="Create"/>
        <Setparam Field="PutSearchInSelCreateName" Value="Test"/>
        <Setparam Field="TitleOptionType" Value="Column"/>
        <Setparam Field="TitleOptionColumnName" Value="($All):5"/>

</SearchBy>

Action :SearchBy
Attributes :TypeUNID
NoteID
NoteIDRange
DesignTitle
Formula
QuickRetrieve
FullText
NotesClass
Parameters :SetParamTargetFieldValueKeepAlive
MessageBoxEnterIDList of UNIDs or NoteIDs to search in the currently opened database. Separate consecutive ID with a semi-colon ";"True/False
PutSearchInSelTypeCreate, Append or Replace.
Textual value of the row to search for in the first column.
PutSearchInSelCreateNameUser specified name for the My Selection to be created. If none is specified, the default is used. This name is language specific. In English it is My Selection followed by number. For example My Selection 1
PutSearchInSelAppendNameUser specified name for the My Selection to appended the found UNIDs.
PutSearchInSelReplaceNameUser specified name for the My Selection in which to replace the currently inserted UNIDs with the new ones found.
TitleOptionTypeDefault, Field, Formula or Column.
TitleOptionFieldNameUser specified document field name. Use this attribute with TitleOptionType="Field".
TitleOptionFormulaUser specified formula. Use this attribute with TitleOptionType="Formula.
TitleOptionColumnNameUser specified view name coupled with the column number. Use this attribute with TitleOptionType="Column". Separate the view name and column number with a colon ":"
EnterFirstIDThe first NoteID in the range to search.
EnterSecondIDThe last NoteID in the range to search.
ShowEveryIDTrue/False. Checkbox state for "Show Every NoteID for a Given Document"
DesignElemTypeThe string to select in the combo OR Index= The index of the combo item.
DesignElemTitleThe title of the Design element.
PublicNotesTrue/False
PrivateNotesTrue/False
SetFormulaThe formula to use in the search
SearchDocumentsTrue/False. True to search all documents. False otherwise.
SearchDesignsTrue/False. True to search all design elements. False otherwise.
ShowRadio button value that will determine what to show in the list.
ViewFolderListTrue/False. True to search all documents. False otherwise.
SearchForThe text to search for.
WordVariantTrue/False
FuzzyTrue/False
NonDeleteNotesTrue/False
DocumentsTrue/False
DesignsTrue/False
FormTrue/False
ViewTrue/False
FilterTrue/False
FieldTrue/False
ReplicationFormulaTrue/False
PrivateDesignTrue/False
DeletionStubsTrue/False
ModifiedAfterTrue/False
ModifiedAfterDateThe modified date after which to look. Note that the format MUST be yyy/mm/dd.
DescriptionThe SearchBy action is used to search a database.

Search by UNID :

<SearchBy Type="UNID">
        <Setparam Field="EnterID" Value="201C6D2F900212A385257A1E0053826F;76B9CD8F3012A32285257A1E00538270"/>
        <Setparam Field="PutSearchInSelType" Value="Create"/>
        <Setparam Field="PutSearchInSelCreateName" Value="Test"/>
        <Setparam Field="TitleOptionType" Value="Column"/>
        <Setparam Field="TitleOptionColumnName" Value="($All):5"/>

</SearchBy>



Search by NoteID :

<SearchBy Type="NoteID">
        <Setparam Field="EnterID" Value="2560; hA1A"/>
        <Setparam Field="PutSearchInSelType" Value="Append"/>
        <Setparam Field="PutSearchInSelCreateName" Value="Foo"/>
        <Setparam Field="TitleOptionType" Value="Formula"/>
        <Setparam Field="TitleOptionColumnName" Value="@NoteID"/>

</SearchBy>



Search by NoteID Range :

<SearchBy Type="NoteIDRange">
        <Setparam Field="EnterFirstID" Value="2560"/>
        <Setparam Field="EnterSecondID" Value="2622"/>
        <Setparam Field="ShowEveryID" Value="True"/>

</SearchBy>



Search Design element by Title :

<SearchBy Type="DesignTitle">
        <Setparam Field="DesignElemType" Index="0"/>
        <Setparam Field="DesignElemTitle" Value="($All)"/>
        <Setparam Field="PublicNotes" Value="True"/>
        <Setparam Field="PrivateNotes" Value="True"/>
        <Setparam Field="PutSearchInSelType" Value="Create"/>

        <Setparam Field="PutSearchInSelCreateName" Value="Foo"/>
</SearchBy>



Search by Formula :

<SearchBy Type="Formula">
        <Setparam Field="SetFormula" Value="SELECT @All"/>
        <Setparam Field="SearchDocuments" Value="True"/>
        <Setparam Field="SearchDesigns" Value="False"/>

</SearchBy>



Quick Retrieve Contents of View or Folder :

<SearchBy Type="QuickRetrieve">
        <Setparam Field="Show" Value="Name"/>
        <Setparam Field="ViewFolderList" Value="($All)"/>
        <Setparam Field="PutSearchInSelType" Value="Create"/>
        <Setparam Field="PutSearchInSelCreateName" Value="Tata"/>

</SearchBy>



Full Text Search :

<SearchBy Type="FullText">
        <Setparam Field="SearchFor" Value="Yes"/>
        <Setparam Field="Fuzzy" Value="True"/>
        <Setparam Field=" WordVariant" Value="True"/>
        <Setparam Field="PutSearchInSelType" Value="Create"/>
        <Setparam Field="PutSearchInSelCreateName" Value="Tata"/>

        <Setparam Field="TitleOptionType" Value="Column"/>
        <Setparam Field="TitleOptionColumnName" Value="($All):5"/>

</SearchBy>



Extensive Search by Note Class :

<SearchBy Type="NotesClass">
        <Setparam Field="NonDeleteNotes" Value="False"/>
        <Setparam Field="Documents" Value="True"/>
        <Setparam Field="Designs" Value="False"/>
        <Setparam Field="Form" Value="False"/>
        <Setparam Field="View" Value="False"/>

        <Setparam Field="Filter" Value="False"/>
        <Setparam Field="Field" Value="False"/>
        <Setparam Field="ReplicationFormula" Value="False"/>
        <Setparam Field="PrivateDesign" Value="False"/>
        <Setparam Field="DeletionStubs" Value="False"/>
        <Setparam Field="ModifiedAfter" Value="True"/>
        <Setparam Field="ModifiedAfterDate" Value="2011/09/19"/>

        <Setparam Field="PutSearchInSelType" Value="Create"/>
        <Setparam Field="PutSearchInSelCreateName" Value="Tata"/>

</SearchBy>



By default, if a dialog shows a confirmation, the automation will suppress it.
You can use the following XML code to pop a confirmation:

<Setparam Target="MessageBox" KeepAlive=True"/>
Replication Auditor


<ReplicationAudit>
        <Setparam Field="SelectRepServer" Value="192.168.0.2"/>
        <SetParam Field="ModifiedAfter" Value="17-10-2012 10:00:00 PM"/>

</ReplicationAudit>

Action :ReplicationAudit
Attributes :
Parameters :SetParamFieldValueKeepAlive
SelectRepServerCan be any string including and IP address.True/False
ModifiedAfterA date. Can be date only or date and time. Format: 17-10-2012 10:00:00 PM
DescriptionThe Replication Auditor action is used to automate the Replication Auditor.



If you wish to keep a dialog open, use the KeepAlive attribute in a SetParam action.
Post Replication Auditor


<PostReplicationAudit>
        <SetParam Field="ModifiedAfter" Value="17-10-2012 10:00:00 PM"/>

</PostReplicationAudit>

Action :PostReplicationAudit
Attributes :
Parameters :SetParamFieldValueKeepAlive
ModifiedAfterA date. Can be date only or date and time. Format: 17-10-2012 10:00:00 PMTrue/False
DescriptionThe Post Replication Auditor action is used to automate the Post Replication Auditor.



If you wish to keep a dialog open, use the KeepAlive attribute in a SetParam action.
Notes Ini Editor


<NotesIni KeepAlive="True">
        <Export FilePath="D:\dev\Temp_XML\MyNotesIni.ini"/>
        <New Name="zer99" Value="mugre66"/>
        <Edit Name="zer23" Value="edit 2323"/>
        <Delete Name="zer99"/>
        <Export FilePath="C:\dev\Temp_XML\MyNotesIni.ini"/>

</NotesIni>

Action :NotesIni
Attributes :KeepAliveTrue/False
Sub Actions :NewNameEntry to create
ValueValue to set for entry
EditNameEntry to edit
ValueValue to set for entry
DeleteNameEntry to delete
ExportFilePathFilepath to export
Parameters :SetParamTargetFieldValue
"NotesIni""Source""Local" or "Server"
DescriptionThe Notes Ini Editor action is used to automate the Notes Ini Editor.



All grid actions (Sort, Filter, etc.) can be used to automate the NotresIni grid by embedding them in the NotesIni action :

<NotesIni keepAlive="True">
        <Sort Column="Name" Ascending="False"/>

</NotesIni>