• Brian Richardson
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

Hello,

Having trouble finding the right SLDS style or layout to prevent the reduction of text/font size when a simple Lightning Component is displayed in mobile vs. standard layout. Using Chrome developer tools to view the results, as follows:

Responsive (mobile):
User-added image
Toggling the device toolbar:
User-added image

So, in responsive mode the text and controls are hard to use on a phone, as the table scales way down. I guess what I'm asking is, how do I turn off "responsiveness"? I'd like the component to display large text and controls as in the 2nd PNG.

My component table:

<table class="slds-table slds-table_bordered slds-table_cell-buffer">
        <thead>
        <tr class="slds-text-title_caps">
            <th scope="col">
                <div class="slds-truncate" title="Table">Table Header</div>
            </th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td data-label="Skill">
                <div class="slds-truncate">
                    <c:customLookup aura:id="lookupSkill" objectAPIName="Expertise__c" selectedRecord="{!v.selectedSKill}" label="Skill"/>
                </div>
            </td>
        </tr>
        <tr>
            <td data-label="Skill">
                <div class="slds-truncate">
                    <lightning:input name="liCapability" label="Capability" type="text" value="{!v.selectedCapability}"/>
                </div>
            </td>
        </tr>
        <tr>
            <td data-label="Contact">
                <div class="slds-truncate">
                    <lightning:input type="date" label="Start Date" name="startDate" aura:id="startDate" value="{!v.startDate}"/>
                </div>
            </td>
        </tr>
        <tr>
            <td data-label="Contact">
                <div class="slds-truncate">
                    <ui:button label="Submit" press="{!c.submitForm}"/>
                </div>
            </td>
        </tr>
        </tbody>
    </table>
Hoping this is a dumb question with a simple answer :)

Thanks,
BR
We are trying to deploy to our production org. All deployments give the following error, no matter which apex classes are being deployed:

Error: Cannot deploy while the apex code is currently executing.

This has been happening all day.
Our suspicion is that there is a stuck deployment from yesterday, but there are no active deployments listed in the org.

Thoughts?
 
Hello,

I am trying to insert price book enty in test class.When i have inserted this and run that class it worked fine. But My so may test class is using price book.As i ran all the test class by clicking "Run All Test"  It is giving error

"System.DmlException: Insert failed. First exception on row 0; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: []"
How canm i solve this granulatity issue.

My code is this

Id pricebookId = Test.getStandardPricebookId();
     
        PricebookEntry standardPrice = new PricebookEntry(
             Pricebook2Id = pricebookId, Product2Id = objProduct.Id,
             UnitPrice = 10000, IsActive = true);
        insert standardPrice;
       
        // Create a custom price book
        Pricebook2 customPB = new Pricebook2(Name='Custom Pricebook', isActive=true);
        insert customPB;
       
        // 2. Insert a price book entry with a custom price.
        PricebookEntry customPrice = new PricebookEntry(
            Pricebook2Id = customPB.Id, Product2Id = objProduct.Id,
            UnitPrice = 12000, IsActive = true);
        insert customPrice;
  • September 03, 2014
  • Like
  • 0