You can embed Chain's map and chat on the load inside of Revenova using VisualForce components.
1. Go to Setup and search for "VisualForce pages"
2. Click "New"
3. Add a label as "Chain Chat"
4. Add a name as "Chain_Chat"
5. Check the box for "Available for Lightning Experience, etc..."
<apex:page standardController="rtms__Load__c" sidebar="false" showHeader="false" cache="false" readonly="true">
<style>
.iframe-container {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%; /* Aspect ratio */
}
.iframe-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
</style>
<div class="iframe-container">
<apex:iframe src="{!rtms__Load__c.Chain_Chat_URL__c}"/>
</div>
</apex:page>
6. Repeat this for label "Chain Map" and name "Chain_Map"
7. Copy the below code and paste it into the page editor
8. Don't forget to check the box for "Available for Lightning Experience, etc..."
<apex:page standardController="rtms__Load__c" sidebar="false" showHeader="false" cache="false" readonly="true">
<style>
.iframe-container {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%; /* Aspect ratio */
}
.iframe-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
</style>
<div class="iframe-container">
<apex:iframe src="{!rtms__Load__c.Chain_Tracking_Map_URL__c}"/>
</div>
</apex:page>
9. Finally, once these are created, you have to give the user's profile access to these pages. To do this, on the Visualforce page where it lists the components, find the Chain Chat and Chat Map, and click "Security" on the right.
10. Then add the user's profiles that you want to give access to. You can confirm with the customer which profiles they want to give access to. Most of the time it will be the below, but you may only want certain users to view.
- Identity User
- System Administrator
- Standard Platform User
- Standard User
- TMS Operations
If a customer has created custom profiles, you can also add those.
#### Add the iFrame components on the Load Page
1. Open a Load record
2. Click the "Gear" icon and select "Edit Page"
3. Search for the "Visualforce" purple component on the left menu
4. Drag it to where you want to add the Chat or Map
5. On the right, you will be able to select the "Chain Chat" or "Chain Map" page we created earlier under "Visualforce Page Name"
6. Set the height for the map/chat to 700 or 800.
7. Click "Save"
