• tina sharma 10
  • NEWBIE
  • 40 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 6
    Replies
I have a lighting component which has the following

<lightning:input label="Summary" maxlength="50" required="true" value="" aura:id="summary"  onchange="{!c.checkSummaryLength}"
 "/>

if the user enters more than 50 characters, then I want to show a user friendly message saying "EXceeded Lenght Of 50 Characters", just below the the lightning:input.

Please let me know how to do this.

Thanks
Tina


 
My requiremen is to have a comboBox where in I select more than one value. 

I am aware of an alternative like dualListBox but my client doesn't want
that.

Please let me know if any body worked on this like simple code.\
I saw a few posts online but not able to unbderstand much..


Thanks
Tina
I am new to writing test classes in salesforce.
I require urgent help.
I request some one to please let me know how to write 100% code coverage for the following apex class.

public with sharing class MyClass
{
    @AuraEnabled
    public static void storeSomeData(Object records){
       
         Cache.SessionPartition sessionPartition = Cache.Session.getPartition('local.OrgLinks1);
         try{
           Cache.Session.put('local.OrgLinks1.SomeData', records); 
         }
        catch(Exception e)
        {
            system.debug('cache failed');
        }      
     }
    
    @AuraEnabled
    public static Object getMyData(){
        
         Object someRecords;
        Cache.SessionPartition sessionPartition = Cache.Session.getPartition('local.OrgLinks1');
         try{
            if (sessionPartition.contains('SomeData')) {
                    someRecords= (Object)sessionPartition.get('SomeData');
           }
         }
        catch(Exception e)
        {
            system.debug('cache failed');
        }  
        return someRecords;
     }
}
}

Please let me know.
Thanks
Tina
I have a lightning:input as follows

<lightning:input type="datetime" aura:id ="dateTime" label="Follow Up Date And Time" name="date" onchange="{!c.checkDateTimeLength}" min="{!v.todayDate}"/>
             
In the doInit event, I am preventing the user to select PastDates  , user shud select only current date and future dates.

   component.set("v.todayDate",new Date());

But when I select today date its throwing an validation message as 
"Value must be Dec 23, 2019 3:37:41 AM or later"

I do not require number of seconds in the date.

Please let me know how to avoid this with piece of working code.

thanks
Tina
 
I am trying to complete the following trailhead URL
https://trailhead.salesforce.com/content/learn/modules/lex_implementation_reports_dashboards/lex_implementation_reports_dashboards_appexchange

I have selected "My TrailHead Playground1" and logged into trailhead using my credentails.

so as part of the challenge when I click on the link "Dashboard Pack for Sales, Marketing and Service."  I get a popup window as shown in the following screen shot.

so when I go to setup--> installed packages  , I dont see the managed package installed.
Package Issue

Please let me know how to resolve this.

Thanks
Tina
I am working on the trailhead link : Control Access to Fields
Learning Objectives
https://trailhead.salesforce.com/content/learn/modules/data_security/data_security_fields

I cloned the profile "Standard User", but I am not understanding how salesforce as mentioned to give Field Permissions: Rating field of account object.

So this is stopping me from completing my trailhead.

Thanks
Tina
I need to do certification maintenance for platform developer summer 19.

Has anyone done this already?

Pls tell me how to proceed.

Thanks
Tina

 
I have a json array as follows in lightning component controller.

  var providerObj = [];
      providerObj=[{
                            "specialties": [
                                 {
                                      "type": "specialty",
                                      "name": "Cardiology",
                                      "id": "839"
                                 },
                                    {                            
                                      "type": "specialty",
                                        "name": "Pediatric Cardiology",
                                     "id": "824"
                                    },
                                  
                                 {
                                      "type": "specialty",
                                       "name": "Pediatric Cardiothoracic Surgery",
                                      "id": "707"
                                  }
                          ],
                               "procedures": [
                                                {
                                                  "type": "procedure",
                                                 "name": "Established Patient Office Visit (Interventional Cardiology)",
                                                 "id": "1735"
                                                },
                                             {
                                                 "type": "procedure",
                                                 "name": "Established Patient Office Visit (Pediatric Cardiology)",
                                                  "id": "1768"
                                                },
                                             
                                             {
                                                  "type": "procedure",
                                                   "name": "Office Consultation ONLY for new or established patients, no testing (Cardiology)",
                                                   "id": "1499"
                                                }
                                            ],
                                          "providers": [
                                    {
      "type": "facility",
      "name": "Eastern CT Cardiology Diagnostic",
      "id": "0007302322",
      "default_procedure": null
    },
    {
      "type": "facility",
      "name": "NY Comprehensive Cardiology, LLC",
      "id": "0007816766",
      "default_procedure": null
    },
    
   
  ]
        }];
     
        component.set("v.allResults",providerObj);
Here allResults attribute is of the following type
<aura:atttrbute name="allResults" type="Object"/>

I want to get the length of specialities , procedures and providers and also the total number of JSON records.

I am doing like this in controller

var arrayCount = providerObj.length;
var specCount = providerObj.specialities.length;

But whatever I do I am not getting the count of records.

Please help me regarding this

tina
        
I am new to salesforce.

I am trying to complete the trailhead challenge 

https://trailhead.salesforce.com/en/content/learn/modules/advanced_formulas/implementing_advanced_formulas?trail_id=force_com_admin_advanced

can any one please let me know how to achieve this?

Thanks
Tina
I have a lighting component which has the following

<lightning:input label="Summary" maxlength="50" required="true" value="" aura:id="summary"  onchange="{!c.checkSummaryLength}"
 "/>

if the user enters more than 50 characters, then I want to show a user friendly message saying "EXceeded Lenght Of 50 Characters", just below the the lightning:input.

Please let me know how to do this.

Thanks
Tina


 
I am working on the trailhead link : Control Access to Fields
Learning Objectives
https://trailhead.salesforce.com/content/learn/modules/data_security/data_security_fields

I cloned the profile "Standard User", but I am not understanding how salesforce as mentioned to give Field Permissions: Rating field of account object.

So this is stopping me from completing my trailhead.

Thanks
Tina
I need to do certification maintenance for platform developer summer 19.

Has anyone done this already?

Pls tell me how to proceed.

Thanks
Tina

 
I have a json array as follows in lightning component controller.

  var providerObj = [];
      providerObj=[{
                            "specialties": [
                                 {
                                      "type": "specialty",
                                      "name": "Cardiology",
                                      "id": "839"
                                 },
                                    {                            
                                      "type": "specialty",
                                        "name": "Pediatric Cardiology",
                                     "id": "824"
                                    },
                                  
                                 {
                                      "type": "specialty",
                                       "name": "Pediatric Cardiothoracic Surgery",
                                      "id": "707"
                                  }
                          ],
                               "procedures": [
                                                {
                                                  "type": "procedure",
                                                 "name": "Established Patient Office Visit (Interventional Cardiology)",
                                                 "id": "1735"
                                                },
                                             {
                                                 "type": "procedure",
                                                 "name": "Established Patient Office Visit (Pediatric Cardiology)",
                                                  "id": "1768"
                                                },
                                             
                                             {
                                                  "type": "procedure",
                                                   "name": "Office Consultation ONLY for new or established patients, no testing (Cardiology)",
                                                   "id": "1499"
                                                }
                                            ],
                                          "providers": [
                                    {
      "type": "facility",
      "name": "Eastern CT Cardiology Diagnostic",
      "id": "0007302322",
      "default_procedure": null
    },
    {
      "type": "facility",
      "name": "NY Comprehensive Cardiology, LLC",
      "id": "0007816766",
      "default_procedure": null
    },
    
   
  ]
        }];
     
        component.set("v.allResults",providerObj);
Here allResults attribute is of the following type
<aura:atttrbute name="allResults" type="Object"/>

I want to get the length of specialities , procedures and providers and also the total number of JSON records.

I am doing like this in controller

var arrayCount = providerObj.length;
var specCount = providerObj.specialities.length;

But whatever I do I am not getting the count of records.

Please help me regarding this

tina