| Previous | Next |  | Contents | Index | Glossary

## #HIDE_REASSIGN Attribute

You can use a special message attribute or notification attribute with the internal name #HIDE_REASSIGN to hide the Reassign button in the Notfication Detail web page. When users view a notification from their Worklist web page, the response frame in the Notification Detail page includes the Reassign button by default. If you want to prevent users from reassigning a notification, you can add the #HIDE_REASSIGN attribute to control whether the Reassign button is displayed or hidden.

The #HIDE_REASSIGN attribute must be of type text. To hide the Reassign button, set the value of this attribute to `Y`. To display the Reassign button, set the value to `N`.

You can use different methods to add the #HIDE_REASSIGN attribute, depending on how often you want to hide the Reassign button.

- If you always want to hide the Reassign button for notifications using a particular message, create #HIDE_REASSIGN as a message attribute at design time and specify the value `Y` as a constant.

> Note: If you later need to display the Reassign button for these notifications, you can call WF_NOTIFICATION.SetAttrText() to set the value to `N`. Use the following syntax:

    		WF_NOTIFICATION.SetAttrText(<nid>, '#HIDE_REASSIGN',

    			 'N');

> Replace `<nid>` with the notification ID. See: SetAttribute.

- If you only want to hide the Reassign button in certain cases, include logic in your workflow process that dynamically determines at runtime whether the button should be displayed or hidden. Then, if necessary, call WF_NOTIFICATION.AddAttr() to add #HIDE_REASSIGN as a notification attribute and WF_NOTIFICATION.SetAttrText() to set its value. Use the following syntax:

    		WF_NOTIFICATION.AddAttr(<nid>, '#HIDE_REASSIGN');

    		WF_NOTIFICATION.SetAttrText(<nid>, '#HIDE_REASSIGN',

    			 'Y');

Replace `<nid>` with the notification ID. See: AddAttr and SetAttribute.

- You can also create #HIDE_REASSIGN as a message attribute at design time and use an item type attribute to determine the value dynamically at runtime. However, note that using an item type attribute to determine the value is more costly than either of the other methods.

### See Also

To Define a Message Attribute

To Reassign a Notification to Another User

| Previous | Next |  | Contents | Index | Glossary