You need to sign in to do that
Don't have an account?
Sebastian Page
Need help on Aura Lightning controller
Hello Expert,
I have created aura lightning component where we display how many Cases are open.Here we are displaying cases summery in the three coloumns.
1. Owned by me 2.Owner Name 3. cases
I have requirment if there is no ticket assiged to me or my queues than i want aprear one popup measseg on the div.
This is my Controller method. please help me.
I have created aura lightning component where we display how many Cases are open.Here we are displaying cases summery in the three coloumns.
1. Owned by me 2.Owner Name 3. cases
I have requirment if there is no ticket assiged to me or my queues than i want aprear one popup measseg on the div.
This is my Controller method. please help me.
action.setCallback(this, function(response) { //store state of response var state = response.getState(); if (state === "SUCCESS") { //set response value in wrapperList attribute on component. component.set("v.lstCases", response.getReturnValue()); if(response.getReturnValue()>0) component.set("v.flag","display:block"); else component.set("v.flag","display:none");
For your case you can place it inside else on line no 11. You can change the title as well as message as per your need.
Apart from that you can even use alert with whatever message you want to show.
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful.
Regards,
Santosh Kumar
If the answer has helped you, please mark this answer as best so that others facing the same issue will find this information useful.
Regards,
Santosh