• jayam
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 27
    Questions
  • 17
    Replies

Hi

 

I need to send an argument to retrieveRequest.setSpeificFiles(); in MetaData Api  through java to Salesforce .what files can i pass to this .Please Tell me with an example and with Syntax.

 

Actually I dont know what are files in salesforce Organization.

 when I give Apex Classes,reports etc , it does not accept because they are treated as Components.

 

What Ca I do?

 

Please tell me

 

thanks in Advance.

 

 

  • July 11, 2011
  • Like
  • 0

Hi

 

I have a problem when using MetaData Api

I have created a project in eclipse and I placed all jar files

metadata.jar

enterprise.jar

wsc-20.jar

while running it asks username and password I gave

Succefully Login

Acc.to pdf Code it asks Choices 1 retrieve

                                                             2.deploy etc

 

when I seelct any of these options it give java.lang.Exception: Should provide a valid retrieve manifest for unpackaged content. Acc.to pdf I cant understacd wat is manifest file and what it should Contain and where it should be placed . Please tell me.

 I placed package.xml which i got from force.com IDE in Src directory of Current Application .

 

Please Let me know how can i deal with this package.xml

 

I can't understand the pdf.

 

Please reply me

 its urgenttt

 

Thanks

 

 

 

  • July 11, 2011
  • Like
  • 0

Hi

 

I want to save the result of 

 

<apex:selectCheckboxes value="{!countries}">
            <apex:selectOptions value="{!items}"/>
        </apex:selectCheckboxes><br/>

 

in a String.

 

Here i need to save that String value in a Custom object field.

 

How can I do this

 

help me Plzzzzzzzzzz

  • June 23, 2011
  • Like
  • 0

Hi All

 

Is it Possible to do Field Level Security through Apex?

 

if Possible Please  share with me .

 

 

thankssssssssssss

  • May 19, 2011
  • Like
  • 0

Hi,

 

How can I manage /Access /Update 100 millions of records in Apex .

 

Is it Possible using Batch Apex?

 

I think batch apex can Process 50 millions of records.

 

how can I do this?

 

any help?

 

Thanks

 

 

  • May 04, 2011
  • Like
  • 0

 

hi,

        I got an error named 'Unknown property 'SObject.name' 'when Accessing the list<sobject > in my vf page .

 

Here is my code .

 

in Apex class

 

list<sobject> get names(){

list<sobject> objlist=[select name from Contact];

return objlist;

}

 

in vf page

<apex:datatable value="{!names}"  var="a" >

<apex:column>{!a.name}</apex:column>

</apex:datatable>

 

 

 what can I do?

 

thanks........

 

 

 

 

  • April 28, 2011
  • Like
  • 0

hi,

 

I want to connect to Salesforce using JPA like JPA to oracle.

how can do this ?

 

I want this With out using the concept of VMforce .

 

is this possible to connect to salesforce using JPA with out  vmforce  is Possible or not?

 

is there any code sample please send me.

 

Pleas tell me , it's urgent........

 

Thanks

  • April 08, 2011
  • Like
  • 0

hi

 

I get the following Exception when  run my test class.

 

 

My test class code is

 

 

 

 

@isTest
private class Testinglead{

    static testmethod void testingowner(){
    
         Group g = new Group(Type='Queue', Name='Queue name');
        insert g;

        QueueSObject q = new QueueSObject(SobjectType='Lead', QueueId=g.Id);
        insert q;
            
          
               Lead obj=new Lead();
          obj.Lastname='XYZ';
          obj.Company='Appshark';
          obj.Description='xx';
                insert obj;
     
          obj.Lastname='XY';
          obj.Company='Appshark';
          obj.Description='xx';
          obj.ownerid=q.Id;
          obj.ownername__c='Charan Vuyyur';
          update obj;
     
     }
}

 

 

The Exception is:

 

 

 

System.DmlException: Insert failed. First exception on row 0; first error: MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): QueueSobject, original object: Lead: []

 

 

how can I solve this ?

Is it possible to solve or not?

 

Please Help me?

it's urgent.

 

 

 

  • March 26, 2011
  • Like
  • 1

 

                                After I  watched the demo video of the VMforce, i found that my account does not have the vmforce for java in the Deployment. Do i need to have a special vmforce accout to get access?

  • March 17, 2011
  • Like
  • 0

Hi,

 

I want to use the feature Vmforce.

for that one I install spring source tool suiteand

to drag and our application in vm force we need vm force1.0 server ,how can get that one in spring source tool suite (IDE)

 

Please help me

 

Thanks in Advanse.

  • March 17, 2011
  • Like
  • 0

we have a check box we want to place it in TAsk Layout.

 

 

Can we make it function as Notification email feature on the Task Layout.

 

 

I dont want it in the view mode, but it should only display it in the edit mode.

 

 

 

  • February 08, 2011
  • Like
  • 0

hi

     I get all all the objects in a selectlist. Based on selected object in the picklist all the field values are displyed in another selectlist . when we select a field in the select list  i want to set a value to that field .i set the value to that field by using put method in dynamic apex but i dont know how to save /update the value in object  when I use update /insert command exception thrown

 

 

Mycode is

 

 if(selobject!=null && getfieldnames!=null){
            SObjectType objToken = Schema.getGlobalDescribe().get(selobject);      
            DescribeSObjectResult objDef = objToken.getDescribe();                    
            Map<String, SObjectField> fieldmap = objDef.fields.getMap();
            
            SObjectField fieldToken = fieldmap.get(getfieldnames);
            DescribeFieldResult selectedField = fieldToken.getDescribe();
            sName=string.valueOf(selectedfield);
             string squery=' select ' + fieldtoken + ' from ' + objtoken + ' limit 1 ';
            sobject s=Database.query(squery);
            string sName1=string.valueof(fieldtoken);
            string sVar='hello';
            
            s.put(sName1,svar);

             object o=s.get(sName1);
            sName=string.valueof(o);
            //insert s;
          }//end of if

 

 

please help me

 

 

  • January 28, 2011
  • Like
  • 0

plz send me an example with the usage of

<apex:param >in <apex:actionfunction> and

<apex:commandbutton>

  • January 21, 2011
  • Like
  • 0

hi

 

 i want to display the detail page when  i click on a row in the datatable.

but here we should not write onclick function

for all the columns in row, we have to mention only one time that onclick function and also detail page should be dislayed when we click on any column in that row

 

how can do this?

 

thanks in advance...

 

  • January 18, 2011
  • Like
  • 0

hi

 

Why can't we use SoSL in Triggers.

 Thanks In advance

  • January 11, 2011
  • Like
  • 0

I have two picklists one is country and other is states

based on country value we selected ,the corresponding states values should be displayed

this can be done by using standard controller but here i m using schema object to get picklit values from object

and all the values of states are displayed irrespective of the country value we selected

 

 

 

what can i do ?

 

Thanks in advance.....

  • January 11, 2011
  • Like
  • 0

 i want to convert the set <string> to list<string>

how can do i  this

 

           Thanks in advance

 

 

 

 

 

 

 

  • January 08, 2011
  • Like
  • 0

 i have two sets with  string values

now  i want to compare the first set to the other and the value which is  there in the second set and not in first set  should be added to   the another list 

how can i do this

 plz help me

my code is like this

 

 for(integer i=1;i<s1.size();i++)
         {
          if((city.contains(s1[i]) == false)
            lstobj.add(s1[i]);
         }

here s1 and city are sets and lstobj is list object.

 

 

 Thanks in advance.....................

  • January 06, 2011
  • Like
  • 0

 i want use schema object

plz give me reference

  • January 06, 2011
  • Like
  • 0

 i create a map that contains list of values of different fields

now i want to add the all the values of one field in to a set

how can do this?

 

help me please...........

  • January 05, 2011
  • Like
  • 0

hi

 

I get the following Exception when  run my test class.

 

 

My test class code is

 

 

 

 

@isTest
private class Testinglead{

    static testmethod void testingowner(){
    
         Group g = new Group(Type='Queue', Name='Queue name');
        insert g;

        QueueSObject q = new QueueSObject(SobjectType='Lead', QueueId=g.Id);
        insert q;
            
          
               Lead obj=new Lead();
          obj.Lastname='XYZ';
          obj.Company='Appshark';
          obj.Description='xx';
                insert obj;
     
          obj.Lastname='XY';
          obj.Company='Appshark';
          obj.Description='xx';
          obj.ownerid=q.Id;
          obj.ownername__c='Charan Vuyyur';
          update obj;
     
     }
}

 

 

The Exception is:

 

 

 

System.DmlException: Insert failed. First exception on row 0; first error: MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): QueueSobject, original object: Lead: []

 

 

how can I solve this ?

Is it possible to solve or not?

 

Please Help me?

it's urgent.

 

 

 

  • March 26, 2011
  • Like
  • 1
i have 100% codecoverage for Testclass in Developer Sandbox but when i push to Production it fails, can any one know this?
System.Query Exception: No Such column 'Shipping Address' found in Account.

In production we have Bill On and Zendesk Managed Packages.

Hello all,

 

I am currently re-vamping our Customer Portal and creating custom Visualforce pages for Cases, Ideas, etc. I was able to create the Case page and controller with no problem. I am also able to create the Ideas page and controller.

 

The one major issue I am having is that I am not sure how to "re-use" the Promote and Demote functionality. Does anyone have any experience with re-using this functionality in a custom Visualforce page? I want to give users the ability to vote on an Idea....but only one time per user....same as current functionality.

 

I know the functionality is in the ideaList.apexp page, but I don't know how to re-purpose it in my own page.

 

Thanks,

Jeff

Hi All

 

Is it Possible to do Field Level Security through Apex?

 

if Possible Please  share with me .

 

 

thankssssssssssss

  • May 19, 2011
  • Like
  • 0

Hi,

 

How can I manage /Access /Update 100 millions of records in Apex .

 

Is it Possible using Batch Apex?

 

I think batch apex can Process 50 millions of records.

 

how can I do this?

 

any help?

 

Thanks

 

 

  • May 04, 2011
  • Like
  • 0

 

hi,

        I got an error named 'Unknown property 'SObject.name' 'when Accessing the list<sobject > in my vf page .

 

Here is my code .

 

in Apex class

 

list<sobject> get names(){

list<sobject> objlist=[select name from Contact];

return objlist;

}

 

in vf page

<apex:datatable value="{!names}"  var="a" >

<apex:column>{!a.name}</apex:column>

</apex:datatable>

 

 

 what can I do?

 

thanks........

 

 

 

 

  • April 28, 2011
  • Like
  • 0

hi

 

I get the following Exception when  run my test class.

 

 

My test class code is

 

 

 

 

@isTest
private class Testinglead{

    static testmethod void testingowner(){
    
         Group g = new Group(Type='Queue', Name='Queue name');
        insert g;

        QueueSObject q = new QueueSObject(SobjectType='Lead', QueueId=g.Id);
        insert q;
            
          
               Lead obj=new Lead();
          obj.Lastname='XYZ';
          obj.Company='Appshark';
          obj.Description='xx';
                insert obj;
     
          obj.Lastname='XY';
          obj.Company='Appshark';
          obj.Description='xx';
          obj.ownerid=q.Id;
          obj.ownername__c='Charan Vuyyur';
          update obj;
     
     }
}

 

 

The Exception is:

 

 

 

System.DmlException: Insert failed. First exception on row 0; first error: MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): QueueSobject, original object: Lead: []

 

 

how can I solve this ?

Is it possible to solve or not?

 

Please Help me?

it's urgent.

 

 

 

  • March 26, 2011
  • Like
  • 1

hi

     I get all all the objects in a selectlist. Based on selected object in the picklist all the field values are displyed in another selectlist . when we select a field in the select list  i want to set a value to that field .i set the value to that field by using put method in dynamic apex but i dont know how to save /update the value in object  when I use update /insert command exception thrown

 

 

Mycode is

 

 if(selobject!=null && getfieldnames!=null){
            SObjectType objToken = Schema.getGlobalDescribe().get(selobject);      
            DescribeSObjectResult objDef = objToken.getDescribe();                    
            Map<String, SObjectField> fieldmap = objDef.fields.getMap();
            
            SObjectField fieldToken = fieldmap.get(getfieldnames);
            DescribeFieldResult selectedField = fieldToken.getDescribe();
            sName=string.valueOf(selectedfield);
             string squery=' select ' + fieldtoken + ' from ' + objtoken + ' limit 1 ';
            sobject s=Database.query(squery);
            string sName1=string.valueof(fieldtoken);
            string sVar='hello';
            
            s.put(sName1,svar);

             object o=s.get(sName1);
            sName=string.valueof(o);
            //insert s;
          }//end of if

 

 

please help me

 

 

  • January 28, 2011
  • Like
  • 0

I have two picklists one is country and other is states

based on country value we selected ,the corresponding states values should be displayed

this can be done by using standard controller but here i m using schema object to get picklit values from object

and all the values of states are displayed irrespective of the country value we selected

 

 

 

what can i do ?

 

Thanks in advance.....

  • January 11, 2011
  • Like
  • 0

 i have two sets with  string values

now  i want to compare the first set to the other and the value which is  there in the second set and not in first set  should be added to   the another list 

how can i do this

 plz help me

my code is like this

 

 for(integer i=1;i<s1.size();i++)
         {
          if((city.contains(s1[i]) == false)
            lstobj.add(s1[i]);
         }

here s1 and city are sets and lstobj is list object.

 

 

 Thanks in advance.....................

  • January 06, 2011
  • Like
  • 0

Hi, all. I'm wondering about integration between on-premise Java application and Force.com application.
I watched VMForce webinar, in it's demo, web app deployed on local tcServer connected to Force.com DB using JPA. (but development purpose)

 

Is it possible that integrating  on-premise Java application and Force.com DB using JPA(DataNucleus) in production ?

  • September 30, 2010
  • Like
  • 0

I dont see VMforce server deployment in the latest Spring Tool suite.

 

Any help would be appreciated.

 

Thanks,

Yash

I have a checkbox field and a picklist field. I set up a field dependency so that if the checkbox is checked, all the picklist values are available but if the checkbox is unchecked none of them are. It all works fine in the preview.
 
The dependency does not work however on my visualforce page.
 
The page it should work on is one of a number of wizard pages controlled by a custom controller. Should dependencies work with a custom controller?
 
When I refresh my Eclipse object from the server I cannot see any dependency information. Where is this defined?