Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「Text5」、「Text10」などの名前の列が追加された MPP ファイルを使用しています。明らかに、これらは Task クラスを介して簡単にアクセスできるデフォルトの列ではありません。Column クラスは見たことがありますが、Task クラスを介して特定の名前の列にアクセスする方法がわかりません。
デフォルト列以外の列の Task オブジェクトから値を取得するにはどうすればよいですか?
getFieldByAlias() を使用してカスタム名列から値を取得できます: 例: task.getFieldByAlias("Text5")
よろしく、
Task クラスには、このようなフィールドを取得できる GetText(int) メソッドがあります。Text5 フィールドに task.GetText(5) を使用して、必要な値を取得できました。