# Update progress bar

**URL:** <https://forum.inductiveautomation.com/t/update-progress-bar/20045>\
**Category:** Ignition\
**Created:** [October 9, 2018, 2:42pm UTC](https://forum.inductiveautomation.com/t/update-progress-bar/20045 "2018-10-09T14:42:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordanabrinkman](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@jordanabrinkman](https://forum.inductiveautomation.com/u/jordanabrinkman)\
**Post date:** [October 9, 2018, 2:42pm UTC](https://forum.inductiveautomation.com/t/update-progress-bar/20045/1 "2018-10-09T14:42:37Z")

</div>

Hi everyone! I'm new to Ignition and have had some good luck scripting with it so far, but have ran into an issue.

I have a mouseReleased event on a Button that reads:

```auto
window = system.gui.getWindow("Main")
print window.getRootContainer().getComponent("progressBar")

```

that gladly prints out:

> com.inductiveautomation.factorypmi.application.components.PMIProgressBar

However when I try setting the "Value" property of the progress bar, I get:

> AttributeError: '[com.inductiveautomation.factorypmi.application.com](http://com.inductiveautomation.factorypmi.application.com)' object has no attribute 'Value'

This error occurs whether or not I use:

```auto
event.source.parent.getComponent("progressBar").Value = 25
{or}
window = system.gui.getWindow("Main")
window.getRootContainer().getComponent("progressBar").Value = 60

```

Does anyone have any recommendation on how to resolve this issue?

---

<div class="post-metadata">

**Author:** ![ethomason](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ethomason/32/43338_2.png) [@ethomason](https://forum.inductiveautomation.com/u/ethomason)\
**Post date:** [October 9, 2018, 2:59pm UTC](https://forum.inductiveautomation.com/t/update-progress-bar/20045/2 "2018-10-09T14:59:32Z")

</div>

Value should be lowercase

---

<div class="post-metadata">

**Author:** ![jordanabrinkman](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@jordanabrinkman](https://forum.inductiveautomation.com/u/jordanabrinkman)\
**Post date:** [October 9, 2018, 3:00pm UTC](https://forum.inductiveautomation.com/t/update-progress-bar/20045/3 "2018-10-09T15:00:28Z")

</div>

Ughh, that did it. Thanks!

---

<div class="post-metadata">

**Author:** ![ethomason](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ethomason/32/43338_2.png) [@ethomason](https://forum.inductiveautomation.com/u/ethomason)\
**Post date:** [October 9, 2018, 3:01pm UTC](https://forum.inductiveautomation.com/t/update-progress-bar/20045/4 "2018-10-09T15:01:48Z")

</div>

You’re welcome. In the future you can always do something like this to quickly find out a component’s functions:

```auto
print dir(window.getRootContainer().getComponent("progressBar"))

```
