EditItems

EventNames:

  • EditItems_Restrictions

  • EditItems_Pre

  • EditItems_Post

Parameters

Type

Name

Description

Item[]

items

The items which should get / are in edit mode.

bool

successful

Post:
The information whether the Web Service call was successful or not is only available in Post events.

Unexpected Behaviour

The EditItems event is raised when:

  • clicking on Open -> Edit or directly “Update “for the item.

  • clicking on Save (not save and close) in the dialog then first CommitItem is fired, and then EditItem

  • activating in the the Bill of Materials Tab of the Item dialog a new item

Examples:
EditItems_Restrictions:

Register-VaultEvent -EventName EditItems_Restrictions -Action 'RestrictEditItems'

function RestrictEditItems($items) {
	#Write event code here
}

EditItems_Pre:

Register-VaultEvent -EventName EditItems_Pre -Action 'PreEditItems'

function PreEditItems($items) {
	#Write event code here
}

EditItems_Post:

Register-VaultEvent -EventName EditItems_Post -Action 'PostEditItems'

function PostEditItems($items, $successful) {
	#Write event code here
}