# Object ID (its a string) not passing correctly to next page while all other variables do.

**URL:** <https://forums.fusetools.com/t/object-id-its-a-string-not-passing-correctly-to-next-page-while-all-other-variables-do/5336>\
**Category:** General\
**Created:** [March 28, 2018, 10:48pm UTC](https://forums.fusetools.com/t/object-id-its-a-string-not-passing-correctly-to-next-page-while-all-other-variables-do/5336 "2018-03-28T22:48:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caleb\_Strong](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/caleb_strong/32/515_2.png) [@Caleb\_Strong](https://forums.fusetools.com/u/Caleb_Strong)\
**Post date:** [March 28, 2018, 10:48pm UTC](https://forums.fusetools.com/t/object-id-its-a-string-not-passing-correctly-to-next-page-while-all-other-variables-do/5336/1 "2018-03-28T22:48:16Z")

</div>

Here is the github for my app. [https://github.com/Hahnstrong/SASiAdmin/tree/develop](https://github.com/Hahnstrong/SASiAdmin/tree/develop).

My current problem is on the MainPage, the first tab where it displays a list of all the orders, when I click an order, I send all that data of that order to the next page (OrderInfoPage) to be displayed/edited.

function goToOrder(arg) {  
var order = arg.data;  
console.log(order.orderID);  
console.log(order.name)  
router.push(“orderInfo”, order);  
};

All of the variables .map out correctly, except for vehicleID and orderID, which I need to update that order in my API when I hit save.I have console.logs checking when I first click the order, and the ID’s are there, but on the next page, they come out as null. Anyone see why?

var order = this.Parameter;

var vyear = order.map(function(x) { return x.vyear; });  
var vmake = order.map(function(x) { return x.vmake; });  
var vmodel = order.map(function(x) { return x.vmodel; });  
var fuelType = order.map(function(x) { return x.fuelType; });  
var comments = order.map(function(x) { return x.comments; });  
var vehicleID = order.map(function(x) { return x.vehicleID; });

var name = order.map(function(x) { return x.name; });  
var email = order.map(function(x) { return x.email; });  
var phoneNumber = order.map(function(x) { return x.phoneNumber; });  
var address = order.map(function(x) { return x.address; });  
var gateCode = order.map(function(x) { return x.gateCode; });

var servicesOrdered = order.map(function(x) { return x.servicesSelected; });  
var date = order.map(function(x) { return x.date; });  
var totalCost = order.map(function(x) { return x.totalCost; });  
var isComplete = order.map(function(x) { return x.isComplete; });  
var orderID = order.map(function(x) { return x.orderID; });

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Arturs](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/arturs/32/582_2.png) [@Arturs](https://forums.fusetools.com/u/Arturs)\
**Post date:** [March 29, 2018, 7:08am UTC](https://forums.fusetools.com/t/object-id-its-a-string-not-passing-correctly-to-next-page-while-all-other-variables-do/5336/2 "2018-03-29T07:08:18Z")

</div>

Hey.

In your file `OrderInfoPage.js` you are missing subscribers for `vehicleID` and `orderID` variables. Read more about [subscribers](https://www.fusetools.com/docs/fusejs/observable#subscribing-to-changes-in-observables). Add your missing variables in module.exports, this way Observable will get a subscriber.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Caleb\_Strong](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/caleb_strong/32/515_2.png) [@Caleb\_Strong](https://forums.fusetools.com/u/Caleb_Strong)\
**Post date:** [March 29, 2018, 7:28am UTC](https://forums.fusetools.com/t/object-id-its-a-string-not-passing-correctly-to-next-page-while-all-other-variables-do/5336/3 "2018-03-29T07:28:44Z")

</div>

Right, I ran into that problem before, I remember now. Thanks man for both my questions!
