• Kapil Goutam
  • NEWBIE
  • 4 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 16
    Replies
Hello all,

I need help to get mavensmate to work with my windows 10. How can I get mm to use chrone instead of IE to open the UI when I create a new project. I am getting; "The local MavensMate server did not respond properly. This likely means it is not running or it is malfunctioning. Try restarting your text editor and MavensMate.app", etc

I have reset setting in chrome under advanced settings and I have restarted many times.
Hi,  I receive the following error in a test class but have not been able to repeat them in non test running scenarios.

"System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. 
A flow trigger failed to execute the flow with version ID 301O00000008hM6. 
Contact your administrator for help.: []"

Does anyone know if there could be an issue running flows in test class contexts but not otherwise?

Thanks.

Hi every one

 

i have one test class ,i am getting error while run the testcase " constructor not defined in test method"

i am not getting the exact senario that cause this error before that i deploy many class same like this.

 

My test class look  like

 


@isTest
private class FFPageTestCase {

static testMethod void myUnitTest() {
FF__c FF;
List<Opportunity> listOpp;
String Id;
String result;
string oppmsg ;
oppmsg = 'Error';

string oppmsg2 ;
oppmsg2 = 'Success';

Opportunity opp = new Opportunity();
opp.Name = 'Test Opp';
opp.StageName = 'Ticketing';
opp.p1_First_Name__c ='A';
opp.p1_Last_Name__c ='D';
opp.p1_Gender__c = 'S';
opp.p1_First_Name__c ='S';
opp.p1_Last_Name__c ='A';
opp.p1_Gender__c = 'D';
opp.DOB_Main_Passenger__c = System.now().date();
opp.Number_of_Passengers__c = 4;
opp.CloseDate = System.now().date();
opp.Departure_Date__c = System.now().date();
opp.Origin_City__c = 'DEL';
opp.Destination_City__c= 'MUI';
opp.Return_Date__c = System.now().date();
opp.Override_Itinerary_Builder__c = true;
opp.Complete_Itinerary_Information__c ='test';
opp.Approved__c ='Test1';
opp.AmMessage__c ='ttttt';
insert opp;


FF = new FF__c();
FF.Account_Number__c ='1234456';
FF.Account_Type__c = 'ANA';
FF.DOB__c = system.today();
FF.Opportunity__c = opp.Id;
FF.Last_Name__c = 'Dutt';
FF.Miles__c = 1.2;
FF.Password__c= 'asd';
FF.Mileage_Cost__c = 0.0210;
insert FF;


ApexPages.StandardController sc = new ApexPages.StandardController(FF);
FFPage sc1 = new FFPage(sc);
sc1.Save();
update FF;

delete FF;

}
}

 

 

My class look like 

 

public class FFPage {

FF__c FF;
public List<Opportunity> listOpp;
public String Id {get; set;}
private String result;

public FFPage(ApexPages.StandardController stdController)
{
FF = (FF__c)stdController.getRecord();
Id = FF.Opportunity__c;
}


public void Save()
{
try
{
if(FF.Id == null)
{
insert FF;

string oppmsg = 'Error';

//Opportunity oppmsg = [SELECT id,AmMessage__c FROM Opportunity WHERE Id = :FF.Opportunity__c];
if(oppmsg != 'Success')
{
  delete FF;
ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.WARNING, 'Test'));
}

}
else
{
update FF;
 
string oppmsg2 = 'Success';
//Opportunity oppmsg = [SELECT id,AmMessage__c FROM Opportunity WHERE Id = :FF.Opportunity__c];
if(oppmsg2 != 'Success')
{
 delete FF;
ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.CONFIRM, 'Sucess'));
}
}
}

catch(DmlException ex)
{
ApexPages.addMessages(ex);
}
}

public PageReference SaveAndNew()
{
PageReference pr = new PageReference('/' + Id);
pr.setRedirect(true);
return pr;
}

}

 

 

please help me .

 

Thanks

Hello Everyone,

 

We would like to utilize an existing Sales Force enterprise account to perform client satisfaction surveys.

 

The requirements:

 

  1. Having the facilities for

                                                               i.      Survey Initiation

                                                             ii.      Automated user alerts

                                                            iii.      Automated user reminders

  1. The ability to be sent out to predefined groups
  2. The ability to create temporary target groups
  3. The ability to associate documents with particular surverys

We have investigated the possibility of using the following services but would prefer to implement a purely customer portal solution;

  • Survery Gizmo integration
  • QuestionPro integration
  • AppExchange App: Timba surverys

Question:

  1. Can we build a survery system conforming to the above requirements in a community portal site?

Thanks,

The Grey

 

Edit History

Spell check

  • August 14, 2012
  • Like
  • 0

Hi,

       How to Refresh output panel am using rerender in command button.

but it is not working. Is there any way to refresh my panel.

 

My page

===============

<apex:page>

<apex:form>

----------

--------

------------

<apex:outputPanel id="colourpanelid">
<apex:outputPanel id="colourpanel1" rendered="{!colourpanel}">
<apex:commandButton value="Back" action="{!back1}"/><br/><br/>
<apex:pageBlock >
<apex:repeat value="{!categories}" var="a1" >
<apex:commandlink value="Update" style="margin-left:400px;font-weight: bold;font-size:15px;" action="{!update1}">
<apex:param name="aid" value="{!a1.id}"/>
</apex:commandlink><br/>

<apex:outputText value="{!a1.Store_Name__c}" style="font-weight: bold;font-size:15px;"></apex:outputText>
<apex:commandlink action="{!popunpop}">
<apex:outputtext value="Populated:" style="margin-left:400px;font-weight: bold;font-size:12px;"/>&nbsp;<apex:outputtext value="{!Text(a1.populated__c)}" ></apex:outputtext>
&nbsp;&nbsp;&nbsp;
<apex:outputtext value="UnPopulated:" style="font-weight: bold;font-size:12px;"/>&nbsp;<apex:outputtext value="{!Text(a1.Unpopulated__c)}"></apex:outputtext>
</apex:commandlink>
<table cellspacing="0" cellpadding="0">
<tr>
<td class="tdgeneral2">Who Edited</td><td class="tdgeneral3"><apex:outputText value="{!a1.Who_Edited__c}"/></td>
<!--<td class="tdgeneral2">Last Edited</td>
<td class="tdgeneral3"><apex:outputText value="{!a1.Last_Edited__c}"/></td>-->
<td class="tdgeneral2">Last Edited</td>
<td class="tdgeneral3"><apex:outputText value="{0,date,dd'/'MM'/'yyyy}">
<apex:param value="{!a1.Last_Edited__c}"/>
</apex:outputText></td>
</tr>
<!--<tr>
<td class="tdgeneral2">Last Edited</td>
<td class="tdgeneral3">
<apex:outputtext value="{!a1.dateedited1}"/>
</td>
<td class="tdgeneral3">
<apex:outputText value="{0,date,dd'/'MM'/'yyyy}">
<apex:param value="{!a1.Last_Edited__c}"/>
</apex:outputText></td>
<td class="tdgeneral2"></td><td class="tdgeneral3"></td>
</tr>-->
<tr>
<td class="tdgeneral">Street Address </td><td class="tdgeneral1"><apex:outputText value="{!a1.Street_Address__c}"/></td>
<td class="tdgeneral">Cross Street </td><td class="tdgeneral1"><apex:outputText value="{!a1.Cross_Street__c}"/></td>
</tr>
<tr>
<td class="tdgeneral">Additional Address </td><td class="tdgeneral1"> <apex:outputText value="{!a1.Additional_Address__c}"/></td>
<td class="tdgeneral">Email Address </td><td class="tdgeneral1"> <apex:outputText value="{!a1.Email_Address__c}"/></td>
</tr>
<tr>
<td class="tdgeneral">District </td><td class="tdgeneral1"><apex:outputText value="{!a1.District__c}"/><br/></td>
<td class="tdgeneral">Lat_Long </td><td class="tdgeneral1"><apex:outputText value="{!a1.Lat_Long__c}"/><br/></td>
</tr>
<tr>
<td class="tdgeneral">City </td><td class="tdgeneral1"><apex:outputText value="{!a1.City__c}"/></td>
<td class="tdgeneral"> </td><td class="tdgeneral1"></td>
</tr>
<tr>
<td class="tdgeneral"> State </td><td class="tdgeneral1"><apex:outputText value="{!a1.State__c}"/></td>
<td class="tdgeneral"> </td><td class="tdgeneral1"></td>
</tr>
<tr>
<td class="tdgeneral">Post Code </td><td class="tdgeneral1"><apex:outputText value="{!a1.Post_Code__c}"/></td>
<td class="tdgeneral">Manager </td><td class="tdgeneral1"><apex:outputText value="{!a1.Manager__c}"/></td>
</tr>
<tr>
<td class="tdgeneral">Country </td><td class="tdgeneral1"><apex:outputText value="{!a1.Country__c}"/></td>
<td class="tdgeneral"> Description </td><td class="tdgeneral1"><apex:outputText value="{!a1.Description__c}"/></td>
</tr>
<tr>
<td class="tdgeneral">Phone Number </td><td class="tdgeneral1"><apex:outputText value="{!a1.Phone_Number__c}"/></td>
<td class="tdgeneral"> Notes </td><td class="tdgeneral1"><apex:outputText value="{!a1.Notes__c}"/></td>
</tr>
<tr>
<td class="tdgeneral">Fax Number </td><td class="tdgeneral1"><apex:outputText value="{!a1.Fax_Number__c}"/></td>
<td class="tdgeneral"> </td><td class="tdgeneral1"></td>
</tr>
</table>
</apex:repeat><br/>
<!--<apex:commandLink value="Previous" action="{!previous}" /> &nbsp;
<apex:commandLink value="Next" action="{!next}" /><br/>-->
<apex:image value="{!$Resource.Prev}" width="30" height="30">
<apex:actionSupport event="onclick" action="{!previous}" />
</apex:image>
<apex:image value="{!$Resource.Next}" width="29" height="29" style="margin-left:920px;">
<apex:actionSupport event="onclick" action="{!next}" />
</apex:image>
</apex:pageBlock>

</apex:outputPanel>
</apex:outputPanel>
<apex:outputPanel rendered="{!storecolourpanel}" >
<apex:commandButton value="Back" action="{!back1}"/>
<table border ="1" cellspacing="0" cellpadding="0" style="width:1125px">
<th class="headertab1">storeName</th>
<th class="headertab">Street<br/> Address</th>
<th class="headertab">Additional<br/> Address</th>
<th class="headertab">District</th>
<th class="headertab">City </th>
<th class="headertab">State </th>
<th class="headertab">PostCode</th>
<th class="headertab">Country</th>
<th class="headertab">Phone<br/>Number</th>
<th class="headertab">Fax<br/>Number</th>
<th class="headertab">Lat_Long</th>
<th class="headertab">Cross<br/>Street</th>
<th class="headertab">Manager</th>
<th class="headertab">Description</th>
<apex:repeat value="{!stores}" var="st">
<tr><td>{!st.store_name__c}</td>
<td style="{!IF(st.Street_address__C==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Additional_address__C==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.District__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.City__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.State__C==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Post_Code__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Country__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Phone_number__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Fax_number__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Lat_Long__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Cross_street__C==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Manager__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Description__c==null,'background:red;','background:green;')}"></td>
</tr>
</apex:repeat>
</table>
</apex:outputPanel>
<apex:outputPanel rendered="{!storecolourpanel1}" >
<apex:commandButton value="Back" action="{!back2}"/>
<table border ="1" cellspacing="0" cellpadding="0" style="width:1125px">
<th class="headertab1">storeName</th>
<th class="headertab">Street<br/>Address</th>
<th class="headertab">Additional<br/>Address</th>
<th class="headertab">District</th>
<th class="headertab">City </th>
<th class="headertab">State </th>
<th class="headertab">PostCode</th>
<th class="headertab">Country</th>
<th class="headertab">Phone<br/>Number</th>
<th class="headertab">Fax<br/>Number</th>
<th class="headertab">Lat_Long</th>
<th class="headertab">Cross<br/>Street</th>
<th class="headertab">Manager</th>
<th class="headertab">Description</th>
<apex:repeat value="{!stores}" var="st">
<tr><td>{!st.store_name__c}</td>
<td style="{!IF(st.Street_address__C==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Additional_address__C==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.District__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.City__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.State__C==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Post_Code__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Country__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Phone_number__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Fax_number__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Lat_Long__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Cross_street__C==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Manager__c==null,'background:red;','background:green;')}"></td>
<td style="{!IF(st.Description__c==null,'background:red;','background:green;')}"></td>
</tr>
</apex:repeat>
</table>
</apex:outputPanel>
<apex:outputpanel id="updateid">
<apex:outputPanel id="updateid1" rendered="{!updatepanel}">
<apex:pageblock >

<center><apex:commandButton value="save" action="{!save1}" rerender="colourpanel,updateid"/>
<apex:commandButton value="Cancel" action="{!cancel}" immediate="true"/></center>
<apex:repeat value="{!edit}" var="a2" >

<!--Date Last Checked<apex:inputField value="{!a2.Last_Edited__c}"/>-->
<table cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="tdgeneral2">Who Edited</td><td class="tdgeneral3"><apex:inputField value="{!a2.Who_Edited__c}"/></td>
<td class="tdgeneral2">Last Edited</td><td class="tdgeneral3"><apex:inputField value="{!a2.Last_Edited__c}"/></td>
</tr>
<tr>
<td class="tdgeneral2">Street Address </td><td class="tdgeneral3"><apex:inputfield value="{!a2.Street_Address__c}"/></td>
<td class="tdgeneral2">Cross Street </td><td class="tdgeneral3"><apex:inputfield value="{!a2.Cross_Street__c}"/></td>
</tr>
<tr>
<td class="tdgeneral2">Additional Address </td><td class="tdgeneral3"> <apex:inputfield value="{!a2.Additional_Address__c}"/></td>
<td class="tdgeneral2">Email Address </td><td class="tdgeneral3"> <apex:inputfield value="{!a2.Email_Address__c}"/></td>
</tr>
<tr>
<td class="tdgeneral2">District </td><td class="tdgeneral3"><apex:inputfield value="{!a2.District__c}"/><br/></td>
<td class="tdgeneral2">Lat_Long </td><td class="tdgeneral3"><apex:inputfield value="{!a2.Lat_Long__c}"/><br/></td>
</tr>
<tr>
<td class="tdgeneral2">City </td><td class="tdgeneral3"><apex:inputfield value="{!a2.City__c}"/></td>
<td class="tdgeneral2"> </td><td class="tdgeneral3"></td>
</tr>
<tr>
<td class="tdgeneral2"> State </td><td class="tdgeneral3"><apex:inputfield value="{!a2.State__c}"/></td>
<td class="tdgeneral2"> </td><td class="tdgeneral3"></td>
</tr>
<tr>
<td class="tdgeneral2">Post Code </td><td class="tdgeneral3"><apex:inputfield value="{!a2.Post_Code__c}"/></td>
<td class="tdgeneral2">Manager </td><td class="tdgeneral3"><apex:inputfield value="{!a2.Manager__c}"/></td>
</tr>
<tr>
<td class="tdgeneral2">Country </td><td class="tdgeneral3"><apex:inputfield value="{!a2.Country__c}"/></td>
<td class="tdgeneral2"> Description </td><td class="tdgeneral3"><apex:inputfield value="{!a2.Description__c}"/></td>
</tr>
<tr>
<td class="tdgeneral2">Phone Number </td><td class="tdgeneral3"><apex:inputfield value="{!a2.Phone_Number__c}"/></td>
<td class="tdgeneral2"> Notes </td><td class="tdgeneral3"><apex:inputfield value="{!a2.Notes__c}"/></td>
</tr>
<tr>
<td class="tdgeneral2">Fax Number </td><td class="tdgeneral3"><apex:inputfield value="{!a2.Fax_Number__c}"/></td>
<td class="tdgeneral2"> </td><td class="tdgeneral3"></td>
</tr>
</table>
</apex:repeat>
</apex:pageblock>
</apex:outputPanel>
</apex:outputPanel>
</apex:form>
</apex:page>

 

 

===============================

 

My save1 method:

 

public PageReference save1()
{

storelist1.clear();
storecolourpanel=false;
retailsearch=false;
Errorpanel=false;
Searchpanel=false;
storepanel=false;

for(store__C s1:storelist)
{
s1.last_edited__C=system.today();
storelist1.add(s1);

}
update storelist1;
colourpanel=true;
updatepanel=false;

 

return null;

}

 

 

 

Thank you.

 

 

I have rendered a vf page as pdf. I am unable to change the fon-family to arial.

 

I have used

<style type=text/css>

p

{

font-family:"Arial Unicode MS";

font-size:14pt;

}

span

{

font-family:"Arial Unicode MS";

font-size:8pt;

}

h1

{

font-family:"Arial Unicode MS";

font-size:9pt;

}

</style>

<p>some text1</p>

<span>some text2</span>

<h1>some text3</h1>

--- - --  - - -- -  -

- - - - - - - --

But the problem here is am getting a new line everytime I use <p> and <h1> tag.

I dno't want this new line to occur.

Also I tried using <h2>,<h3>,.. , <pre>, <b> and

display:inline;

 

 

How to get the font family as arial without a new line. Also how to make the text bold?

I have tried <b> tag and

font-family:"Arial Unicode MS Bold";

 

Its not working.

 

 

Pls help.

 

 

How to change an existing field's type from Master-Detail relationship type to Look-up relationship type?

 

I am unable to change the datatype of the field.

 

Or do I need to create a new field of look-up relationship type and delete the existing field of master-detail relationship type?

 

 

Can anyone help?

 

 

Abhijeet

Hello All,

 

I am buliding partner Portal Authenticated Site in my org sandbox.
My requirement is When I click Tab(used iframe to navigate to VF page) ,VF page should be displayed in the right panel of the site.I am getting this Salesforce error .

 

Authorization Required
You must first log in or register before accessing this page.
If you have forgotten your password, click Forgot Password to reset it.

 

Same is working fine in my developer edition.I have created the same steps .VP page is displayed in developer edition.

What could be the issue?

 

Any help

 

Thanks
Sri

  • August 09, 2012
  • Like
  • 0

I want to have a Form, when user enter data into this form and add attachment -  i want to create a record in salesforce including attachment. Challange here is this form should be available to my specific users no other person should acces it.

 

My concern is do we need to buy any licence to achive this?

 

 

 

Thanks in advance

 

 

  • August 08, 2012
  • Like
  • 0

Hi.............

In visual force we are displaying field names in column wise ... but I want to display in row wise ,how can I do that........