# Passing dataset from perspective view to WebDev

**URL:** <https://forum.inductiveautomation.com/t/passing-dataset-from-perspective-view-to-webdev/53028>\
**Category:** Ignition\
**Created:** [November 12, 2021, 9:04pm UTC](https://forum.inductiveautomation.com/t/passing-dataset-from-perspective-view-to-webdev/53028 "2021-11-12T21:04:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ToMakPo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tomakpo/32/23875_2.png) [@ToMakPo](https://forum.inductiveautomation.com/u/ToMakPo)\
**Post date:** [November 12, 2021, 9:04pm UTC](https://forum.inductiveautomation.com/t/passing-dataset-from-perspective-view-to-webdev/53028/1 "2021-11-12T21:04:42Z")

</div>

I’m trying to create a module in WebDev that takes a dataset and a few other parameters then it does something with it and creates HTML that viewed in an iFrame. I tried converting it to a string and passing it in the url, but I’m getting an error that says the url is too long. I know back when when I was making node modules, there were several other ways to pass data to APIs, but I’m not sure how to do that in Ignition.

---

<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:** [November 13, 2021, 6:15pm UTC](https://forum.inductiveautomation.com/t/passing-dataset-from-perspective-view-to-webdev/53028/2 "2021-11-13T18:15:46Z")

</div>

It depends of the source of that dataset. I would try to put the dataset in a tag, then reading the value from WebDev is trivial.

I’m not clear of your implementation but also, you should implement a http calls with the dataset encoded as Json in the body.

Need more info for this one.

---

<div class="post-metadata">

**Author:** ![ToMakPo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tomakpo/32/23875_2.png) [@ToMakPo](https://forum.inductiveautomation.com/u/ToMakPo)\
**Post date:** [November 14, 2021, 5:46pm UTC](https://forum.inductiveautomation.com/t/passing-dataset-from-perspective-view-to-webdev/53028/3 "2021-11-14T17:46:25Z")

</div>

I don't understand why the source would matter, but in this case, it would be a database. Storing it in a tag is not optimal since I want to be able to make custom JS based components with it. I'm okay with converting it to JSON, but I'm not sure how to pass it into the body.

> [@jespinmartin1](#):
>
> you should implement a http calls with the dataset encoded as Json in the body.

How do I do that.

---

<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:** [November 15, 2021, 9:36am UTC](https://forum.inductiveautomation.com/t/passing-dataset-from-perspective-view-to-webdev/53028/4 "2021-11-15T09:36:19Z")

</div>

[https://docs.inductiveautomation.com/display/DOC81/system.net.httpPost](https://docs.inductiveautomation.com/display/DOC81/system.net.httpPost)

the last example sends an xml in text form, so you an do the same for json, just set the type to `application/json` or `text/json` instead of `text/xml`
