# Dataset rows in custom property of template

**URL:** <https://forum.inductiveautomation.com/t/dataset-rows-in-custom-property-of-template/21415>\
**Category:** Ignition\
**Created:** [December 13, 2018, 10:35pm UTC](https://forum.inductiveautomation.com/t/dataset-rows-in-custom-property-of-template/21415 "2018-12-13T22:35:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunal.ghule](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@kunal.ghule](https://forum.inductiveautomation.com/u/kunal.ghule)\
**Post date:** [December 13, 2018, 10:35pm UTC](https://forum.inductiveautomation.com/t/dataset-rows-in-custom-property-of-template/21415/1 "2018-12-13T22:35:17Z")

</div>

I’m using dataset as custom property in template and binary values in dataset will change visibility of text fields in template.  
But when I create a child in new window, dataset gets flush out totally.

Is there any way to retain assign column and rows from dataset?

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/89d50324b311f5e702cdc9eac98cef65a4473e26.PNG) ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/180de1d963a9bf24fcf16e0e7c400c181343dc4d.PNG)

Attached is the picture of parent and child.

---

<div class="post-metadata">

**Author:** ![bvaldovinos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bvaldovinos/32/6315_2.png) [@bvaldovinos](https://forum.inductiveautomation.com/u/bvaldovinos)\
**Post date:** [February 7, 2019, 12:05am UTC](https://forum.inductiveautomation.com/t/dataset-rows-in-custom-property-of-template/21415/2 "2019-02-07T00:05:12Z")

</div>

Doesn’t look like you have that property bound to anything. Are you doing anything in scripting that may accidentally be writing over that instance of the template?

---

<div class="post-metadata">

**Author:** ![kunal.ghule](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@kunal.ghule](https://forum.inductiveautomation.com/u/kunal.ghule)\
**Post date:** [February 7, 2019, 3:50pm UTC](https://forum.inductiveautomation.com/t/dataset-rows-in-custom-property-of-template/21415/3 "2019-02-07T15:50:09Z")

</div>

Hello Bvaldovinos,

The property i’m talking about is “Appearance”. It’s template parameter (not an internal property) so I don’t get option to bind this property in template. I can bind it in child.  
So “Appearance” is dataset and I manually added values in it. But when i create a child, value from property gets deleted.

I added small script to populate this parameter every time I create a child. This is only solution I got.

---

<div class="post-metadata">

**Author:** ![bvaldovinos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bvaldovinos/32/6315_2.png) [@bvaldovinos](https://forum.inductiveautomation.com/u/bvaldovinos)\
**Post date:** [February 7, 2019, 10:23pm UTC](https://forum.inductiveautomation.com/t/dataset-rows-in-custom-property-of-template/21415/4 "2019-02-07T22:23:45Z")

</div>

Would you mind exporting your project and posting it here?

---

<div class="post-metadata">

**Author:** ![kunal.ghule](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@kunal.ghule](https://forum.inductiveautomation.com/u/kunal.ghule)\
**Post date:** [February 8, 2019, 2:59pm UTC](https://forum.inductiveautomation.com/t/dataset-rows-in-custom-property-of-template/21415/5 "2019-02-08T14:59:58Z")

</div>

I have attached the test project.[Test\_2019-02-08\_0959.proj](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/61208d1f125b481977e2b5d2712d779c3dfb3177.proj) (96.3 KB)

---

<div class="post-metadata">

**Author:** ![bvaldovinos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bvaldovinos/32/6315_2.png) [@bvaldovinos](https://forum.inductiveautomation.com/u/bvaldovinos)\
**Post date:** [February 11, 2019, 6:08pm UTC](https://forum.inductiveautomation.com/t/dataset-rows-in-custom-property-of-template/21415/6 "2019-02-11T18:08:09Z")

</div>

Hey @kunal.ghule . I don’t see the same issues that you do. But since this is only a portion of the project, I get a lot of errors.

What helps me in situations like this is to log/print items. I changed the script on _Templates/Data Faceplate_ to this:

```auto
logger = system.util.getLogger("Data Faceplate")
startLogging = True

if event.propertyName == "event.source.Label_name":
  headers = ["I/P Field", "Visible"]
  data = []
  data.append(["Measure", 0, "°F"])
  data.append(["Set Point", 0 ,"°F"])
  data.append(["Float", 0,"°F"])
  data.append(["Output", 0,"°F"])
  if startLogging:
  	logger.info("Appearance prior to update: %s" % (event.source.Appearance))
  event.source.Appearance = system.dataset.toDataSet(headers, data)
  if startLogging:
  	logger.info("Appearance after update: %s" % (event.source.Appearance))

```

Now I can quickly enable and disable logging with the variable at the top of the script. Sometimes I’ll bind that to a tag/button during development.

On your template definition of _Data Faceplate_, I see the parameter Appearance has [5R x 3C]. On your window _Dryer 1 - Control Loops screen 1_, I see _Data Faceplate 49_ has Appearance as [5R x 3C].
