How can I send and receive a variable to a page loaded with componentUrl?
If I send the below to an ordinary page it works but not if the page in my routes file is a componentUrl?
In my routes.js.
{
name: ‘diagram’,
path: ‘/diagram/’,
componentUrl: ‘./statistik/diagram.asp’,
options: {
//animate: true,
ignoreCache:true,
//reloadCurrent:true,
force:true
},
},
In my app.js file.
$$(document).on(‘page:init’, ‘.page[data-name=“diagram”]’, function (e) {
var page = e.detail;
$$(page.el).on("click",".sokstatistik", function() {
var statistikmanaden = $$(page.el).find('input[name=statistikmanad]').val()
app.dialog.alert(statistikmanaden)//this is getting the right value...
mainView.router.navigate("/diagram/?statistikmanad="+statistikmanaden, {ignoreCache: true, reloadCurrent:true, force:true});
});
});
And in my diagram page I just do a themanad=request.querystring(“statistikmanad”)
And It is not reloading the diagram page at all, I can’t see it in the DOM and off course the variable themanad is not getting any value.
So what am I missing?
Any input really appreciated, thanks.