# Writing object 'event' to a client tag?

**URL:** <https://forum.inductiveautomation.com/t/writing-object-event-to-a-client-tag/12008>\
**Category:** General Discussion\
**Created:** [August 5, 2016, 1:23am UTC](https://forum.inductiveautomation.com/t/writing-object-event-to-a-client-tag/12008 "2016-08-05T01:23:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamcoder](https://avatars.discourse-cdn.com/v4/letter/i/5f9b8f/32.png) [@iamcoder](https://forum.inductiveautomation.com/u/iamcoder)\
**Post date:** [August 5, 2016, 1:23am UTC](https://forum.inductiveautomation.com/t/writing-object-event-to-a-client-tag/12008/1 "2016-08-05T01:23:45Z")

</div>

Hi to all inductive automation masters out there.

I would like to ask if this is possible to write an ‘event’ object to tag and then retrieve that object coming from the tag as is. rather that i pass the object to a function and manipulate it.

Thanks ![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:")

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 5, 2016, 1:40am UTC](https://forum.inductiveautomation.com/t/writing-object-event-to-a-client-tag/12008/2 "2016-08-05T01:40:25Z")

</div>

Hi! Welcome to the forums!

My gut tells me no, because of the way tags are serialized to to the database.

I would say, although I’ve never done it, that one could serialize an event to a database table. Still scripting involved, though.

I’m just stymied as to why one would want to to this, though… 🙂

---

<div class="post-metadata">

**Author:** ![iamcoder](https://avatars.discourse-cdn.com/v4/letter/i/5f9b8f/32.png) [@iamcoder](https://forum.inductiveautomation.com/u/iamcoder)\
**Post date:** [August 5, 2016, 3:09am UTC](https://forum.inductiveautomation.com/t/writing-object-event-to-a-client-tag/12008/3 "2016-08-05T03:09:10Z")

</div>

hi sir,

sorry to bother but i think i found my way of solution is to get the object on the template. rather than write it to tag.

```auto
loginPress = system.gui.getWindow('Main Windows/Process').rootContainer.getComponent('Blank Template').getComponent(0).getComponent('Port 1').getComponent(0).getComponent('Login Button')
```

Main Windows  
L\>Process  
L\>Blank Template  
L\>0  
L\>Port 1  
L\>0  
L\>Login Button #here’s where i will get the event
