• ssgmail
  • NEWBIE
  • 5 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
I am noticing that "click" event is not captured in the ui:message component.

My component:
<aura:component access="global">
 <ui:outputText value="simple text" click="{!c.onClick}"/>
 <ui:message title="Confirmation" severity="confirm" closable="true" click="{!c.onClick}">
   This is a confirmation message.
 </ui:message>
</aura:component>

My JS Controller:
({
    onClick: function(cmp) {
        alert("Clicked");
    }
})

Note that when I click on ui:outputText I do get the alert popup. But clicking on the ui:message does not give me the alert. 
According the lightning developer document, the ui:message is supposed to support click event.
Thank you for the help!
Objects with a single layer work fine, but when I try to use an object that goes deeper than one layer I receive an unknown server error when trying to access the variable on the server side user parameter.get('objectPropertyName') see code below.

So this code works as gateway is a simple string. However whenever I try to make gateway an object I start getting errors
       /*******************************************************************************************************
        * @description Test saving configuration
        */
        var saveConfiguration = component.get("c.testSomething");

        // Set save configuration parameters.
        saveConfiguration.setParams({
            testSome : 'Hello World!',
            config : {
                gateway: 'Stripe'
            }
        });

        // Setup save configuration callback
        saveConfiguration.setCallback(this, function(a) {
                if (a.getState() === "SUCCESS") {
                   // Do something with return value
                } else if (a.getState() === "ERROR") {
                    $A.error("Errors", a.getError());
                    $A.log("Errors", a.getError());
                }
            });

        // Queue the transaction action
        $A.enqueueAction(saveConfiguration);



This code gives me an error when trying to access the parameter map in the server side controller. 
       /*******************************************************************************************************
        * @description Test saving configuration
        */
        var saveConfiguration = component.get("c.testSomething");

        // Set save configuration parameters.
        saveConfiguration.setParams({
            testSome : 'Hello World!',
            config : {
                gateway: 'Stripe'
            }
        });

        // Setup save configuration callback
        saveConfiguration.setCallback(this, function(a) {
                if (a.getState() === "SUCCESS") {
                   // Do something with return value
                } else if (a.getState() === "ERROR") {
                    $A.error("Errors", a.getError());
                    $A.log("Errors", a.getError());
                }
            });

        // Queue the transaction action
        $A.enqueueAction(saveConfiguration);




Here's my server side controller method:
@AuraEnabled
public static void testSomething(String testSome, Map<String, Object> config) {
    System.debug(config.get('gateway'));
}

So in summary whenever gateway is a simple string everything works... The second I try to use an object I start getting errors. I'd prefer to use one of my Apex classes instead of a Map<String, Object> for the parameter, but I was having no luck with that. Any help is much appreciated!
 

Hi all,

 

First I'm new to SF administration and development.

 

I'm trying to get some basic case escalation setup for our users.  We have a required field due date that users enter when setting up a case.  I would like to remind the user that the case is due 2 days prior to the due date and then escalate the case to a manager 1 day after the due date if it is not completed. 

 

Some basic questions-

Are escalation rules run daily?

Does a case have to be modified for the escalation to take place?

Is there a way to test this in my sandbox without having to wait a day?

Under Customize->Cases->Support Settings what is 'Early Triggers Enabled: Use this setting to enable early triggers on escalation rules? 

 

So what would be best practices for this type of solution?  Timed Workflow or Escalation rules?

 

Thanks,

Jim