Repository.Action.UpdateAction: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
m (Protected "Repository.UpdateAction" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
No edit summary
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:APIClass|Repository Class|Repository}}
Updates the Action
{{Template:Repository.UpdateAction.Cmt}} {{Template:BooleanReturn.Cmt}}
== Method Syntax==
{{APIName|'''UpdateAction'''(}}
{{APIPrefix|ByVal}}
{{APIName|var}}
{{APIPrefix|As}}
{{APIName|[[cAction Class|cAction]])}}
{{APIPrefix|As Boolean}}<br>
{{APIComment|Updates the Action in the repository.}}


== Parameters ==
==Syntax==
'''var'''
*UpdateAction( var {{APIPrefix|As}} [[cAction Class|cAction]] ) {{APIPrefix|As Boolean}}
{{APIComment|The updated Action.}}
 
Parameters
:''var'': The [[cAction Class|cAction]] to update.


== Usage Example ==
== Usage Example ==

Revision as of 20:10, 27 February 2014


Updates the action in the repository. Returns True if successful, otherwise returns False.

Syntax

  • UpdateAction( var As cAction ) As Boolean

Parameters

var: The cAction to update.

Usage Example

Declare a new repository connection class.

       Private WithEvents 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()

Update the Action and update the repository.

       Dim SuccessUpdateAction As Boolean
       SuccessUpdateAction = MyRepository.UpdateAction(ListOfActions(0))