# Passing tagpath to generic sidebar for display of live values

**URL:** <https://forum.inductiveautomation.com/t/passing-tagpath-to-generic-sidebar-for-display-of-live-values/30808>\
**Category:** Ignition\
**Created:** [December 18, 2019, 7:19pm UTC](https://forum.inductiveautomation.com/t/passing-tagpath-to-generic-sidebar-for-display-of-live-values/30808 "2019-12-18T19:19:52Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [December 20, 2019, 1:01pm UTC](https://forum.inductiveautomation.com/t/passing-tagpath-to-generic-sidebar-for-display-of-live-values/30808/8 "2019-12-20T13:01:03Z")

</div>

You have syntax and logix errors. Your def browseTags needs parentheses and a colon. You aren't assigning the returned dataset from toDataSet() to a variable, so it goes in the bitbucket beside your laptop. (It's also indented one too far--it should be run after the loop.) When you have it assigned to a variable, you'll need an invokeLater() to safely assign it to a component.

Also, you can't pass any parameters to the function called in invoke\*. See my helper functions in later.py for alternatives:

> [@Update GUI via Asynchronous thread](http://forum.inductiveautomation.com/t/update-gui-via-asynchronous-thread/9666/3):
>
> Since this sort of thing pops up often, I created a set of wrappers that simplify this stuff, and allows you to directly use functions in your script modules. The wrappers take care of stuffing the arguments you supply into a temporary fuction’s default argument. For your case, try assignLater(). Nick’s example becomes: # In a script module in your project: import shutil def fileTransfer(label): path = system.file.openFile() newPath = "F:\NewFolder" shutil.copy2(path, newPath) sh…

{ If you search this forum for invokeLater or invokeAsynchronous, you'll find many more examples. }

---

_[View the full topic](https://forum.inductiveautomation.com/t/passing-tagpath-to-generic-sidebar-for-display-of-live-values/30808)._
