• Sathwick Sivvala
  • NEWBIE
  • 25 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 2
    Likes Given
  • 2
    Questions
  • 3
    Replies
Hi All,
Is there a way to bookmark a question from this forum?
Suppose a come across a question and I want to bookmark that question for future refrence. Can I do that?
Currently I am commenting on the already answered questions as a way to bookmark it.

Thanks,
Sathwick
Getting System.DmlException while doing challenge related to Formula Fields in Developer Beginner Trailhead

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Delete failed. First exception on row 0 with id 0012800000pL9QYAA0; first error: DELETE_FAILED, Your attempt to delete Test Account could not be completed because it is associated with the following cases.: 00001152 : []

Below is the Formula field I had defined on the Case Object.
TODAY() - Account.LastActivityDate

This field is working fine when open a Case and see th details. When Salesforce Trailhead is checking the challenge I get the above exceptio.
Hi All,
Is there a way to bookmark a question from this forum?
Suppose a come across a question and I want to bookmark that question for future refrence. Can I do that?
Currently I am commenting on the already answered questions as a way to bookmark it.

Thanks,
Sathwick
Hi All,
Is there a way to bookmark a question from this forum?
Suppose a come across a question and I want to bookmark that question for future refrence. Can I do that?
Currently I am commenting on the already answered questions as a way to bookmark it.

Thanks,
Sathwick
Getting System.DmlException while doing challenge related to Formula Fields in Developer Beginner Trailhead

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Delete failed. First exception on row 0 with id 0012800000pL9QYAA0; first error: DELETE_FAILED, Your attempt to delete Test Account could not be completed because it is associated with the following cases.: 00001152 : []

Below is the Formula field I had defined on the Case Object.
TODAY() - Account.LastActivityDate

This field is working fine when open a Case and see th details. When Salesforce Trailhead is checking the challenge I get the above exceptio.

Hi

 

Can any body help me, How to compare Date time field in List view Filter condition.

 

For ex:

 

Transaction Date/Time (Custom Field)  less than or equal  NOW

 

I am getting error as  Invalid date (Valid date format 10/5/2011 or 10/5/2011 9:42 AM)

 

Thanks,


Hi Folks urgent requirement please help me and below is my code and pic.User-added image
<apex:page controller="Pagination_min"  showHeader="false" sidebar="false"  extensions="AccountController">
  <apex:form >
   <apex:outputpanel >
    <apex:pageBlock id="abc">
        <apex:pageBlockSection columns="1"  title="Accounts" > 
            <apex:pageBlockTable value="{!accounts}" var="a" >
                <apex:column >
                   <apex:outputLink title="" value="/{!a.id}/e?retURL=/apex/{!$CurrentPage.Name}" style="font-weight:bold">Edit</apex:outputLink>&nbsp;|&nbsp;

                </apex:column>
                <apex:column value="{!a.Name}"/>
                <apex:column value="{!a.Type}"/>
                <apex:column value="{!a.BillingCity}"/>
                <apex:column value="{!a.BillingState}"/>
                <apex:column value="{!a.BillingCountry}"/>
            </apex:pageBlockTable>
            <apex:panelGrid columns="7">
            <apex:commandButton value="|<" action="{!setcon.first}" disabled="{!!setcon.hasPrevious}"  title="First page" reRender="abc"/>
            <apex:commandButton value="<" action="{!setcon.previous}" disabled="{!!setcon.hasPrevious}" title="Previous page" reRender="abc"/>
            <apex:commandButton value=">" action="{!setcon.next}" disabled="{!!setcon.hasNext}"  title="Next page" reRender="abc"/>
            <apex:commandButton value=">|" action="{!setcon.last}" disabled="{!!setcon.hasNext}" title="Last page" reRender="abc"/>
           
             <apex:outputText >{!(setCon.pageNumber * size)+1-size}   -    {!IF((setCon.pageNumber * size)>noOfRecords, noOfRecords,(setCon.pageNumber * size))} of {!noOfRecords}</apex:outputText>
                <apex:commandButton value="Refresh" action="{!refresh}" title="Refresh Page" reRender="abc"/>
            </apex:panelGrid>
        </apex:pageBlockSection>
     </apex:pageBlock>
     </apex:outputPanel>
                      <apex:pageBlock title="Account Creation Section" mode="edit" id="simha">
                          <apex:pageBlockButtons >
                               <apex:commandButton action="{!save}" value="Save" reRender="simha" />
                          </apex:pageBlockButtons>
                               <apex:pageBlockSection columns="2">
                                    <apex:inputField value="{!account.name}" required="false"/>
                                    <apex:inputField value="{!account.type}"/>
                                    <apex:inputField value="{!account.Billingcity}"/>
                                    <apex:inputField value="{!account.billingstate}"/>
                                    <apex:inputField value="{!account.billingcountry}"/>
                               </apex:pageBlockSection>
                      </apex:pageBlock>
  </apex:form>               
</apex:page>
*****************************************************
public class Pagination_min {

    Public Integer noofRecords {get; set;}
    public integer size {get; set;}
   
    public Apexpages.standardsetController setcon{
        get{
            if(setCon == null){
                size = 10;
                String queryString = 'Select Name, Type, BillingCity, BillingState, BillingCountry from Account order by Name';
                setcon = new apexpages.standardsetController(Database.getquerylocator(queryString));
                setcon.setpagesize(size);
                noofRecords = setcon.getResultsize();
            }
            return setcon;
        }
         set;
    }
    Public list<Account> getAccounts(){
        list<Account> acclist = new list<Account>();
         for(Account ac : (list<Account>)setcon.getrecords()){
             acclist.add(ac);
         }
        return accList;
       
      
    }
   Public PageReference Refresh(){
       
        setcon=null;
        getAccounts();
        setcon.setpageNumber(1);
       
        return null;
    }
}
**********************************************************
public with sharing class AccountController {
   
    public Account account{get; set;}
    public AccountController(Pagination_min controller) {
      account = new Account();
    }
    
  public PageReference save(){
        upsert account;
        account = null;
        return null;
    
}
}


 
I have a button on a standard page that launches a flow and passes in id and name from the contact detail page from std controller

/apex/pages/MyFlow?vId={!Contact.Id}&cName={!Contact.Name}

How can I do the same in Salesforce1 mobile?
 
  • September 03, 2015
  • Like
  • 1