• logpramz
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 11
    Replies
Hi, I have a vf page AddAppCountries which contains a vf page viewAppCountries as an iFrame. Within this viewAppCountries, I have a buttonwhich pops up another vf page to select the countries. After selecting the countries and hitting the save buttonin the popup, the iFrame should refresh. Anyone knows how to do this? Thanks, Pramod

Hi,

 

Can anyone tell if it is possible to display the standard help text info icon next to the field on a public site. I can see the icon within the salesforce but not on the public site.

 

Pramod

Hi,

 

I need to display few fields in the page layout based on the value selected in the picklist. Is there a way to this in salesforce without writing any code?

 

Picklist has 2 values NRE and Maintenance. When NRE is selected I need to display the 'FCST Completion Date' & 'Actual Completion Date', and when 'Maintenance' is selected, 'Maintenance Period Start' & 'Maintenance Period End' have to be displayed.

 

Thanks,

Pramod

Hi,

 

I have custom multi select picklist field in Account object which I need to display as a single select picklist in visualforce page and use the select value in a SOQL where clause. I was able to get the values from the multi select picklist and create a custom single select picklist using <apex:selectList>. But I am not able to retrieve the selected value from this custom picklist. Here is the code:

 

 

<apex:pageBlock title="Send an Email">
               <p>Fill out the fields below.</p>
               <apex:form >
                                                               
                       <apex:selectList value="{!cat}" multiselect="false" size="1" id="cat">
                          <apex:selectOptions value="{!category}"/>
                       </apex:selectList>
                                                                
                       <br /><br /><br />
                      <apex:commandButton value="Send Email" action="{!send}" /> 
               </apex:form>
       </apex:pageBlock>

 

public class sendEmail1 {
public String cat;

   public sendEmail1(ApexPages.StandardController controller)
    {       
    }   
       
 //   public Account account { get; set; }
     
    static Schema.DescribeFieldResult F = Account.Top_Level_Category__c.getDescribe();
    static List<Schema.PicklistEntry> peList = F.getPicklistValues();

   public List<SelectOption> getCategory()
   {
        List<SelectOption> options = new List<SelectOption>();    
        options.add(new SelectOption('--None--','--None--'));
     
        for(Integer i=0;i<peList.size();i++){
            String temp = peList[i].getValue();
            options.add(new SelectOption(temp,temp));       
        
        }
   
    return options;
   }   
   
    public String getCat(){
        return cat;
    } 
     
    public void setCat(String cat){
        this.cat = cat;
    }  
    
    List<Partner_Mgr_Account__c> FieldList = [Select Partner_Mgr_Email__c, Partner_Account_Category__c from Partner_Mgr_Account__c 
                                                Where Partner_Account_Category__c=:cat Limit 1];
}

 

Please let me know what I am missing here. I have tried hard coding a value in the where clause and it works just fine.

 

Thanks

Pramod

 

 

Hi, I have a vf page AddAppCountries which contains a vf page viewAppCountries as an iFrame. Within this viewAppCountries, I have a buttonwhich pops up another vf page to select the countries. After selecting the countries and hitting the save buttonin the popup, the iFrame should refresh. Anyone knows how to do this? Thanks, Pramod

Hi,

 

Can anyone tell if it is possible to display the standard help text info icon next to the field on a public site. I can see the icon within the salesforce but not on the public site.

 

Pramod

Hi,

 

I have custom multi select picklist field in Account object which I need to display as a single select picklist in visualforce page and use the select value in a SOQL where clause. I was able to get the values from the multi select picklist and create a custom single select picklist using <apex:selectList>. But I am not able to retrieve the selected value from this custom picklist. Here is the code:

 

 

<apex:pageBlock title="Send an Email">
               <p>Fill out the fields below.</p>
               <apex:form >
                                                               
                       <apex:selectList value="{!cat}" multiselect="false" size="1" id="cat">
                          <apex:selectOptions value="{!category}"/>
                       </apex:selectList>
                                                                
                       <br /><br /><br />
                      <apex:commandButton value="Send Email" action="{!send}" /> 
               </apex:form>
       </apex:pageBlock>

 

public class sendEmail1 {
public String cat;

   public sendEmail1(ApexPages.StandardController controller)
    {       
    }   
       
 //   public Account account { get; set; }
     
    static Schema.DescribeFieldResult F = Account.Top_Level_Category__c.getDescribe();
    static List<Schema.PicklistEntry> peList = F.getPicklistValues();

   public List<SelectOption> getCategory()
   {
        List<SelectOption> options = new List<SelectOption>();    
        options.add(new SelectOption('--None--','--None--'));
     
        for(Integer i=0;i<peList.size();i++){
            String temp = peList[i].getValue();
            options.add(new SelectOption(temp,temp));       
        
        }
   
    return options;
   }   
   
    public String getCat(){
        return cat;
    } 
     
    public void setCat(String cat){
        this.cat = cat;
    }  
    
    List<Partner_Mgr_Account__c> FieldList = [Select Partner_Mgr_Email__c, Partner_Account_Category__c from Partner_Mgr_Account__c 
                                                Where Partner_Account_Category__c=:cat Limit 1];
}

 

Please let me know what I am missing here. I have tried hard coding a value in the where clause and it works just fine.

 

Thanks

Pramod

 

 

Hi Guys,

 

I Created one custom Object which have one Lookup Account field , Based on this Lookup field Value,i want to fetch all records of Custom Object and put it in tabular format using data table.

 

Guys I created two visualforce pages and one controller.First visualforce page is dispalying only the Account Lookup field ,when User click on Next  then the soql query should be executed and save in a list ,Using this list I want to display the value of all field in second Visualforce page using data table.

 

Guys My controller structure as

 

public class Accountscore_card {

public List<Account_Score__c> accList1= new List<Account_Score__c>();

public Account_Score__c acc1{get;set;}

public Accountscore_card (ApexPages.StandardController controller){

acclist1= [select f1,f2,f3...from Account_Score__c where f1=:acc1.f1];

}

public List<Account_Score__c> getAcclist1(){

if(acc1 == null) acc1 = new Account_Score__c();

return acclist1;

}

public PageReference method1(){

return page.recordpage1;

}

public Account_Score__c getAcc1(){

 return acc1;

}

 }

 

First Visual Force Page as

<apex:page standardController="Account_Card__c" extensions="Accountscore_card">

<apex:form >

<apex:pageBlock title="Account Selection">

<apex:inputField Value={!account1.Account__c}/>

<apex:commandButton title="selected account" action="{!method1}" value="Next"/>

</apex:pageBlock>

</apex:form>

</apex:page>

 

second Visual force page like

 

<apex:page standardController="Account_Score__c"  extensions="Accountscore_card">

  <apex:form >

   <apex:pageBlock title="Account's spend on Telecom (Rs. Crore)">

   <apex:pageBlockSection title="Details" Id="NewCard">

  

    <apex:dataTable value="{!acclist1}" var="test" border="1" style="height:20;float: left;" id="stable">

     <apex:column headerValue="Account Name" width="5px">

              <apex:outputField value="{!test.field1}" style="align: center" />

     </apex:column>

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

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

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

  </apex:dataTable></apex:pageBlocksection> 

</apex:pageBlock>

</apex:form>

</apex:page>

 

Guys please help.....

 

Thanks

Prince

 

  • February 03, 2011
  • Like
  • 0