• Sunil Sirangi
  • 15 Points
  • Member since 2016

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 27
Guys, In challenge 8, i was struck at the point of hyperlinking the CreatedBy to redirect to user detail page. How do we define hyperlinks in lightning. Can anyone share any info on this part.
I have an interesting problem that i cant seemed to figure out.
I am trying to create a visualforce page pdf with one or apex:repeat components.
I wuold like to create a pdf from the account object that displays related records to the account object and also child record information that is associated to the related record of the account.

I tried creating the following code but i am getting an error.

Error: Unknown property 'VisualforceArrayList.Bid_Deliverables__r'

the first Apex:Repeat gets the related records to the account, the second should return the related records to the related object to the account. I'm not sure if this can be done. Any help would be greatly appreciated. 

<apex:page standardcontroller="Account" renderas="pdf" standardstylesheets="false" showheader="false" applyhtmltag="false">
<form >
<html xmlns="http://www.w3.org/1999/xhtml">
 <table align="center" width="85%" style="font-family: Arial, Helvetica, sans-serif; border-collapse: collapse;  text-align:center;"
<apex:repeat var="sd" value="{!Account.Bids_Sent4__r}">
<td style="border-bottom:solid;border-bottom-color:#000000;border-bottom-width:1px;" class="ctr"> {!sd.Name}</td>

<td style="border-bottom:solid;border-bottom-color:#000000;border-bottom-width:1px;" class="ctr">${!sd.Site__r.Name}</td></tr>

<apex:repeat var="et" value="{!Account.Bids_Sent4__r.Bid_Deliverables__r}"  >
<td style="border-bottom:solid;border-bottom-color:#000000;border-bottom-width:1px;" class="ctr"> {!et.Scope__c} {!et.Increment__c}</td>

<td style="border-bottom:solid;border-bottom-color:#000000;border-bottom-width:1px;" class="ctr">${!et.Price__c}</td>

<td style="border-bottom:solid;border-bottom-color:#000000;border-bottom-width:1px;" class="ctr">${!et.Bid_Name__r.Name}</td>

  • July 30, 2019
  • Like
  • 0
Hello everyone, I need help in writitng a test class for below code.

public with Sharing class DAP_ConcurQueueAccounts 
 public class Output{
        @InvocableVariable(required= true)
     public Integer statusCode;}
  public class Input{
        @InvocableVariable(required= false)
        public string account;
        @InvocableVariable(required= false)
        public decimal lastmod;
        @InvocableVariable(required= false)
        public string resource;
        @InvocableVariable(required= false)
        public integer maxItems;
    public static List<Output> queueAccounts(List<Input> input )
         List<Output> statuscodeoutput = new List<Output>();
        for(Input queaccinput : input)
             // JK Renamed output variable
             Output out = new Output();
             System.debug('account: ' + queaccinput.account);
             System.debug('lastmod: ' + queaccinput.lastmod);
             System.debug('resource: ' + queaccinput.resource);
             System.debug('maxItems: ' + queaccinput.maxitems);
            Long startTimeLong = DateTime.now().getTime();
             System.debug('Start time: ' + startTimeLong);
             String bodyString = 'account='+queaccinput.account+'&lastmod='+queaccinput.lastmod;
             System.debug('Account & lastmod params: ' + bodyString);
             HttpRequest req = new HttpRequest();
             Http http = new Http();
             HTTPResponse res = http.send(req);
             out.statusCode = res.getStatusCode();
             System.debug('Response status code: ' + res.getStatusCode());
     return  statuscodeoutput; 

I have an insert in an object A (with two dates). After the insertion of the object A, an insertion of an object B will be done in such a way that:
- The number of records inserted is equal to the number of months between the two dates.
- The field Name of the object B is equal Month name + Year.

Can someone help me.
I'm at Challenge 6 and I'm stuck. I've tested that my code produces the Chatter post to the group, and my AnnouncementQueueable class implements Queuable. I've implemented the excecute() method. But still I get this error:

"Challenge Not yet complete... here's what's wrong: 
Ensure that you implement the Queueable interface in the announcementsQueueable class."

Anyone have an answer? I'd love to complete my PDII before end of year. This feels like a testing defect.
I am getting below error
User-added image

but my application has 
User-added image

May I know why am not able to pass this challenge ?