Académique Documents
Professionnel Documents
Culture Documents
0 Essentials
Module 28: Business Layer Configuration: Existing Business Components and Fields
Module Objectives
business logic To describe Business Component View Modes To edit field properties To specify business component and field user properties
3 of 31
4 of 31
5 of 31
6 of 31
7 of 31
Since SADMIN is Primary Member, he becomes the OWNER of the record and so only he can delete the record.
8 of 31
BC Field
Conditional Statement
9 of 31
comparison operators Example: For a given user, Account retrieves all records where:
Internal Org Flag is not Y or Partner Flag is not N, and, Account Flag is not N
Logical operator
Conditional Operator
10 of 31
record display
11 of 31
12 of 31
Supports multiple view modes A record can be associated with different owner types
Owner Type property identifies the access control mechanism
13 of 31
Mode
Invoked when user navigates to the All Service Requests view
Visibility MVField Property is set to Organization so as to read
The application compares the users current organization to organizations in the Organization MVF
14 of 31
The application compares the User Owned By Id field and if both matches the record will be visible
15 of 31
Field Properties
Field properties set at the business component level are applicable
16 of 31
17 of 31
18 of 31
Validation Property
The validation property is used to ensure that the field data is valid Checks the rule when a record is saved It can refer to only business component fields in the same record The rules are expressed as a combination of logical operators,
19 of 31
Default Values
Pre Default Value automatically assigns a value to a field for a new
record
Example: In Account BC, the field Partner Flag defaults to a value of N for a new record
Post Default Value assigns a value to a field, if not inserted by the
20 of 31
Calculated Fields
Value for the field is calculated from values of other fields in the same
record of the business component There is no associated column Calculated property needs to be set to TRUE
21 of 31
22 of 31
Field names in the same BC Field names from the parent BC Current BC must have the child in a detail view Standard functions String, numeric and logical operators
Field name
Standard function
23 of 31
User Properties
User properties are used to configure specialized properties for the
parent object definition They are added as child object definitions to an applet, BC, control, field or list column Each user property contains its own conditional logic
Can implement specific, custom IF/THEN logic May use a unique syntax
Can be used as an alternative to scripting Examples: BC Read Only Field,
24 of 31
Scenario: To make a record read-only dynamically, based on values entered by the end user
Solution: Use the BC Read Only Field user property, which allows a record to become read-only based on values in a particular field
25 of 31
value is either Y or N
BC Read Only Field user property requires an input value of Y or N
For this example, a calculated field named BC Read Only Flag is
26 of 31
property
In that, set the Value property to BC Read Only Flag. This is the name of the calculated field on the BC When the value of the flag is Y, the record becomes read-only dynamically
27 of 31
to read only, depending on the Boolean value of Protect Internal Employee Flag field
Value property has the name of the field with a Boolean value
Condition
Field affected
28 of 31
Picklist
29 of 31
Module Highlights
BC properties capture the required business logic. They are set to
control behaviour
Properties for editing, Owner Delete properties, Search Specification, Sort Specification Properties for editing include No Delete, No Insert, No Merge and No Update
BusComp View Mode specifies that the BC is subject to access
control Field properties set at the BC level are applicable across all applets that reference it
Required, Read Only, Validation, Default Value, Calculated Field
User Properties are used to configure specialized properties for the
30 of 31
Lab
In the lab, you will: Incorporate business logic into the application by configuring properties of business components and fields
31 of 31