• Krishna12
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 1
    Replies
Hi,

 I have one student object from that i am displaying values in visualforce page but i want to display number of males and females in that visualforce page i am not getting count of gender i am using picklist for gender, At the end of vf page i want to display male=10, female =10 for this may i know what i have to do.

My Vf Page


<apex:page controller="stu">
<apex:form>
  <apex:pageblock >
<apex:pageblockTable value="{!stulist}" var="s">
        <apex:column value="{!s.Student_Name__c}"/>
        <apex:column value="{!s.Contact_No__c}"/>
        <apex:column value="{!s.Gender__c}"/>
      </apex:pageblockTable>
    </apex:pageblock>
  </apex:form>
</apex:page>

public class stu
{
    Public List<Students__c> stulist = new List<Students__c>();
    public list<Students__c> getstulist(){
      stulist = [ select Student_Name__c, Contact_No__c,Gender__c  from Students__c];
     
       return stulist;
   
    }  
   
}

i need this format ...validation rule

 

 

+91-(123)-12345

i need this format ...validation rule

 

 

+91-(123)-12345

how to upload a file frm vf and how it connect to apex and how it is stored in datamadel...

IN my visual force i have one selectedlist..i am trying to connect that list to apex...how can i connect by using custom controller..

 

 i am giving some information

 

MY DETAILS::

 

sOBJECT NAME : BOOK__C

FILEDS NAME:  TEXT: AUTHOR,

                              CURRENCY: PRICE

                               PICKLIST: APEX,SAP,JAVA,C..

 

I WANT TO CONNECT THIS ALL DATA TO sOBJECT THROUGH MY VISUALFORCE...
I AM USING CUSTOMCONTROLLER APEX

HOW CAN I CONNECT VF--->>APEX----DATAMAODEL...THIS VALUES PLZ HELP ME THE CODE...PLZ....

IN my visual force i have one selectedlist..i am trying to connect that list to apex...how can i connect by using custom controller..

 

 i am giving some information

 

MY DETAILS::

 

sOBJECT NAME : BOOK__C

FILEDS NAME:  TEXT: AUTHOR,

                              CURRENCY: PRICE

                               PICKLIST: APEX,SAP,JAVA,C..

 

I WANT TO CONNECT THIS ALL DATA TO sOBJECT THROUGH MY VISUALFORCE...
I AM USING CUSTOMCONTROLLER APEX

HOW CAN I CONNECT VF--->>APEX----DATAMAODEL...THIS VALUES PLZ HELP ME THE CODE...PLZ....