# AttributeError: 'com.inductiveautomation...' object has no attribute '...'

**URL:** <https://forum.inductiveautomation.com/t/attributeerror-com-inductiveautomation-object-has-no-attribute/60058>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [May 26, 2022, 12:42pm UTC](https://forum.inductiveautomation.com/t/attributeerror-com-inductiveautomation-object-has-no-attribute/60058 "2022-05-26T12:42:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AGOSTINO\_SCLAUZERO](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AGOSTINO\_SCLAUZERO](https://forum.inductiveautomation.com/u/AGOSTINO_SCLAUZERO)\
**Post date:** [May 26, 2022, 12:42pm UTC](https://forum.inductiveautomation.com/t/attributeerror-com-inductiveautomation-object-has-no-attribute/60058/1 "2022-05-26T12:42:13Z")

</div>

I tried to implement a retargeting in perspective.  
So I wrote in a button the following code.

```auto
def runAction(self, event):
	system.util.retarget("UserDocument")

```

When I click on this button I get the following error:

`AttributeError: 'com.inductiveautomation.ignition.common.script.Imm' object has no attribute 'retarget'`

tnx in advance

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [May 26, 2022, 12:45pm UTC](https://forum.inductiveautomation.com/t/attributeerror-com-inductiveautomation-object-has-no-attribute/60058/2 "2022-05-26T12:45:29Z")

</div>

Look at the documentation - [system.util.retarget - Ignition User Manual 8.0 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC80/system.util.retarget)

Underneath the `Scope` section it will tell you where you can call this from -

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/d/ed04a5c2c8af107e3a5d489f4c2169af4bc56ee1.png)

You cannot use this in Perspective, only vision.

To navigate to another perspective project, you need to navigate to the URL of the other project.
