# Perspective Display different in Chrome than in designer

**URL:** <https://forum.inductiveautomation.com/t/perspective-display-different-in-chrome-than-in-designer/56769>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 3, 2022, 9:24am UTC](https://forum.inductiveautomation.com/t/perspective-display-different-in-chrome-than-in-designer/56769 "2022-03-03T09:24:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pawel.kondol1](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@pawel.kondol1](https://forum.inductiveautomation.com/u/pawel.kondol1)\
**Post date:** [March 3, 2022, 9:24am UTC](https://forum.inductiveautomation.com/t/perspective-display-different-in-chrome-than-in-designer/56769/1 "2022-03-03T09:24:48Z")

</div>

Hello,

I am trying to understand what is an issue with my project. I Bonded as Expression with few values:

```auto
concat({view.params.id_Line},'/',{parent.custom.id_Level_1},'/',{parent.custom.id_Level_2},'/',{parent.custom.copy_id_level_3})

```

So in the designer looks like this (correct):  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/9/a9c2b58af7405807e9576af28f377792dcbda24f.png)  
Just numbers 3/41…

When I run this project in chrome, it looks like this (missing values):  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/4/44ac9ea70208cdfb3b7632f9fb525ef3904b9e8c.png)

So, I am not sure what I am doing wrong.

Best regards  
Pawel

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [March 3, 2022, 10:11am UTC](https://forum.inductiveautomation.com/t/perspective-display-different-in-chrome-than-in-designer/56769/2 "2022-03-03T10:11:22Z")

</div>

> [@pawel.kondol1](#):
>
> `parent.custom.id_Level_1`

how do you fill these custom props?

---

<div class="post-metadata">

**Author:** ![pawel.kondol1](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@pawel.kondol1](https://forum.inductiveautomation.com/u/pawel.kondol1)\
**Post date:** [March 3, 2022, 11:44am UTC](https://forum.inductiveautomation.com/t/perspective-display-different-in-chrome-than-in-designer/56769/3 "2022-03-03T11:44:33Z")

</div>

Number 3 is on the View as parameter (int)  
Then number 41 is expression based on this number  
Then Number 839 expression based on 41  
Then Number 2638 expression based on 839

Here is my expression for number 41. And once 41 number is working all other numbers are working as they are linked together.

Expression for number 41: This way is working in chrome, but not in designer.

```auto
if({view.params.id_Line}='0',57,
if({view.params.id_Line}='3',41,-1))

```

Expression for number 41: This way is not working in chrome, but is working in designer.

```auto
if({view.params.id_Line}=0,57,
if({view.params.id_Line}=3,41,-1))

```

So it is something to do with string and integer, but I don’t understand why there is a difference between designer display and Chrome display.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 3, 2022, 12:50pm UTC](https://forum.inductiveautomation.com/t/perspective-display-different-in-chrome-than-in-designer/56769/4 "2022-03-03T12:50:58Z")

</div>

I am assuming that the id\_Line is a URL parameter. These will be a string value at run time. In the designer you have to manually set them, and so I’m guessing you just typed in the number 3 which was converted to an integer.

This is why the expression with string literals works in chrome but not the designer. Because `3` is not equivalent to `‘3’`

2 options:

1. Use string literals (quotation marks) when entering the value in the designer so the designer knows the value is a string.

2. Use `toInt()` in your expression to convert the parameter to an integer type.

---

<div class="post-metadata">

**Author:** ![pawel.kondol1](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@pawel.kondol1](https://forum.inductiveautomation.com/u/pawel.kondol1)\
**Post date:** [March 3, 2022, 1:44pm UTC](https://forum.inductiveautomation.com/t/perspective-display-different-in-chrome-than-in-designer/56769/5 "2022-03-03T13:44:27Z")

</div>

This is what’s coming as params  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/6/d67a6d72d58907762253bce96ccd7a9758458c6a.png)

It’s just an factor for DB query to pick the right tables.  
So in my opinion, 3 is an int. So in both cases this option should work. But it working in designer preview but not in chrome.

```auto
if({view.params.id_Line}=0,57,
if({view.params.id_Line}=3,41,-1))

```

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 3, 2022, 2:14pm UTC](https://forum.inductiveautomation.com/t/perspective-display-different-in-chrome-than-in-designer/56769/6 "2022-03-03T14:14:44Z")

</div>

> [@pawel.kondol1](#):
>
> So in my opinion, 3 is an int

This may be your opinion, but it doesn't change the _fact_ that anything passed through the URL can only be a _string_.

> [@Perspective URL Dictionary Parameter](https://forum.inductiveautomation.com/t/perspective-url-dictionary-parameter/38019/9):
>
> Anything passed through the URL can ONLY be a string. If you absolutely MUST pass something like a dictionary, you’re better off using a Session Property and binding the relevant View values to that.

Your expression works in the designer because when you just type in the _number_ 3 the designer converts it to an integer. In chrome the parameter is a _string_ and so your expression returns through the false path. In this case -1.

In the designer change the value of id\_Line to `'3'` and change the expression to this:

```auto
if({view.params.id_Line} = '0', 57,
if({view.params.id_Line} = '3',41,-1))

```

Then it will work in both places.

---

<div class="post-metadata">

**Author:** ![pawel.kondol1](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@pawel.kondol1](https://forum.inductiveautomation.com/u/pawel.kondol1)\
**Post date:** [March 3, 2022, 2:58pm UTC](https://forum.inductiveautomation.com/t/perspective-display-different-in-chrome-than-in-designer/56769/7 "2022-03-03T14:58:45Z")

</div>

Thanks Irose

This solved the problem

```auto
if(toString({view.params.id_Line})='0',57,
if(toString({view.params.id_Line})='3',41,-1))

```
