# Dealing with multiple this.Parameter and Routing

**URL:** <https://forums.fusetools.com/t/dealing-with-multiple-this-parameter-and-routing/3091>\
**Category:** How-to Discussions\
**Created:** [April 24, 2017, 3:13am UTC](https://forums.fusetools.com/t/dealing-with-multiple-this-parameter-and-routing/3091 "2017-04-24T03:13:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudio\_Holanda](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/claudio_holanda/32/525_2.png) [@Claudio\_Holanda](https://forums.fusetools.com/u/Claudio_Holanda)\
**Post date:** [April 24, 2017, 3:13am UTC](https://forums.fusetools.com/t/dealing-with-multiple-this-parameter-and-routing/3091/1 "2017-04-24T03:13:17Z")

</div>

I’m facing an issue when trying to pass parameters through pages.

I’m sending an Object like this through my Router:

```auto
// IndexPage.js

var data = {
  birthday: nascDay.value + "/" + nascMonth.value + "/" + nascYear.value,
  startDate: startDate,
  endDate: startDate
}

router.push("success", data);

```

However, when trying to fetch this data from the other view, it simply doesn’t show up:

```auto
// SuccessPage.js

var data = {};

data.birthday = this.Parameter.map(function(param) {
    return param.birthday;
});

data.startDate = this.Parameter.map(function(param) {
    return param.startDate;
});

data.endDate = this.Parameter.map(function(param) {
    return param.endDate;
});

// Items bellow should appear on my .ux view, but don't seem to work.
module.exports = {
    birthday: data.birthday,
    startDate: data.startDate,
    endDate: data.endDate
};

```

Now when I try to use `birthday`, `startDate` or `endDate` variables to my `.ux` page, they simply don’t show up.

Fun fact is that in the Desktop Preview they show properly. But the same project running on my Android phone renders blank variables in the UX page.

Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [April 24, 2017, 7:30am UTC](https://forums.fusetools.com/t/dealing-with-multiple-this-parameter-and-routing/3091/2 "2017-04-24T07:30:39Z")

</div>

Hi Claudio,

I don’t immediately see anything wrong with the code you posted. There might be something else going on in the parts of your app you haven’t shown.

I suggest you create a full (but preferably very tiny) example that reproduces the issue on the target device, and post it here along with the device information.

---

<div class="post-metadata">

**Author:** ![Claudio\_Holanda](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/claudio_holanda/32/525_2.png) [@Claudio\_Holanda](https://forums.fusetools.com/u/Claudio_Holanda)\
**Post date:** [April 24, 2017, 12:57pm UTC](https://forums.fusetools.com/t/dealing-with-multiple-this-parameter-and-routing/3091/3 "2017-04-24T12:57:28Z")

</div>

Thanks for the reply.

The project itself is already super small (only 3 pages), so I believe it would be easier to share it entirely.

You can clone the project from here:

[https://kazzkiq@bitbucket.org/kazzkiq/fuse-app-sample.git](https://kazzkiq@bitbucket.org/kazzkiq/fuse-app-sample.git)

Alternatively you can download the project .ZIP [here](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/89hxuY6Mx2EX-image-1493038869706.zip):

- [FGTS\_PROJECT.zip](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/89hxuY6Mx2EX-image-1493038869706.zip)

After setting a date and clicking “Consultar FGTS!” the data should show up in the next Page. It works on desktop preview, but on Android the data simply doesn’t show up.

* * *

If it helps, here is my Android phone information:

- Model: Redmi Note 4
- Company: Xiaomi
- Android Version: 6.0 MRA58K (MiUI Global 8.1)
- CPU: Deca-core Max 2,11GHz
- RAM: 3 GB

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [April 24, 2017, 1:13pm UTC](https://forums.fusetools.com/t/dealing-with-multiple-this-parameter-and-routing/3091/4 "2017-04-24T13:13:13Z")

</div>

Thanks for the information, I’ll give it a go on a Nexus 5 a bit later today and report on my findings.

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [April 24, 2017, 3:17pm UTC](https://forums.fusetools.com/t/dealing-with-multiple-this-parameter-and-routing/3091/5 "2017-04-24T15:17:16Z")

</div>

Found the problem. It’s this:

```auto
	<JavaScript File="../Modules/Router.js" />
	<JavaScript File="Index.js" />

```

Each view (UX component) can have one and only one viewmodel (UX-bound JS file). Basically you screwed up what `router` knows about itself by including that `../Modules/Router.js` file in UX, right above the viewmodel JS files.

I removed the `Router.js` include from all UX files and it works just fine.

As for your next question, stand-alone JS modules are included in viewmodels, just like you require your `Utils`. If necessary, you can pass `router` to a stand-alone module via a function.

---

<div class="post-metadata">

**Author:** ![Claudio\_Holanda](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/claudio_holanda/32/525_2.png) [@Claudio\_Holanda](https://forums.fusetools.com/u/Claudio_Holanda)\
**Post date:** [April 25, 2017, 1:06pm UTC](https://forums.fusetools.com/t/dealing-with-multiple-this-parameter-and-routing/3091/6 "2017-04-25T13:06:54Z")

</div>

@Uldis it worked perfectly!

Just wanted to congratulate you guys for the outstanding tool you built. Fuse is great!

Once I feel comfortable and with enough experience, I will definitely propose Fuse as one of the options for app development in the company I work with.

Thanks!

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [April 25, 2017, 1:08pm UTC](https://forums.fusetools.com/t/dealing-with-multiple-this-parameter-and-routing/3091/7 "2017-04-25T13:08:56Z")

</div>

Thanks for the kind words! Looking forward to seeing you around 🙂
