-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-#130 Show in the playlist all tracks duration #135
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this cannot be achieve using a Roll up summary field because is not a master detail am I right?
@@ -41,6 +41,10 @@ | |||
<behavior>Edit</behavior> | |||
<field>Public__c</field> | |||
</layoutItems> | |||
<layoutItems> | |||
<behavior>Edit</behavior> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouñd be read only
@@ -0,0 +1,12 @@ | |||
<?xml version="1.0" encoding="UTF-8" ?> | |||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | |||
<fullName>TotalTracksDuration__c</fullName> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just name it Duration
@@ -119,6 +119,11 @@ | |||
<field>Playlist__c.SpotifyId__c</field> | |||
<readable>true</readable> | |||
</fieldPermissions> | |||
<fieldPermissions> | |||
<editable>true</editable> | |||
<field>Playlist__c.TotalTracksDuration__c</field> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read only
@@ -37,16 +37,27 @@ public class SyncPlaylist { | |||
.replaceAll('"public" :', '"publicField" :')); | |||
|
|||
for (SimplefiedPlaylistObject playlist : playlists.items) { | |||
Integer TotalTracksDuration = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use camel case
yes, only is master detail the object playlistTrack or there is another way? |
No description provided.