Skip to content

Commit

Permalink
Merge pull request #142 from SalesforceLabs/feature/weight_field_changes
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
GeekStewie authored Feb 9, 2024
2 parents adff821 + e41934a commit 501be27
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 17 deletions.
2 changes: 1 addition & 1 deletion cumulusci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ orgs:
dev:
days: 30
config_file: config/dev-scratch-def.json
namespaced: "True"
namespaced: True
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@
<identifier>RecordEstimated_Age__cField</identifier>
</fieldInstance>
</itemInstances>
<itemInstances>
<fieldInstance>
<fieldInstanceProperties>
<name>uiBehavior</name>
<value>none</value>
</fieldInstanceProperties>
<fieldItem>Record.Calculated_Age__c</fieldItem>
<identifier>RecordCalculated_Age__cField</identifier>
</fieldInstance>
</itemInstances>
<name>Facet-4c49db03-428d-4fcb-a44e-6e9be7ede66a</name>
<type>Facet</type>
</flexiPageRegions>
Expand Down Expand Up @@ -192,8 +202,8 @@
<name>uiBehavior</name>
<value>none</value>
</fieldInstanceProperties>
<fieldItem>Record.Date_of_Birth__c</fieldItem>
<identifier>RecordDate_of_Birth__cField</identifier>
<fieldItem>Record.Current_Weight_ibs__c</fieldItem>
<identifier>Recordanimalshelters_Current_Weight_ibs_cField</identifier>
</fieldInstance>
</itemInstances>
<itemInstances>
Expand All @@ -202,8 +212,8 @@
<name>uiBehavior</name>
<value>none</value>
</fieldInstanceProperties>
<fieldItem>Record.Calculated_Age__c</fieldItem>
<identifier>RecordCalculated_Age__cField</identifier>
<fieldItem>Record.Date_of_Birth__c</fieldItem>
<identifier>RecordDate_of_Birth__cField</identifier>
</fieldInstance>
</itemInstances>
<itemInstances>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@
<label>Rat</label>
</customValue>
<customValue>
<fullName>Fish</fullName>
<fullName>Reptile</fullName>
<default>false</default>
<isActive>false</isActive>
<label>Fish</label>
<label>Reptile</label>
</customValue>
<customValue>
<fullName>Reptile</fullName>
<fullName>Fish</fullName>
<default>false</default>
<isActive>false</isActive>
<label>Reptile</label>
<label>Fish</label>
</customValue>
<description>[Animal Shelter] Types of Animals</description>
<masterLabel>Animal Type</masterLabel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
<behavior>Readonly</behavior>
<field>Age_Category__c</field>
</layoutItems>
<layoutItems>
<behavior>Readonly</behavior>
<field>Current_Weight_ibs__c</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
Expand Down Expand Up @@ -374,11 +378,6 @@
<actionType>QuickAction</actionType>
<sortOrder>13</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewCase</actionName>
<actionType>QuickAction</actionType>
<sortOrder>14</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>PrintableView</actionName>
<actionType>StandardButton</actionType>
Expand Down Expand Up @@ -409,6 +408,11 @@
<actionType>QuickAction</actionType>
<sortOrder>6</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewCase</actionName>
<actionType>QuickAction</actionType>
<sortOrder>14</sortOrder>
</platformActionListItems>
</platformActionList>
<quickActionList>
<quickActionListItems>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<label></label>
<name>Current_Weight_ibs__c</name>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<label></label>
<name>Current_Weight_ibs__c</name>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<label></label>
<name>Current_Weight_ibs__c</name>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Current_Weight__c</fullName>
<externalId>false</externalId>
<inlineHelpText>The current weight of the animal. This field is tracked and changes will be logged in the Field History.</inlineHelpText>
<label>Current Weight</label>
<precision>5</precision>
<inlineHelpText>The current weight of the animal in KG. This field is tracked and changes will be logged in the Field History.</inlineHelpText>
<label>Current Weight (KG)</label>
<precision>7</precision>
<required>false</required>
<scale>2</scale>
<trackHistory>true</trackHistory>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Current_Weight_ibs__c</fullName>
<externalId>false</externalId>
<formula>Current_Weight__c * 2.205</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>Current Weight (Ibs)</label>
<precision>18</precision>
<required>false</required>
<scale>2</scale>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>Number</type>
<unique>false</unique>
</CustomField>

0 comments on commit 501be27

Please sign in to comment.