• kamlesh_chauhan
  • NEWBIE
  • 333 Points
  • Member since 2009

  • Chatter
    Feed
  • 13
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 86
    Replies

Hi,

 

 Please help me out with my issue

 

1)I have 3 radio buttons in my vf page that i have created eg :1,2,3

2) On loading the vf page only one radio button only one radio button should be selected by default eg:3

 

Please do guide me to solve my issue

 

 

Thanks in Advance...

Hi guys,

 

Pretty simple request... I can't seem to find any definitive lists for what I can and cannot set as far as "mail.set" tokens go. The list of "EmailMessage" API Field Names provided by Salesforce at http://www.salesforce.com/us/developer/docs/sfFieldRef/index.htm isn't at all extensive. Can anybody point me in a better direction?

 

Thanks,

Lee

Hi,

 

i want to update some case fields when Event 'start date' equals to today() 

 

how can i achieve this, please any one can help on this 

I want to have three custom list buttons that all go to the same VF page the has a controller extension that uses standardSetController.

 

I'd like to have the page contents vary slightly based on which button was pressed and have slightly different action.

 

I don't know if there's a way to pass which button was pressed or some other mechanism to find out which button was pressed.

 

I considered having a three very smaller wrapper pages each withslightly different content that all use the same controller.  Then put the majority of the contents in the custom components.  But custom components have a lot of restrictions.  For example, you can't declarea a pageBlockTable without a pageBlock but I'd want the pageBlock in the outer page for certain design reasons.  Also, I want the controller used declared at the page level.  I could pass in merger variables as attributes of the components but not action methods.  I know there is a way to share controllers between components and pages but it's horrendously complicated (way more than it should be in my opinion.)

 

Hi All,

 

 

 As per my understanding,I am thinking that standard controller will provide same functionality.so we have only one standardcontroller.is it correct or not?

 

 

Hi

 

in QuoteLineItem, I have a field Produit

name : Product2 & Type : lookup(Produit)

 

I need a SOQL query to get information (Family & Name) from Object Product2  

 

Select Product2.Name From QuoteLineItem

 

doesn't work

 

I tried a lot of queries same problems

 

Thanks

 

Hi - my client has asked to have all users be directed to a page when they login to SF where they will be asked to read and agree to a user agreement. The requirement then is to update their user record to show they have read and agreed to the Terms of Use.

 

The critical part is to prevent the user doing anything until they have agreed to the Agreement.

 

Any ideas how to do this?

 

I've looked at adding a homepage component that will use an iframe to reference a VF page and apex class. The VF page and class can first check if they have already said yes to the agreement, and if not, this can then display the Agreement document, capture their agreement with a checkbox, update their user record, and then allow them to carry on and use the system. 

 

Where I'm struggling is stopping the user from using any of the SF pages until they acknowledge. I know I can use CSS to force all of the <a> links to display:none so that will stop the user from doing anything, but I don't see how I can control the CSS of the parent page from within the iframe.

 

Any ideas on how to make this happen - is there an easier solution?

 

 

Hi All,

 

I have developed a visualforce which embeded to the page layout. I want to get a parameter from the pagelayout to the embedded visualpage. According to that parameter I want to query some values. Is there any approach to get parameters as above?

 

Thanks in Advance

--

Chamil Madusanka

Hi there.

 

I have a trigger that works almost perfectly but I need to change the behavior and I'm at a loss how to.

 

Behavior

Updates Opportunity field "Next Task Date" with the task due date

Updates Opportunity field "Next Task Subject" with the task subject

Triggered when

A new task is created or an existing open task is updated

ex. if there are 2 tasks , one due 1/1/2013 and another due 1/1/2014

if either one of these is updated or a new task is created, the opportunity fields are updated

Challenge

I need to limit the update so that it only pulls info from the next closest task due date

 

How do I change the trigger so that it achieves this? I would really appreciate some coding help.

 

Thanks  in advance. Please see code below.

 

trigger NextTaskInfo on Task (after insert, after update) {
//this is the trigger that updates next step and next step date on opportunity
  if(Trigger.new.size() == 1 ) {
    Task tk = Trigger.new.get(0);
      if (tk.WhatId != null && String.valueOf(tk.WhatId).startsWith('006')) { 
        Opportunity opp = [select OwnerId,NextTaskSubject__c,Next_Task_Date__c from Opportunity where Id = :tk.WhatId ];
          if( tk.OwnerId == opp.OwnerId && tk.ActivityDate != null) {                   
            if (tk.isClosed == false) {
              opp.Next_Step_Date__c = tk.ActivityDate;
              opp.NextStep = tk.Type;
              update opp;
}
}
}
}
}

 

 

  • December 31, 2011
  • Like
  • 0

Hello,

 

Can someone roughly point me in the right direction to learn how to cutt off the test displayed before I present a "..." and then a "click here to view more" link, because I only want say 255 characters to show and not the full length. I want users to have to click a link to view full details.

 

Thank you,

Walter 

Hello,

 

I am trying to find a formula/function in Salesforce that is the equivalent to the EOMONTH function in excel.  The excel function is as follows:

 

Scenario 1 =EOMONTH(A1,0)  => this gives me the end date of the month that is in cell "A1"

 

Scenario 2 =EOMONTH(A1,1)  = > this give me the end date of 1 month after the month  that is in cell "A1"

 

So if A1 is Jan 15,2009 the function would give me Jan 31, 2009 in scenario 1 and Feb 28, 2009 in scenario 2.

 

Does anyone know how this can be accomplished in Salesforce?

Hello,

 

I am trying to find a formula/function in Salesforce that is the equivalent to the EOMONTH function in excel.  The excel function is as follows:

 

Scenario 1 =EOMONTH(A1,0)  => this gives me the end date of the month that is in cell "A1"

 

Scenario 2 =EOMONTH(A1,1)  = > this give me the end date of the month after the month  that is in cell "A1"

 

So if A1 is Jan 15,2009 the function would give me Jan 31, 2009 in scenario 1 and Feb 28, 2009 in scenario 2.

 

Does anyone know how this can be accomplished in Salesforce?

Hello Experts,

 

I have one custom object called "Student" and there is a related list of "Activity History" under the student pagelayout.

 

I want to use Send an Email functionality where I need student email address in the "To" field of send an email page.

 

Is it possible to pass any custom email field to "To" field of email page? I don't want to use contact object for this.

 

Please help me.

 

Thanks in advance.

 

Kamlesh

Hello Experts,

 

I have one custom object called "Student" and there is a related list of "Activity History" under the student pagelayout.

 

I want to use Send an Email functionality where I need student email address in the "To" field of send an email page.

 

Is it possible to pass any custom email field to "To" field of email page? I don't want to use contact object for this.

 

Please help me.

 

Thanks in advance.

 

Kamlesh

Hello experts,

 

I need to update Account Owner ID's of around 10000 records. I have tried to update it through APEX Data Loader. It completes the update process successfully without any errors, but when I have checked the account records, not a single account owner id has been updated.

 

When I tried to change account owner manually from salesforce it self, it is working fine.

 

Any idea??

 

Thanks in advance.

 

Regards,

Kamlesh

Hello Experts,

 

I want to display child accounts related list under parent account recod. Is there anyway like apex sharing form which I can display all child accounts in related list under the parent account? If is it possible through apex sharing then please give me some idea or links from which I can resolve my problem.

 

Please help. Thanks in advance.

 

Regard,

Kamlesh

Hello Experts,

 

I want to display child accounts related list under parent account recod. Is there anyway like apex sharing form which I can display all child accounts in related list under the parent account? If is it possible through apex sharing then please give me some idea or links from which I can resolve my problem.

 

Please help. Thanks in advance.

 

Regard,

Kamlesh

hi,

i want mask in telephone number like this.

(999) 999-9999

 

I have tried with Jquery but not done at all.

 

please suggest me solution

 

Thanks in advance

 

Hi,

 

I have custom field "Speciality(picklist)" and "SubSpeciality(multiselect picklist)" in my Account object. Speciality is the controlling field for SubSpeciality. Subspeciality is changed based on the selection of Speciality.

 

It is working fine in standard page layout. But I want to use it in my VF page to create new Account record. I have used inputfield and it display the details of both speciality and subspeciality. but subspeciality is not changed on selection of speciality.

 

How can I change the subspeciality on selection of speciality field. Following are sample code of my page.

Please help..... 

 

 

          <apex:inputfield value="{!Account.Speciality__pc}"></apex:inputfield>
           <apex:inputfield value="{!Account.Subspecialty__pc}" />

 

Thanks in Advance.

 

Kamlesh Chauhan

Hi,

 

Is it possible to hide the standard fields in user object page layout and show only the custom fields....?

 

 

Thanks..

Need to create a Custom button on the related list to add the existing record.

 

Please help me on this!

thanks.

Is it a platform? A module of the entire salesforce.com application? Is it metadata? Is it something that I see when I log into our org? 

Hi,

I would like to update a field on my parent record (Campaign), based on a filed  value in a related list/child object (Service Requests). Is this possible?

We have an app that is utilizing Batch call outs and when making these calls the initiation is taking an extremely long time. This behavior was not previously reported and this app has been available for over a year. This was first reported by our client on 8/22/12. Has something changed that would cause this behavior. Here is a scenario:

We investigated the complete process at our end and below are the findings : 

Scenario & Observations:: 
- I selected 2 contacts on a Company 
- 2:33:00 --> Batch was initiated (Contact recs --> Pending Status) 
- For 1m 44s, this Batch did not even start, this is time lost in the SFDC queue 
- 2:34:44 --> Contact Append Batch Started & Completed (ended 2:34:50) * 2 Serial Jobs ran and completed in 4s & 6s (i.e. moving Contacts from Pending to In-Progress & Completed) 
- 2:34:48 --> Contact recs were updated with the "In-Progress" status by the Poller job. 
- 2:34:50 --> Contact Append Batch had already Completed, no more work left to do here. 
- 2:34:50 --> An instance of Contact Search Job is submitted. (* The only function here is to present the status of the 2 contacts created, by polling the state of the 2 serial Jobs.). 
- For 2m 56s, this Batch did not even start, this again is time lost in the SFDC queue
- 2:37:47 --> This Job is Completed. (in the log, this job lasted only 1s, and was waiting in queue for rest of the time.) 

Overall, in this test, we learned that 4m.40s were time lost in waiting.

 

Can you please confirm if something has recently changed? Can anything be done on your side to improve this?

 

This was not happening previously and seems to have been introduced in the last 4-6 months.

 

Thanks

My next project seems like using web service api frequently, I want to know some restrictions about the api to decide how to construct the project.

I already know about how many time could we make API calls in 24 hours, and there still another questions.

 

1.How about the size when posts datas to SF or from SF to other services? Are there any restrictions? 1M?

 

2.How about the supported data types when posts to SF or from SF? I heard that it doesn't support the Blob,decimal,enum types when post datas from SF, but how about post to SF? Are there other data types do not be supported?

 

3.Are there any rectrictions about API calls at the same time? I don't mean *exactly* the same time, for example, how about 5 seconds? How many API calls could we make in 5 seconds or 20 seconds?

 

4.Are the restrictions any differences between asynchronous communication and synchronous communication?

 

It's very glad to see anybody answer my questions. Or you can just give me a link about such informations.

Thanks.

  • October 24, 2012
  • Like
  • 0

Hi folks,

 

We're looking to build a simple proposal app that allows users to add line items from price books, and then sort them as they'd like them to appear within the proposal.  Currently, the Quotes object does exactly this process, and I'm wondering if there's a native Apex/VF function that would allow us to have the same "Sort" button to sort the related list (product line items) that the Quotes object has in our custom object's related list?

Thoughts on how to achieve this easily?

Cheers!

PageReference gotoConfirmation()
{
PageReference result=Page.Cofirmation;
result.getParameters().put(id, Product__c.id);
result.setRedirect(true);

return result;
}

 this code asks to define id, wen i do so throws an error in put(id, Product__c.id).

 

wen i use the following

<apex:commandButton  value="Print" onClick="window.location='Confirmation?id={!Product__c.id}'; return false;" />

the output is a new window in the same, how to keep it in a single screen?

Hi,

 

 Please help me out with my issue

 

1)I have 3 radio buttons in my vf page that i have created eg :1,2,3

2) On loading the vf page only one radio button only one radio button should be selected by default eg:3

 

Please do guide me to solve my issue

 

 

Thanks in Advance...

Hi folks,

 

I'm trying to create a scheduled outbound email. The class queries for all of the custom objects whose date fields are today and emails people whose email addresses are recorded as custom fields within the object. Only... it doesn't work. The code, and its schedule class, below do absolutely nothing.

 

public class EmailMessage
{  
   public static void SendEmail()
   {
       List<Milestone1_Project__c> activeproc = new List<Milestone1_Project__c>([Select id from
                                                                                 Milestone1_Project__c]);
       
       for( integer i=0;i<activeproc.size();i++){
       if(System.Today()==date.newinstance(activeproc[i].Date__c.year(),activeproc[i].Bid_Review__c.month(),activeproc[i].Date__c.day())){
       
       Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
       String[] address = new String[]{activeproc[i].Owner.Email,activeproc[i].Legal_Contributor__c,activeproc[i].Technical_Specialist__c};
        mail.setToAddresses(address);
       
       for(OrgWideEmailAddress owa : [select id, Address from OrgWideEmailAddress]){
			mail.setOrgWideEmailAddressId(owa.id);
       }
 		
 
       mail.setSubject('Record of hours spent on Procurement: ' +activeproc[i].Name);
       mail.setBccSender(false);
       mail.setUseSignature(false);
       mail.setPlainTextBody('This is a test.');
       List<Messaging.SendEmailResult> results = Messaging.sendEmail(new Messaging.Email[] { mail });
       System.debug('Email Sent: '+results.get(0).isSuccess() );
    }
   }
}
}

 And the Scheduler class:

 

global class ScheduleEnable implements Schedulable{
    global void execute (SchedulableContext SC){
        EmailMessage e = new EmailMessage();
    }
}

 Which I've then selected to run every week day at 08:00.

 

Does anyone see why this might not be working? I can't figure it out at all. It looks fairly solid to me, but I'm not certain about the String array. Am I barking up the right tree?

 

Any help you lovely folk of the Developer Force community could give would be much appreciated.

 

Thanks,

Lee

Hi guys,

 

Pretty simple request... I can't seem to find any definitive lists for what I can and cannot set as far as "mail.set" tokens go. The list of "EmailMessage" API Field Names provided by Salesforce at http://www.salesforce.com/us/developer/docs/sfFieldRef/index.htm isn't at all extensive. Can anybody point me in a better direction?

 

Thanks,

Lee

Hello,

 

We have a form submission tool hosted on Sites.  Periodically, we have users sending us messages that they have received errors asking to register (i.e. the standard permission SF error page). 

 

We cannot reproduce the error at all on our side, and trying to use error logs has not helped thus far.

 

The form collects personal data and 2 attachments, and creates a custom object, then a Contact record.  The extension is "without sharing" to avoid permissions on the extension.

 

Has anyone else experienced such issues and have any advice? 

 

Hi - I'm working in Professional Edition and am having a issue with Opportunity Owners getting changed to match the Account Owner.  I work in a multi-channel environment where more than one owner works on an Account along with multiple opportunity owners.  Is there a way to be able to change the Account Owner field without disrupting the Opportunity Owners?