# Function has different results when searching for template

**URL:** <https://forum.inductiveautomation.com/t/function-has-different-results-when-searching-for-template/18824>\
**Category:** General Discussion\
**Created:** [July 14, 2018, 2:06am UTC](https://forum.inductiveautomation.com/t/function-has-different-results-when-searching-for-template/18824 "2018-07-14T02:06:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 14, 2018, 3:56am UTC](https://forum.inductiveautomation.com/t/function-has-different-results-when-searching-for-template/18824/3 "2018-07-14T03:56:57Z")

</div>

Jython wrapping of Swing components requires some customization to have dynamic properties and custom methods show up in the result. This normally only happens correctly in certain system.\* script functions and container methods. .getComponents() is not one of them. See [this topic](http://forum.inductiveautomation.com/t/transaction-groups-triggered-expression-item-updating-when-trigger-is-false/17196/18), especially the end, for enhancements to this operation.

---

_[View the full topic](https://forum.inductiveautomation.com/t/function-has-different-results-when-searching-for-template/18824)._
