• venkat Gantasala
  • NEWBIE
  • 80 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 12
    Questions
  • 13
    Replies
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

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?

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".