• catchforshiva
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 12
    Replies

Hi,
I have an Account1 record under that i have 10 Contacts.
I want tow display contacts in flow charts like in attched document.
i m getting contacts records List<Contact> con{get;set;} like

public List<Contact> getAllContacts(){
try{
con=[SELECT Name FROM Contact where Account1_C='AccID']; 
return con;
}catch(Exception e){
return null;
}
}
In Page i m using <apex:repeat> i m displaying in all values.

But it need in 1st row only 7 contacts after reverse order in need display contacts,for last record i don't want arrow image.

How to do in salesforce,I know in JSP how to do using loop


how to pre populate more than 100 fields without passing URL?

 

Hi ....

 

 

my questions ?

 

When you are click the commandLink (that is Contact Name), i want display the Contact

record details.

 

When I'm trying this, it only refreshing, but it is not redirect to the Contact records details. The code is below once's check it.

 

Could you plz let me know this scenario...

 

 

Thanks & Regards

Shiva.

 

 

 

Visualforce Page:
     

<apex:page standardController="Contact" recordSetVar="cons" extensions="pagecls">

<apex:form >

<apex:pageblock id="pb"> 

 

<apex:pageblocktable value="{!cons}" var="c">

 

<apex:column headerValue="Name"> 

        <apex:commandLink value="{!c.name}">               

            <apex:param value="{!c.Id}" name="q"/>           

        </apex:commandLink>      

</apex:column>

        

        <apex:column value="{!c.Phone}"/>
        <apex:column value="{!c.fax}"/>

</apex:pageblockTable> <br></br>

 

<apex:commandButton value="Previous" rendered="{!hasPrevious}" action="{!previous}" reRender="pb"/>&nbsp;&nbsp; &nbsp;&nbsp;

<apex:commandButton value="Next" rendered="{!hasNExt}" action="{!next}" reRender="pb"/>

 

</apex:pageblock>

</apex:form>

</apex:page>

 

 

Apex Class:

 

public with sharing class pagecls {

public pagecls(ApexPages.StandardSetController controller) {

controller.setPageSize(5);

}  }

Hi guys....

 

 

 

How to Using Multiple Currencies in International Organizations? and with example?

 

replay this Question.

 

Thanks & Regards

Shiva

 

Parent Object:

 

PName: (Primary field)

price:

county:

customerID:(child lookup field)


Given the above record on the parent object, I want the following records to be automatically created on the child object:

 

Child Object:

 

customerID:

customerName:

Address:

Tprice:

 
How to archive this ?

Hi,


I was created " Bike Sells" customer object.
In this object i was created three fields.


1. Bike Model: Datatype (picklist)
2. Customer: Name datatype (Text)
3. Cost: datatype(Number)

My requirement is when i was select the 'Bike model' picklist values
click to submite the command button,i want to dispaly
the Customer Name, Cost  and Date Details of the paticuler Bike model piclist value.

 

Example: I select Picklist value: AUDI,It displays Audi car related customer Name and Cost.

 

How to find this problem?

 

 

 

 

 

 Code:


Visualforce:

 

<apex:page standardController="Car_Sells__c" recordSetVar="cs" extensions="stateExtension" sidebar="false">
    <apex:form >
        <apex:sectionHeader title="Car Sells Details"/>
        <apex:pageBlock title="Car Sells" mode="edit">
            <apex:pageBlockSection columns="1" showHeader="false">
                <apex:panelGroup >
                     <apex:outputLabel value="Select Car Model" for="accts" rendered="true"></apex:outputLabel>&nbsp;&nbsp;&nbsp;&nbsp;
                            <apex:selectList id="accts" value="{!Car_Sells__c.Car_Model__c}" size="1" title="Select State">
                                <apex:selectOptions value="{!accts}"></apex:selectOptions>
                            </apex:selectList>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                   <apex:commandButton action="{!doSearch}" value=" Show Customer Details" > </apex:commandButton>                    
                </apex:panelGroup>
            </apex:pageBlockSection><br/><br/><br/>
<apex:pageBlocksection colums="1" id="results">
<apex:pageBlockTable value="{!results}" var="item">
<apex:column value="{!item.Name}"/>
<apex:column value="{!item.Cost__c}"/>
<apex:column value="{!item.Date__c}"/>
</apex:pageBlockTable>
</apex:pageBlocksection>
</apex:pageBlock>
</apex:form>
</apex:page>

 

Apex code:

 

public class stateExtension {
    String accts;
   
    private final Car_Sells__c c; //User sobject
    
    //initializes the private member variable u by using the getRecord method from the standard controller
    
    public stateExtension(ApexPages.StandardSetController Controller) {
    
        this.c = (Car_Sells__c)Controller.getRecord();

    }
    
    //builds a picklist of Car_Sells__c  names based on their Car_Model__c
    public List<selectOption> getaccts() {

        List<selectOption> options = new List<selectOption>();
//new list for holding all of the picklist options
        options.add(new selectOption('', '- None -'));
//add the first option of '- None -' in case the user doesn't want to select a value or in case no values are returned from query below
        for (Car_Sells__c m : [SELECT Id, Name, Car_Model__c, Date__c FROM Car_Sells__c]) {
//query for Car_Sells__c records
            options.add(new selectOption(m.id, m.Car_Model__c));
//for all records found - add them to the picklist options
        }
        return options; //return the picklist options
    }

List<Car_Sells__c> mktsys;
   public void setAccts(String s) {
      accts =s;
   }
   public List<Car_Sells__c> getMktsys() {
      return mktsys;
   }
   public PageReference doSearch() {
      // Search by Exactly word
     mktsys = (List<Car_Sells__c>)[SELECT Id, Name, Cost__c FROM Car_Sells__c WHERE Car_Model__c =:accts];
 
       String qryString = 'SELECT Id, Name, Cost__c FROM Car_Sells__c WHERE Car_Model__c = :accts';
     mktsys = Database.query(qryString);
      return null;
   }

}

 

 

 

 

 

 

 

 

Thanks & Regards

SHIVA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi Friends

 

 

How to Insert path of the zipfile in build.propertis?

 

#sf.zipFile = <Insert path of the zipfile to be retrieved>

 

How to fine the zipfile path in salesforce.com?

 

 

Thanks

 

Shiva...

Hi Fridends...

 

 

How to Generate Barcode program in apex and Visualforce?

 

 

 

Thanks & Regards

Shiva...

Hi,
I have an Account1 record under that i have 10 Contacts.
I want tow display contacts in flow charts like in attched document.
i m getting contacts records List<Contact> con{get;set;} like

public List<Contact> getAllContacts(){
try{
con=[SELECT Name FROM Contact where Account1_C='AccID']; 
return con;
}catch(Exception e){
return null;
}
}
In Page i m using <apex:repeat> i m displaying in all values.

But it need in 1st row only 7 contacts after reverse order in need display contacts,for last record i don't want arrow image.

How to do in salesforce,I know in JSP how to do using loop


 

Hi ....

 

 

my questions ?

 

When you are click the commandLink (that is Contact Name), i want display the Contact

record details.

 

When I'm trying this, it only refreshing, but it is not redirect to the Contact records details. The code is below once's check it.

 

Could you plz let me know this scenario...

 

 

Thanks & Regards

Shiva.

 

 

 

Visualforce Page:
     

<apex:page standardController="Contact" recordSetVar="cons" extensions="pagecls">

<apex:form >

<apex:pageblock id="pb"> 

 

<apex:pageblocktable value="{!cons}" var="c">

 

<apex:column headerValue="Name"> 

        <apex:commandLink value="{!c.name}">               

            <apex:param value="{!c.Id}" name="q"/>           

        </apex:commandLink>      

</apex:column>

        

        <apex:column value="{!c.Phone}"/>
        <apex:column value="{!c.fax}"/>

</apex:pageblockTable> <br></br>

 

<apex:commandButton value="Previous" rendered="{!hasPrevious}" action="{!previous}" reRender="pb"/>&nbsp;&nbsp; &nbsp;&nbsp;

<apex:commandButton value="Next" rendered="{!hasNExt}" action="{!next}" reRender="pb"/>

 

</apex:pageblock>

</apex:form>

</apex:page>

 

 

Apex Class:

 

public with sharing class pagecls {

public pagecls(ApexPages.StandardSetController controller) {

controller.setPageSize(5);

}  }

Parent Object:

 

PName: (Primary field)

price:

county:

customerID:(child lookup field)


Given the above record on the parent object, I want the following records to be automatically created on the child object:

 

Child Object:

 

customerID:

customerName:

Address:

Tprice:

 
How to archive this ?

Hi,


I was created " Bike Sells" customer object.
In this object i was created three fields.


1. Bike Model: Datatype (picklist)
2. Customer: Name datatype (Text)
3. Cost: datatype(Number)

My requirement is when i was select the 'Bike model' picklist values
click to submite the command button,i want to dispaly
the Customer Name, Cost  and Date Details of the paticuler Bike model piclist value.

 

Example: I select Picklist value: AUDI,It displays Audi car related customer Name and Cost.

 

How to find this problem?

 

 

 

 

 

 Code:


Visualforce:

 

<apex:page standardController="Car_Sells__c" recordSetVar="cs" extensions="stateExtension" sidebar="false">
    <apex:form >
        <apex:sectionHeader title="Car Sells Details"/>
        <apex:pageBlock title="Car Sells" mode="edit">
            <apex:pageBlockSection columns="1" showHeader="false">
                <apex:panelGroup >
                     <apex:outputLabel value="Select Car Model" for="accts" rendered="true"></apex:outputLabel>&nbsp;&nbsp;&nbsp;&nbsp;
                            <apex:selectList id="accts" value="{!Car_Sells__c.Car_Model__c}" size="1" title="Select State">
                                <apex:selectOptions value="{!accts}"></apex:selectOptions>
                            </apex:selectList>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                   <apex:commandButton action="{!doSearch}" value=" Show Customer Details" > </apex:commandButton>                    
                </apex:panelGroup>
            </apex:pageBlockSection><br/><br/><br/>
<apex:pageBlocksection colums="1" id="results">
<apex:pageBlockTable value="{!results}" var="item">
<apex:column value="{!item.Name}"/>
<apex:column value="{!item.Cost__c}"/>
<apex:column value="{!item.Date__c}"/>
</apex:pageBlockTable>
</apex:pageBlocksection>
</apex:pageBlock>
</apex:form>
</apex:page>

 

Apex code:

 

public class stateExtension {
    String accts;
   
    private final Car_Sells__c c; //User sobject
    
    //initializes the private member variable u by using the getRecord method from the standard controller
    
    public stateExtension(ApexPages.StandardSetController Controller) {
    
        this.c = (Car_Sells__c)Controller.getRecord();

    }
    
    //builds a picklist of Car_Sells__c  names based on their Car_Model__c
    public List<selectOption> getaccts() {

        List<selectOption> options = new List<selectOption>();
//new list for holding all of the picklist options
        options.add(new selectOption('', '- None -'));
//add the first option of '- None -' in case the user doesn't want to select a value or in case no values are returned from query below
        for (Car_Sells__c m : [SELECT Id, Name, Car_Model__c, Date__c FROM Car_Sells__c]) {
//query for Car_Sells__c records
            options.add(new selectOption(m.id, m.Car_Model__c));
//for all records found - add them to the picklist options
        }
        return options; //return the picklist options
    }

List<Car_Sells__c> mktsys;
   public void setAccts(String s) {
      accts =s;
   }
   public List<Car_Sells__c> getMktsys() {
      return mktsys;
   }
   public PageReference doSearch() {
      // Search by Exactly word
     mktsys = (List<Car_Sells__c>)[SELECT Id, Name, Cost__c FROM Car_Sells__c WHERE Car_Model__c =:accts];
 
       String qryString = 'SELECT Id, Name, Cost__c FROM Car_Sells__c WHERE Car_Model__c = :accts';
     mktsys = Database.query(qryString);
      return null;
   }

}

 

 

 

 

 

 

 

 

Thanks & Regards

SHIVA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi Friends

 

 

How to Insert path of the zipfile in build.propertis?

 

#sf.zipFile = <Insert path of the zipfile to be retrieved>

 

How to fine the zipfile path in salesforce.com?

 

 

Thanks

 

Shiva...

Hi Fridends...

 

 

How to Generate Barcode program in apex and Visualforce?

 

 

 

Thanks & Regards

Shiva...

Hi All,

 

I have created a Record Type for Opportunities. I have decided against using a Record Type so I now want to delete it.

I clicked Del and it lists the profiles that are using the RT. I have edited each profile, resetting the Record Type back to Master.

 

This works except for Standard Platform User. This profile does not have an option to set the RT for the Opportunities object. Opportunities is not listed at all for this profile.

 

I am now stuck with an unwanted RT. I can't delete it as SF says the profile is using it as the default.

 

Any ideas?

 

Thanks.

 

 

- Andy