• Seroba
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
When I navigate from an aura component to another, the second component does not respond to class="slds-scrollable"
(NB this is only an issue on the Salesforce Mobile app, not desktop)

BeginScreen.cmp
<aura:component implements="forceCommunity:availableForAllPageTypes,force:lightningQuickAction,force:hasRecordId,force:appHostable" access="GLOBAL" >

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

        <div class="slds-m-top--xx-large">
            <div class="slds-m-around_large">
                <div class="slds-text-heading_small slds-m-bottom_x-small">Navigato to ScrollScreen</div>
                <button class="slds-button slds-button--brand" type="button" onclick="{!c.navBookTechOnsite}">Tap Here...</button>
            </div>
        </div>

</aura:component>

BeginScreenController.js
({
    doInit : function(component, event, helper) {
        var caseId = component.get("v.recordId");
    },
    
    navBookTechOnsite : function(component, event, helper) {
        alert('Navigating to c:ScrollScreen...');
        var evt = $A.get("e.force:navigateToComponent");
        evt.setParams({
            componentDef : "c:ScrollScreen",
            //Pass value to caseRecordId attribute
            componentAttributes :{
                caseRecordId: component.get("v.recordId")
            }
        });
        evt.fire();
    }
})

ScrollScreen.cmp
<aura:component implements="forceCommunity:availableForAllPageTypes,force:lightningQuickAction,force:hasRecordId,force:appHostable" access="GLOBAL" >
    
    
    <aura:attribute name="caseRecordId" type="String" />
    <aura:attribute name="recordError" type="String" />
    <aura:attribute name="record" type="Object" />
    <aura:attribute name="caseRecord" type="Object" />
    <aura:attribute name="recordSaveError" type="String" default=""/>
    
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>

    <div class="slds-modal__content slds-p-around--small slds-grid slds-wrap">
        <h2 class="slds-section__title-action slds-size--1-of-1 slds-m-around-small">Scroll Screen</h2>
        <!-- Display error message --> 
        <aura:if isTrue="{!not(empty(v.recordSaveError))}">
            <div class="recordError">
                {!v.recordSaveError}
            </div> 
        </aura:if>
            <!-- Display an editing form -->
            <lightning:input label="Case Number" value="{!v.caseRecord.CaseNumber}" class="slds-size--1-of-1"/>
            <lightning:input label="Customer Name" value="{!v.caseRecord.Contact.Name}" class="slds-size--1-of-1"/>
            <lightning:input label="Scheduled Technician" value="{!v.caseRecord.Scheduled_Technician_naming__c}" class="slds-size--1-of-1"/>
            <lightning:input label="Case Type" value="{!v.caseRecord.Case_Type__c}" class="slds-size--1-of-1"/>
            <lightning:input label="ETA" value="" class="slds-size--1-of-1"/>
            
            <div class="slds-m-around_large">
                <div class="slds-text-heading_small">Make this screen scrollable</div>
                <lightning:select aura:id="selectBookTechn" name="selectBookTechn" onchange="{! c.onChangePictureType }">
                    <option value="Picture of the front of the vehicle">Picture of the front of the vehicle</option>
                    <option value="Picture of license disk">Picture of license disk</option>
                    <option value="Picture of vehicle dash">Picture of vehicle dash</option>
                    <option value="Picture of the cluster">Picture of the cluster</option>
                </lightning:select>
            </div>
            
            
            <div class="slds-text-body_regular slds-size--1-of-1 slds-m-top--medium slds-text-title_bold">
                <lightning:fileUpload
                                      multiple="true"
                                      accept=".pdf, .jpg"
                                      recordId=""
                                      onuploadfinished="{!c.handleUploadFinished}" />
                
            </div>
        <div class="slds-modal__footer">             
            <lightning:button variant="neutral" label="Save" onclick="{!c.navAnyFaultItems}" class="slds-m-top_small"/>
        </div>
    </div>   
</aura:component>

ScrollScreenController.js
({
    doInit : function(component, event, helper) {
        var caseId = component.get("v.caseRecordId");
        alert('Passed Id is: ' + caseId);
    }
})


 
  • December 08, 2020
  • Like
  • 0
Hi guys. It it possible to build pages for Salesforce mobile app(for community users) and navigate between those pages? If yes please share some resources.
Really appreciated!!!!
  • October 16, 2020
  • Like
  • 0
Hi guys. It it possible to build pages for Salesforce mobile app(for community users) and navigate between those pages? If yes please share some resources.
Really appreciated!!!!
  • October 16, 2020
  • Like
  • 0

Hello,

 

I have a Picklist in which one of the fields is "Error". On a user changing form fields and choosing to choose a different picklist value I want a validation rule to check the previous value of the picklist field and to only allow certain values to be picked if previously at "Error".  I have tried the following.

 

OR(AND(PRIORVALUE(Request_Status__c)='Error' , Request_Status__c<>'Draft Request'),AND(PRIORVALUE(Request_Status__c)='Error' , Request_Status__c<>'Endorse'))

 

I receive an error as follows:

Error: Field Request_Status__c is a picklist field. Picklist fields are only supported in certain functions. Tell me more

 

The "Tell me More" link brings me to teh following article  https://avaya--c4rdev.cs12.my.salesforce.com/help/doc/user_ed.jsp?loc=help&target=tips_on_building_formulas.htm%23picklists_and_msps&section=Customizing

 

In which it states "

  • PRIORVALUE(Only in assignment rules, validation rules, workflow field updates, and workflow rules in which the trigger type is set to Every time a record is created or edited)"

I do want this to run though every time an edit occurs though so figured it should work.

 

Does anyone happen to know from looking at the above what I may be doing wrong and a way to get around this?

 

Thanks in advance.


I've installed the apex-lang managed package. In eclipse it appears in the managed packages section of the project but if I try to run any methods or instantiate anything it says that the type or method does not exist. If I open any classes it just says "(hidden)".

 

What am I doing wrong?

  • November 22, 2011
  • Like
  • 0