# Refresh Binding in calendar

**URL:** <https://forum.inductiveautomation.com/t/refresh-binding-in-calendar/34605>\
**Category:** Ignition\
**Created:** [May 10, 2020, 8:50am UTC](https://forum.inductiveautomation.com/t/refresh-binding-in-calendar/34605 "2020-05-10T08:50:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SergioS](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@SergioS](https://forum.inductiveautomation.com/u/SergioS)\
**Post date:** [May 10, 2020, 8:50am UTC](https://forum.inductiveautomation.com/t/refresh-binding-in-calendar/34605/1 "2020-05-10T08:50:41Z")

</div>

Good morning,  
I’m trying to refresh binding into a calendar object.

My piece of code is this :  
system.db.refresh(event.source.parent.getComponent(‘RangeCalendar’).getComponent(‘from’).getComponent(‘Calendar’).latchedDate, “date”)

Iget an error about the argument :1st arg can’t be coerced to javax.swing.JComponent

Where I can find argument to use?

Thanks

---

<div class="post-metadata">

**Author:** ![SergioS](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@SergioS](https://forum.inductiveautomation.com/u/SergioS)\
**Post date:** [May 10, 2020, 9:51am UTC](https://forum.inductiveautomation.com/t/refresh-binding-in-calendar/34605/2 "2020-05-10T09:51:44Z")

</div>

Sorry… I find solution my self…

good script is this:  
system.db.refresh(event.source.parent.getComponent(‘RangeCalendar’).getComponent(‘from’).getComponent(‘Calendar’), “latchedDate”)
