PrtItem.IntHold (Property Read/Write)

Syntax

PrtItem.IntHold

Description

Boolean property to set or get the state of Internal Hold on the Item.

Example

dim NEWITEM as new prtitem

'Initialize the new item structure

NEWITEM.ItemId = IDNUM$

NEWITEM.GroupId = Groupname$

NEWITEM.RegionId = Regname$

NEWITEM.RegionLoc = PRT_LAST

NEWITEM.IntHold false

NEWITEM.ExtHold false

NEWITEM.ItemTypeId = TYPE$

NEWITEM.Status = 0

'Upload to Tracking Database

NEWITEM.Add

Guidelines for internal holds

If you add an item with the internal hold bit set to TRUE, you must give it a reason (PrtItem.IntHoldReason).

Do not set an Internal Hold System Attribute using the .SetAttr method, PRTItem.SetAttr.

PRTItem.SetAttr is a method to create/set Standard Attributes, not System attributes.

Use PRTItem.IntHold and PRTItem.IntHoldReason to get and set internal holds for an item.

Example

MyPRTItem.IntHold = True

    MyPRTItem.IntHoldReason ="Held by Script"

    MyPRTItem.Modify

    myHold = MyPRTItem.IntHold

    myHoldReason = MyPRTItem.IntHoldReason

The following statement will create a standard attribute with the name INTERNALHOLD, instead of modifying PRT Item's Internal Hold system attribute.

    MyPRTItem.SetAttr “INTERNALHOLD”, “1”

All the function blocks that deal with extended attributes can be provided INTERNALHOLD text to read the value of internal hold.

Values are:

0

Internal Hold is not set

1

Internal Hold is set

More information

PRT Object Model member list.