• Pawan Kumar 32
  • NEWBIE
  • 40 Points
  • Member since 2015
  • DXC.Techlonogy


  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 6
    Replies
Hello Everyone,

I am trying to deploy roles and Territories using change set. But I am getting below error: 
User-added image

Please help to solve the problem.
Hi all,

Just wanted to know is there any way to change data type text to picklist of Name standard field on Custom object. I know we can change data type only text to auto number or vice versa. As per my understanding we cannot change text to picklist. Please help if you you have idea about it.

Thanks
Hi All,

I  want to display content of PDF on vf page. I have stored PDF in Notes & Attachments related list of account object. My requirement is I want to show footer message on Vf Page. Then after I want to show all content of Vf page in PDF(renderAs ="PDF") Here in the below code I am using iframe. But it is not working. It is showing blank. Please help.
<apex:page controller="ViewPdf" renderAs="PDF">
    <iframe src="data:{!att.ContentType};base64,{!pdf}" >
    <div class="footer">
        <div>This document is internal use only</div>
     </div>
    </iframe>
</apex:page>
public class ViewPdf {
    public Attachment att {
        get {
            if (att == null) {
                att = [SELECT Body, ContentType, Name FROM Attachment WHERE ID = '00P280000018FlA'];
            }
            return att;
        }
        private set;
    }
    public String pdf {
        get {
            return EncodingUtil.Base64Encode(att.body);
        }
    }
}


 
Hi All,
I want a custom field "OD_Last_Qualified_Date_Update_At__c" on Child Object SVMXC__Installed_Product__c(ServiceMax object) to be updated to value "System.now" when Parent Object SVMXC__site__c's(ServiceMax object) custom field "SVMXC__street__c" is updated to "any value".
In the below code my trigger is not getting fire.
trigger OD_Integration_Trigger on SVMXC__site__c (after update){
  
      set<id> locationIds = new set<id>();      
      if (trigger.isupdate) {
           locationIds.addAll(trigger.newMap.keySet());
           //productsToProcess.add(p);               
           system.debug('@@@@@@@@@@@@@@'+ locationIds);
      
   // update productsToProcess;
    list<SVMXC__Installed_Product__c> productsToprocess= new list<SVMXC__Installed_Product__c>();
        for (SVMXC__Installed_Product__c p : [select id, Name, OD_Last_Qualified_Update_At__c,OD_Sync_Status__c from SVMXC__Installed_Product__c 
where id in :locationIds and Product_Line__c='OnDemand']){
         p.OD_Last_Qualified_Update_At__c = system.now();
         p.OD_Sync_Status__c = 'Pending';
         productsToprocess.add(p);
         }
         system.debug('##########'+ productsToprocess);         
         update productsToprocess; 
         }
}


Any assistance with code or alternate solutions are much appreciated!
Hi All,

I want to display code coverage of apex class on VF page using apex coding(programmatically). for e.g. if apex class abc1,abc2,abc3... have code coverage 60%,75%,85%.. respectively then I should be able to display the code coverage(60%,75%.85%..) on VF page xyz. I have also used ApexCodeCoverage object. But I am not able to display the code coverage on vf page. Please help me.
Thanks in Advance..
Hi All,

I have completed 17 badges in trailhead. But still my point are only 20. Any one can tell me why it is showing only 20 points on my profile.
Thanks in advance.
Regards,
Pawan
User-added image
Hello All,
I am stuck in below trailhead chanllange. Please help me.

Using the Contact standard controller, create a Visualforce page which displays a Contact's First Name, Last Name and the Email address of the Contact's Owner.The page must be named 'ContactView'.
It must reference the Contact standard controller.
It should include a bound variable that uses the standard controller to display the first name of the Contact.
It should include a bound variable that uses the standard controller to display the last name of the Contact.
It should include a bound variable that uses the standard controller to display the Contact Owner's email.

I am getting below error..
Challenge not yet complete... here's what's wrong:
The page does not include a bound first name variable for the Contact record
Please refer below screenshot for vf code.
User-added image
Hello All,

I have completed 16 badges in trailhead. I have also posted all challenges on twitter which I have completed. But still I didn't get any response from the trailhead for my achievement. Please suggest me what should I do for the same.
User-added image
Thanks in Advance.
Hello All,
I am stuck in below trailhead chanllange
Create a Visualforce page that displays the first name of the logged-in user.
  • The page must be named 'DisplayUserInfo'.
  • The displayed user information must be generated dynamically from the logged-in user.
Here below is my code. Please help me to find the solution.
<apex:page>
{!$User.FirstName } {!$User.LastName } ({!$User.Username })
</apex:page>
Hi All,

I have completed 17 badges in trailhead. But still my point are only 20. Any one can tell me why it is showing only 20 points on my profile.
Thanks in advance.
Regards,
Pawan
User-added image
Hello All,

I have completed 16 badges in trailhead. I have also posted all challenges on twitter which I have completed. But still I didn't get any response from the trailhead for my achievement. Please suggest me what should I do for the same.
User-added image
Thanks in Advance.
Hi All,

I  want to display content of PDF on vf page. I have stored PDF in Notes & Attachments related list of account object. My requirement is I want to show footer message on Vf Page. Then after I want to show all content of Vf page in PDF(renderAs ="PDF") Here in the below code I am using iframe. But it is not working. It is showing blank. Please help.
<apex:page controller="ViewPdf" renderAs="PDF">
    <iframe src="data:{!att.ContentType};base64,{!pdf}" >
    <div class="footer">
        <div>This document is internal use only</div>
     </div>
    </iframe>
</apex:page>
public class ViewPdf {
    public Attachment att {
        get {
            if (att == null) {
                att = [SELECT Body, ContentType, Name FROM Attachment WHERE ID = '00P280000018FlA'];
            }
            return att;
        }
        private set;
    }
    public String pdf {
        get {
            return EncodingUtil.Base64Encode(att.body);
        }
    }
}


 
Hi All,
I want a custom field "OD_Last_Qualified_Date_Update_At__c" on Child Object SVMXC__Installed_Product__c(ServiceMax object) to be updated to value "System.now" when Parent Object SVMXC__site__c's(ServiceMax object) custom field "SVMXC__street__c" is updated to "any value".
In the below code my trigger is not getting fire.
trigger OD_Integration_Trigger on SVMXC__site__c (after update){
  
      set<id> locationIds = new set<id>();      
      if (trigger.isupdate) {
           locationIds.addAll(trigger.newMap.keySet());
           //productsToProcess.add(p);               
           system.debug('@@@@@@@@@@@@@@'+ locationIds);
      
   // update productsToProcess;
    list<SVMXC__Installed_Product__c> productsToprocess= new list<SVMXC__Installed_Product__c>();
        for (SVMXC__Installed_Product__c p : [select id, Name, OD_Last_Qualified_Update_At__c,OD_Sync_Status__c from SVMXC__Installed_Product__c 
where id in :locationIds and Product_Line__c='OnDemand']){
         p.OD_Last_Qualified_Update_At__c = system.now();
         p.OD_Sync_Status__c = 'Pending';
         productsToprocess.add(p);
         }
         system.debug('##########'+ productsToprocess);         
         update productsToprocess; 
         }
}


Any assistance with code or alternate solutions are much appreciated!
Hi All,

I want to display code coverage of apex class on VF page using apex coding(programmatically). for e.g. if apex class abc1,abc2,abc3... have code coverage 60%,75%,85%.. respectively then I should be able to display the code coverage(60%,75%.85%..) on VF page xyz. I have also used ApexCodeCoverage object. But I am not able to display the code coverage on vf page. Please help me.
Thanks in Advance..
Hello All,
I am stuck in below trailhead chanllange
Create a Visualforce page that displays the first name of the logged-in user.
  • The page must be named 'DisplayUserInfo'.
  • The displayed user information must be generated dynamically from the logged-in user.
Here below is my code. Please help me to find the solution.
<apex:page>
{!$User.FirstName } {!$User.LastName } ({!$User.Username })
</apex:page>

Hi ,

 

I have  to write an apex trigger,on my custom object,after creating a record,following are the requirements

chatter group should be created and users should be added,

description field of my custom object should be posted on chatter.

 

  • February 15, 2013
  • Like
  • 0