LoginSignup
0
0

Convert a Lightning Page to Dynamic Forms

Last updated at Posted at 2022-11-09

画面を動的に触りたい時は常にカスタムコンポーネントを実装してきたので、正直なところDynamic Formsは使ってないので、理解できませんね。書いてある通りに操作したいのだけど、できません。

元の質問 : Convert a Lightning Page to Dynamic Forms > Get Started with Dynamic Forms Challeng is missing instructions

初めに、以下のモジュールの続きでやれと書いてあるけど、関係ないような気がします。
Before You Start
Before you take the steps in this hands-on project, we recommend that you complete the Lightning App Builder module. The work you do here builds on the concepts in that module.

やっぱり関係ないと言っている人もいるなぁ。

For anyone reading this: do not follow the instructions at the beginning of the module that say this:

"This hands-on project uses custom pages that are created in the Lightning App Builder module. This projects builds on those concepts. Complete the Lightning App Builder module first and use the same org to complete this project."

お決まりの何もしないで確認ボタンを押してみると。

We can’t find a record page named 'Opportunity_Record_Page’ in your org.

ふ~ん、レコードページを作ればよさそう。

We can’t find a tab named 'More Details’ on the page.

タブがない? これが全く作り方が分からんかった。30分悩んだ...
image.png

作ったあとは?

On the More Details tab, we can’t find a component named 'Additional Information'.

ここで先に進めませんね。'Additional Informationは何?意味が分からん
image.png

詳細の中でアップグレードしたら変化あり。
image.png

やっとのことでAdditional InformationをMore Details tab内に移動したのに...

ここをつかんで緑色に変えてから移動だな。分からんこの操作は...
image.png

こんな感じ
image.png

ああああ、またエラー。だんだんやる気が失せてきた。

On the More Details tab, we can’t find a component named 'Description'.
どこにも、追加するって書いてないと思うけど...

追加したけどよく分からん。

We can’t find that the 'Main Competitor(s)' field was removed from the Additional Information section.

In the Opportunity Information section, we can’t find that the 'Primary Campaign Source' field was removed.

In the Opportunity Information section, we can’t find that the 'Next Step' field was removed.

やっと
image.png

こんな形みたい

image.png

この環境で実施 fukadadenki3-dev-ed.my.salesforce.com

質問者さんはまた私と画面が違う。この人も私と一緒でアカンたれだな。こんな画面にはどうやったらなる?
明らかに間違えていると思うけど。

以下が出るらしい。そりゃぁ'Detailsが2つあるからダメだろう。
We can’t find a tab named 'Details' on the page.

image.png

On the More Details tab, we can’t find a component named 'Additional Information'.

このようにならない。
image.png

We can't find a tab named 'More Details' on the page 【未解決】

image.png

Can't find the Opportunity Record Page migrated to Dynamics Forms

I was able to resolve this by comparing the differences between the instructions written in the 2 modules that cover Dynamic Forms.

The App Builder Module instructs you to make a New Opportunity Record page.

The Convert a Lightning Page to Dynamic Forms has you use the original Opportunity Record Page.

In my case I had already completed the App builder module and went through the new unit added for the Dynamic Forms rollout: Get Started with Dynamic Forms

Because the instructions tell you to complete the App builder module and use the same org to complete the Convert a Lightning Page to DF, the expectation of what the page looks like is different. I learned this by removing the More Details tab from the Opp Rec Page which allowed me to see that the Module is checking against the Opp Page (not the New Opp Page).

Confusing! I would suggest that the modules get synced up so the same layouts and pages are being utilized in both projects.

image.png

image.png

0
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
0
0