1 risposta
Hi bhargavi,
When you call "page" from controller1, pass the values from Controller1 in URL:
Like this:
PageReference pageRef = new PageReference('/apex/myVfPage?accountId=<Variable-name>');
Then use this value in page directly :
var AccountId = '{!$myVfPage.parameters.accountId}';
Similarly, pass this value to Controller2 via "apex:actionFunction" or {get,set} variables.
Thank You.