# Unusual properties behaivor in String Type - Designer, Bug?

**URL:** <https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009>\
**Category:** Ignition\
**Created:** [April 17, 2020, 2:40pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009 "2020-04-17T14:40:31Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 17, 2020, 2:40pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009/1 "2020-04-17T14:40:31Z")

</div>

Today I just logged into my designer and I realize of a weird behavior in my Vision Property editor, particularly in some strings property type.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/bf0bb74659aebe80d3fa96a9b27c484558baf72b.png)

Notice those BORDERS in properties and things like CHAR()… but I didn’t write the string ‘char()’  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b7091cc87f8c4f967afae99d8dea7b3a5255fc1d.png)

This is global for my whole project. Did I actived some property or is this a bug and how can I set it default?  
I tried restarting the panels and even the gateway  
V8.0.9

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 17, 2020, 3:27pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009/2 "2020-04-17T15:27:45Z")

</div>

If you open the Output Console toolbar, is anything getting logged (repeatedly) when you browse around components/windows? Did you recently do any scripting; on a Power Table, possibly?

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 17, 2020, 3:31pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009/3 "2020-04-17T15:31:31Z")

</div>

Yes I did some scripting in power tables, I set the preview mode to play and used my power table but nothings shows in console

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/df93811329fe329461527bea2561ec1910510bfe.png)

Is this a normal behavior when performing scripting in power table?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 17, 2020, 3:35pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009/4 "2020-04-17T15:35:51Z")

</div>

Have you restarted the designer? I’ve seen this before, usually when some bad component script interrupted the ‘painting’ cycle in the designer. Typically restarting the designer will work, at least until you run into whatever bad script caused painting to break, which should hopefully be logged into the output console.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 17, 2020, 3:40pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009/5 "2020-04-17T15:40:24Z")

</div>

I’ll reset the designer and try to catch this error.  
You are saying that something in my script is causing this issue, I think is something within property change event handler script in power table, but I used  
` if event.propertyName == ‘something’:
`  
I don’t know why this is happening, I’ll keep you online

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 17, 2020, 3:42pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009/6 "2020-04-17T15:42:01Z")

</div>

Yeah, I wouldn’t expect a `propertyChange` script to be the culprit - more likely, `configureCell` or `configureEditor` on the power table, or something in the Paintable Canvas’ extension function, or something along those lines. There’s relatively few places where a custom script is run directly in the painting cycle, but it’s an uncaught exception there that leads to this happening (in my experience).

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 17, 2020, 3:50pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009/7 "2020-04-17T15:50:18Z")

</div>

I don’t see any looping, when restart the designer

Well I tried to used configureEditor and Cell, but these functions are a little restrictive since they can’t interact with property references from the root container

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 17, 2020, 3:56pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009/8 "2020-04-17T15:56:00Z")

</div>

And the property editors are still 'weird'? Huh. Can you get in contact with support? They may be able to see something live that I can't think of.

> [@jespinmartin1](#):
>
> Well I tried to used configureEditor and Cell, but these functions are a little restrictive since they can’t interact with property references from the root container

Sidebar, but they should be able to - `self` will be a reference to the power table, and you can still go up to its container with `self.parent`; if it's directly on the window then `self.parent.someProperty` should work fine in those scripts.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 17, 2020, 4:03pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009/9 "2020-04-17T16:03:01Z")

</div>

that’s true, not seeing the ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/24a72237c78b435645344da391e6b6d6e20d536a.png) icon gives a restrictive perspective.  
I think I’ll contact support, thanks.  
After all, would you give me any advice then using property change in power tables?  
Is my script running multiple times without control maybe? Is there another way to perform a script in property change to be more restrictive besides ‘event.propertyName’ ?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 17, 2020, 4:07pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009/10 "2020-04-17T16:07:57Z")

</div>

I really don’t think your property change script is the problem; it sounds like you’ve got it set up correctly. I think I’m correct about what’s causing it, just not sure where it’s coming from.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 17, 2020, 4:17pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009/11 "2020-04-17T16:17:35Z")

</div>

Thanks @paul-griffith, this gives an idea of has is happening, I have a question. Does property name ‘visible’ supports oldValue and newValue? if so, how can I used it.  
Also does ‘data’ support oldValue and newValue, if so, how can I used it?  
Can you show an example please?

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 17, 2020, 5:33pm UTC](https://forum.inductiveautomation.com/t/unusual-properties-behaivor-in-string-type-designer-bug/34009/12 "2020-04-17T17:33:50Z")

</div>

I realized what was happening and I fixed it, thanks
