Repository.Xfmea.UpdateItemInSystemHierarchy Method: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '{{Template:API}}{{Template:APIBreadcrumb|10|.Repository}} <onlyinclude>Updates the properties of an existing system hierarchy item in the current project. …')
 
No edit summary
Line 2: Line 2:




<onlyinclude>Updates the properties of an existing system hierarchy item in the current project. Changes are reflected in the repository immediately upon refresh. Returns a '''Boolean''' value; when true, indicates a successful update.</onlyinclude>   
<onlyinclude>Applies any changes made to an existing Xfmea system hierarchy item. Returns a '''Boolean''' value; when true, indicates a successful save.</onlyinclude>   


== Syntax ==
== Syntax ==
Line 9: Line 9:
=== Parameters ===
=== Parameters ===
''item''
''item''
:The [[XfmeaItem Class|XfmeaItem]] object to be updated. (Required)
:Required. The [[XfmeaItem Class|XfmeaItem]] object to be updated. (Required)


<!--
<!--
== Example ==
== Example ==
This example assumes that a system hierarchy item with record ID#1 exists in the repository.
This example assumes that a system hierarchy item with record ID #1 exists in the first available project in a repository.


  '''VBA'''
  '''VBA'''
Line 30: Line 30:
   MyItem.Nm = {{APIString|"New_Name"}}
   MyItem.Nm = {{APIString|"New_Name"}}
   
   
  {{APIComment|'Apply the update to the item. Changes will be reflected in the repository.}}
  {{APIComment|'Apply the change to the item. Changes are recorded in the Synthesis repository.}}
   {{APIPrefix|Call}} MyRepository.Xfmea.UpdateItemInSystemHierarchy(MyItem)
   {{APIPrefix|Call}} MyRepository.Xfmea.UpdateItemInSystemHierarchy(MyItem)


Line 48: Line 48:
   MyControl.Name = {{APIString|"New_Name"}}
   MyControl.Name = {{APIString|"New_Name"}}
   
   
  {{APIComment|'Apply the update to the control. Changes will be reflected in the repository.}}
  {{APIComment|'Apply the change to the control. Changes are recorded in the Synthesis repository.}}
   MyRepository.Control.UpdateXfmeaControl(MyControl)
   MyRepository.Control.UpdateXfmeaControl(MyControl)
-->
-->

Revision as of 21:10, 24 August 2015

APIWiki.png


Member of: SynthesisAPI10.Repository


Applies any changes made to an existing Xfmea system hierarchy item. Returns a Boolean value; when true, indicates a successful save.

Syntax

.Xfmea.UpdateItemInSystemHierarchy(item)

Parameters

item

Required. The XfmeaItem object to be updated. (Required)