Skip to content

Commit

Permalink
ALR-1283
Browse files Browse the repository at this point in the history
  • Loading branch information
Keerthana9894 committed Aug 12, 2024
1 parent 332b47c commit 5df04cb
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
<valueListItems>
<value>ChangeOwnerOne</value>
</valueListItems>
<valueListItems>
<value>Visit.New_Inspection</value>
</valueListItems>
</valueList>
</componentInstanceProperties>
<componentInstanceProperties>
Expand Down Expand Up @@ -124,6 +127,23 @@
<identifier>RecordVisitTypeIdField</identifier>
</fieldInstance>
</itemInstances>
<itemInstances>
<fieldInstance>
<fieldInstanceProperties>
<name>uiBehavior</name>
<value>required</value>
</fieldInstanceProperties>
<fieldItem>Record.FollowUpPurpose__c</fieldItem>
<identifier>RecordFollowUpPurpose_cField</identifier>
<visibilityRule>
<criteria>
<leftValue>{!Record.VisitType.Name}</leftValue>
<operator>EQUAL</operator>
<rightValue>Follow-up Inspection</rightValue>
</criteria>
</visibilityRule>
</fieldInstance>
</itemInstances>
<itemInstances>
<fieldInstance>
<fieldInstanceProperties>
Expand Down Expand Up @@ -158,6 +178,16 @@
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<fieldInstance>
<fieldInstanceProperties>
<name>uiBehavior</name>
<value>required</value>
</fieldInstanceProperties>
<fieldItem>Record.ParentVisitId</fieldItem>
<identifier>RecordParentVisitIdField</identifier>
</fieldInstance>
</itemInstances>
<itemInstances>
<fieldInstance>
<fieldInstanceProperties>
Expand Down Expand Up @@ -481,6 +511,28 @@
<name>Facet-ba023373-da33-4738-8603-6d4dfc7c0103</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>flowArguments</name>
<value>[{&quot;label&quot;:&quot;recordId&quot;,&quot;dataType&quot;:&quot;String&quot;,&quot;supportsRecordId&quot;:true,&quot;value&quot;:&quot;{!Record.Id}&quot;}]</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>flowLayout</name>
<value>oneColumn</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>flowName</name>
<value>Related_tab_for_Visit_Object</value>
</componentInstanceProperties>
<componentName>flowruntime:interview</componentName>
<identifier>flowruntime_interview</identifier>
</componentInstance>
</itemInstances>
<name>Facet-302364ac-1b6d-46d1-a9d9-674bfe29e883</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
Expand Down Expand Up @@ -544,6 +596,20 @@
<identifier>flexipage_tab</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>body</name>
<value>Facet-302364ac-1b6d-46d1-a9d9-674bfe29e883</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Related Inspection</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
<identifier>flexipage_tab3</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
Expand Down
21 changes: 20 additions & 1 deletion src-ui/main/default/layouts/Visit-Visit Layout.layout-meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,20 @@
<behavior>Required</behavior>
<field>VisitTypeId</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>FollowUpPurpose__c</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>InspectionMethod__c</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>ParentVisitId</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>ContextId</field>
Expand Down Expand Up @@ -62,12 +70,16 @@
<behavior>Edit</behavior>
<field>ProjectedStartTime__c</field>
</layoutItems>
<layoutItems>
<behavior>Readonly</behavior>
<field>ActualVisitStartTime</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>PlannedVisitStartTime</field>
</layoutItems>
</layoutColumns>

<layoutColumns/>
<style>TwoColumnsLeftToRight</style>
</layoutSections>
<layoutSections>
Expand Down Expand Up @@ -232,6 +244,13 @@
<sortField>CreatedDate</sortField>
<sortOrder>Desc</sortOrder>
</relatedLists>
<relatedLists>
<fields>Name</fields>
<fields>ActionPlanState</fields>
<fields>Owner</fields>
<fields>StartDate</fields>
<relatedList>ActionPlan</relatedList>
</relatedLists>
<relatedLists>
<relatedList>RelatedFileList</relatedList>
</relatedLists>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>FollowUpPurpose__c</fullName>
<externalId>false</externalId>
<label>Follow-Up Purpose</label>
<required>false</required>
<trackHistory>false</trackHistory>
<type>Picklist</type>
<valueSet>
<restricted>true</restricted>
<valueSetDefinition>
<sorted>false</sorted>
<value>
<fullName>Application Inspection</fullName>
<default>false</default>
<label>Application Inspection</label>
</value>
<value>
<fullName>Complaint Inspection</fullName>
<default>false</default>
<label>Complaint Inspection</label>
</value>
<value>
<fullName>Compliance Monitoring Inspection</fullName>
<default>false</default>
<label>Compliance Monitoring Inspection</label>
</value>
<value>
<fullName>CURR Follow-up Inspection</fullName>
<default>false</default>
<label>CURR Follow-up Inspection</label>
</value>
<value>
<fullName>Non-Site Visit Assessment</fullName>
<default>false</default>
<label>Non-Site Visit Assessment</label>
</value>
<value>
<fullName>PURR Complaint Inspection</fullName>
<default>false</default>
<label>PURR Complaint Inspection</label>
</value>
<value>
<fullName>Reportable Incident Inspection</fullName>
<default>false</default>
<label>Reportable Incident Inspection</label>
</value>
</valueSetDefinition>
</valueSet>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<QuickAction xmlns="http://soap.sforce.com/2006/04/metadata">
<flowDefinition>VisitCreation</flowDefinition>
<label>New Inspection</label>
<optionsCreateFeedItem>false</optionsCreateFeedItem>
<type>Flow</type>
</QuickAction>

0 comments on commit 5df04cb

Please sign in to comment.