• ranbir das 1
  • NEWBIE
  • 40 Points
  • Member since 2018
  • Nuclay Solutions Pvt Ltd


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 2
    Questions
  • 9
    Replies
Hi All,

What should I use for caching Apex results in client side. @AuraEnabled(cacheble=true) in apex class or. setStorable in client side?

Regards
Madhusudan Singh
I  have list type attribute in lightning component1.On compoent load, list will get some values from apex method.


Now I have another component.I will click on menu item in the menubar, code as below.
<lightning:buttonMenu alternativeText="Toggle menu" label="Partcipant Info" onselect="{!c.doRedirect}" >
 <lightning:menuItem label="Home Page" value="menuitem1" iconName="utility:table"/>
          <lightning:menuItem label="Account Balance" value="menuitem2" iconName="utility:table" />

</lightning:buttonMenu>

So in doRedirect.js, i need to get compoent1 list type attribute.

Note:Both compoents are on same page.
My web component name is :- 'paginatorLWC'. I am calling this from another web component via : <c-paginator-lwc></<c-paginator-lwc>.
Can somebody suggest what is reason for error :  'LWC1010: Failed to resolve entry for module'. I tried :- <c-paginator-LWC></<c-paginator-LWC> also. I know this is case sensitive. 

Thanks in Advance.
Helper Class:
public class test{
public static void addContactRole(List<Opportunity> opps) {
List<OpportunityContactRole> oppCR=new List<OpportunityContactRole>();
        for(Opportunity opp : opps ){
           
            if(opp.StageName != 'Prospecting' && opp.StageName != 'Qualification' ){
           
            
              oppCR= [Select Id, opportunityId FROM OpportunityContactRole WHERE opportunityId =:opp.Id];
               
                if(oppCR == null || oppCR.size() == 0){
                   
                    opp.addError(' Opportunity must have at least one Contact Role assigned for any stages beyond 1');
                }
            }
        }
    }

Trigger:
trigger updatecontactrolecount on Opportunity (before insert, before update)
{
test.addContactRole(Trigger.New);
 
}

Note: If opportunity stage is other than Prospecting and Qualifiation then opportunity must have at least one contact role.(working fine but getting to many soql query error for bulk update or insert)
 
I signed up for two developer editions about three months ago but today I received notification that it is about to expire.

Where can I find out the date?  It is well past thirty days, and I have a number of boxes but one tied to this email (where the message originated), so can I find out how to get the date?

Regards,

- Mike

User-added image
Both Visualforce and lighning Components used to desighn ui.But i dont know what is the differense between this two.

Can somebody explain what does it mean by Heap size?  Or please direct me in right direction.

 

Thanks in Advance.

Hi All,

What should I use for caching Apex results in client side. @AuraEnabled(cacheble=true) in apex class or. setStorable in client side?

Regards
Madhusudan Singh