• Chinnoy
  • NEWBIE
  • 95 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 16
    Replies
Hi 

I have a vf page built for pdf file using render as pdf.
Now on the activity email tab this vf page need to call and add the attachment automatically.

Any possible solution?
Hi 

I have a bundle product having 5 product options and i need to hide a one product option in quote line.
I already made quote line visibility to never and now i am not able to see the product option in quote lines but after saving the quote , the product is visible on the quote line related list in quote.

How can i avoid this. Is there any workaround for this?

Thanks
Hi I need to show a popup on click of button if all conditions is satisfied or else i need to show error message.

please find the code below.

VF:
<apex:page controller="BloodDonorReg"  showHeader="false" standardStylesheets="false">
    <head>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"/>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
    </head>
    
    <div class="orb-nav-section orb-nav-blocks" style=" position: fixed;
                                                       top: 0%;
                                                       left: 7.6%;"> <img src="{!$Resource.BloodLogo}" width="290" height="140" alt="Blood"/></div>
    <style>
        body {
        
        background-image:white;
        background-repeat:repeat;
        background-size: cover;
        width: 100%;
        <!-- backgroundColor: 'transparent';
-background-position: center ;-->
        }
    </style>
    <style>
        form {
        margin-top: 0px;    
        }
        .pbHeader {
        
        color: white !important;
        padding:20px;
        font-size: 10px;
        
        }
    </style>
    <style>
        .tableClass tbody{text-align:center}
    </style>
    
    <div>
        
    </div>
    <style>
        label{
        color: white !important;
        }
        body  .bPageBlock
        {
        
        
        background-image: url('{!$Resource.blood2}'); ;
        background-size:cover;
        top:21.7%;
        right:6%;
        bottom:35%;
        height:370px;
        width:1180px;
        align:center;
        position:absolute;
        
        
        }
        color:red;
    </style>
    <h1>
        
    </h1>
    <apex:form >
        <body>
            <marquee scrollamount="3" style="width:1180px;top:14.6%;left: 6.2%; position:absolute;border-radius: 5px; padding: 10px; background-color: white; font-weight: bolder; font-size: 14px; margin: 20px; color: Red;">
                ♦Welcome to WE DOnate BLOOD; Development of this App is still in progress.Stay tuned for more updates.Thanks♦
            </marquee>
          
            <apex:pageBlock title="Welcome Donor"  >
                <div class="container">
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-sm-2" for="grp">Name:</label>
                            <div class="col-sm-1">          
                                <apex:inputField style="width:155px;height: 23px" value="{!bloodDonor.Name}"/>
                            </div>
                        </div>
                    </div><br/>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-sm-2" for="grp">Select Blood Group:</label>
                            <div class="col-sm-1">          
                                <apex:inputField style="width:155px;height: 23px" value="{!bloodDonor.BloodGroup__c}"/>
                                <apex:outputText rendered="{!errorMessage}" value="Please select blood group" style="color:black"></apex:outputText>
                            </div>
                        </div>
                    </div><br/>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-sm-2" for="grp">Phone Number:</label>
                            <div class="col-sm-1">          
                                <apex:inputField style="width:155px;height: 23px" value="{!bloodDonor.PhoneNumber__c}" html-placeholder="9999999999" html-maxlength="10"/>
                            </div>

                        </div>
                    </div><br/>
                    <div class="row">
                        <div class="form-group"> 
                            <label class="control-label col-sm-2" for="pwd">Select State:</label>
                            <div class="col-sm-1">
                                <apex:inputField style="width:155px;height: 23px" value="{!bloodDonor.State__c}"/>
                            </div>
                        </div>
                    </div><br/>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-sm-2" for="state">Select District:</label>
                            <div class=" col-sm-1">
                                <apex:inputField style="width:155px;height: 23px" value="{!bloodDonor.District__c}"/> 
                            </div>
                        </div>
                    </div><br/>
                    <b><apex:commandButton action="{!saveDetails}" value="Save" style="margin-left:20%;width:60px;" rerender="a"/></b>
                </div>
              
            </apex:pageBlock>
            <apex:outputPanel id="a">
            <apex:outputPanel id="popInnerOutputPnl" layout="block" rendered="{!poprender}" styleClass="custPopup" >
                <div style="background-color:red" align="center">
                    <apex:outputText value="Thanks for Registration" style="padding:140px;font-family:serif; font-size: 20px; font-weight: bold;color:white;white-space:pre " escape="false"/>
                </div>
                <br/>
                <br/>
                <div align="Center">
                    <h1>
                        Thanks for thinking to Save a life
                    </h1>
                </div>
                <br/>
                <div align="center">
                    <apex:commandButton value="Okay" action="{!redirectPopup}" style="left:45%;top:75%;position:absolute;"  /> 
                </div>
             </apex:outputPanel>
        </apex:outputPanel>
        </body>  
        
    </apex:form>
     
</apex:page>

class:
public class BloodDonorReg {
    
    public WT_BloodDonor__c bloodDonor { get; set; }
    public boolean poprender{get;set;}
    public Boolean errorMessage {get;set;}
    public string CustomerrorMessage {get;set;}
    public Boolean errorMessage1 {get;set;}
    
    public BloodDonorReg() {
        
        bloodDonor = new WT_BloodDonor__c();
        
        errorMessage = false;
        
        errorMessage1 = false;
        poprender = false;
    }
    
    
     public PageReference redirectPopup(){
       PageReference p = new PageReference('/apex/BloodDonorRegistration');
        p.setRedirect(true);
        return p;
    }
    public void saveDetails() {
        
        if((bloodDonor.BloodGroup__c != null || bloodDonor.BloodGroup__c != '') &&
           
           (bloodDonor.Name__c != null || bloodDonor.Name__c != '') &&
           
           (bloodDonor.PhoneNumber__c != null ) &&
           
           (bloodDonor.State__c != null || bloodDonor.State__c != '') &&
           
           (bloodDonor.District__c != null || bloodDonor.District__c != '')
           
          ){
              upsert bloodDonor;
              poprender = true;
          }
        if(bloodDonor.Name__c == null || bloodDonor.Name__c == ''){
            CustomerrorMessage = system.label.test;
            ApexPages.addMessage(new ApexPages.message(ApexPages.Severity.ERROR, CustomerrorMessage));
        }
        if(bloodDonor.BloodGroup__c == null || bloodDonor.BloodGroup__c == null){
            CustomerrorMessage = system.label.test;
            errorMessage = true;
        }
        else {
            errorMessage = false;
        }
        if(bloodDonor.Name__c == null || bloodDonor.Name__c == null){
            errorMessage1 = true;
        }
        else{
            errorMessage1 = false;
        }
    }
}
Hi I am not able to save the record using lightning component.please find the code below.

Lightning Component:
<aura:component access="global" controller="LightningBloodDonorReg">
    
        <aura:attribute name="bloodReg" type="WT_BloodDonor__c" default="{ 'sobjectType' : 'WT_BloodDonor__c' }"/>
        
        <lightning:layout multipleRows="true">
            <div class="div1">
                <lightning:layoutItem flexibility="auto" padding="around-small" size="12">
                    JANASENA
                </lightning:layoutItem></div>
            <div class="div2">
                <lightning:layoutItem flexibility="auto" padding="around-small" size="12">
                    My Life; My janasena
                </lightning:layoutItem></div>
            
            <lightning:layoutItem flexibility="auto" padding="around-small" size="12">
                <lightning:layout >
                    <div style="padding-left:400px;">
                        <lightning:layoutItem size="4"></lightning:layoutItem>
                    </div>
                    <div style="background-color:orange;width:100%;">
                        <lightning:layoutItem flexibility="auto" padding="around-small" size="12" >
                            
                            <ui:inputText label="Donor Name" aura:id="Donor Name" class="field" value="{!v.bloodReg.Name}" />
                          Blood Group  <force:inputField  aura:id="Donor Name" class="field" value="{!v.bloodReg.BloodGroup__c}" />
                            <ui:inputText label="Donor Phone"  aura:id="Donor Name" class="field" value="{!v.bloodReg.PhoneNumber__c}" />
                           State <force:inputField  aura:id="Donor Name" class="field" value="{!v.bloodReg.State__c}" />
                           District <force:inputField  aura:id="Donor Name" class="field" value="{!v.bloodReg.District__c}" />
                            <!--   <ui:inputText label="Enter some text     " class="field" value="Test Field" updateOn="click"/>
                        <ui:inputText label="Enter some text     " class="field" value="Test Field" updateOn="click"/>
                        <ui:inputText label="Enter some text     " class="field" value="Test Field" updateOn="click"/>
                        <ui:inputText label="Enter some text     " class="field" value="Test Field" updateOn="click"/>-->
                            
                            <ui:button label="Submit" class="slds-button slds-button--neutral" labelClass="label" press="{!c.createDonor}"/>
                        </lightning:layoutItem>
                    </div>
                    
                    <lightning:layoutItem size="4"></lightning:layoutItem>
                </lightning:layout>
            </lightning:layoutItem>
        </lightning:layout>
  
</aura:component>


.JS file

({
  createDonor : function(component, event) {
    var newDonor = component.get("v.bloodReg");
    var action = component.get("c.createDonor");
    action.setParams({ 
        "bloodDonor": newDonor
    });
    action.setCallback(this, function(a) {
           var state = a.getState();
            if (state === "SUCCESS") {
                var name = a.getReturnValue();
                alert("success");
            }
        else{
              alert("Failed");
         }
        });
    $A.enqueueAction(action)
}
})

Class:

public class LightningBloodDonorReg {
    @AuraEnabled
    public static WT_BloodDonor__c bloodDonor { get; set; }
    
    public LightningBloodDonorReg() {
        
        bloodDonor = new WT_BloodDonor__c();
        
        
    }
    @AuraEnabled
    public static WT_BloodDonor__c saveDetails() {
        system.debug('bloodDonor'+bloodDonor);
       Upsert bloodDonor;
        system.debug('bloodDonor'+bloodDonor);
         return bloodDonor ;
    }
}
Hi Team,

I have two page blocks in a vf  page.I need to display different background colors in two pageblocks.Please help me.

Thanks
Hi 

I am getting the data from response.Now i have to filter the data based on the picklist selection.

Note: i am not using any object.

Thanks
VF Page:

<apex:page controller="AccountController1" id="pg" >
            <apex:form id="form">
            <apex:pageBlock title="Recent Accounts" id="pbs">
                  Name:  <apex:inputField value="{!Account.name}"  id="name"/> 
                  <br></br> 
                  phone:  <apex:inputField value="{!Account.phone}" id="phone" />
                     <br></br> 
                   <apex:commandButton value="save" action="{!save}"/>           
                  </apex:pageBlock> 
                  <apex:pageBlock >
                  Name:<apex:outputField value="{!Account.name}" id="o1"/>
                    <br></br> 
                  phone:<apex:outputField value="{!Account.phone}" id="o2"/>
                  </apex:pageBlock> 
                  </apex:form>
                  <script>
                  document.getElementById(pg:form:pbs:01:o2).value= document.getElementById(pg:form:pbs:name:phone).value;
                  </script>
                  </apex:page>


Controller:

public without sharing class AccountController1 {
    public Account account{get; set;}
    public AccountController1(){
        account = new Account();
    }
    
    public void save(){
        upsert account;
    }
}


PLease help me on this...
HI,

how to Auto-Populate fields when user clicks save & new button on any object?

Please Explain in both Standard and Custom Objects..

Thanks in Advance.
How to write a code for custom setting in apex with out using SOQL query?

Thanks in Advance
  • September 20, 2016
  • Like
  • 0

Hi

can anyone help me on "When and where to use the INTEGRATION Methods" ?

HTTP POST
HTTP GET
HTTP PATCH
HTTP PUSH
HTTP PUT

Thanks in Advance...

Hi,

Can anyone clarify me When to use Triggers and When to use Validation Rules?

Explain with scenario is Appreciable...

Hi,

i have created a field called "Email" and now i need to add if user gives the same mail id for second time, need to give a error message.

can anyone help me on this with out using triggers?

Hi,

i have created a field called "Name" and now i need to add a not null validation to that field.

if i created a custom button called "save", if i click save button before inserting data to the Name field i need to get a validation message.

can anyone help me on this?

Hi...
i want to display only 5 Account records using custom controller after that if i click any record, it need to show the detail page of that account record..

Help me with the code...
Hi,
i need to get the data from the selected picklist..

the picklist is to have 5 records, if i selected 1 record from the piclist in the visual force page the cases object data is to mbe shown which is assigned to that contact.

can anyone help me with the code?

Hi,
i need to get the data from the selected picklist..

the picklist is to have 5 records, if i selected 1 record from the piclist in the visual force page the cases object data is to mbe shown which is assigned to that contact.

can anyone help me on this?

I have a VF Page wherein I have a form that the user inputs. The issue is when I click on Save1 only the "Cleaning_Activity__c" should get saved but VF page executes the whole page and because of that the required fields are throwing error in other sections. See the below image.
User-added image

How to separate the two sections such that when I click Save1 the Cleaning activity gets inserted and record gets saved?

VF Code:
<apex:page controller="i2"  sidebar="false" lightningStylesheets="true" >
    
    <script >
    function mysave1(Clicked_Id){
        var id = Clicked_Id.id;
        if(id='1')
        {
            save1();
        }
        else{
            save2();
        }
    }
    </script>

    <html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en">
        <head>
            <meta charset="utf-8" />
            <meta http-equiv="x-ua-compatible" content="ie=edge" />
            <title>SLDS ResponsiveDesign Visualforce Page in Salesforce Mobile</title>
            <meta name="viewport" content="width=device-width, initial-scale=1" />
            
            <!-- Import the Design System style sheet -->
            <apex:slds />
        </head>
        <body>
            
            <!-- REQUIRED SLDS WRAPPER -->
            <div class="slds-scope">
                
                <!-- PRIMARY CONTENT WRAPPER -->
                
                <!-- RESPONSIVE GRID EXAMPLE -->
                
                
                
                <style>
                    .mystyle {
                    
                    color: black;
                    font-size: 18px;
                    font-weight: bold;
                    }
                </style>
                
                <style>
                    body .bPageBlock .pbBody .grey .pbSubheader{
                    background-color:#585858;
                    
                    color:white;
                    font-size:100}
                    }
                    
                    }
                </style>
                
                <apex:form id="theform" >
                    
                    
                    <apex:pageBlock id="thePageBlock" >
                        <div class = "mystyle">
                            Maintenance Activities
                        </div>

                        <apex:pageMessages id="showmsg"></apex:pageMessages>
                        
                        <apex:pageBlockSection columns="1" >
                            <apex:outputPanel styleClass="grey" layout="block">
                                <apex:pageBlockSection columns="2" title="Cleaning Activity" id="section1" collapsible="false">
                                    <apex:inputField value="{!cle.Operation__c}"/>
                                    <apex:inputField value="{!cle.Cleaning_Company__c}"/>
                                    <apex:inputField value="{!cle.Cleaning_Start_Date__c}"/>
                                    <apex:inputField value="{!cle.Cleaning_End_Date__c}"/>
                                    <apex:inputField value="{!cle.Date_of_Cleaning__c}"/>
                                    <apex:inputField value="{!cle.Full_Site_Cleaning__c}"/>
                                    <apex:inputField value="{!cle.Qualtiy_of_Cleaning__c}"/>
                                    <apex:inputField value="{!cle.Specific_Size_Cleaned_kWp__c}"/>
                                    <apex:inputField value="{!cle.Status__c}"/>
                                    <apex:inputField value="{!cle.URL_of_Photos_folder__c}"/>
                                    <apex:inputField value="{!cle.Password__c}"/>
                                </apex:pageBlockSection> 
                            </apex:outputPanel>
                            
                            
                            <apex:actionFunction name="save1" action="{!save1}"  />
                            <input type = "button" id="1" value="Save1" onclick = "mysave1(this.id)"  />   
                     
                            <apex:outputPanel styleClass="grey" layout="block">
                                <apex:pageBlockSection columns="1" title="Permit to Work Number"  collapsible="false">
                                    <apex:inputField value="{!ptw.PTW_Number__c}"/>
                                    <apex:inputField value="{!ptw.Number_of_Workers__c}"/>
                                    <apex:inputField value="{!ptw.Date__c}"/>
                                    <apex:inputField value="{!ptw.Maintenance_Ticket__c}"/>
                                </apex:pageBlockSection> 
                            </apex:outputPanel>
                            
                            <apex:actionFunction name="save2" action="{!save2}"  />
                            <input type = "button"  id ="2" value="Save2" onclick = "mysave1(this.id)" />        
                           
                        </apex:pageBlockSection>
     
                        <apex:outputPanel styleClass="grey" layout="block">
                            <apex:pageBlockTable value="{!clelist}" var="a">
                                <apex:column headerValue="Cleaning Ticket Number">
                                    <apex:outputLink value="https://c.ap2.visual.force.com/apex/Record_detail_Vf_Page?id = {a.Cleaning_Activity__c}">{!a.Name}</apex:outputLink>
                                </apex:column>
                                <apex:column value="{!a.Password__c}"/>
                                
                                
                            </apex:pageBlockTable> 
                        </apex:outputPanel>
                    </apex:pageBlock>
                    
                </apex:form>
                <!-- / RESPONSIVE GRID EXAMPLE -->
            </div>
        </body>
    </html>
</apex:page>

Class:
public class i2{
    public Cleaning_Activity__c cle{get;set;}
    public Permit_to_Work_Number__c ptw{get;set;}
    public List<Cleaning_Activity__c> clelist{get;set;}
    
    //constructor to create a new record
    public i2(){
        cle = new Cleaning_Activity__c();
        ptw = new Permit_to_Work_Number__c();  
    }
    
    public void save1(){  
        if(cle.Password__c == 'pv' || cle.Password__c == 'sunsure')
        {
            
            insert cle;
            clelist = [SELECT Name, Password__c FROM Cleaning_Activity__c where Password__c =: cle.Password__c];
            
            /*if(cle.Id != null)
            {
                ptw.Cleaning_Activity__c = cle.Id;
            }
            if(ptw.PTW_Number__c!=null)
            {
                insert ptw;
            }*/
            ApexPages.addmessage(new ApexPages.message(ApexPages.severity.CONFIRM,'Record Inserted Successfully'));
            cle = new Cleaning_Activity__c();
            
        }
        else
            ApexPages.addmessage(new ApexPages.message(ApexPages.severity.FATAL,'Password is incorrect'));    
    }
    
    
    public void save2(){  
        if(cle.Password__c == 'pv' || cle.Password__c == 'sunsure')
     {
            
            if(ptw.PTW_Number__c!=null)
            {
                insert ptw;
            }
            ApexPages.addmessage(new ApexPages.message(ApexPages.severity.CONFIRM,'Record Inserted Successfully'));
            ptw = new Permit_to_Work_Number__c(); 
       }
        else
            ApexPages.addmessage(new ApexPages.message(ApexPages.severity.FATAL,'Password is incorrect'));
        
        
        
        
    }
}

​​​​​​​
How to change the font color, size and weight (bold) of a page block title?
Below is my code:
<apex:page controller="i2" tabStyle="Invoice__c">
    
    <style>
        body .bPageBlock .pbBody .grey .pbSubheader{
        background-color:#585858;
        font-family:courier;
        color:white;
        font-size:100}
        }
       
}
        
        
    </style>
    
    <apex:form>
        
        
        <apex:pageBlock title="Invoice">
            
        
            
            
            
            <apex:pageMessages id="showmsg"></apex:pageMessages>
            <apex:pageblockButtons location="Bottom" >
                <apex:commandButton action="{!save}" value="save" >
                </apex:commandButton>
            </apex:pageblockButtons>
            
            
            
            <apex:outputPanel styleClass="grey" layout="block">
                <apex:pageBlockSection columns="1" title="Invoice Details" id="section1"  >
                    <apex:inputField value="{!acc.Name}"/>
                    <apex:inputField value="{!acc.Total_Amount__c}"/>
                    <apex:inputField value="{!acc.Password__c}"/>
                </apex:pageBlockSection> 
            </apex:outputPanel>
            
            
            <apex:outputPanel styleClass="grey" layout="block">
                <apex:pageBlockSection columns="1" title="Invoice Line Items Details" >
                    <apex:inputField value="{!abb.Name}"/>
                    <apex:inputField value="{!abb.Price__c}"/>
                    <apex:inputField value="{!abb.Invoice__c}"/>
                </apex:pageBlockSection> 
            </apex:outputPanel>
            
           
        </apex:pageBlock>
       
    </apex:form>
    
</apex:page>

 
Hello,

We are interested in expanding the width of a multi-select picklist to fit the screen. Can anyone send a link to instruction on building this out in Visualforce? 

Thank you Greatly,
JoAnn Eckhoff
I am investigating the view state of a vf page button. The problem is once i pressed the button the view state is not displaying. I already did the proper setup in order to view the view state.

User-added image
Hi 

I am getting the data from response.Now i have to filter the data based on the picklist selection.

Note: i am not using any object.

Thanks
Hi All,
I am working on Apex Specalist - Super Badge. I installed the required Pkg. to my org. Currently working on Automate record creation. As per Requirement need to fetch TYPE = REPAIR Or MAINTENANCE REQUEST. When query the table not finding any record having type define as Repair or Maintenance. Not sure why. Can any one guide me on same.
Rgd's
Dear Team ,

Plz let me know How to set Minlength and Max length in lightning input textarea?

Thanks & Regards
Sachin Bhalerao
 
Hi Guys,

i have a vf page where 2 record types records are displaying with checkbox i should save those selected records .. can you please help me with this
here is my code i not wrote a wrapper class i am not understanding how to do it
public class custInterNeeds {
public PegasysKAM__Account_Plan__c accplan {set;get;}
public list <PegasysKAM__Customer_Need__c> cus {get;set;}
public list <PegasysKAM__Customer_Need__c> cus1 {get;set;}
public PegasysKAM__Customer_Need__c CusNeed {get;set;}
public string pid {get;set;}
public String currentRecordId {get;set;}
  
    public PageReference saveandnew() {
        return null;
    }
    public PageReference save() {
        return null ;
    }
    public PageReference Cancel(){
      PageReference pageRef = new PageReference('/'+'string pid');
       pageRef.setRedirect(true);
       return pageRef;
    }

public custInterNeeds(ApexPages.StandardController controller) {
    
string pid = ApexPages.currentPage().getParameters().get('pid');
     
         
  cus  = [SELECT  ID,Name, PegasysKAM__Account__c,PegasysKAM__Need__c,PegasysKAM__Status__c,PegasysKAM__Year__c,PegasysKAM__Details__c FROM PegasysKAM__Customer_Need__c
                  
                 where PegasysKAM__Account__c = :ApexPages.CurrentPage().getparameters().get('pid') AND RecordType.name='Customer' ];
                 
  cus1  = [SELECT  ID,Name, PegasysKAM__Account__c,PegasysKAM__Need__c,PegasysKAM__Status__c,PegasysKAM__Year__c,PegasysKAM__Details__c FROM PegasysKAM__Customer_Need__c
                  
                 where PegasysKAM__Account__c = :ApexPages.CurrentPage().getparameters().get('pid') AND RecordType.name='Internal' ];
 

    
}
}
<apex:page standardController="Account_Plan__c" Extensions="custInterNeeds" >


 <script type="text/avascript">
    function chkselected(obj,recid)
    {
        var inputcheckbox = document.getelementsbytagname("input");
        for(var i=0; i<inputcheckbox.length; i++){
                if(inputcheckbox[i].id.indexOf(recid)!=-1){
                    inputcheckbox[i].checked = obj.checked;
                }
            }
    }
    </script>
  <apex:form >
  <apex:pageblock title="Account Plan Edit" id="block" mode="edit" > 
  <apex:pageBlockButtons >
  <apex:commandButton value="Save" action="{!save}" />
    <apex:commandButton value="Cancel" action="{!cancel}"/>
    <apex:commandButton value="Save&New" action="{!saveandnew}"/>
  </apex:pageBlockButtons>
  <apex:pageblocksection title="Information">
  <apex:outputField value="{!Account_Plan__c.Account__c}"/>
   <apex:inputField value="{!accplan.Key_Account_Manager__c}"/>
   <apex:inputField value="{!accplan.Start_Date__c}"/>
   <apex:inputField value="{!accplan.Status__c}"/>
   <apex:inputField value="{!accplan.End_Date__c}"/>
   <apex:inputField value="{!accplan.customer_approval__c}"/>
   <apex:inputField value="{!accplan.Customer_Stakeholder__c}"/>  
  </apex:pageblocksection>
  
   <apex:pageBlockSection title="Details">   
   <apex:inputField value="{!accplan.Overall_Objective__c}" style="width:120%;"/><br/>
   <apex:inputField value="{!accplan.Description__c}" style="width:150%;" />    
   </apex:pageBlockSection> 
     
   </apex:pageblock>
   
   <apex:pageBlock >
   
    
   <apex:pageblockSection title="Customer Needs" >
<!--<apex:outputPanel rendered="{!IF(<strong>PegasysKAM__Customer_Need__c</strong>.RecordType.Name == 'Customer')}">-->
 <!--  <apex:outputPanel rendered="{!Account_Plan__c.PegasysKAM__Customer_Need__c.RecordTypeId== '01I2v000003PVvj'}" > -->
   <apex:pageBlockSectionItem dataStyle="width:100%" labelStyle="width:100%" >
   <apex:pageblockTable value="{!cus}" var="c" styleclass="pageblock">
   
            <apex:column headerValue="Account" >
            <apex:outputField value="{!c.Account__c}" />
            </apex:column>
            <apex:column headerValue="Details">
            <apex:outputField value="{!c.Details__c}"/>
            </apex:column>
            <apex:column headerValue="Status">
            <apex:outputField value="{!c.Status__c}"/>
            </apex:column>
            <apex:column headerValue="Need">
            <apex:outputField value="{!c.Need__c}"/>
            </apex:column>
            <apex:column headerValue="Year">
            <apex:outputField value="{!c.Year__c}"/>
            </apex:column>
             
          <apex:column >
               <apex:facet name="header">
                    <apex:inputCheckbox onclick="chkselected(this,'inputId')"/>
                        </apex:facet>
                        <apex:inputCheckbox value="{!cus}" id="inputId"/>
                    </apex:column>       
        </apex:pageblockTable>
   </apex:pageBlockSectionItem>
<!-- </apex:outputpanel> -->
   </apex:pageblockSection> 
  
   <!-- section for internal needs-->
   
   
   <apex:pageblockSection title="Internal Needs" >
   <apex:pageBlockSectionItem dataStyle="width:100%" labelStyle="width:100%" >
   <apex:pageblockTable value="{!cus1}" var="c" styleclass="pageblock">
   
            <apex:column headerValue="Account" >
            <apex:outputField value="{!c.Account__c}" />
            </apex:column>
            <apex:column headerValue="Details">
            <apex:outputField value="{!c.Details__c}"/>
            </apex:column>
            <apex:column headerValue="Status">
            <apex:outputField value="{!c.Status__c}"/>
            </apex:column>
            <apex:column headerValue="Need">
            <apex:outputField value="{!c.Need__c}"/>
            </apex:column>
            <apex:column headerValue="Year">
            <apex:outputField value="{!c.Year__c}"/>
            </apex:column>
             
          <apex:column >
               <apex:facet name="header">
                    <apex:inputCheckbox onclick="chkselected(this,'inputId')"/>
                        </apex:facet>
                        <apex:inputCheckbox value="{!cus}" id="inputId"/>
                    </apex:column>       
        </apex:pageblockTable>
   </apex:pageBlockSectionItem>
   
   </apex:pageblockSection> 
  
   
   
  </apex:pageBlock>
  </apex:form>
</apex:page>
CAN WE ACHIEVE THE ABOVE REQUIREMENT BY USING WRAPPER CLASS?
I MEAN WITHOUT GIVING 10 VARIABLES TO STORE THE VALUES OF INPUT TEXT BOXES [DYNAMICALLY].

 
Hi I have a requirement, In quote while adding products if I select a product, for example, a coffee cup it should show the rate of 20 if I choose both coffe cup and a water bottle then my coffee cup rate should reduce to 15, I have tried hard to get this requirement solved if anyone can help me out that would be great full
My Requirement is:
 
My client wants to see all the picklist field values whenever he hover on the help text. The limit for help text field is 255 characters. My picklist values are more than 255 characters so we are not able to place those picklist values in helptext field. 

Now, I want to suggest him a work around for that. We want to create a custom formula field with text as returning value. I want to write a formula in such a way that it should show all the picklist field values. How to write a formula for that?
 

Hi,

i have created a field called "Email" and now i need to add if user gives the same mail id for second time, need to give a error message.

can anyone help me on this with out using triggers?

Hi,

i have created a field called "Name" and now i need to add a not null validation to that field.

if i created a custom button called "save", if i click save button before inserting data to the Name field i need to get a validation message.

can anyone help me on this?

difference between "Trigger.New" and "Trigger.old".