• joshbirk
  • SMARTIE
  • 973 Points
  • Member since 2010

  • Chatter
    Feed
  • 36
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 315
    Replies
For trailhead challenge (https://developer.salesforce.com/trailhead/lightning_components/lightning_components_uiforce), I am using below code. I am not able to figure out whats wrong in below code. I am getting error saying "The component is not using the ui:inputText component"
 
<aura:component >       
    <aura:attribute name="fName" type="String" default="Jitendra"/>
    <aura:attribute name="lName" type="String" default="Zaa"/>
    <aura:attribute name="pNumber" type="String" default="201"/>
    <aura:attribute name="sal" type="String" default="Mr."/>
 
    <ui:inputText label="First Name" value="{!v.fName}" />  
    <ui:inputText label="Last Name" value="{!v.lName}"  /> 
    <ui:inputText label="Phone Number" value="{!v.pNumber}"  />  
    
    <ui:inputSelect multiple="false" label="Salutation" value="{!v.sal}" >
        <ui:inputSelectOption text="Dr." label="Dr." />
        <ui:inputSelectOption text="Mr." label="Mr."/>
        <ui:inputSelectOption text="Mrs." label="Mrs."/>
        <ui:inputSelectOption text="Ms." label="Ms."/>
	</ui:inputSelect> 
    <ui:button label="Submit"/>
</aura:component>

 
https://developer.salesforce.com/trailhead/visualforce_mobile_salesforce1/visualforce_mobile_salesforce1_layouts_cards

I am working on above challenge and code is working in my org and is as below
 
<apex:page standardController="Opportunity"> <apex:outputText value="{!IF(Opportunity.StageName="Prospecting", 'Teststs', IF(Opportunity.StageName="Proposal/Price Quote", 'Teststs', IF(Opportunity.StageName="Proposal/Price Quote", 'Teststs', IF(Opportunity.StageName="Proposal/Price Quote", 'Teststs','Teststs'))))}"/> </apex:page>


I am getting an error as below 

User-added image

Let me know if i am doing anything wrong .
This client-side DisplayCaseController does not pass the challenge with error "The client side controller does not refer to the 'getCaseFromId' method of the Apex controller class".  Component and controller are pasted below.  The component runs from a test lighnting app.  getCaseFromId is correctly referenced as "var action = component.get("c.getCaseFromId");" in the first line of code


component
<aura:component controller="DisplayCaseController" >
    <aura:attribute name="record" type="Case"/>
	<ui:inputText aura:id="caseId" label="Enter Case Id: "/>
    <ui:button label="Get Case" press="{!c.getCaseRecord}"/><br/>

    Subject: <ui:outputText value="{!v.record.Subject}"/><br/>
    Description: <ui:outputText value="{!v.record.Description}"/><br/>
    Status: <ui:outputText value="{!v.record.Status}" /><br/>
</aura:component>
client-side controller
({
	getCaseRecord : function(component) {
        var action = component.get("c.getCaseFromId");
        var caseId = component.find("caseId").get("v.value");
        action.setParams({ "caseID" : caseId });
        action.setCallback(this, function(action) {
			if (action.getState() === "SUCCESS") {
 				component.set("v.record", action.getReturnValue());
            }
            else {
                alert("Action state: " + action.getState());
            }
        });
        $A.enqueueAction(action);
	}
})
Test Application
<aura:application>
    <c:DisplayCase/>
</aura:application>


 
I'm working through the Using Apex in Components (https://developer.salesforce.com/trailhead/force_com_programmatic_beginner/lightning_components/lightning_components_apex) challenge.

When checking the challenge I'm getting the response:
Challenge not yet complete... here's what's wrong: 
The client side controller is not using the return value from the 'getCaseFromId' method

If I put the same lightning component in an app I can see it is retrieving the Case details via the Apex controller method via the client controller.
Testing working Apex Component
I can see the call going through to the Apex Controller in the logs.
User-added image

I can put a debugger; statement in the client controller within the actions setCallback method and hit that immediately after passing the return value back to the records view attribute.

So I'm fairly certain that the client side controller is using the return value from `getCaseFromId` in the Apex controller.

Any ideas on what the challenge is checking for here?
I'm doing the simple lightning components challenge and have hit this problem in my existing trailhead org and a brand new dev org that I've just created:

Challenge not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: QVWBQHAG
Hello,

I'm trying to complete the "Using Formula Fields" section in trailhead.
The task is:

For easier reporting and filtering, create a new custom formula field on the standard account object which looks at the SLA Expiration Date field and returns true if the current date comes after it. Otherwise, it should return false.The account object should have a custom date field with the Field Label 'SLA Expiration Date' and Field Name of 'SLAExpirationDate'. The resulting API Name should be 'SLAExpirationDate__c'. On a Developer Edition, the 'SLA Expiration Date' field may already exist.
The new formula field should have the Field Label 'SLA Expired' and Field Name of 'SLA_Expired'. The resulting API Name should be 'SLA_Expired__c'.
The formula field should be of type 'Checkbox'.
The formula field should calculate its response based on the current date.
The formula field should return true if the SLA has expired, and false if it has not.


My syntax is: SLA_Expiration_Date__c < Today()

The error message I am receiving is: 
Challenge not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: LUVRAIPP


Any help is appreciated.
 
Hi,
I am using AngularJS to build a page on Salesforce1 mobile app. I have ability for users to upload attachments which are then saved in Attachment object. On Inserting the attachment, I am populating the id of the attachment on the object. Lets call it AttachmentId__c.

Normally ill simply use the '/servlet/servlet.FileDownload?file=' link to generate attachment link.

However, on Salesforce1 this link goes nowhere, it takes the user on the chatter feed and displays error. please login to correct org. 

Is there a way to get ServerURL for Salesforce1? Any pointers appreciated.
I have discovered a bug in the Spring 14 release in my sand box.

In the apex class used as the controller for the VF page I set a public Boolean variable called rightNow.

In the Visualforce page I have a command button <apex:commandButton value="Do It" action="{!doit}" immediate="{!NOT(rightNow)}" />. This has been working for several releases.

Click this button in Spring 14 generates an immediate system error.

If I do not use the "NOT" function it works fine.

This works - <apex:commandButton value="Do It" action="{!doit}" immediate="{!rightNow}" />

Adding another global variable notRightNow works as well

This works - <apex:commandButton value="Do It" action="{!doit}" immediate="{!notRightNow}" />

Please get this fixed.


Okay, I'm pretty close to wrapping up my 4-week worths of days, nights, weekdays & weekends, lost hair and dark circles below my eyes :) But I can't really find how do I submit my entry. Can anyone point me to the submission link?

I'm almost done with my iOS app. In addition to the code, I want to provide a working build (IPA) of my app via TestFlight or a similar mechanism just in case judges face any issues in compiling the code. Can you let me know the UDID for a couple of test devices? Else, please provide some guidance on how can I provide a build to you for judging.

 

An early response would be appreciated.

The rules state "A maximum 2 minute demo video of the working application uploaded to
your YouTube or Vimeo account"

 

In the past for Salesforce Mobile Developer Challenge, I've seen entries with larger durations accepted. Can you confirm if the 2 min duration limit is in stone of can it exceed by few seconds?

How do we go about delivering code for the project for review? I assume we're submitting a zip or similar for any mobile code and then just some org creds for SFDC parts? 

"On or before 2:01 pm on November 19th, Participants will be 

provided with a URL to the third-party vendor website to submit their Entry"

 

"Upon completion of 

the registration process, Participants will be able to submit their Entries. Entries consist
of:

-A mobile application useable by the judges (see below for more details)"

 

Looking below:

"All submitted Entries must be fully functional applications. We need to be able to use 

your application in order to judge it!"

With an iOS app, we can't just submit any old app to anyone.  It needs to be signed to work on specified devices for ad hoc deployment.  How is this possible when we are required to submit to some unknown url?