• gv007
  • NEWBIE
  • 132 Points
  • Member since 2008
  • Director
  • Cloud Walking LLC

  • Chatter
    Feed
  • 5
    Best Answers
  • 2
    Likes Received
  • 1
    Likes Given
  • 216
    Questions
  • 473
    Replies

Hello,

 

I have written a few test classes for triggers and such, but am having difficulty with my test class for controller extension.  This is how the app works:  There is a VF page with 4 picklists, at least one is required.  Then user presses the Search button, and the extension performs the search (using the values of the picklists in the SOQL). 

 

Here's the code for the class:

 

 

public with sharing class BuyerSupplier {
         
    private ApexPages.StandardController controller {get; set;}
    public List<Buyer__c> searchResults {get;set;}
    public string searchText {get;set;}
  
    public String site {get; set;}
    public String region {get;set;}
    public String division {get;set;}
    public String category {get;set;}
    //public String hiddenSite {get; set;}
    
    public Boolean needsAnd;
 
    // standard controller
    public BuyerSupplier(ApexPages.StandardController controller) {  }
 
    // fired when the search button is clicked
    public PageReference search() {
        
        needsAnd = false;
        
        site = ApexPages.currentPage().getParameters().get('hiddenSite');
        region = ApexPages.currentPage().getParameters().get('hiddenRegion');
        division = ApexPages.currentPage().getParameters().get('hiddenDivision');
        category = ApexPages.currentPage().getParameters().get('hiddenCategory');
        
        //FOR SOME REASON, VALUES OF PICKLISTS ARE COMING OVER AS "__".  IF THAT HAPPENS, REMOVE THEM.
        if(site == '__') site = '';
        if(region == '__') region = '';
        if(division == '__') division = '';
        if(category == '__') category = '';

        
        //FIRST CHECK TO SEE IF AT LEAST ONE FIELD IS COMPLETED
        if((site == '' || site == '__') && (region == '' || region == '__') && (division == '' || division == '__') && (category == '' || category == '')) {
            ApexPages.addmessage(new ApexPages.message(ApexPages.severity.FATAL,'Please make a selection for at least ONE of the fields below.'));
            return null;
        }        
        
        String qry = 'select Buyer__c, Buyer_Email__c, Category__c, Division__c, Region__c, Supplier__c, Site__c, Supplier_URL__c from Buyer__c where ';
        
        if(site != '') {
            if (needsAnd == true) {
                qry = qry + 'and Site__c = \'' + site + '\' ' ;
            }
            
            else {
                qry = qry + 'Site__c = \'' + site + '\' ' ;
                needsAnd = true;
            }
        }
    
        if(region != '') {
            if (needsAnd == true) {
                qry = qry + 'and Region__c = \'' + region + '\' ' ;
            }
            
            else {
                qry = qry + 'Region__c = \'' + region + '\' ' ;
                needsAnd = true;
            }
        }
        
        if(division != '') {
            if (needsAnd == true) {
                qry = qry + 'and Division__c = \'' + division + '\' ';
            }
            
            else {
                qry = qry + 'Division__c = \'' + division + '\' ' ;
                needsAnd = true;
            }
        }
        
        if(category != '') {
            if (needsAnd == true) {
                qry = qry + 'and Category__c = \'' + category + '\' ' ;
            }
            
            else {
                qry = qry + 'Category__c = \'' + category + '\' ' ;
                needsAnd = true;
            }
        }
    
        qry = qry + ' order by Site__c, Region__c, Division__c, Category__c Limit 1000';
        
        searchResults = Database.query(qry);
        return null;
  }
}

 

 

Then here is the code for the Test Class so far.  I get the following error:  Error: Compile Error: Invalid type: BuyerSupplierExt at line 71 column 42.

 

@isTest
private class BuyerSupplier_Test {

        private Buyer__c buyer;  
        
        static testmethod void testSearchBuyers(){
        
            // Create dummy data for test purposes.
            Buyer__c b = new Buyer__c(
                Region__c = 'Americas',
                Site__c = 'Rochester',
                Division__c = 'Vision Care',
                Category__c = 'Advertising',
                Buyer__c = 'Test Buyer',
                Supplier__c = 'Test Supplier');
            
            System.debug('******************Inserting the test buyer record...');
            insert b;
            
            ApexPages.StandardSetController controller = new ApexPages.StandardSetController(b); 
            BuyerSupplierExt bsExt = new BuyerSupplierExt(controller);
    
            //Call controller.search() and assert the list contains the expected records.
            List<Buyer__c> results = bsExt.search();
            //List<Buyer__c> results = [select Region__c, Site__c, Division__c, Category__c, Buyer__c from Buyer__c where Site__c = 'Rochester' and Division__c = 'Vision Care' and Category__c = 'Advertising'];
            
            system.assertEquals(results.size(),1);
    
        }           
}

 

Any help would be appreciated!!

 

Thanks!

Hi,

I’m use Site technology for upload file from Client to Salesfroce. It appears in Case related list Notes and Attachments.

File format is CSV.

 

How can i get content of CSV file and insert a data into Salesforce object

I thought something similar to Select Body from Attachment….and

 

Does somebody has idea how to do it by APEX or via API

 

Thank you

Hi,

My customer has a Professional edition Org where they have a few of our custom objects deployed already. I am doing a project that extends the functionality using Apex Pages and Classes. Since Pro Edition does not allow Apex Classes, I am forced to use a managed package to deploy my changes. 

 

Here lies the issue: My Apex Class refers to those custom objects and hence brings them into the managed package. So, if I install the managed package to their Org, they will have duplicate custom objects (which uses up their object count unnecessarily - they will never use the objects in the managed package - just the Apex functionality is to be used in conjunction with the original custom objects).

 

Is there a way around this?

 

Thanks,

Sridhar

I need a good way to know if I'm in a managed package with a namespace or not.
If I use sforce.connection.query(soql) the query string will be different depending if the page is managed or not.

Example, if I'm in a managed packaged the query string would be
soql = "select myNamespace__myCustomField__c from myNamespace__myCustobObj__c"

but, when I deploy to another server my code becomes unmanaged and the query string needs to be:
soql = "select myCustomField__c from myCustobObj__c"

So, what's a good way to know if the code is managed or not so I can use the correct query string?
I am trying skip particular user in a formula ,but when I applied the condition it blocking all the users.

highlited the part
also in custom lable added the  user in 'user',
 AND(
NOT($User.Username !=$Label.customlabelname),
NOT(ISNEW()),
OR(ISCHANGED([Object.field1),ISCHANGED([object].field2)),
[object].field1=true,
[object].field2!=null,
[object.field2 = false
)
  • April 09, 2020
  • Like
  • 0
I have a unique situation,
I have a 500k records in one table and 100k records in another table, What is the best way to compare the data . I am not sure it is possible using APEX.
  • August 05, 2019
  • Like
  • 0
Hi
I am creating new community and while I am creating community users ,it is assigning the users to old community insted of new community.So what is the issue with it

Old and new community share same profile and permissions vary based on users.

Thanks in advance.
 
  • January 04, 2019
  • Like
  • 0
We are getting suddenly above error in salesforce1 mobile app ,the application is kicking out the user from the app any clues
  • April 21, 2017
  • Like
  • 0
Hello every
today morning onward in a production instance we are getting below error message.It is related to a commandlink  ,we did not understand what is going on,anyone traveling this kind of error

 
  • April 19, 2017
  • Like
  • 0
I am inserting a date value into event object

Event e = new Event();

e.StartDate__c = c.customDate__c;

If i insert today date 

in event object standard layout .I am displaying startdate .it was displaying yesterday.I am in EST time zone last two weeks we are seeing the problem in diff instances

It is was per design or bug

 
  • February 25, 2017
  • Like
  • 0
Hi I have users users are in EST time zone,in a class we are inserting custom date fields date values

while insert/updating the record  lostmodifiedby/createdted by is in user locale time zone,but the custom fields are updating in GMT(PST) time zone.

Any workaround.Salesforce tire2 support also not responding for this .Any one have this issues after Feb1 2017.

Thank you
  • February 24, 2017
  • Like
  • 0
<apex:commandButton id="btn" value="Search" action="{!method}"  oncomplete="onCompleteRefresh();"
                                  onClick="loading();" reRender="frm" />

while I am clicking on the command button oncomplete not invoking javascript function.there is any other way to handle it.
  • February 18, 2017
  • Like
  • 0
I have a commandbutton in a VF page when I clicked in the rendering event form is loaded dueing that time ,below code need to be excutes.

I have some type of code pulling data from two diffrent object.First one not working .Second one is working.In the background in the controller I am seeing in the list I am getting the records two.Any help appriciated 

<div class="dc1" id="d01" style="width: 397px;">
                        <apex:pageBlock id="pb1">
                            
                            <apex:outputPanel id="op1" rendered="{!strWar != null && strWar != ''}">
                              
                              <script type="text/javascript">
                                  
                                    var j$ = jQuery.noConflict();
                                    j$(document).ready(function() {
                                        
                                       var autoCompleteTextBoxId = "input[id$='txtOrderSearch']";
                                     
                                        var queryTerm;
                                       
                                        j$(autoCompleteTextBoxId).autocomplete( {
                                            minLength: 0,
                                            source: function(request, response) {
                                                
                                                queryTerm = request.term;
                                                var sObjects;
                                                var searchText = j$(autoCompleteTextBoxId).val();
                                                var strSel = '{!strWar}';
                                                var strStart = '{!strSDate}';
                                                var strEnd = '{!strEDate}';
                                                Contollerclass.Method(str, strSel, strStart, strEnd, function(result, event) {
                                                    if (event.type == 'exception') {
                                                        alert(event.message);
                                                    } else {
                                                        sObjects = result;
                                                        response(sObjects);
                                                        setDnDJquery();
                                                    }
                                                });
                                            },
                                        })
                                        .data("autocomplete")._renderItem = function(ul, item) {
                                            AddOrder(item);
                                            ul = null;
                                            return j$(null)
                                        };
                                    });

                                   
                                    function AddOrder(item) {
                                        var table = document.getElementById('pbtOrder');
                                        var rowCount = table.rows.length;
                                        var row = table.insertRow(rowCount);
                                        row.className = 'dataRow';
                                        var cell1 = row.insertCell(0);
                                        cell1.className = 'dataCell';

                                        var eleDiv = document.createElement("div");
                                        eleDiv.className = "divOrder";
                                        //eleDiv.tagName = "DIV";
                                        cell1.appendChild(eleDiv);

                                        var eleSpan1 = document.createElement("span");
                                        if (item.Order_c != undefined)
                                            eleSpan1.innerHTML = item.Order__c;
                                        }
                                </script>
                                
                            <apex:inputText id="txtSearch" styleClass="Search" value="{!strOrderSearch}" />
                                <div id="divOLTable" style="overflow-y: auto;">
                                    <apex:pageBlockTable id="pbt" value="{!lstOrders}" var="objOrder" headerClass="pbTaH">
                                        <apex:column >
                                            <div class="divOrder">
                                                <input id="MY_ID" type="hidden" value="{!objOrder.Id}" />
                                                <input id="MY_TYPE" type="hidden" value="ORDER" />
                                                <apex:outputText value="{!objOrder.Order__c}" />
                                            </div>
                                        </apex:column>
                                        
                            </apex:outputPanel>
                        </apex:pageBlock>
                        <input id="MY_TYPE" type="hidden" value="ORDER" />
                    </div>
  • February 06, 2017
  • Like
  • 0
Did anyone facing this error,any idea about it
"NetworkError: 404 Not Found - https://c.cs61.visual.force.com/resource/1476441040000/jQuery181/jquery/images/ui-bg_flat_75_ffffff_40x100.png"
  • October 19, 2016
  • Like
  • 0
We know salesforce.com going to disable TLS1.0 in march in production environment.We hited already sandbox environment

I have a C# integration code ,I used recomeanded URL mentionted in the document ,but it was not working any inputs helpful

Dont post the recomenaded documentation content.

https://help.salesforce.com/HTViewSolution?id=000221207#MSFT

Wht is the work around.
  • August 25, 2016
  • Like
  • 0
There is any way to query  currency fileds using SOQL
  • August 22, 2016
  • Like
  • 1
Hi 
I have 100GB of file data in salesforce ,when i am trying to download all into my work space it cant downloaded any work around.
Thanks
 
  • August 06, 2015
  • Like
  • 0
Here I have a case I want send an encrypted soap message using an http/outbound message to external system for authentication,what is the best way to approach it.
  • August 22, 2014
  • Like
  • 0
Does SF support Message Level Security using X.509 certificates to sign and encrypt a SOAP message?

Any documentation on it helpfull
  • August 20, 2014
  • Like
  • 0
Hi
I am using salesforce sites to create records of a custom object from external user.I am using a  controller ,ther user creates serverl objects data ,in the process I need get third object id to perforum the remaining controller logic.what is the best pratice to get object records ids.


First ---User creates Contact information
next custom object
next custom object details in the forms .I need to get third object id ,how do I get it.

Thanks in advance.
  • July 21, 2014
  • Like
  • 0
HI I have a requriment,I need to generate a pdf file using vf page reder as from multiple object,it is beter option going to using fields sets.If it is single object is is fine .But I have multiple relationships.
Thanks

  • July 18, 2014
  • Like
  • 0
Hi 
I have a requriment that 

I have master Object A
Child B
B have a Child C

I want display  Child object C details   on Master Object A

What are the options
Thanks
















  • June 25, 2014
  • Like
  • 0
Hi 
I am trying to loing to register and login into site it always throughing  "That operation is only allowed from within an active site."


https://URL/apex/SiteRegister

Anything I am missing.
Thanks

  • May 13, 2014
  • Like
  • 0
Hi have issue with connecting SQL server 2000 in commandline dataloder

I added sqljdbc4.jar,sqljdbc.jar file in process.bat file and in the path even tho it says class not found exception
Also here is my bean property
<property name="driverClassName" value="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
<property name="url" value="jdbc:sqlserver:\\localhost;databaseName=DB;user = uname;password=pwd"/>

Still it is not loading.I am wondering which jar file support sqlserver 2000


Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver c
lass 'com.microsoft.jdbc.sqlserver.SQLServerDriver'
        at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(Basic
DataSource.java:1429)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:1371)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:1044)
        at com.salesforce.dataloader.dao.database.DatabaseContext.initConnection
(DatabaseContext.java:80)
        ... 5 more
Caused by: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLSer
verDriver
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(Basic
DataSource.java:1420)
        ... 8 more
  • May 02, 2014
  • Like
  • 0
There is any way to query  currency fileds using SOQL
  • August 22, 2016
  • Like
  • 1
Hi I have an Issues
with upserting Account object data with an externalid field(from other Database System).
1.I have proper Map File
2.My Process and database config filre are correct
3.My Database connection is correct

All are new records coming from external database(Query is correct--It is feacthing external id values from database)

But I am geting below error

2014-04-14 17:40:48,184 ERROR [accUpsert] client.PartnerClient processResult (Pa
rtnerClient.java:435) - Error message:external__Id  not specified.

I specified that external id in the process .xml file
  • April 14, 2014
  • Like
  • 1
I am inserting a date value into event object

Event e = new Event();

e.StartDate__c = c.customDate__c;

If i insert today date 

in event object standard layout .I am displaying startdate .it was displaying yesterday.I am in EST time zone last two weeks we are seeing the problem in diff instances

It is was per design or bug

 
  • February 25, 2017
  • Like
  • 0
<apex:commandButton id="btn" value="Search" action="{!method}"  oncomplete="onCompleteRefresh();"
                                  onClick="loading();" reRender="frm" />

while I am clicking on the command button oncomplete not invoking javascript function.there is any other way to handle it.
  • February 18, 2017
  • Like
  • 0
I am looking for a salesforce certified developer to clean up and complete several projects for large telecom companies.  If you have API experience, experience with Telecom and are USbased I want to speak to you ASAP.

Please contact me ar pkeane@salesreachsoftware.com or 843-321-4216.

Thanks,
Pete Keane
CEO
SalesReach Software, LLC
Hilton Head, SC 
We know salesforce.com going to disable TLS1.0 in march in production environment.We hited already sandbox environment

I have a C# integration code ,I used recomeanded URL mentionted in the document ,but it was not working any inputs helpful

Dont post the recomenaded documentation content.

https://help.salesforce.com/HTViewSolution?id=000221207#MSFT

Wht is the work around.
  • August 25, 2016
  • Like
  • 0
There is any way to query  currency fileds using SOQL
  • August 22, 2016
  • Like
  • 1
I want to know difference between  commandButton and pageBlockButton for interview purpose.

Please suggest some important difference not the salesforce's definition.


Thanks You!

SKT
Hi 
I have 100GB of file data in salesforce ,when i am trying to download all into my work space it cant downloaded any work around.
Thanks
 
  • August 06, 2015
  • Like
  • 0
I have a client that I implemented nightly batch load process for years ago using the dataloader command line interface.  It has worked every night for 7 years without an issue.  They now need to upgrade the server it is running on and at the same time want to upgrade dataloader.  They installed dataloader 34.0 and I cannot get it to connect to salesforce and I am starting to think there is a bug in dataloader 34. 

Here is the error:
 
C:\Program Files (x86)\salesforce.com\Data Loader\bin>process "C:\Program Files (x86)\salesforce.com\Data Loader" tempCont
2015-06-23 11:19:54,373 INFO  [main] controller.Controller initLog (Controller.java:389) - Using built-in logging configuration
\salesforce.com\Data Loader\bin\log-conf.xml
2015-06-23 11:19:54,373 INFO  [main] controller.Controller initLog (Controller.java:391) - The log has been initialized
2015-06-23 11:19:54,373 INFO  [main] process.ProcessConfig getBeanFactory (ProcessConfig.java:103) - Loading process configurat
)\salesforce.com\Data Loader\process-conf.xml
2015-06-23 11:19:54,443 INFO  [main] support.AbstractApplicationContext prepareRefresh (AbstractApplicationContext.java:495) -
ort.FileSystemXmlApplicationContext@13bd574: startup date [Tue Jun 23 11:19:54 PDT 2015]; root of context hierarchy
2015-06-23 11:19:54,474 INFO  [main] xml.XmlBeanDefinitionReader loadBeanDefinitions (XmlBeanDefinitionReader.java:315) - Loadi
/Program Files (x86)/salesforce.com/Data Loader/process-conf.xml]
2015-06-23 11:19:59,029 ERROR [main] process.ProcessConfig getProcessInstance (ProcessConfig.java:96) - Error loading process:
\Program Files (x86)\salesforce.com\Data Loader\process-conf.xml
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from URL [file://C:/Program Fi
s-conf.xml]; nested exception is java.net.UnknownHostException: C
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionRea
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionRea
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionRea
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionRea
        at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.
        at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableAppl
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.jav
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
        at org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:140)
        at org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:84)
        at com.salesforce.dataloader.process.ProcessConfig.getBeanFactory(ProcessConfig.java:105)
        at com.salesforce.dataloader.process.ProcessConfig.getProcessInstance(ProcessConfig.java:93)
        at com.salesforce.dataloader.process.ProcessRunner.getInstance(ProcessRunner.java:287)
        at com.salesforce.dataloader.process.ProcessRunner.getInstance(ProcessRunner.java:273)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:246)
Caused by: java.net.UnknownHostException: C
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.NetworkClient.openServer(Unknown Source)
        at sun.net.ftp.FtpClient.openServer(Unknown Source)
        at sun.net.ftp.FtpClient.openServer(Unknown Source)
        at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source)
        at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(Unknown Source)
        at org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:125)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
        ... 17 more
2015-06-23 11:19:59,045 FATAL [main] process.ProcessRunner topLevelError (ProcessRunner.java:238) - Failed to create process
com.salesforce.dataloader.exception.ProcessInitializationException: Error loading process: tempCont configuration from config f
Data Loader\process-conf.xml
        at com.salesforce.dataloader.process.ProcessConfig.getProcessInstance(ProcessConfig.java:97)
        at com.salesforce.dataloader.process.ProcessRunner.getInstance(ProcessRunner.java:287)
        at com.salesforce.dataloader.process.ProcessRunner.getInstance(ProcessRunner.java:273)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:246)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from URL [file://C:
ader/process-conf.xml]; nested exception is java.net.UnknownHostException: C
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionRea
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionRea
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionRea
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionRea
        at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.
        at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableAppl
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.jav
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
        at org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:140)
        at org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:84)
        at com.salesforce.dataloader.process.ProcessConfig.getBeanFactory(ProcessConfig.java:105)
        at com.salesforce.dataloader.process.ProcessConfig.getProcessInstance(ProcessConfig.java:93)
        ... 3 more
Caused by: java.net.UnknownHostException: C
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.NetworkClient.openServer(Unknown Source)
        at sun.net.ftp.FtpClient.openServer(Unknown Source)
        at sun.net.ftp.FtpClient.openServer(Unknown Source)
        at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source)
        at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(Unknown Source)
        at org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:125)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
        ... 17 more

The error is java.net.UnknownHostException: C

Here is the relevent bean in the process-conf.xml file:
 

        Test upsert
        
        
            
        
    

The reason that I think there is a bug in DL 34 is because I also have DL 30.0.0 installed on my machine and when I change this line in the process.bat file:
 
..\Java\bin\java.exe -cp ..\dataloader-34.0-uber.jar -Dsalesforce.config.dir=%1  com.salesforce.dataloader.process.ProcessRunner %PROCESS_OPTION%

to this:
 
..\Java\bin\java.exe -cp ..\dataloader-30.0.0-uber.jar -Dsalesforce.config.dir=%1  com.salesforce.dataloader.process.ProcessRunner %PROCESS_OPTION%

and keep everything else the same, I don't get the  java.net.UnknownHostException: C  error.  

Can anyone shed any light onto this?

Thanks
I am trying to build a VF page based off a bootstrap template.  This page throws an error in MavensMate, but does not tell the details of the error (syntax maybe?).  Does anyone else see what I'm missing?  Thanks!
<apex:page showHeader="false" sidebar="false" standardStylesheets="false" docType="html-5.0" standardController="Account" recordSetVar="accounts">

<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="" />
    <meta name="author" content="" />
    <link rel="icon" href="../../favicon.ico" />

    <title>Dashboard Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <apex:stylesheet value="{!URLFOR{!Resource.bootstrap,'/css/bootstrap.min.css'}}" />

  </head>

  <body>
<!--
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Project name</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">Dashboard</a></li>
            <li><a href="#">Settings</a></li>
            <li><a href="#">Profile</a></li>
            <li><a href="#">Help</a></li>
          </ul>
          <form class="navbar-form navbar-right">
            <input type="text" class="form-control" placeholder="Search..." />
          </form>
        </div>
      </div>
    </nav>
-->

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
        </div>

        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <h1 class="page-header">Dashboard</h1>
          <h2 class="sub-header">Section title</h2>
          <div class="table-responsive">
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>#</th>
                  <th>Header</th>
                  <th>Header</th>
                  <th>Header</th>
                  <th>Header</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>1,001</td>
                  <td>Lorem</td>
                  <td>ipsum</td>
                  <td>dolor</td>
                  <td>sit</td>
                </tr>
                <tr>
                  <td>1,002</td>
                  <td>amet</td>
                  <td>consectetur</td>
                  <td>adipiscing</td>
                  <td>elit</td>
                </tr>
                <tr>
                  <td>1,003</td>
                  <td>Integer</td>
                  <td>nec</td>
                  <td>odio</td>
                  <td>Praesent</td>
                </tr>
                <tr>
                  <td>1,003</td>
                  <td>libero</td>
                  <td>Sed</td>
                  <td>cursus</td>
                  <td>ante</td>
                </tr>
                <tr>
                  <td>1,004</td>
                  <td>dapibus</td>
                  <td>diam</td>
                  <td>Sed</td>
                  <td>nisi</td>
                </tr>
                <tr>
                  <td>1,005</td>
                  <td>Nulla</td>
                  <td>quis</td>
                  <td>sem</td>
                  <td>at</td>
                </tr>
                <tr>
                  <td>1,006</td>
                  <td>nibh</td>
                  <td>elementum</td>
                  <td>imperdiet</td>
                  <td>Duis</td>
                </tr>
                <tr>
                  <td>1,007</td>
                  <td>sagittis</td>
                  <td>ipsum</td>
                  <td>Praesent</td>
                  <td>mauris</td>
                </tr>
                <tr>
                  <td>1,008</td>
                  <td>Fusce</td>
                  <td>nec</td>
                  <td>tellus</td>
                  <td>sed</td>
                </tr>
                <tr>
                  <td>1,009</td>
                  <td>augue</td>
                  <td>semper</td>
                  <td>porta</td>
                  <td>Mauris</td>
                </tr>
                <tr>
                  <td>1,010</td>
                  <td>massa</td>
                  <td>Vestibulum</td>
                  <td>lacinia</td>
                  <td>arcu</td>
                </tr>
                <tr>
                  <td>1,011</td>
                  <td>eget</td>
                  <td>nulla</td>
                  <td>Class</td>
                  <td>aptent</td>
                </tr>
                <tr>
                  <td>1,012</td>
                  <td>taciti</td>
                  <td>sociosqu</td>
                  <td>ad</td>
                  <td>litora</td>
                </tr>
                <tr>
                  <td>1,013</td>
                  <td>torquent</td>
                  <td>per</td>
                  <td>conubia</td>
                  <td>nostra</td>
                </tr>
                <tr>
                  <td>1,014</td>
                  <td>per</td>
                  <td>inceptos</td>
                  <td>himenaeos</td>
                  <td>Curabitur</td>
                </tr>
                <tr>
                  <td>1,015</td>
                  <td>sodales</td>
                  <td>ligula</td>
                  <td>in</td>
                  <td>libero</td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <script src="../../dist/js/bootstrap.min.js"></script>
    <!-- Just to make our placeholder images work. Don't actually copy the next line! -->
    <script src="../../assets/js/vendor/holder.js"></script>
  </body>
</html>

</apex:page>

 
Here I have a case I want send an encrypted soap message using an http/outbound message to external system for authentication,what is the best way to approach it.
  • August 22, 2014
  • Like
  • 0
HI I have a requriment,I need to generate a pdf file using vf page reder as from multiple object,it is beter option going to using fields sets.If it is single object is is fine .But I have multiple relationships.
Thanks

  • July 18, 2014
  • Like
  • 0
Hi 
I have a requriment that 

I have master Object A
Child B
B have a Child C

I want display  Child object C details   on Master Object A

What are the options
Thanks
















  • June 25, 2014
  • Like
  • 0
Hi have issue with connecting SQL server 2000 in commandline dataloder

I added sqljdbc4.jar,sqljdbc.jar file in process.bat file and in the path even tho it says class not found exception
Also here is my bean property
<property name="driverClassName" value="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
<property name="url" value="jdbc:sqlserver:\\localhost;databaseName=DB;user = uname;password=pwd"/>

Still it is not loading.I am wondering which jar file support sqlserver 2000


Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver c
lass 'com.microsoft.jdbc.sqlserver.SQLServerDriver'
        at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(Basic
DataSource.java:1429)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:1371)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:1044)
        at com.salesforce.dataloader.dao.database.DatabaseContext.initConnection
(DatabaseContext.java:80)
        ... 5 more
Caused by: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLSer
verDriver
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(Basic
DataSource.java:1420)
        ... 8 more
  • May 02, 2014
  • Like
  • 0
Hi There any free salesforce health checking tools and recomanded tools and process.

Thanks
  • March 12, 2014
  • Like
  • 0
We are looking for an independent expert to do a review of code for a copyright and trade secret lawsuit in US Federal Court.  If you have experience with APEX, Visualforce, and packaging and have been an expert in a Federal court case, please contact us.

Hi All,

I am getting below exception when downloading the force.com project.

 

below is the message:

 

Exception happened when resolving component type(s), so no component

will be added to the package manifest editor for these types.

*SamlSsoConfig

See log for detail exception message.

 


Thanks,

Hi

I want update only one field  edit in a object and the remaining fields are readonly.How to achieve this one.

 

 

I can make readonly ------->Giving readonly permission to that objet

 

But---->I want only one can make edit and update by the users.

 

Any idea welcome.

 

Thanks

 

  • August 27, 2013
  • Like
  • 0

Hi All

I have a custom field in standard object .We are using it in diffrent page layouts.But we want change the label name in each page layout with anohter name.It is possble using custom code.

 

Any ideas are welcome.

 

Thanks'

 

  • July 16, 2013
  • Like
  • 0

Hi Somebody can post the summer 13 release notes.In the documentation section the release notes can't opned correctly.Salesforce support can help us posting correct PDF file.

 

https://na1.salesforce.com/help/doc/en/salesforce_summer13_release_notes.pdf

  • May 15, 2013
  • Like
  • 0

Today we’re excited to announce the new Salesforce Developers Discussion Forums. We’ve listened to your feedback on how we can improve the forums.  With Chatter Answers, built on the Salesforce1 Platform, we were able to implement an entirely new experience, integrated with the rest of the Salesforce Developers site.  By the way, it’s also mobile-friendly.

We’ve migrated all the existing data, including user accounts. You can use the same Salesforce account you’ve always used to login right away.  You’ll also have a great new user profile page that will highlight your community activity.  Kudos have been replaced by “liking” a post instead and you’ll now be able to filter solved vs unsolved posts.

This is, of course, only the beginning  and because it’s built on the Salesforce1 Platform, we’re going to be able to bring you more features faster than ever before.  Be sure to share any feedback, ideas, or questions you have on this forum post.

Hats off to our development team who has been working tirelessly over the past few months to bring this new experience to our community. And thanks to each of you for helping to build one of the most vibrant and collaborative developer communities ever.