• crazycloud
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 4
    Replies

Hi,

does anybody have idea that how many Profiles and Roles we can create maximum in a Salesforce org?

Does the limit is different for different editions?

Hi,

I want to create a new Contact creation page in VF from Apex custom Controller. I don't want to hardcode the object name Contact and field names in VF page.

Can anybody help me?

 

 

 

 

 

Hi,

I am trying to run Ant Tool. I have followed  the below steps.

 

Installation

  1. Download Apache Ant, version 1.6 or newer.
  2. To ensure that the appropriate environment variables are set for Ant, follow the instructions in Installing Ant.
  3. From the distribution zip file, copy ant-salesforce.jar into your Ant installation lib/ directory.
  4. If your network requires an HTTP proxy, follow the instructions in Proxy Configuration.

Deploying Sample Metadata

  1. Go to the sample subdirectory.
  2. Open the build.properties file and substitute a valid Salesforce username and password. If you are using a security token, paste the 25-digit token value to the end of your password. (Note: A Sandbox or Developer Edition organization is strongly recommended for testing).
  3. Open a command shell and navigate to the sample subdirectory.
  4. Run ant test. This will deploy sample metadata into your Salesforce organization and retrieve it again into a local directory. The sample build.xml contains other targets illustrating various deploy and retrieve options.

  

In command prompt I have reached till sample directory. Now how can I run “ant test”? There is nothing called “ant test” in the given salesforce zip file.

D:\Softwares\salesforce.com\Ant tool\sample> 

 

Can anybody help me?

 

Hi,

I have a txt file in my system in D:\MyDocs\test.txt. I want to open this file from a custom link. How can I do this?

 

Please help me if anybody has idea.

 

Hi,

   I created Page for custom save controller. my page apex code given below...

 

<apex:page controller="newOpportunityController11" tabStyle="Account">
<apex:form >
<apex:pageBlock title="Congratulations">
<apex:inputField value="{!Invoice.Name}"/>
<apex:inputField value="{!Invoice.Line_Item__c}"/>
<apex:inputField value="{!Invoice.Pay_by_Date__c}"/>
<apex:inputField value="{!Invoice.Total_Amount__c}"/>
<apex:inputField value="{!Invoice.Client_Name__c}"/>
<apex:inputField value="{!Invoice.Invoice_Status__c}"/>
<apex:commandButton action="{!save}" value="Save"/>
<apex:commandButton action="{!cancel}" value="Cancel"/>
</apex:pageBlock>
</apex:form>
</apex:page>
and my apex class is...
public class newOpportunityController11
 {  
Opportunity opportunity;
public Invoice__c invoice{ get; set; }
public Opportunity getOpportunity() {
//if(opportunity == null) opportunity = new Opportunity();
return opportunity;
}
public Invoice__c getinvoice() {
//if(Invoice == null) Invoice = new Invoice__c();
Id id = ApexPages.currentPage().getParameters().get('id');
invoice= [SELECT Client_Name__c,Invoice_Status__c,Line_Item__c,Pay_by_Date__c,Total_Amount__c FROM Invoice__c WHERE id = :id];
return invoice;
}
public PageReference cancel() {
PageReference opportunityPage = new ApexPages.StandardController(opportunity).view();
opportunityPage.setRedirect(true);
return opportunityPage;
}
public PageReference save() 
{
update invoice;
return null;
}
}
the above page and class was successfully save without error... and then when i run this page and enter the data then click save button the error given below error is occur...
System.NullPointerException: Attempt to de-reference a null object

 

Class.newOpportunityController11.save: line 47, column 8 External entry point
How to solve this....pls help

 

 

 

 

 

  • January 25, 2011
  • Like
  • 0

Hi,

I want to create a new Contact creation page in VF from Apex custom Controller. I don't want to hardcode the object name Contact and field names in VF page.

Can anybody help me?

 

 

 

 

 

Hi,

I have a txt file in my system in D:\MyDocs\test.txt. I want to open this file from a custom link. How can I do this?

 

Please help me if anybody has idea.