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?

Apex ,Aura コーディングサンプル

Last updated at Posted at 2022-02-21

まとめページに戻る

メタデータを呼び出す必要がある

具体的な設定など

コーディングサンプル

私が書いてない参考にしたいコーディングサンプル

lightning:recordFormですが、oncancel属性があるので、ここに設定できると思います。

https://developer.salesforce.com/docs/component-library/bundle/lightning:recordForm/specification

>項目の後ろに背景が無い
背景をつけるということですか?

class属性で指定できないですかね。

class = "slds-theme_default" とか...

未解決

資料

エラー

You can write only 1 million character per class and your class character count is greater then this so you need to break it into multiple sub classes.
クラスごとに 100 万文字しか記述できず、クラスの文字数がこれよりも多いため、複数のサブクラスに分割する必要があります。

https://salesforce.stackexchange.com/questions/195277/class-compilation-requires-too-much-metadata

image.png

  • Action failed: aura:iteration$controller$itemsChange [Invalid regular expression: /(.+?)(?::(\d+))?(?::(\d+))?$/: Stack overflow]
  • Action failed: aura:iteration$controller$itemsChange [Maximum call stack size exceeded]

Please change the url parameters

"url": reportId

-->

"url": "/lightning/r/Report/" & reportId  & "/view?queryScope=userFolders"

lightning-datatable

lightning-input-address

公式ドキュメンテーションを調べてみたら重要な事を見つかりました。

https://developer.salesforce.com/docs/component-library/bundle/lightning-input-address/documentation

「エクスペリエンスビルダーサイト、ライトニングアウト、VisualForceのライトニングコンポーネント、スタンドアロンアプリケーションにて show-address-lookup はサポート対象外です。利用できる可能性があるが、これらのターゲットはオプティマイズされていない上に完全にサポートされていません」

アノテーション

Please check this article.
Is it possible to have multiple POST calls in the same Apex REST class?

https://salesforce.stackexchange.com/questions/358382/is-it-possible-to-have-multiple-post-calls-in-the-same-apex-rest-class

Looks like this is still an idea:

Allow multiple @invocable methods in a single class
https://ideas.salesforce.com/s/idea/a0B8W00000GdeuIUAR/allow-multiple-invocable-methods-in-a-single-class

できないこと

2つ目の日時項目にも一つ目と同じ値が入力されるのが、レコードの保存ボタンを押した後でよければ、レコードトリガーフローやApex トリガーを使った自動化処理で実現できます。

画面上で一つ目の日時項目を入力したら、2つ目の日時項目にもすぐに入力されるような機能が必要な場合はカスタムコンポーネントを作成しないと標準機能では難しいと思います。

UIの検討

自作の画面でも標準機能と同様の場所に保存、キャンセルボタンを配置したいのですが使用すべきコンポーネントが分かりません。

image.png

よくよく考えたらモーダル画面のフッタにボタンを配置すれば、同じような動作が可能だと思います。モーダルの中でlightning:recordEditFormを使います。

私が作った以下の画面はモーダルの中でDataTableを使っています。

image.png

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?