1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

モデル駆動形アプリのフォームに埋め込んだキャンバスアプリは、ModelDrivenFormIntegrationコントロールでレコードの情報にアクセスできる

Posted at

行き詰まったので書いときます。でも、よく見たらDocsに書いてあった\(^o^)/

モデル駆動形アプリにて、通常のカスタマイズより柔軟にUIを作り込みたい場合があります。
その際、選択肢の一つとして、フォームにキャンバスアプリを埋め込むことができます。

以下みたいな感じです。
!image.png

ちゃんとフォームで表示しているレコードの情報も渡せています。
このレコードの情報にアクセスするときは、ModelDrivenFormIntegrationというコントロールのItemというプロパティでアクセスできます。

image.png

ModelDrivenFormIntegrationのDatasourceプロパティをみると、普通にエンティティを指定しているから、[@Accounts]でアクセスできるのかと思ったらできなくて、ちょっと苦しみました。

image.png

結論的には、

(○)ModelDrivenFormIntegrationコントロール
(×)エンティティ(Accountsなど)

です!

また、モデル駆動形アプリ⇒キャンバスアプリでデータ渡すだけではなく、キャンバスアプリからモデル駆動形アプリの特定の処理を呼び出せるみたいですね。というか、呼び出せました。

image.png
image.png

全部Docsに書いてあることだったけど、まあいいか。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?