• Alex Miller 93
  • NEWBIE
  • 30 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 2
    Replies
I'm trying to write a program to pull in all the objects our admins regularly modify. These don't include system objects such as Approvals and Opportunitycontactrole. The list I'm wanting to pull is the one you find by going to Setup->Create->Objects. 

User-added image

I have this code. The problem with this code takes too long to iterate. I keep getting a CPU timeout error in the Dev console. I noticed it is pulling things like Approvals. I'm only interested in the custom object screen plus standard objects like Accounts, Contacts, Opportunities, and so on. Not the System Standard objects.
for(Schema.SObjectType objTyp : Schema.getGlobalDescribe().Values()){
    system.debug('****-->'+ objTyp.getDescribe().getLabel());
}
Anyone know how to pull that without generating a manual custom setting list?
 
Hi! I'm wanting to make a custom page layout. No Header. No Footer. One left small (~30% or 4 SLDS columns) component section and three stacked right side bar which should take up the rest of the page. I tried this code and it doesn't come out the way I want it to.
<aura:component implements="lightning:appHomeTemplate" description="Main small column
 and three right sidebar. On a phone, the regions are of equal width">
    <aura:attribute name="left" type="Aura.Component[]" />
    <aura:attribute name="topRight" type="Aura.Component[]" />
    <aura:attribute name="middleRight" type="Aura.Component[]" />
    <aura:attribute name="bottomRight" type="Aura.Component[]" />
	<div>
        <lightning:layout>
    		<lightning:layoutItem class="slds-m-right_small">
                {!v.left}
            </lightning:layoutItem>
        </lightning:layout>
    </div>
    
    <div>
        <lightning:layout>
            <lightning:layoutItem flexibility="grow" class="slds-m-left_small">
                {!v.topRight}
            </lightning:layoutItem>
            <lightning:layoutItem flexibility="grow" class="slds-m-left_small">
                {!v.middleRight}
            </lightning:layoutItem>
            <lightning:layoutItem flexibility="grow" class="slds-m-left_small">
                {!v.bottomRight}
            </lightning:layoutItem>
        </lightning:layout>
    </div>
    
</aura:component>
 
<design:component label="Two Column, three right sidebar Custom App Page Template">
    <flexipage:template >
        <!-- The default width for the "left" region is "MEDIUM". In tablets,
        the width is "SMALL" -->
            <flexipage:region name="left" defaultWidth="SMALL">
                <flexipage:formfactor type="MEDIUM" width="SMALL" />
            </flexipage:region>
            <flexipage:region name="topRight" defaultWidth="MEDIUM" />
        	<flexipage:region name="middleRight" defaultWidth="MEDIUM" />
        	<flexipage:region name="bottomRight" defaultWidth="MEDIUM" />
       </flexipage:template>
</design:component>

User-added image

The above image is my result. What I'm trying to do is below. Where the two columns are equal in height but the right side is elongated. 

User-added image

I'm really new to App Page layouts and feel kind of lost.
Hi! I'm trying to figure out why my scroll functionality isn't behaving the way I want it to. I have this component sitting as the parent:
 
<aura:component implements="flexipage:availableForAllPageTypes" access="global" controller="ContentListController">

    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>

    <!-- Global decleration for the Content Id selected -->
    <aura:attribute name="ContenList" type="Content__c[]"/>

    <!-- this section!! -->
    <div style="max-height: 400px;overflow-y: auto;">
        <aura:iteration items="{!v.ContenList}" var="store">
            <c:ContentCard content="{!store}" duration="1" />
        </aura:iteration>
    </div>
    <!-- this section!! -->

</aura:component>
I'm loading a list of object records into this iteration. Then I'm wanting to contain them like the diagram shows where the list of components would be 5 or 6 cards visible at a given time. Then anything overflowing would require scrolling.

User-added image

But I'm getting this result:

User-added image

 
Is there standard functionality which allows me to grant a custom profile (e.g. System Admin (limited) ) which allows someone of my choosing to freeze users at will? I can do it with my standard System Admin profile but don't see a way to give it to a custom profile.

Thanks!
Is there standard functionality which allows me to grant a custom profile (e.g. System Admin (limited) ) which allows someone of my choosing to freeze users at will? I can do it with my standard System Admin profile but don't see a way to give it to a custom profile.

Thanks!