Repository.Action.GetAction: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '{{Template:APIClass|Repository Class|Repository}} {{Template:Repository.GetAction.Cmt}} == Syntax== *GetAction() {{APIPrefix|As}} cAction() == Usage Example =…')
 
No edit summary
Line 2: Line 2:
{{Template:Repository.GetAction.Cmt}}
{{Template:Repository.GetAction.Cmt}}


== Syntax==
==Syntax==
*GetAction() {{APIPrefix|As}} [[cAction Class|cAction]]()
* GetAction({{APIPrefix|As}} [[cAction Class|cAction]])
 
Parameters
 
Enter the Action ID to get desired action.


== Usage Example ==
== Usage Example ==
<div style="margin-right: 150px;">
  {{APIComment|'Declare a new repository connection object.}}
  {{APIComment|'Declare a new repository connection object.}}
   Dim MyRepository As New Repository
   Dim MyRepository As New Repository
Line 14: Line 17:
   Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
   Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
    
    
  {{APIComment|'Get Action.}}
  {{APIComment|'Get the list of actions in the connected repository.}}
   Dim GetAction() As [[cAction Class|cAction]]
   Dim ListOfActions() As [[cAction Class|cAction]]
   GetAction= MyRepository.GetAction()
  ListOfActions = MyRepository.GetAllActions()
</div>
 
{{APIComment|'Get an Action.}}
  Dim GetAction() as cAction
   GetAction= MyRepository.GetAction(1)

Revision as of 20:31, 21 April 2015


Version 10 Only - Returns action with the provided ID. Returns nothing if the action doesn't exist.

Syntax

Parameters

Enter the Action ID to get desired action.

Usage Example

 'Declare a new repository connection object. 
 Dim MyRepository As New Repository
 
 'Connect to the Synthesis repository. 
 Dim Success As Boolean = False
 Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
 
 'Get the list of actions in the connected repository. 
 Dim ListOfActions() As cAction
 ListOfActions = MyRepository.GetAllActions()
 
 'Get an Action. 
 Dim GetAction() as cAction
 GetAction= MyRepository.GetAction(1)