# How to get url parameter id in view/page perspective

**URL:** <https://forum.inductiveautomation.com/t/how-to-get-url-parameter-id-in-view-page-perspective/79709>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [September 27, 2023, 1:51pm UTC](https://forum.inductiveautomation.com/t/how-to-get-url-parameter-id-in-view-page-perspective/79709 "2023-09-27T13:51:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priyanka.Khandge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/priyanka.khandge/32/35989_2.png) [@Priyanka.Khandge](https://forum.inductiveautomation.com/u/Priyanka.Khandge)\
**Post date:** [September 27, 2023, 1:51pm UTC](https://forum.inductiveautomation.com/t/how-to-get-url-parameter-id-in-view-page-perspective/79709/1 "2023-09-27T13:51:04Z")

</div>

Hi guys,

Any idea how to get the URL parameter ID and store it in view or session?

I have tried to open the page using the URL parameter here opens the page perfectly and the data also opens current but only the dropdown value does not open.

all fields show current data but only the dropdown shows none.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/4/6487f12c8475eb69a55b572428dc4d0b0b486591.png)

Thanks,  
Priyanka Khandge

---

<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:** [September 27, 2023, 1:58pm UTC](https://forum.inductiveautomation.com/t/how-to-get-url-parameter-id-in-view-page-perspective/79709/2 "2023-09-27T13:58:17Z")

</div>

if the other url params work, then it seems its a problem with the dropdown not the params,

---

<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:** [September 27, 2023, 2:25pm UTC](https://forum.inductiveautomation.com/t/how-to-get-url-parameter-id-in-view-page-perspective/79709/3 "2023-09-27T14:25:47Z")

</div>

Remember that url parameters are strings. Here it seems you're passing "31", which you might be trying to use as an int. Convert to int before using with your dropdown.
