質問

I am fresher in apex. I have one sample form in which i am having three fields and one button. I want to open another page on button click. Can you please guide me?

Thanks in advance.

役に立ちましたか?

解決

PageReference Class

public PageReference save() {
        // Add the account to the database. 
        insert account;
        // Send the user to the detail page for the new account.
        PageReference acctPage = new ApexPages.StandardController(account).view();
        acctPage.setRedirect(true);
        return acctPage;
    }
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top