General InformationThis opening ID is invoked with the following commands:
This opening ID is used to customize:
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following sample determines whether the selected instance with a test description can be cut or not: Let Operation (STRING)
Let selectedInstance (PLMEntity)
Operation = Parameters->GetAttributeString("OperationId")
Validation = true
AskUser = false
if (Operation=="Cut")
{
if (Parameters->HasAttribute("Instance"))
{
set selectedInstance = Parameters->GetAttributeObject("Instance")
if (selectedInstance <> NULL)
{
if (selectedInstance.V_description == "Test")
{
Validation = false
Parameters.Message = "Cut of Instance forbidden in this context"
}
if (selectedInstance.V_description == "Ask")
{
AskUser = true
Parameters.Message = "Please confirm you really want to Cut this instance and not simply Delete it"
}
}
}
}
| |||||||||||||||||||||||||||||||||||||||||||||||||||