Here is the github for my app. 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!