# Problem with Popup Calender

**URL:** <https://forum.inductiveautomation.com/t/problem-with-popup-calender/78319>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [August 24, 2023, 6:53am UTC](https://forum.inductiveautomation.com/t/problem-with-popup-calender/78319 "2023-08-24T06:53:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surya\_Chandra\_Mohan](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Surya\_Chandra\_Mohan](https://forum.inductiveautomation.com/u/Surya_Chandra_Mohan)\
**Post date:** [August 24, 2023, 6:53am UTC](https://forum.inductiveautomation.com/t/problem-with-popup-calender/78319/1 "2023-08-24T06:53:43Z")

</div>

Hello,  
I am trying to insert values into a table by taking components like textfield, popup calender etc;  
This is the line - assign\_time = event.source.parent.getComponent("Popup Calender").date

The error says - Nontype object has no attribute 'date'

Can you please help me out with this issue

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [August 24, 2023, 8:07am UTC](https://forum.inductiveautomation.com/t/problem-with-popup-calender/78319/2 "2023-08-24T08:07:48Z")

</div>

This problem is likely this relative path:

```auto
event.source.parent.getComponent("Popup Calender")

```

I typically see this sort of error when code has been copied from one area to another area where the relative location is different.

To fix it, click on this icon in the upper right corner of your script editor:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/2/a2b902c225d0160af84755dede272d57eac4543d.png)

Then, locate the date property in the popup, select it , and click okay:

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

This will put the correct path to the component into your script editor.

---

<div class="post-metadata">

**Author:** ![Surya\_Chandra\_Mohan](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Surya\_Chandra\_Mohan](https://forum.inductiveautomation.com/u/Surya_Chandra_Mohan)\
**Post date:** [August 24, 2023, 8:45am UTC](https://forum.inductiveautomation.com/t/problem-with-popup-calender/78319/3 "2023-08-24T08:45:30Z")

</div>

Yea it was the problem with the path and now it's working correctly  
Thank you! Appreciate it!
