# Cell binding using indirect tag / change dataset by scripting

**URL:** <https://forum.inductiveautomation.com/t/cell-binding-using-indirect-tag-change-dataset-by-scripting/20115>\
**Category:** Ignition\
**Created:** [October 12, 2018, 6:33am UTC](https://forum.inductiveautomation.com/t/cell-binding-using-indirect-tag-change-dataset-by-scripting/20115 "2018-10-12T06:33:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [October 15, 2018, 1:21am UTC](https://forum.inductiveautomation.com/t/cell-binding-using-indirect-tag-change-dataset-by-scripting/20115/5 "2018-10-15T01:21:03Z")

</div>

> [@ASF](#):
>
> pturmel - assigning the return value to the AxesDataset is what I can't work out. How do I do that?

This is more of a python question than an Ignition question.... but something like this:

```auto
AxesDataset = [path to trend].axes
MinScale = system.tag.read([path to tag]).value
MaxScale = system.tag.read([path to tag]).value
AxesDataset = system.dataset.SetValue(AxesDataset,[row],'lower_bound', MinScale)
AxesDataset = system.dataset.SetValue(AxesDataset,[row],'upper_bound', MaxScale)
[path to trend].axes = AxesDataset

```

> [@ASF](#):
>
> I guess all of this would be solved if I could find a way to have it interpret my input as the value of the tag path I pass to it, instead of literally just the tag path as a string, but I haven't found a way to do that yet. Any ideas?

The best way to do this is to use a custom property as an intermediate value, _of the correct datatype_, with an indirect tag binding. That's exactly what indirect tag bindings exist for. The indirect binding takes your string as a tag path (or combines it to produce a tag path), and delivers that tag's value. Then use that custom property in your cell binding.

Consider taking a couple weeks to go through Inductive University. That'll greatly cut down on not knowing what is possible with Ignition.

---

_[View the full topic](https://forum.inductiveautomation.com/t/cell-binding-using-indirect-tag-change-dataset-by-scripting/20115)._
