To access data between two pages, we need to send data via URL as shown below.
Set URL as below on source page client controller :
function ($scope, $window) {
var c = this:
c.onClick = function () {
$window.location.href = "/sp?id=pass_data&number=" + INC001232;
}
}
On the server side of the target page, we can use below code to access those parameters:
var incNumber = $sp.getParameter('number');
How to pass data from one portal page to another portal page?
Working Code Asked question June 6, 2024