• kmats
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Chatter Workbook page11の下記の実装でNo such columnエラーが発生し、workを進めることができません。

 

アカウントの設定はChatter Workbookに従って Developer Editionを取得して行い、特別な変更は行っていません。

開発はworkbookどおりブラウザのページエディタの、コントローラ編集タブで行っています。

 

ソースコード:

public with sharing class SafeInputController {

    public PageReference go() {
        User user = [select id, CurrentStatus from User where id = :UserInfo.getUserId()];
        user.CurrentStatus = status;
        update user;
        return null;
    }

    public String status { get; set; }
}

 

エラー:

SafeInputController コンパイルエラー: 行 4、列 21 でNo such column 'CurrentStatus' on entity 'User'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

 

何か設定等でchatter関連開発に必須の手順を飛ばしてしまったか、暗黙の条件を知らずに参照等の制限を外せていない(または手違いで制限してしまった)などがあるだろうかと調べています。

原因、対処方法にお心当たりの方、ぜひご教示ください。どうぞよろしくお願いいたします。

  • June 25, 2012
  • Like
  • 0

Chatter Workbook page11の下記の実装でNo such columnエラーが発生し、workを進めることができません。

 

アカウントの設定はChatter Workbookに従って Developer Editionを取得して行い、特別な変更は行っていません。

開発はworkbookどおりブラウザのページエディタの、コントローラ編集タブで行っています。

 

ソースコード:

public with sharing class SafeInputController {

    public PageReference go() {
        User user = [select id, CurrentStatus from User where id = :UserInfo.getUserId()];
        user.CurrentStatus = status;
        update user;
        return null;
    }

    public String status { get; set; }
}

 

エラー:

SafeInputController コンパイルエラー: 行 4、列 21 でNo such column 'CurrentStatus' on entity 'User'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

 

何か設定等でchatter関連開発に必須の手順を飛ばしてしまったか、暗黙の条件を知らずに参照等の制限を外せていない(または手違いで制限してしまった)などがあるだろうかと調べています。

原因、対処方法にお心当たりの方、ぜひご教示ください。どうぞよろしくお願いいたします。

  • June 25, 2012
  • Like
  • 0