# Constants input in Params on views

**URL:** <https://forum.inductiveautomation.com/t/constants-input-in-params-on-views/95245>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 28, 2024, 5:51am UTC](https://forum.inductiveautomation.com/t/constants-input-in-params-on-views/95245 "2024-08-28T05:51:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Johannsen](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Michael\_Johannsen](https://forum.inductiveautomation.com/u/Michael_Johannsen)\
**Post date:** [August 28, 2024, 5:51am UTC](https://forum.inductiveautomation.com/t/constants-input-in-params-on-views/95245/1 "2024-08-28T05:51:43Z")

</div>

Hi.

Is there someone that can tell my why is it not possible to put a constant on the input on the params to a view. I get a error in a expression

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/f/7fa35ba67c60cc561a08392c356a0d6246f79600.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/3/83812a6980206226b99571fbb27eae2db6ae1fa9.png)

But when I use an tag there is no problem.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [August 28, 2024, 7:49am UTC](https://forum.inductiveautomation.com/t/constants-input-in-params-on-views/95245/2 "2024-08-28T07:49:25Z")

</div>

What's the expression ? And what's the error ?

---

<div class="post-metadata">

**Author:** ![Michael\_Johannsen](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Michael\_Johannsen](https://forum.inductiveautomation.com/u/Michael_Johannsen)\
**Post date:** [August 28, 2024, 7:54am UTC](https://forum.inductiveautomation.com/t/constants-input-in-params-on-views/95245/3 "2024-08-28T07:54:31Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/f/8fdaa0e37b372ba39c3c5ac1ad4494bb923e3475.png)

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [August 28, 2024, 8:00am UTC](https://forum.inductiveautomation.com/t/constants-input-in-params-on-views/95245/4 "2024-08-28T08:00:37Z")

</div>

Well... Do you have a tag at the path "[default]1" ?

---

<div class="post-metadata">

**Author:** ![Michael\_Johannsen](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Michael\_Johannsen](https://forum.inductiveautomation.com/u/Michael_Johannsen)\
**Post date:** [August 28, 2024, 9:19am UTC](https://forum.inductiveautomation.com/t/constants-input-in-params-on-views/95245/5 "2024-08-28T09:19:00Z")

</div>

No I don't.

I just want to type 1 or 2 or 3 etc. on the params input to a view. instead of using a tag without getting an error..

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [August 28, 2024, 9:41am UTC](https://forum.inductiveautomation.com/t/constants-input-in-params-on-views/95245/6 "2024-08-28T09:41:24Z")

</div>

You get an error on an expression that, I'm guessing, is reading a tag based on that parameter. I'm not sure why you're expecting that expression not to error out ?  
I'm also not sure what you mean by "using a tag".

You can pass anything you want to a view through parameters. But obviously, how you use those parameters might expect them to be of a certain type, format, etc.

Edit:  
oooh wait, I think I understand.  
You want to display a value in a label, based on a parameter.  
When you use a tag, it works, but with a constant, it doesn't.

When you "use a tag", I'm guessing you're passing the path of this tag.  
And then, the binding on the label is an indirect tag binding, that uses the parameter to build the tag path.  
A tag path is just a string. That's all it is. You get a value when you use this path to read the tag, in your case with a tag binding.  
You're not displaying the value, you're using it to build a path. See the difference ?  
When you pass a constant, the binding tries to use it to build a tag path.

---

<div class="post-metadata">

**Author:** ![Michael\_Johannsen](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Michael\_Johannsen](https://forum.inductiveautomation.com/u/Michael_Johannsen)\
**Post date:** [August 28, 2024, 9:58am UTC](https://forum.inductiveautomation.com/t/constants-input-in-params-on-views/95245/7 "2024-08-28T09:58:10Z")

</div>

That make sense. Tanks

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [August 28, 2024, 12:06pm UTC](https://forum.inductiveautomation.com/t/constants-input-in-params-on-views/95245/8 "2024-08-28T12:06:25Z")

</div>

I didn't see it mentioned by @pascal.fragnoud, but if you want to pass in a value into that param instead of a tag path, then you would use a property binding instead of a tag binding. A tag binding will try to read the tag given in the tag path provided. "1" is not a tag path, it's just a value
