+ Start a Discussion
munna123munna123 

how to get the list of only selected objects as a dropdown

here in the below code am getting the list of all objects in an organisation. but i need only to select only few objects like account, contact, solutions etc.. how to get this.

<apex:page controller="dynamic1" >
    <apex:form id="op">
        <apex:pageBlock >
            <apex:pageBlockSection id="od1" columns="1">
                <apex:pageBlockSection >
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Object List"></apex:outputLabel>
                    <apex:selectList size="1" value="{!selectedobj}">
                        <apex:selectOptions value="{!objects}" ></apex:selectOptions>
                        <apex:actionSupport action="{!details}" event="onchange" rerender="op"/>
                    </apex:selectList>
                </apex:pageBlockSectionItem>
                    </apex:pageBlockSection>
                <br/>
                <br/>
                <br/>         
                <apex:pageBlockSection >
               <apex:pageBlockSectionItem >
           <apex:outputLabel value="fields List:"></apex:outputLabel>

                    <apex:panelGrid columns="3" id="od" >
                        <apex:panelGroup style="width:40%" >
                            <apex:selectList size="6" value="{!sfields}" multiselect="true" style="width:200px;hieght:150px;">
                                <apex:selectOptions value="{!fnoption}"></apex:selectOptions>
                            </apex:selectList>
                        </apex:panelGroup>
                        <apex:panelGroup style="width:20%;hieght:120px;">
                            <table hieght="120px">
                                <tr><td><apex:commandButton value="Add" action="{!addfields}" style="width:80px;" reRender="od"  /> </td></tr>
                                <tr><td><apex:commandButton value="Remove" action="{!removefields}" style="width:80px;" reRender="od1"  /> </td></tr>
                            </table>
                        </apex:panelGroup>
                        <apex:panelGroup >
                            <apex:selectList size="6"  value="{!rfields}" multiselect="true" style="width:200px;hieght:150px;">
                                <apex:selectOptions value="{!fsoption}"></apex:selectOptions>
                            </apex:selectList>
                        </apex:panelGroup>
                    </apex:panelGrid>
                </apex:pageBlockSectionItem>
                    </apex:pageBlockSection>
                <apex:pageBlockSectionItem >
                    <apex:pageBlockTable value="{!mydata}" var="a" >
                        <apex:repeat value="{!myfields}" var="b">
                            <apex:column value="{!a[b]}"/>
                        </apex:repeat>
                    </apex:pageBlockTable>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
            <br/>
            <br/>
            <br/>
            <apex:commandButton value="click" action="{!querymydata}" reRender="op"/>{!query}
        </apex:pageBlock>    
    </apex:form>
</apex:page>

controller:
-----------------
 public class dynamic1 {
    
    public list<selectoption>objects{set;get;}
    public list<selectoption>fsoption{set;get;}
    public list<selectoption>fnoption{set;get;}
    public list<string> sfields{set;get;}
    public list<string> rfields{set;get;}
    public list<string>objlst{set;get;}
    public list<string>fields{set;get;}
    public set<string>fselected{set;get;}
    public set<string>fnotselected{set;get;}
    public map<string,schema.SObjectField> mfields;
    public map<string,schema.SObjectType> mobjects{set;get;}
    public string selectedobj{set;get;}
    public string objdiscription{set;get;}
    public string query{set;get;}
    public list<string>myfields{set;get;} 
    public list<sobject>mydata{set;get;}
    public dynamic1(){
        myfields=new list<string>();
        mydata=new list<sobject>();
        objects=new list<selectoption>();
        objlst=new list<string>();
        sfields=new list<string>();
        rfields=new list<string>();
        fields=new list<string>();
        fselected=new set<string>();
        fnotselected=new set<string>();
        fsoption=new list<selectoption>();
        fnoption=new list<selectoption>();
        mobjects=schema.getGlobalDescribe();
        objlst.addall(mobjects.keyset());
            objlst.sort();
        selectoption p=new selectoption('none','-none-');
        objects.add(p);
        for(string s:objlst){
            selectoption op=new selectoption(s,s);
            objects.add(op);
        }
        
    }
    
    public void details(){
        schema.DescribeSObjectResult mobj=mobjects.get(selectedobj).getDescribe();
        mfields=mobjects.get(selectedobj).getDescribe().fields.getMap();
        fields.addAll(mfields.keySet());
        fnotselected.addAll(fields);
        show();
    }
    public void show(){
 fnoption.clear();
        fsoption.clear();
        for(string s:fnotselected){
            selectoption op=new selectoption(s,s);
            fnoption.add(op);
        }
        for(string s1:fselected){
            selectoption op1=new selectoption(s1,s1);
            fsoption.add(op1);
            
        }
        
    }
    public void addfields(){
        fnotselected.removeAll(sfields);
        fselected.addAll(sfields);
        show();
    }
    public void removefields(){
        fnotselected.addAll(rfields);
        fselected.removeAll(rfields);
        show();
    }
    public void querymydata(){
         query ='select id';
        myfields.addAll(fselected);
        for(string s:fselected){
            query=query+','+s;
        }
        query=query + ' from ' + selectedobj;
        mydata=database.query(query);
    }
}
Bhanu MaheshBhanu Mahesh
Hi Nanda Kishore,

Try by filtering the records by using sObjectDescribe.isSearchable() && sObjectDescribe.isUpdateable() which will filter the objects only if they are updatable and searchable 

Check the below code for your reference
List<SelectOption> lstObjects =  new  List<SelectOption>();
Map<String, Schema.sObjectType> mapSObjectsWithDescribe = Schema.getGlobalDescribe();
List<String> sobjectNames  = new List<String>();
sobjectNames.addAll(mapSObjectsWithDescribe.keyset());
sobjectNames.sort();
for (string sobjectName : sobjectNames) {
	schema.DescribeSObjectResult sObjectDescribe = mapSObjectsWithDescribe.get(sobjectName).getDescribe();
	if (sObjectDescribe.isSearchable() && sObjectDescribe.isUpdateable()) {
		lstObjects.add(new SelectOption(sObjectDescribe.getName(),sObjectDescribe.getLabel())); 
	}
}

Regards,
Bhanu Mahesh
CLKCLK
  
    Public static Map<String,String> getAllSObject()
    {
        Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe();
        Map<String,String> mapSobject = new Map<String,String>();
        for(String strObjectName : gd.keySet())
        {
            Schema.DescribeSObjectResult sObj = gd.get(strObjectName).getDescribe();
            if(sObj.isAccessible() && sObj.isQueryable() && !sObj.isCustomSetting())
                mapSobject.put(sObj.getName(),sObj.getLabel());
        }
        return mapSobject;
    }
munna123munna123
am getting the same....i.e.,, am getting all objects in dropdown, but i need only 4 objects i.e., account, contact, lead, opportunity
Bhanu MaheshBhanu Mahesh
In That case, instead of populating objlst list with mobjects.keyset() , you have to add the required objects in the list
objlst .add('Account);
objlst .add('Contact);
objlst .add('Lead);
objlst .add('Opportunity);

Then the remaining works. If you eant to add the add any object make sure you are adding the API Name as value to SelectOption.

So it is better to add the Select Options directly 
for(string s:objlst){
            selectoption op=new selectoption(s,s);
            objects.add(op);
        }

Try this
objects.add(new selectoption('Account','Account'));
objects.add(new selectoption('Contact','Contact'));
objects.add(new selectoption('Lead','Lead'));
objects.add(new selectoption('Opportunity','Opportunity'));

If you want any custom object then
objects.add(new selectoption('API NAME','LABEL'));

Best practice is not to hardcode. use Custom setting or something to get the object names.

Regards,
Bhanu Mahesh
munna123munna123
i added it as below.. but its not giving any field values of selected object in the picklist global with sharing class dynamic1 { public list objects {set;get;} public listfsoption{set;get;} public listfnoption{set;get;} public list sfields{set;get;} public list rfields{set;get;} public listobjlst{set;get;} public listfields{set;get;} public setfselected{set;get;} public setfnotselected{set;get;} public map mfields; public map mobjects{set;get;} public string selectedobj{set;get;} public string objdiscription{set;get;} public string query{set;get;} public listmyfields{set;get;} public listmydata{set;get;} public dynamic1(){ myfields=new list(); mydata=new list(); objects=new list(); objlst=new list(); sfields=new list(); rfields=new list(); fields=new list(); fselected=new set(); fnotselected=new set(); fsoption=new list(); fnoption=new list(); mobjects=schema.getGlobalDescribe(); objects.add(new selectoption('Account','Account')); objects.add(new selectoption('Contact','Contact')); objects.add(new selectoption('Lead','Lead')); objects.add(new selectoption('Opportunity','Opportunity')); objlst.sort(); selectoption p=new selectoption('none','-none-'); for(string s:objlst){ selectoption op=new selectoption(s,s); objects.add(op); } List lstObjects = new List(); Map mapSObjectsWithDescribe = Schema.getGlobalDescribe(); List sobjectNames = new List(); sobjectNames.addAll(mapSObjectsWithDescribe.keyset()); sobjectNames.sort(); for (string sobjectName : sobjectNames) { schema.DescribeSObjectResult sObjectDescribe = mapSObjectsWithDescribe.get(sobjectName).getDescribe(); if (sObjectDescribe.isSearchable() && sObjectDescribe.isUpdateable()) { lstObjects.add(new SelectOption(sObjectDescribe.getName(),sObjectDescribe.getLabel())); } } } public void details(){ schema.DescribeSObjectResult mobj=mobjects.get(selectedobj).getDescribe(); mfields=mobjects.get(selectedobj).getDescribe().fields.getMap(); fields.addAll(mfields.keySet()); fnotselected.addAll(fields); show(); } public void show(){ fnoption.clear(); fsoption.clear(); for(string s:fnotselected){ selectoption op=new selectoption(s,s); fnoption.add(op); } for(string s1:fselected){ selectoption op1=new selectoption(s1,s1); fsoption.add(op1); } } public void addfields(){ fnotselected.removeAll(sfields); fselected.addAll(sfields); show(); } public void removefields(){ fnotselected.addAll(rfields); fselected.removeAll(rfields); show(); } public void querymydata(){ query ='select id'; myfields.addAll(fselected); for(string s:fselected){ query=query+','+s; } query=query + ' from ' + selectedobj; mydata=database.query(query); } }
Bhanu MaheshBhanu Mahesh
Hi Nanda Kishore,

Try the below  code. I have made changes in dynamic1() and deatils() methods
 
public class dynamic1 {
    
    public list<selectoption>objects{set;get;}
    public list<selectoption>fsoption{set;get;}
    public list<selectoption>fnoption{set;get;}
    public list<string> sfields{set;get;}
    public list<string> rfields{set;get;}
    public list<string>objlst{set;get;}
    public list<string>fields{set;get;}
    public set<string>fselected{set;get;}
    public set<string>fnotselected{set;get;}
    public map<string,schema.SObjectField> mfields;
    public map<string,schema.SObjectType> mobjects{set;get;}
    public string selectedobj{set;get;}
    public string objdiscription{set;get;}
    public string query{set;get;}
    public list<string>myfields{set;get;} 
    public list<sobject>mydata{set;get;}
    public dynamic1(){
        myfields=new list<string>();
        mydata=new list<sobject>();
        objects=new list<selectoption>();
        objlst=new list<string>();
        sfields=new list<string>();
        rfields=new list<string>();
        fields=new list<string>();
        fselected=new set<string>();
        fnotselected=new set<string>();
        fsoption=new list<selectoption>();
        fnoption=new list<selectoption>();
        mobjects=schema.getGlobalDescribe();
        objlst.addall(mobjects.keyset());
            objlst.sort();
        selectoption p=new selectoption('none','-none-');
        objects.add(p);
        objects.add(new selectoption('Account','Account'));
        objects.add(new selectoption('Contact','Contact'));
        objects.add(new selectoption('Lead','Lead'));
        objects.add(new selectoption('Opportunity','Opportunity'));
       /* for(string s:objlst){
            selectoption op=new selectoption(s,s);
            objects.add(op);
        }*/
        
    }
    
    public void details(){
        if(selectedobj !=  'none'){
            fnotselected.clear();
            fields.clear();
            fnoption.clear();
            fsoption.clear();
            fselected.clear();
            schema.DescribeSObjectResult mobj=mobjects.get(selectedobj).getDescribe();
            mfields=mobjects.get(selectedobj).getDescribe().fields.getMap();
            fields.addAll(mfields.keySet());
            fnotselected.addAll(fields);
            show();
        }
        else{
            fnotselected.clear();
            fields.clear();
            fnoption.clear();
            fsoption.clear();
            fselected.clear();
        }
    }
    public void show(){
         fnoption.clear();
        fsoption.clear();
        for(string s:fnotselected){
            selectoption op=new selectoption(s,s);
            fnoption.add(op);
        }
        for(string s1:fselected){
            selectoption op1=new selectoption(s1,s1);
            fsoption.add(op1);
            
        }
        
    }
    public void addfields(){
        fnotselected.removeAll(sfields);
        fselected.addAll(sfields);
        show();
    }
    public void removefields(){
        fnotselected.addAll(rfields);
        fselected.removeAll(rfields);
        show();
    }
    public void querymydata(){
         query ='select id';
        myfields.addAll(fselected);
        for(string s:fselected){
            query=query+','+s;
        }
        query=query + ' from ' + selectedobj;
        mydata=database.query(query);
    }
}

Regards,
Bhanu Mahesh
munna123munna123
k bro thanq very much.... but here the records displayed for selected object are not getting cleared when we select another object.
Bhanu MaheshBhanu Mahesh
You need to clear that list as well
Add mydata.clear() in details() method.

Regards,
Bhanu Mahesh
munna123munna123
hii all... here in the above code, am getting the list of fields in a dropdown. but how can we add checkboxes for the fields instead of dropdown so that by checkin the required fields, we must get the records with slected fields
 
Bhanu MaheshBhanu Mahesh
Hi Nanda Kishore,

Try this

VF Page:
<apex:page controller="dynamic2" >
   <apex:form id="op">
        <apex:pageBlock >
            <apex:pageBlockSection id="od1">
                
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Object List"></apex:outputLabel>
                    <apex:selectList size="1" value="{!selectedobj}">
                        <apex:selectOptions value="{!objects}" ></apex:selectOptions>
                        <apex:actionSupport action="{!details}" event="onchange" rerender="op"/>
                    </apex:selectList>
                </apex:pageBlockSectionItem>
                    </apex:pageBlockSection>
                <br/>
                <br/>
                <br/>         
                <apex:pageBlockSection columns="4" title="Fields List" rendered="{!displayFields}">
               
                      <apex:repeat value="{!lstFldWrapper}" var="wrap">
                            <apex:pageBlockSectionItem >
                            <apex:inputCheckbox value="{!wrap.chck}"/> &nbsp;&nbsp;{!wrap.field} 
                            </apex:pageBlockSectionItem>
                    </apex:repeat> 
                    </apex:pageBlockSection>
                <apex:pageBlockSection rendered="{!displayRecords}">
                <apex:pageBlockSectionItem >
                    <apex:pageBlockTable value="{!mydata}" var="a" >
                        <apex:repeat value="{!myfields}" var="b">
                            <apex:column value="{!a[b]}"/>
                        </apex:repeat>
                    </apex:pageBlockTable>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
            <br/>
            <br/>
            <br/>
            <apex:commandButton value="click" action="{!querymydata}" reRender="op" rendered="{!displayFields}"/>{!query}
        </apex:pageBlock>    
    </apex:form>
</apex:page>

Controller:
public class dynamic2 {
    
    public list<selectoption>objects{set;get;}
    public list<string> sfields{set;get;}
    public list<string> rfields{set;get;}
    public list<string>objlst{set;get;}
    public list<string>fields{set;get;}
    public set<string>fselected{set;get;}
    public map<string,schema.SObjectField> mfields;
    public map<string,schema.SObjectType> mobjects{set;get;}
    public string selectedobj{set;get;}
    public string objdiscription{set;get;}
    public string query{set;get;}
    public list<string>myfields{set;get;} 
    public list<sobject>mydata{set;get;}
    public List<FieldsWrapper> lstFldWrapper{get;set;}
    public Boolean displayFields{get;set;}
    public Boolean displayRecords{get;set;}
    public dynamic2(){
        myfields=new list<string>();
        mydata=new list<sobject>();
        objects=new list<selectoption>();
        objlst=new list<string>();
        sfields=new list<string>();
        rfields=new list<string>();
        fields=new list<string>();
        fselected=new set<string>();
        lstFldWrapper = new List<FieldsWrapper>();
        mobjects=schema.getGlobalDescribe();
        objlst.addall(mobjects.keyset());
            objlst.sort();
        selectoption p=new selectoption('none','-none-');
        objects.add(p);
        objects.add(new selectoption('Account','Account'));
        objects.add(new selectoption('Contact','Contact'));
        objects.add(new selectoption('Lead','Lead'));
        objects.add(new selectoption('Opportunity','Opportunity'));
        
    }
    
    public void details(){
        if(selectedobj !=  'none'){
            displayFields = true;
            displayRecords = false;
            fields.clear();
            fselected.clear();
            mydata.clear();
            lstFldWrapper.clear();
            query = '';
            schema.DescribeSObjectResult mobj=mobjects.get(selectedobj).getDescribe();
            mfields=mobjects.get(selectedobj).getDescribe().fields.getMap();
            fields.addAll(mfields.keySet());
            for(String fld : mfields.keySet()){
                lstFldWrapper.add(new FieldsWrapper(fld));    
            }
        }
        else{
            displayFields = false;
            displayRecords = false;
            fields.clear();
            mydata.clear();
            fselected.clear();
            lstFldWrapper.clear();
        }
    }
    
    public void querymydata(){
         mydata.clear();
         fselected.clear();
         myfields.clear();
         displayRecords = true;
         for(FieldsWrapper fldWrap : lstFldWrapper){
             if(fldWrap.chck){
               fselected.add(fldWrap.field);  
             }
         }
         query ='select id';
        myfields.addAll(fselected);
        for(string s:fselected){
            query=query+','+s;
        }
        query=query + ' from ' + selectedobj;
        mydata=database.query(query);
    }
    
    public class FieldsWrapper{
        public Boolean chck{get;set;}
        public String field{get;set;}
        
        public FieldsWrapper(String fld){
            chck = false;
            field = fld;
        }
    
    }
}

Close the discussion as solved if it meets your requirement

Regards,
Bhanu Mahesh
munna123munna123
thanq very much bro...... its awesome.... a bit ahead am trying to get even the notes and attachmnets for that particilar records.. can we get it?
Bhanu MaheshBhanu Mahesh
Hi Nanda Kishore,

Try below code which will give you Notes and Attachments as well

VF Page
<apex:page controller="dynamic2" >
   <apex:form id="op">
        <apex:pageBlock >
            <apex:pageBlockSection id="od1">
                
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Object List"></apex:outputLabel>
                    <apex:selectList size="1" value="{!selectedobj}">
                        <apex:selectOptions value="{!objects}" ></apex:selectOptions>
                        <apex:actionSupport action="{!details}" event="onchange" rerender="op"/>
                    </apex:selectList>
                </apex:pageBlockSectionItem>
                    </apex:pageBlockSection>
                <br/>
                <br/>
                <br/>         
                <apex:pageBlockSection columns="4" title="Fields List" rendered="{!displayFields}">
               
                      <apex:repeat value="{!lstFldWrapper}" var="wrap">
                            <apex:pageBlockSectionItem >
                            <apex:inputCheckbox value="{!wrap.chck}"/> &nbsp;&nbsp;{!wrap.field} 
                            </apex:pageBlockSectionItem>
                    </apex:repeat> 
                    </apex:pageBlockSection>
                <apex:pageBlockSection rendered="{!displayRecords}">
                <apex:pageBlockSectionItem >
                    <apex:pageBlockTable value="{!mydata}" var="a" >
                        <apex:repeat value="{!myfields}" var="b">
                            <apex:column value="{!a[b]}"/>
                        </apex:repeat>
                    </apex:pageBlockTable>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
            <apex:pageBlockSection title="Note And Attachments" rendered="{!displayRecords}">
                <apex:pageBlockTable value="{!lstNotesAndAttachments}" var="lst">
                    <!-- <apex:column headerValue="Title" value="{!lst.Title}"/> -->
                    <apex:column headerValue="Title">
                        <apex:inputField value="{!lst.Title}"/>
                    </apex:column>
                    <apex:column headerValue="Parent" value="{!lst.ParentId}"/>
                    <apex:column headerValue="Note" value="{!lst.IsNote}"/>
                </apex:pageBlockTable>
            </apex:pageBlockSection>
            <br/>
            <br/>
            <br/>
            <apex:commandButton value="click" action="{!querymydata}" reRender="op" rendered="{!displayFields}"/>{!query}
        </apex:pageBlock>    
    </apex:form>
</apex:page>

Controller
public class dynamic2 {
    
    public list<selectoption>objects{set;get;}
    public list<string> sfields{set;get;}
    public list<string> rfields{set;get;}
    public list<string>objlst{set;get;}
    public list<string>fields{set;get;}
    public set<string>fselected{set;get;}
    public map<string,schema.SObjectField> mfields;
    public map<string,schema.SObjectType> mobjects{set;get;}
    public string selectedobj{set;get;}
    public string objdiscription{set;get;}
    public string query{set;get;}
    public list<string>myfields{set;get;} 
    public list<sobject>mydata{set;get;}
    public List<FieldsWrapper> lstFldWrapper{get;set;}
    public Boolean displayFields{get;set;}
    public Boolean displayRecords{get;set;}
    public List<NoteAndAttachment> lstNotesAndAttachments{get;set;}
    public String msg{get;set;}
    public dynamic2(){
        myfields=new list<string>();
        mydata=new list<sobject>();
        objects=new list<selectoption>();
        objlst=new list<string>();
        sfields=new list<string>();
        rfields=new list<string>();
        fields=new list<string>();
        fselected=new set<string>();
        lstFldWrapper = new List<FieldsWrapper>();
        lstNotesAndAttachments = new List<NoteAndAttachment>();
        mobjects=schema.getGlobalDescribe();
        objlst.addall(mobjects.keyset());
            objlst.sort();
        selectoption p=new selectoption('none','-none-');
        objects.add(p);
        objects.add(new selectoption('Account','Account'));
        objects.add(new selectoption('Contact','Contact'));
        objects.add(new selectoption('Lead','Lead'));
        objects.add(new selectoption('Opportunity','Opportunity'));
        
    }
    
    public void details(){
        if(selectedobj !=  'none'){
            displayFields = true;
            displayRecords = false;
            fields.clear();
            fselected.clear();
            mydata.clear();
            lstNotesAndAttachments.clear();
            lstFldWrapper.clear();
            query = '';
            schema.DescribeSObjectResult mobj=mobjects.get(selectedobj).getDescribe();
            mfields=mobjects.get(selectedobj).getDescribe().fields.getMap();
            fields.addAll(mfields.keySet());
            for(String fld : mfields.keySet()){
                lstFldWrapper.add(new FieldsWrapper(fld));    
            }
        }
        else{
            displayFields = false;
            displayRecords = false;
            fields.clear();
            mydata.clear();
            fselected.clear();
            lstFldWrapper.clear();
            lstNotesAndAttachments.clear();
        }
    }
    
    public void querymydata(){
         mydata.clear();
         fselected.clear();
         myfields.clear();
         lstNotesAndAttachments.clear();
         displayRecords = true;
         for(FieldsWrapper fldWrap : lstFldWrapper){
             if(fldWrap.chck){
               fselected.add(fldWrap.field);  
             }
         }
         query ='select id';
        myfields.addAll(fselected);
        for(string s:fselected){
            query=query+','+s;
        }
        query=query+',' + '(Select Id, Title, ParentId,IsNote From NotesAndAttachments)';    
        query=query + ' from ' + selectedobj;
        mydata=database.query(query);
        
           for(SObject sobj :mydata){
               if(sobj.getSObjects('NotesAndAttachments') != null){
                  List<NoteAndAttachment> ntsAndAttchmnts = (List<NoteAndAttachment>)sobj.getSObjects('NotesAndAttachments');
                  lstNotesAndAttachments.addAll(ntsAndAttchmnts );
               }
           }
    }
    
    public class FieldsWrapper{
        public Boolean chck{get;set;}
        public String field{get;set;}
        
        public FieldsWrapper(String fld){
            chck = false;
            field = fld;
        }
    
    }
}

Close the thread if it meets your requirement

Regards,
Bhanu Mahesh
munna123munna123
ya got it... thanq very much for the response..