Академический Документы
Профессиональный Документы
Культура Документы
Time
10 - 15 minutes
Overview
In this practice you will create two additional dynamic layouts for the opportunity detail page in
the simplified UI. One of these pages will be based on a record type field, and the other will be
based on a Groovy expression. You will then test the results.
Tasks
1. If you are currently signed in to the application, sign out. Then sign in to the Simplified UI
using your assigned login.
2. In the global area at the top of the page, verify that you are in a sandbox. If you are not,
enter the sandbox you created in the last lab.
3. Create a record type field for the opportunity object.
a. Navigate to Application Composer.
b. Set Application = Sales.
c. Expand Standard Objects.
d. Expand Opportunity.
e. Click Fields.
f. Verify that there is not currently a custom field with Type = Record Type.
Note: Objects can have only one Record Type field.
g. Create a new field with Type = Record Type.
h. Set:
Display Label Access Level
Name AccessLevelnn
where nn is your student number
i. For Lookup Type, create a new Lookup Type with:
Meaning Access Level nn
Lookup Type EXT_ACCESS_LEVEL_nn
Executive EXECUTIVE 2
Secure SECURE 3
l. Set Default Value = Standard.
m. Examine the table of roles. For each role:
The "Available Record Types" list allows you to select which record types that role
can access. This allows you to limit the user's available selections. For example,
only roles with security clearance should be able to set the access level to
"Secure".
The "Default Record Type" list sets the default type for when a user with that role
creates a new record. This overrides the default value set in the Default Value
section
Because your student login has many roles assigned (which is not typical of a normal
user), locking out the secure role would involve adjusting every role in the list,
therefore, you will not modify the defaults in this practice.
n. Click Save and Close.
o. Add the Access Level field to the default layout.
1) In the regional area, under Opportunity, click Pages.
2) Click Simplified Pages.
3) In Details Page Layouts, select the Default Layout record.
4) Click Edit.
5) In Summary, click the Edit icon.
6) Add the Access Level field to the Selected Fields.
7) Click Save and Close.
8) Click Done.
4. Create a dynamic layout that hides the Revenue field based on the value in the record type
field.
a. In Details Page Layouts, select the Default Layout record.
b. Click the Duplicate Layout icon.
c. Set New Layout Name = Insecure Layout.
d. Verify that Source Layout = Default Layout.
e. Click Save and Edit.
f. In Summary, click the Edit icon.
g. Remove Revenue from the selected fields list.
h. Optionally, remove additional fields; be sure not to remove the Access Level field, as
this layout's visibility will depend on that field.
i. Click Save and Close.
j. Click Done.
3) Click OK.
g. Click Save and Close.
h. Click Done.
i. Create an advanced expression that applies this layout when the Win Probability is
over 60%.
1) In the High Probability Layout, click the Advanced Expression icon.
3) In the code box at the bottom, copy this code. You will learn more about Groovy
Scripting in subsequent lessons.
if (nvl(WinProb, 0) >= 60)
return(true);
else
return(false);