• newcloudcoder
  • NEWBIE
  • 25 Points
  • Member since 2011

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 8
    Replies

Hi guys,

I was wondering what would be the best solution to provide stock quotes and charts for an account on its detail page...

Do you already have solutions for that?

public with sharing class BillingCloseController {
   
    public String StatusText;
    public String LineItems;
   
   
    public List<OpportunityLineitem> Olilist;
    Boolean InsertFlag;
   
    public Billing_Close__c BC;
    public BillingCloseController(ApexPages.StandardController stdController) {
        this.BC = (Billing_Close__c) stdController.getRecord();
    }
       
     // Fill list with Forecasts
   
    public List<OpportunityLineItem> BillingList(){
        List<LineItems> bl;
        try {
           bl = [Select Opportunity.Name, Opportunity.Account.Name,PricebookEntry.Product2.Name, PricebookEntry.Product2.Product__r.Name, Edition__c, Quantity, ServiceDate, UnitPrice, TotalPrice
                from OpportunityLineItem];
               return LineItems;
               
        } catch (QueryException e){
            system.debug(e.getMessage());
            StatusText = e.getMessage();
        }
}
}

Hi guys,

 

below is my code.. but these error messages keep poping up..can someone help me?

 



  
ErrorError: BillingClose line 2, column 2: The markup in the document following the root element must be well-formed 
ErrorError: The markup in the document following the root element must be well-formed.



 

VF page:

 

<apex:page tabStyle="Billing_Close__c" showHeader="true" controller="BillingCloseController" />
<apex:form>
        <apex:pageBlock title="BillingClose">
                <apex:pageBlockButtons location="both">
                <apex:commandButton value="Save" action="{!save}"/>
                <apex:commandButton value="Cancel" action="{!cancel}"/>
                <apex:commandButton value="Billed" action="{!billed}"/>
            </apex:pageBlockButtons>

            <apex:pageBlockSection columns="2">
                    <apex:pageBlockSectionItem >
                        <apex:outputLabel value="BillingClose Name"  />
                        <apex:inputField value="{!billingclose.name}"/>
                       
                        <apex:outputLabel value="Invoice_Date__c" />
                        <apex:inputField value="{!billingclose.invoicedate}" />
                  
                        <apex:outputLabel value="Comments__c" />
                        <apex:inputField value="{!opportunity.comments}"/>
                   
                        <apex:outputLabel value= "Status__c"/>
                        <apex:inputField value="{!billingclose.status}" id="status_select"/>
                            <apex:selectOption itemLabel="Billed" itemValue="Billed"></apex:selectOption >
                            <apex:selectOption itemLabel="To be Billed" itemValue="To be Billed"></apex:selectOption >
                            <apex:selectOption itemLabel="Do not Bill" itemValue="Do not Bill"></apex:selectOption >
                    
                      <apex:inputCheckbox onselect="Reconciled__c"/>
                       
                      <apex:outputLabel value="Owner" />
                        <apex:outputLabel value="{!$User.FirstName} {!$User.LastName}"/>
                        <apex:inputField value="{!billingclose.owner.name}"/>
                    </apex:pageBlockSectionItem >
              </apex:pageBlockSection>
          </apex:pageBlock>
     </apex:form> 
 </apex:page>             

 

 

Class:

 

public with sharing class BillingCloseController {

    

}



Hi all,

I'm new to this programming language. Pls help me out in this.

 

Actually I tried to create a visual force Membership page with few fields such as Firstname, last name, city, phone, email & type ( type being picklist.).. Addittionally  I want to display all the member records in the second page(MembershipDetail) in a table format with the same fields as columns. (An exact replica of an account.) I wrote the pages and classes but couldn't finish this task .. I had created an custom Membership object (Membership__c) with the six custom fields as mentioned above..

 

I went on writing my code and was facing problems in calling an object from first page to second page. my coding goes like this..

 

 



 

<apex:page tabStyle="Membership__c" controller="MembershipController">
<apex:sectionHeader title="Membership Edit" subtitle=" New Membership"/>
    <apex:form >
        <apex:pageBlock title="Membership Edit">
        <apex:pageBlockSection title="Information"/>
            <apex:pageblockButtons >
                <apex:commandButton value="Save" action="{!Save}" />
                <apex:commandButton value="Save&New" action="{!SaveAndNew}" />
                <apex:commandButton value="Cancel" action="{!Cancel}" />
            </apex:pageblockButtons>
            <apex:pageBlockSection columns="4">
            First Name<apex:inputText value="{!member.First_Name__c}"/>
            Last Name<apex:inputText value="{!member.Last_Name__c}" />
            City<apex:inputText value="{!member.City__c}" />       
            Phone<apex:inputText value="{!member.Phone__c}" />
            Email<apex:inputText value="{!member.Email__c}" />     
            Type <apex:selectList id="Type" size="1">
                    <apex:selectoption itemLabel="Prospect" itemValue="Prospect"></apex:selectoption>
                    <apex:selectoption itemLabel="Customer-Direct" itemValue="Customer-Direct"></apex:selectoption>
                    <apex:selectoption itemLabel="Customer Channel" itemValue="Customer Channel"></apex:selectoption>
                    <apex:selectoption itemLabel="Tech Partner" itemValue="Tech Partner"></apex:selectoption>
                </apex:selectList>
            </apex:pageblocksection>
            </apex:pageBlock>
    </apex:form>
</apex:page> 


 

 

public class MembershipController {

  
    public PageReference Cancel() {
        return null;
    }


   public Membership__c member{get;set;}
    
    public MembershipController (){
     member=new Membership__c();
    
    }
  
    public PageReference SaveAndNew() {
        return null;
    }
    
    public void SaveOperation(String operation){       
        }  

    public PageReference Save() {
        insert member;  
        PageReference pg = new PageReference('/apex/MembershipDetailsPage');
        
         return pg;
    }

}

 

</apex:page>

 

<apex:page tabStyle="Membership__c" controller="MembershipDetailsController">
 <apex:form >
    <apex:pageblock >
        <apex:pageBlockSection columns="8">
            <apex:pageBlockTable value="{!HistoryList}" var="hl">
             <apex:actionFunction name="Edit"/>
               <apex:actionFunction name="Delete"/>             
               <apex:column value="{!hl.First_Name__c}"/>
               <apex:column value="{!hl.Last_Name__c}"/>
               <apex:column value="{!hl.City__c}"/>
               <apex:column value="{!hl.Phone__c}"/>
               <apex:column value="{!hl.Email__c}"/>
               <apex:column value="{!hl.Type__c}"/> 
            </apex:pageblocktable>      
       </apex:pageBlockSection>    
    </apex:pageblock>
  </apex:form> 
           

 

public class MembershipDetailsController{

public List<Membership__c> getHistoryList(){                    
        List<Membership__c> MemberHistory = [Select id,First_Name__c,Last_Name__c,

City__c,Email__c,Phone__c,Type__c from Membership__c order by createddate desc];    

                return memberhistory;

}

}



in the membership detail page (second page) , I need to call the object instead of calling each and every parameter from the membership page(first page).  

Overview: If I  fill in the new membership details and click save, i need to be redirected to the Membership detail page where I can see the tabular list of all the members and their details.. (Same as if you see account detail page)

Could someone pls help me out with this..? your help is gratly appreciated.

 

thanks

 

Hi guys,

I was wondering what would be the best solution to provide stock quotes and charts for an account on its detail page...

Do you already have solutions for that?

Hi all,

I'm new to this programming language. Pls help me out in this.

 

Actually I tried to create a visual force Membership page with few fields such as Firstname, last name, city, phone, email & type ( type being picklist.).. Addittionally  I want to display all the member records in the second page(MembershipDetail) in a table format with the same fields as columns. (An exact replica of an account.) I wrote the pages and classes but couldn't finish this task .. I had created an custom Membership object (Membership__c) with the six custom fields as mentioned above..

 

I went on writing my code and was facing problems in calling an object from first page to second page. my coding goes like this..

 

 



 

<apex:page tabStyle="Membership__c" controller="MembershipController">
<apex:sectionHeader title="Membership Edit" subtitle=" New Membership"/>
    <apex:form >
        <apex:pageBlock title="Membership Edit">
        <apex:pageBlockSection title="Information"/>
            <apex:pageblockButtons >
                <apex:commandButton value="Save" action="{!Save}" />
                <apex:commandButton value="Save&New" action="{!SaveAndNew}" />
                <apex:commandButton value="Cancel" action="{!Cancel}" />
            </apex:pageblockButtons>
            <apex:pageBlockSection columns="4">
            First Name<apex:inputText value="{!member.First_Name__c}"/>
            Last Name<apex:inputText value="{!member.Last_Name__c}" />
            City<apex:inputText value="{!member.City__c}" />       
            Phone<apex:inputText value="{!member.Phone__c}" />
            Email<apex:inputText value="{!member.Email__c}" />     
            Type <apex:selectList id="Type" size="1">
                    <apex:selectoption itemLabel="Prospect" itemValue="Prospect"></apex:selectoption>
                    <apex:selectoption itemLabel="Customer-Direct" itemValue="Customer-Direct"></apex:selectoption>
                    <apex:selectoption itemLabel="Customer Channel" itemValue="Customer Channel"></apex:selectoption>
                    <apex:selectoption itemLabel="Tech Partner" itemValue="Tech Partner"></apex:selectoption>
                </apex:selectList>
            </apex:pageblocksection>
            </apex:pageBlock>
    </apex:form>
</apex:page> 


 

 

public class MembershipController {

  
    public PageReference Cancel() {
        return null;
    }


   public Membership__c member{get;set;}
    
    public MembershipController (){
     member=new Membership__c();
    
    }
  
    public PageReference SaveAndNew() {
        return null;
    }
    
    public void SaveOperation(String operation){       
        }  

    public PageReference Save() {
        insert member;  
        PageReference pg = new PageReference('/apex/MembershipDetailsPage');
        
         return pg;
    }

}

 

</apex:page>

 

<apex:page tabStyle="Membership__c" controller="MembershipDetailsController">
 <apex:form >
    <apex:pageblock >
        <apex:pageBlockSection columns="8">
            <apex:pageBlockTable value="{!HistoryList}" var="hl">
             <apex:actionFunction name="Edit"/>
               <apex:actionFunction name="Delete"/>             
               <apex:column value="{!hl.First_Name__c}"/>
               <apex:column value="{!hl.Last_Name__c}"/>
               <apex:column value="{!hl.City__c}"/>
               <apex:column value="{!hl.Phone__c}"/>
               <apex:column value="{!hl.Email__c}"/>
               <apex:column value="{!hl.Type__c}"/> 
            </apex:pageblocktable>      
       </apex:pageBlockSection>    
    </apex:pageblock>
  </apex:form> 
           

 

public class MembershipDetailsController{

public List<Membership__c> getHistoryList(){                    
        List<Membership__c> MemberHistory = [Select id,First_Name__c,Last_Name__c,

City__c,Email__c,Phone__c,Type__c from Membership__c order by createddate desc];    

                return memberhistory;

}

}



in the membership detail page (second page) , I need to call the object instead of calling each and every parameter from the membership page(first page).  

Overview: If I  fill in the new membership details and click save, i need to be redirected to the Membership detail page where I can see the tabular list of all the members and their details.. (Same as if you see account detail page)

Could someone pls help me out with this..? your help is gratly appreciated.

 

thanks

 

I have win 7 and eclipse 3.6(Helios) in my machine.I installed Force.com ide plugin but I am unable to download data from SFDC to eclipse 3.6.

What might be the problem.

  • August 27, 2011
  • Like
  • 0

Hiiiiii

 

I have done the website integration with the salesforce and now I want to  insert the  values into my goal custom object in salesforce and I have set all the value but unalbe to create the goal........

 

 

please help.........

 

Thanks in advance................