• KKN
  • NEWBIE
  • 0 Points
  • Member since 2015


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies
Hi,

<apex:page controller="TGInsuranceCardPageController" renderAs="PDF" standardstylesheets="false" showheader="false" applyhtmltag="false">
<a href="mailto:abc@gmail.com">abc@gmail.com</a>
</apex:page>

In the above code, the link is not working in both Chrome and IE, it is not working in firefox. Please help me to solve this problem.

Thanks.
  • February 16, 2016
  • Like
  • 0
All, I'm trying to override "new" on a custom object (SessionsClasses) in order to pass a string to the name field.  I'm using: 
 
<apex:page standardController="AECaseMgmt__SessionsClasses__c"
action="{!URLFOR($Action.AECaseMgmt__SessionsClasses__c.New, null, ['Name'='Default Name'], true)}" />

However, SessionsClasses has four record types, and when I click the new button it takes me to the record type screen twice before allowing for the new record screen.  Any advice?
 
Below is a class where three string constants are declared. 
public with sharing class testconstants{
public static string str1 ='firststring';
public string str2='secondstring';
public string str3='thirdstring';
}
I wrote a test class for this:
@isTest
public class testcontants_testclass{
static testmethod void method1()
{
testconstants t = new testconstants();
test.starttest();
system.assertEquals(testconstants.str1,'firststring');
test.stoptest();
}
}
Now the coverage for this class should only be 33% but the coverage is touching 100%.  So it remains 100% even if i keep one assert or two asserts for the three strings.
Hi Guys,

I need a soql query to get all task related to Account, Contact, opportunity.

Thanks.