• Daniel Fuller
  • NEWBIE
  • 5 Points
  • Member since 2015
  • Software Engineer

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 1
    Replies
I am currently stuck on an issue I am having getting the value of the ui:inputCheckbox Lightning component. In the Lightning Component Developer Guide, the following example is provided:

COMPONENT MARKUP
<aura:component>
    <aura:attribute name="myBool" type="Boolean" default="true"/>
    <ui:inputCheckbox aura:id="checkbox" label="Select?" change="{!c.onCheck}"/>
    <p>Selected:</p>
    <p><ui:outputText class="result" aura:id="checkResult" value="false"/></p>
    <p>The following checkbox uses a component attribute to bind its value.</p>
    <ui:outputCheckbox aura:id="output" value="{!v.myBool}"/>
</aura:component>

COMPONENT CONTROLLER
 
({
        onCheck: function (cmp, event, helper) {
            var checkCmp = cmp.find("checkbox");
            resultCmp = cmp.find("checkResult");
            resultCmp.set("v.value", "" + **checkCmp.get("v.value")**);
        }
    })

I am currently using the exact pattern in my markup as follows:

MY COMPONENT MARKUP
<div class="pbxs">
         <div class="tc wht pas mhauto"></div>
         <ui:inputCheckbox aura:id="taskCheckBox" text="{!nextsteps.task.Id}"  class="sq-25 checkbox checkbox--default checkbox--states-1 brm mrs bg-secondary-btn sq-22 a-mid dib" change="{!c.handleCheckTask}"/>                                        
    </div>
MY COMPONENT CONTROLLER
handleCheckTask : function(cmp, event, helper) {
            var checkCmp = cmp.find("taskCheckBox");
            console.log("value : " + **checkCmp.get("v.value")**)
    }

Strangely, when I click the checkbox in my component, I get the following aura error:
"Uncaught error in markup://ui:change : checkCmp.get is not a function"

I am not sure why I am getting that error when I am using the same pattern as in the example. I tried re-creating the example from the guide. When I did that, I did not get the error. Can anyone see what I might be missing?
Good afternoon everyone,

I am currently stuck on an issue while developing a desktop Lightning App. Is there currently any native Lightning events or any way to navigate between Lightning components within a desktop Lightning app? All I have been able to do so far is just hide and show the components with jQuery/Javascript. I have only been able to find navigation-related events that are only supported for Salesforce1 mobile but not desktop Lightning apps.

I look forward to any information you guys can provide. Thanks!
Hello everyone,
I have a question in an area where I am stuck after creating a new stand-alone Lightning app. I do not want to run the Lightning app on the Salesforce1 platform but want to run it on a desktop platform from within the Salesforce org. What process does one have to go through to set up a stand alone Lightning App to be launched from within the Salesforce org? Is there a way to link Salesforce tabs to the Lightning App that will launch the app when they are clicked like you can with Visualforce pages or to add the Lightning App in the Apps menu? I am not able to find any documentation or how to use desktop Lightning Apps from within Salesforce or if that is possible at this time.
Good morning everyone. 

I currently have a somewhat complex problem that we are facing. We are currently trying to track Javascript events on the standard Case detail page in the service console. For example, when a user clicks the "New Case" button, we want to get a record in a Time Tracking object showing that the user clicked that button. We then want to track the creation of that new case (clicking the "Save" button) as a closing event for that New Case opening event in the Time Tracking custom object. We are currently doing this with a Javascript Chrome extension using the Ajax toolkit.

The problem we are having is that we cannot figure out a way to capture the Case Record Id of the newly created case and assign that Case Record Id to the New Case opening event record in the Time Tracking object. We could assign the record id successfully if we could somehow capture the Id. The problem is that the New Case page in the console is an iFrame that is separate from a different iFrame that loads once the "Save" button is clicked and you are taken to the Case Detail page for that new case. At that point, we lose the context of the New Case iFrame. 

Would there be any way to capture that Record Id when the Save button is clicked or to somehow capture that new record Id and then associate it to the correct New Case record in the Time Tracking custom object?

I currently have a Sandbox and Production org where I am trying to perform an sf:retrieve on all of the metadata components in the org, both unpackaged and packaged components. I have been able to perform the retrieve on the unpackaged components successfully. However, there are two packages in the org from which I need to retrieve components. In the documentation for the Salesforce Migration Tool, it mentions that the "packageNames" attribute can receive a comman-separated list of package names to be retrieved. However when I have attempted to the the following syntax, I receive an API error from Salesforce stating, "Failed to process the request successfully. Cause(INVALID_CROSS_REFERENCE_KEY): INVALID_CROSS_REFERENCE_KEY: More than 1 package retrieved with single package flag."

Syntax:
<sf:retrieve username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" retrieveTarget="targetFolder" packageNames="PackageName1,PackageName2"/>

I have also tried using the same comma-separated list in the build.properties file with the syntax:
sf.pkgName = Package1, Package2
<sf:retrieve username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" retrieveTarget="targetFolder" packageNames="${sf.pkgName}"/>

I received the same error doing it this way as well.

I am not sure how the package names should be separated in order to avoid this API error or if there might be some other cause?

Any help would be greatly appreciated. Thank you!
 

I currently have a Sandbox and Production org where I am trying to perform an sf:retrieve on all of the metadata components in the org, both unpackaged and packaged components. I have been able to perform the retrieve on the unpackaged components successfully. However, there are two packages in the org from which I need to retrieve components. In the documentation for the Salesforce Migration Tool, it mentions that the "packageNames" attribute can receive a comman-separated list of package names to be retrieved. However when I have attempted to the the following syntax, I receive an API error from Salesforce stating, "Failed to process the request successfully. Cause(INVALID_CROSS_REFERENCE_KEY): INVALID_CROSS_REFERENCE_KEY: More than 1 package retrieved with single package flag."

Syntax:
<sf:retrieve username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" retrieveTarget="targetFolder" packageNames="PackageName1,PackageName2"/>

I have also tried using the same comma-separated list in the build.properties file with the syntax:
sf.pkgName = Package1, Package2
<sf:retrieve username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" retrieveTarget="targetFolder" packageNames="${sf.pkgName}"/>

I received the same error doing it this way as well.

I am not sure how the package names should be separated in order to avoid this API error or if there might be some other cause?

Any help would be greatly appreciated. Thank you!
 

Hello everyone,
I have a question in an area where I am stuck after creating a new stand-alone Lightning app. I do not want to run the Lightning app on the Salesforce1 platform but want to run it on a desktop platform from within the Salesforce org. What process does one have to go through to set up a stand alone Lightning App to be launched from within the Salesforce org? Is there a way to link Salesforce tabs to the Lightning App that will launch the app when they are clicked like you can with Visualforce pages or to add the Lightning App in the Apps menu? I am not able to find any documentation or how to use desktop Lightning Apps from within Salesforce or if that is possible at this time.