• sfdc550
  • NEWBIE
  • 135 Points
  • Member since 2014

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 6
    Questions
  • 43
    Replies
I have a question,

I want to create a Visualforce Page in which I need to change 10 images dynamically at an intervel of 5 seconds (like in http://msn.com)..

Is it possible??
https://developer.salesforce.com/trailhead/force_com_introduction/data_management/data_import
I've tried 5-6 times now to use import wizard to import the file provided for the Data Management Module of Force.com Basics.  It just continues to give me an "There was a problem uploading the CSV file. Try again, or choose another file."  I've tried this on both a PC and a Mac, Chrome and Firefox and browsing to the file or drag and dropping the file, just get the same error every time.
when to use Rest api and when to use SOAP api??

please provide me with a simple example how they are used in salesforce
  • September 08, 2015
  • Like
  • 0
what is initial submission in approval process?

Without clicking on submit for approval can i send it to approval process? Can u please share steps?  

what are the action used in approval process? te a query on account object to fetch contact details?
 
I am new to development and SOQL

how do we write a query on contact object to fetch account details?

How do u write a query on account object to fetch contact details?


These are not exactly my soql but related to this my objects are same relationships but different named objects.

please help me out
My requirement is i want to have an account table with + symbol. If i click on the + symbol it must expand and it must show related contacts in same table without reloading the page??

Can anyone please help me how to achieve this functionality in vf page??
Whenever i create an opportunity record and add a "product" to that opportunity, "amount" field will be updated with productpricebook amount. amount is a readonly field in opportunity.

I want to do same using custom object and opportunity.

I am having a custom object "test" and another object opportunity.

In "Test" object i am having fields "Product(lookup)" and "Opportunity(lookup)".

In "test" object is child of product. whenever i select a lookup in test object and saves a record, product price must update in opportunity amount(which is readonly field).

Can i update readonly amount field with custom object product amount???

I tried to change it from developer console but since it is readonly field we can't edit directly. Please some one suggest a solution for it
I am new to salesforce please help me out.  I am having 2 objects both are custom objects let us consider x and y. x is parent and y is child i.e.. from y i am having lookup to x. Now i need to select a product in 'y'  and select 'x' using lookup and saves a record.
I am having two fields in x object amount, quantity,.. 
Now I need to get all pricebooks(price and quantity...) related to that product and update amount in 'x' object. Similarly if i add multiple products then i need to sum of all and update it in x object. How can i achieve this .
Please refer me with some sample code or guide me how to write soql query to get product pricebook from products and update it in other object. I am planning to change relationships if needed please some one help me in detail.
Thanks in advance.
I am trying to write a trigger to update a field(Field_A) on record(Object_A) when Object_A is created or updated with the value from a field(Field_B) on its Parent(Object_B). The relationship is master detail. Object_B is the master.

 I want to make sure the code is bulkified. I am having a bit of trouble figuring it out. I know it should be simple. 

Any ideas on how to do this best?
Hello,

How can you checkin Salesforce the rows created for all the objects.
Hi,

Please any one can explain me about apex:repeat component in salesforce? where we can use?

regards,
Sain
  • August 11, 2015
  • Like
  • 0
Hello ,
guys please help me in achieving one functyionality . i have button on visual force page i want to change the text of the button on click :Like the button name Should change from Enable to Disable on click 
Please see below code
<apex:page standardcontroller="Opportunity" extensions="TestOpportunityCLS">
<apex:form >
<apex:pageblock >
<apex:pageblockButtons >

<apex:commandButton value="Save" action="{!save}"/>

<apex:commandbutton value="Edit" action="{!Edit}"/>
<apex:commandbutton value="Cancel" action="{!Cancel}"/>
</apex:pageblockButtons>
<apex:pageblock title="Opportunity Edit" >
<apex:pageblockSection title="Opportunity Information">
<apex:outputField value="{!Opportunity.ownerId}"/>
<apex:inputField value="{!opportunity.AccountId}"/>
<apex:inputField value="{!opportunity.Name}"/>
<apex:inputField value="{!opportunity.Stagename}"/>
<apex:inputField value="{!opportunity.closedate}"/>
</apex:pageblockSection>
</apex:pageblock>
<apex:pageblocksection title="Select Products">
<apex:inputfield value="{!Opportunity.Pricebook2.Room__c}"/>
<apex:outputfield value="{!Opportunity.Product__r.Total_in_Units__c}"/>
<apex:inputfield value="{!Opportunity.Product__c }"/>
<apex:outputfield value="{!Opportunity.Product__r.UOM__c}"/>
<apex:inputfield value="{!Opportunity.Product__r.Length__c}"/>
<apex:inputfield value="{!Opportunity.Product__r.Width__c}"/>

<apex:outputfield value="{!Opportunity.Product__r.Cleaning_cost__c}"/>
<apex:outputfield value="{!Opportunity.Product__r.FS_Cost__c}"/>




</apex:pageblocksection>
</apex:pageblock>

  
</apex:form>


</apex:page>
What are the ways to setup multiple currencies in salesforce based on the location?
Why salesforce has set governer limits? Can we extend the governer limits? How can we avoid these?
Hi ,
 There is a Two objects X,Y X  contains field  status  and Y  contains  a field Functional area . How can  we access  the both fields in
Apex Vf page .please help???
Thanks,
padma.
  • February 02, 2015
  • Like
  • 0
I have a question,

I want to create a Visualforce Page in which I need to change 10 images dynamically at an intervel of 5 seconds (like in http://msn.com)..

Is it possible??
Hi all,
I am learning box integration and facing some problem in uploading files to box. What should be the HTTP request to be set for uploading a file in box ?
Can any body please help me out. 

Thank You.
 Hi ,
  if any body  know  help me .how to override a buttons in salesforce. with Vf pages.
 Thanks,
padma.
 
  • February 02, 2015
  • Like
  • 0
How do I share an account record (and associated contacts), so that it is available to external customer community users? The account record will be owned by an Internal user. 

This is basically for a VF page in my customer community where there is a contact lookup field. The external users have to select contacts accociated with a particular account "ABC" only. I have put in a lookup filter, but it is only working for the internal users. The external users are not able to see anything, most probably because they do not have access to he "ABC" account record. Please help!!!
  • December 26, 2014
  • Like
  • 0
how to save svg graph as pdf in visualforce page
Hi i have written a batch class for integration for that i have created the class in batchable class like this 
public class AccountsInsertBatch implements Database.Batchable<Account>,Database.AllowsCallouts{  
     public class accountt
         {
         public string entity_id;
         public string website_id;
         public string email;
         public string group_id;
         public string created_at;
         public string disable_auto_group_change;
         public string firstname;
         public string middlename;
         public string gender;
         public string Telephone;
         public string lastname;
         public string created_in;
         public string suffix;
         public string taxvat;
         public string ShippingAddress;  
         public string dob;      
         }
          public Iterable<Account> start(database.batchablecontext bc) {
 //Logic
     }
public void execute(database.BatchableContext BC, List<Account>accountquery){  
 //Logic
}
public void finish(Database.BatchableContext BC){ 
}
Am not getting the test coverage for the class which i have created in the Batch class.How to cover this class code covwerage?
my test class is
@isTest
public class AccountsInsertBatchTest implements HttpCalloutMock  {    
  public HTTPResponse respond(HTTPRequest req)
    { 
       HttpResponse res = new HttpResponse();
       res.setBody('{"4":{"entity_id":"4","website_id":"1","email":"ed@krishna.com","group_id":"1","created_at":"2013-09-17 14:17:12","disable_auto_group_change":"0","created_in":"Default Store View","prefix":null,"firstname":"test","middlename":null,"lastname":"Sea","suffix":"Mr.","taxvat":"123","dob":"2014-11-03 00:00:00","gender":"1"}}');
       res.setStatusCode(200);
       return res;   
    }
    @isTest static void testAccountInsert(){
        Test.StartTest();
        Test.setMock(HttpCalloutMock.class, new MockHttpResponseGenerator());
        MagentAccountsInsertBatch instance = new MagentAccountsInsertBatch ();
        database.executebatch(instance);        
        Test.StopTest();
        }
     @isTest static void testAccountInsert1(){
     Test.StartTest();
        insert new Account(LastName='krishna',personemail='ed@krishna.com',Entity_Id__c='1656');
        Test.setMock(HttpCalloutMock.class, new MockHttpResponseGenerator());
        MagentAccountsInsertBatch instance1 = new MagentAccountsInsertBatch ();
        database.executebatch(instance1); 
         Test.StopTest();    
}
}
I'm trying to add a custom global action to a Flexipage in Salesforce1, but I can't see any button showing up on the bottom of my Flexipage like the tutorial. I'm on API version 32.
 
<?xml version="1.0" encoding="UTF-8"?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
    <flexiPageRegions>
        <componentInstances>
            <componentInstanceProperties>
                <name>entityName</name>
                <value>MUSW__Inspection__c</value>
            </componentInstanceProperties>
			<componentInstanceProperties>
                <name>filterName</name>
                <value>Mobile_Inspection_List</value>
            </componentInstanceProperties>
            <componentName>flexipage:filterListCard</componentName>
        </componentInstances>
        <name>main</name>
    </flexiPageRegions>
    <masterLabel>Mobile Inspection List</masterLabel>
	<quickActionList>
        <quickActionListItems>
            <quickActionName>New_Inspection</quickActionName>
        </quickActionListItems>
        <quickActionListItems>
            <quickActionName>NewNote</quickActionName>
        </quickActionListItems>
    </quickActionList>
	<type>AppPage</type>
</FlexiPage>

Any thought? All I see on my Flexipage is,

User-added image
  • December 24, 2014
  • Like
  • 0
Hi All
 I am new in Migration.I have created a trigger and written test class of that and my code coverage of that trigger is 91%.but when i am moving it from sandbox to production its throwing error like Your Organization code coverage is 66%.for deployment it should be 75%

I mean code coverage od sandbox or Production?


I am unable to find out the exact issue.can any body tell me what the issue and how to resolve this one 
I need a suggestion here, actually if I send a Meeting request in Event by adding the leads as invitees, Leads get an email in which they can accept or decline and Add to Outlook as well. This process involves quite lot steps, like :

1. Respond to the Event (Meeting Request)
2. Accept or Decline
3. Add to Outlook
4. Download the .vcs file
5. Doubleclick on the .vcs file
6. Save in Outlook calendar

This seems quite too many steps for the customer.

Need an App which can reduce the above steps and the user can add the Event to his Outlook with a single step as he responds to the request.

Thanks,
Pavan.