You need to sign in to do that
Don't have an account?
Darshit Pathak 3
Why page is not getting redirected to the detail Page of inserted record even if Id is available?
A command button on VF page that should calls one method,insert the record and redirect to that record.
This is my code:
System.debug('@@@BatchVar Id: '+batchVar.id);
return new PageReference('/'+batchVar.id);
It redirects to the same VF page only.
but in debug logs I can see the record Id in debug statement and if I copy that Id and append in browser's URL, the record is opening .
That means method is called and record is inserted properly.
But redirection is not happening properly.
This is my code:
System.debug('@@@BatchVar Id: '+batchVar.id);
return new PageReference('/'+batchVar.id);
It redirects to the same VF page only.
but in debug logs I can see the record Id in debug statement and if I copy that Id and append in browser's URL, the record is opening .
That means method is called and record is inserted properly.
But redirection is not happening properly.
Still not working.Showing as before only. It shows blank page and address bar shows Url of current VF Page.
Yeah it's still not working.
1 point I want to bring to your notice that I've used SLDS for my VF page designing.
So does it affect ?