You need to sign in to do that
Don't have an account?
Ravi kumar 292
How to pass values
Hi,
I have created one visualforce with standardcontroller and extensions. Here Am giving some input values and clicking on submit button then it will redirect to the some page. There am doing some operations. After completing it will redirect to the contact page. Here i want to redirect to particular contact. For this i need to pass the contact id to the callback url. I fetching the contact details from controller. How to pass this value.
Below is my code..
<apex:page standardController="Contact" extensions="YodleeFastLinkAccessController" >
<HTML>
<HEAD>
</HEAD>
<BODY>
<form action="https://yieapnodestage.yodlee.com/authenticate/private-sandbox230/?channelAppName=yisandbox" method="POST" id="rsessionPost"><br/><br/>
Finapp Id
<input type="text" name="app" value="10003600" /><br/><br/>
rsession
<input type="text" name="rsession" value="{!rsession}" placeholder="Resession"/> <br/><br/>
token
<input type="text" name="token" value="{!token}" placeholder="Token"/><br/><br/>
Redirect Required
<input type="text" name="redirectReq" placeholder="true" value="True"/><br/><br/>
<!-- <script>document.getElementById('rsessionPost').submit();</script> -->
Extra Parameters
<input type='text' name='extraParams' placeholder='Extra Params' value='callback=https://c.cs6.visual.force.com/apex/YodleeSuccessPage?id=i want to pass contact id here'/> <br/><br/>
<input type="submit" name="submit" />
</form>
</BODY>
</HTML>
</apex:page>
Controller..
public with sharing class YodleeFastLinkAccessController {
Contact con;
String rsession;
String username = username;
String password = password;
String app=app;
String ConId;
String memSiteAccId;
String token;
YodleeAPI y = new YodleeAPI();
public YodleeFastLinkAccessController(ApexPages.StandardController controller) {
try{
ConId = ApexPages.CurrentPage().getparameters().get('id');
con = [Select id, FirstName, LastName, PAN_ID__c from Contact where id=:ConId];
system.debug('PanId--'+con.PAN_ID__c);
}catch(Exception e){
con = new Contact();
}
}
public String getRsession() {
String cobSessionToken = y.cobLogin(username, password);
try{
rsession = y.Login(con.id,con.PAN_ID__c);
memSiteAccId = y.getAllSiteAccounts();
}catch(exception e){}
if(memSiteAccId!=null){
String itemAccountId = y.getItemSummariesForSite();
y.executeUserSearchRequest();
system.debug('rsession*****'+rsession);
}
return rsession;
}
public String getToken() {
try{
token = y.GetToken(app);
}catch(exception e){}
system.debug('token*****'+token);
return token;
}
}
Any help will be appriciate
I have created one visualforce with standardcontroller and extensions. Here Am giving some input values and clicking on submit button then it will redirect to the some page. There am doing some operations. After completing it will redirect to the contact page. Here i want to redirect to particular contact. For this i need to pass the contact id to the callback url. I fetching the contact details from controller. How to pass this value.
Below is my code..
<apex:page standardController="Contact" extensions="YodleeFastLinkAccessController" >
<HTML>
<HEAD>
</HEAD>
<BODY>
<form action="https://yieapnodestage.yodlee.com/authenticate/private-sandbox230/?channelAppName=yisandbox" method="POST" id="rsessionPost"><br/><br/>
Finapp Id
<input type="text" name="app" value="10003600" /><br/><br/>
rsession
<input type="text" name="rsession" value="{!rsession}" placeholder="Resession"/> <br/><br/>
token
<input type="text" name="token" value="{!token}" placeholder="Token"/><br/><br/>
Redirect Required
<input type="text" name="redirectReq" placeholder="true" value="True"/><br/><br/>
<!-- <script>document.getElementById('rsessionPost').submit();</script> -->
Extra Parameters
<input type='text' name='extraParams' placeholder='Extra Params' value='callback=https://c.cs6.visual.force.com/apex/YodleeSuccessPage?id=i want to pass contact id here'/> <br/><br/>
<input type="submit" name="submit" />
</form>
</BODY>
</HTML>
</apex:page>
Controller..
public with sharing class YodleeFastLinkAccessController {
Contact con;
String rsession;
String username = username;
String password = password;
String app=app;
String ConId;
String memSiteAccId;
String token;
YodleeAPI y = new YodleeAPI();
public YodleeFastLinkAccessController(ApexPages.StandardController controller) {
try{
ConId = ApexPages.CurrentPage().getparameters().get('id');
con = [Select id, FirstName, LastName, PAN_ID__c from Contact where id=:ConId];
system.debug('PanId--'+con.PAN_ID__c);
}catch(Exception e){
con = new Contact();
}
}
public String getRsession() {
String cobSessionToken = y.cobLogin(username, password);
try{
rsession = y.Login(con.id,con.PAN_ID__c);
memSiteAccId = y.getAllSiteAccounts();
}catch(exception e){}
if(memSiteAccId!=null){
String itemAccountId = y.getItemSummariesForSite();
y.executeUserSearchRequest();
system.debug('rsession*****'+rsession);
}
return rsession;
}
public String getToken() {
try{
token = y.GetToken(app);
}catch(exception e){}
system.debug('token*****'+token);
return token;
}
}
Any help will be appriciate
I tried with the above case. but its not working. Here the id is getting as null value.. what will the problem..