0

私はapexでより新鮮です。3 つのフィールドと 1 つのボタンがあるサンプル フォームが 1 つあります。ボタンのクリックで別のページを開きたい。案内してもらえますか?

前もって感謝します。

4

1 に答える 1

0

PageReference クラス

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;
    }
于 2013-08-10T04:18:24.303 に答える