Skip to content

Commit

Permalink
Merge pull request #1006 from bcgov/Feature-ALR-1283
Browse files Browse the repository at this point in the history
ALR-1283
  • Loading branch information
GandlojuVishwantha authored Aug 12, 2024
2 parents 332b47c + a0c7147 commit 753992a
Show file tree
Hide file tree
Showing 6 changed files with 565 additions and 27 deletions.
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
121 changes: 121 additions & 0 deletions src/main/default/flows/Related_tab_for_Visit_Object.flow-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>61.0</apiVersion>
<environments>Default</environments>
<interviewLabel>Related tab for Visit Object {!$Flow.CurrentDateTime}</interviewLabel>
<label>Related tab for Visit Object</label>
<processMetadataValues>
<name>BuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>CanvasMode</name>
<value>
<stringValue>AUTO_LAYOUT_CANVAS</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>OriginBuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processType>Flow</processType>
<recordLookups>
<name>GetVisitRecord</name>
<label>GetVisitRecord</label>
<locationX>176</locationX>
<locationY>134</locationY>
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
<connector>
<targetReference>InspectionTab</targetReference>
</connector>
<filterLogic>and</filterLogic>
<filters>
<field>ParentVisit</field>
<operator>EqualTo</operator>
<value>
<elementReference>recordId</elementReference>
</value>
</filters>
<getFirstRecordOnly>false</getFirstRecordOnly>
<object>Visit</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordLookups>
<screens>
<name>InspectionTab</name>
<label>InspectionTab</label>
<locationX>176</locationX>
<locationY>242</locationY>
<allowBack>false</allowBack>
<allowFinish>true</allowFinish>
<allowPause>false</allowPause>
<fields>
<name>Inspection</name>
<dataTypeMappings>
<typeName>T</typeName>
<typeValue>Visit</typeValue>
</dataTypeMappings>
<extensionName>flowruntime:datatable</extensionName>
<fieldType>ComponentInstance</fieldType>
<inputParameters>
<name>selectionMode</name>
<value>
<stringValue>NO_SELECTION</stringValue>
</value>
</inputParameters>
<inputParameters>
<name>minRowSelection</name>
<value>
<numberValue>0.0</numberValue>
</value>
</inputParameters>
<inputParameters>
<name>tableData</name>
<value>
<elementReference>GetVisitRecord</elementReference>
</value>
</inputParameters>
<inputParameters>
<name>maxRowSelection</name>
<value>
<numberValue>0.0</numberValue>
</value>
</inputParameters>
<inputParameters>
<name>columns</name>
<value>
<stringValue>[{&quot;apiName&quot;:&quot;Name&quot;,&quot;guid&quot;:&quot;column-d3a3&quot;,&quot;editable&quot;:false,&quot;hasCustomHeaderLabel&quot;:false,&quot;customHeaderLabel&quot;:&quot;Name&quot;,&quot;wrapText&quot;:true,&quot;order&quot;:0,&quot;label&quot;:&quot;Name&quot;,&quot;type&quot;:&quot;text&quot;},{&quot;apiName&quot;:&quot;Status&quot;,&quot;guid&quot;:&quot;column-72cc&quot;,&quot;editable&quot;:false,&quot;hasCustomHeaderLabel&quot;:false,&quot;customHeaderLabel&quot;:&quot;&quot;,&quot;wrapText&quot;:true,&quot;order&quot;:1,&quot;label&quot;:&quot;Status&quot;,&quot;type&quot;:&quot;text&quot;},{&quot;apiName&quot;:&quot;ActualVisitStartTime&quot;,&quot;guid&quot;:&quot;column-551a&quot;,&quot;editable&quot;:false,&quot;hasCustomHeaderLabel&quot;:false,&quot;customHeaderLabel&quot;:&quot;&quot;,&quot;wrapText&quot;:true,&quot;order&quot;:2,&quot;label&quot;:&quot;Actual Start Time&quot;,&quot;type&quot;:&quot;customDateTime&quot;}]</stringValue>
</value>
</inputParameters>
<inputParameters>
<name>label</name>
<value>
<stringValue>Inspections</stringValue>
</value>
</inputParameters>
<inputsOnNextNavToAssocScrn>UseStoredValues</inputsOnNextNavToAssocScrn>
<isRequired>true</isRequired>
<storeOutputAutomatically>true</storeOutputAutomatically>
</fields>
<showFooter>false</showFooter>
<showHeader>false</showHeader>
</screens>
<start>
<locationX>50</locationX>
<locationY>0</locationY>
<connector>
<targetReference>GetVisitRecord</targetReference>
</connector>
</start>
<status>Active</status>
<variables>
<name>recordId</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
</variables>
</Flow>
Loading

0 comments on commit 753992a

Please sign in to comment.