You need to sign in to do that
Don't have an account?
Sascha Deinert
Return.Page AccountID
Hi,
How can I add to return.page syntax the account id.
My code below doesn't work.
Sascha
How can I add to return.page syntax the account id.
My code below doesn't work.
public class Bestandsauswertung3_class { private Id accId {get; set;} public Bestandsauswertung3_class(ApexPages.StandardController stdcontroller) { accId = stdcontroller.getRecord().Id; } public Decimal testValue { get; set; } public PageReference nextPage () { if(testValue == null) { ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, 'Required value')); return null; } testValue += 500; return Page.Bestandsauswertung3?id=accid; }Thanks,
Sascha
AnteilM = 0;
AnteilF = 0;
Aren't declared
I also did a quick test to see if account was going over, and for me it was working fine. Note I replaced Unternehmens_Id_Long__c with Id. I'm not sure what Unternehmens_Id_Long__c is, but the account Id should match id when in the account object. I don't know why Unternehmens_Id_Long__c would have the same value as id (maybe you have a good reason, I'm just not famaliar with your org).
Here is what I did, make sure you put the id in the URL to test for example
"https://c.cs13.visual.force.com/apex/Bestandsauswertung3?core.apexpages.request.devconsole=1&id=001W000000IEcYg"
Please mark this as solved if this fixed your problem
All Answers
If I try to save the syntax I'll get an error Compile Error: expecting a colon, found ';'
It is possible to add the ID to the string Page.Bestandsauswertung3?id=.......
Thanks,
Sascha
Or I think
Might work.
Could you help me.
Thanks,
Sascha
I fixed the problem with the error, but I still get no information about the account.
Could you take a look.
Thanks,
Sascha
AnteilM = 0;
AnteilF = 0;
Aren't declared
I also did a quick test to see if account was going over, and for me it was working fine. Note I replaced Unternehmens_Id_Long__c with Id. I'm not sure what Unternehmens_Id_Long__c is, but the account Id should match id when in the account object. I don't know why Unternehmens_Id_Long__c would have the same value as id (maybe you have a good reason, I'm just not famaliar with your org).
Here is what I did, make sure you put the id in the URL to test for example
"https://c.cs13.visual.force.com/apex/Bestandsauswertung3?core.apexpages.request.devconsole=1&id=001W000000IEcYg"
Please mark this as solved if this fixed your problem
Thank you, it works so far.
It is possible to use the variables lie {!acc.name} without the apexblock or apexblocktable?
Thanks,
Sascha
So if you did something like