• The_Fox
  • NEWBIE
  • 75 Points
  • Member since 2005

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 28
    Questions
  • 179
    Replies
I have a custom link on a page that takes me to the edit page of another custom object. I want to pre-populate the fields on the new page with data from the originating page. I'm having trouble with a date/time field. The receiving field needs the date/time to be formatted as MM/DD/YYYY HH:MM AM/PM,
but when I use the merge field from the sending page as follows:
 
parent.frames.location.replace(...&00NT0000000upfz={!Event.ActivityDateTime}...
 
the date in the receiving field shows up as MM/DD/YYYY, so I get "Error: Invalid Date and Time" in the receiving field.
I tried assigning {!Event.ActivityDateTime} to a javascript variable, but the assignment does not produce the Date object. How do I format the sending date/time to be acceptable to the receiving field?
 
I have tried reading through the APEX developer guide and, at this time, most of it is flying high over my head.  I don't have a Java background, so it will take me a bit to ramp up.  I have a need now and am hoping that the development community can help me out.

We are using custom address fields on our Account, Contact and Lead objects so we can have picklists on Country.  We need this design to aid in Lead Assignment rules, Territory Manager rules and Validation Rules to enhance address quality.  One of the downsides of doing this is losing the feature where the Account address automatically copies to the Contact when clicking the New button on the Contact Related List from an Account.

I am wondering if anyone can get me pointed in the right direction (or even write the code for me and post it here :smileyvery-happy:).  I am thinking one of the 2 following solutions would be best:

  1. (preferred) Override the new button on a Contact with an S-Control that calls an Apex code package.  The package should copy the Account address and have it already populated on the contact form when it appears.  This would allow a user to still change the address before saving the contact.
  2. Trigger on the save event of a contact - check to see if the address fields are null.  If so, copy the account address.


Hello,
I'm looking for a data dictionnary that give me information about the fields in a table (ex : opportunity) and their description (ex : string, int, date, ...).
How can I do ? with a tool or is this avalaible in SalesForce itself ?

Thank you in advance for any advice ...
There are some minor bugs in the "Hello World" example in the "AJAX Getting Started - Part 1 Guide", linked from the AJAX Beta3 page:  http://blog.sforce.com/sforce/2006/04/ajax_toolkit_be.html .  The bugs are minor and don't affect the normal output, but since it's a Hello World app it'll be used as a reference. (I actually found the bug when trying to use this as a reference.)

Here is the meat of the Hello World example at the bottom of Part 1 of the guide.  My changes are in red.  The first part creates a textNode variable but doesn't use it (that line is useless and should be deleted), while the second part creates a variable and wants to use it but doesn't (the text node needs to be added to the document).


                   if (queryResult.size > 0) {
                       
var
output = "";
                       
for
(var i=0;i<queryResult.records.length;i++) {
                           
var
dynaBean = queryResult.records[i];
                           
output += dynaBean.get(
"Id") + " " + dynaBean.get("name") + " [Industry - " + dynaBean.get("Industry") + "]<br>";
                       
}

                        // this line is useless, so take it out
                        //
var
textNode = document.createTextNode(output);
                       
document.getElementById(
"output").innerHTML = output;
                   
} else {

                       
var
textNode = document.createTextNode("No records matched.");
                         // this textNode needs to be added to the document to get displayed:
                        document.getElementById("output").appendChild(textNode);
                    }

Can I send an email through Scontrol? On running SControl I want to send email notification to specific users....
Can it be done usinf SControl?
If Yes then how?
 
Waiting for reply.
 
Ragards
Vaishali.
 
 
Hello.  I am hoping someone can help me out.  I created an S-Control that changes the ownership of an opportunity, we call it "referring the opportunity".  The problem we are having is in keeping the team members of the opportunity when the ownership is changed via the S-Control.  The team members get deleted when the ownership is changed.  If I could at least add the previous owner as a team member after ownership has changed (which in turn is after the team members get deleted), we could bear with it.  But, I can't even do that because after the ownership of the opportunity changes, and the logic that creates the OpportunityTeamMember record runs, the logged in user doesn't have rights to create the record because they are not the owner of the opportunity anymore. 
 
How can I change the owner of the Opportunity without losing my team members?  If there is no way to prevent losing the team members, how can I at least create one team member record (the person who is the previous owner; who is referring the opportunity to the other person)?
 
Thanks in advance.
 
-E.R.
I'm new at this, so please be patient.

I've been reading other threads about creating a hyperlink, using an image for a button, and I'm having problems implementing this. Here's what I'm trying to do: I have a custom object called Change Management. I'd like to create a button/hyperlink that when clicked adds this record to a shared calendar. When it creates the event on the calendar it needs to use a custom field in Change Management for start date/time and end date/time. Can anyone show me the way?

Thanks much
I need to write a formula that will enable me to add the list price items on the product section on the opportunities tab together and total them in a field below the amount field. This is so I can track how much discount our sales team have been giving from our list price to the customer. If this is possible pleae let me know how to perform this function.

Thanks

Andrew
First off, congratulations to everyone at Salesforce.com responsible for the FANTASTIC Dreaforce '06 event you just hosted.  What I learned will be very useful to me and our organization in general.  THANK YOU!
 
My questions are related to the field validation functionality that Eric Bezar covered in one of his sessions.  One of the examples Eric gave concerned checking the Billing State to insure that it was a proper two digit state value.  There are several such examples I want to implement, and I am wondering:

1) Is it possible through standard validation rules (not APEX code) to create a reusable/callable formula?  For example, I would like to check the state/province value on the Lead address fields, Account address fields (billing and shipping), Contract address fields, etc. and would like to call (and maintain) one formula that validates state and province, not one per field that I need to validate.

2) Along the same lines - would it be possible to create "standard" formulas that could be posted and shared throughout the Salesforce community (i.e. "valid USState/CAProvince" formula)?

3) Is it possible, again through validation rules, to validate one field value against another field value - with the possibility of having the secondary field "off screen" (i.e. not visible).  One use case here is that I have created a "Country Picklist" field of all 190+ ISO 3166 countries.  I would like to validate that when someone enters a value in the standard 'Country' field in the address block that the value entered matches one of the values contained in the 'Country Picklist' field.

The above features would be huge productivity savings, and I would really appreciate your thoughts and feedback.

Message Edited by guido59 on 10-13-2006 08:54 AM

Let me first say that this sounds like a great addition to SFDC. My question is where do I begin in testing this new language? I have access to a SFDC preview org. Am I missing something? Do I save it as an s-control? I have read through the documentation but seemed to have missed this starting point.
 
Thanks!
Hi all,
 
Iam using "sales Quote with line Items App". For Quote Amount calculation , Now I have to click on "calculate QuoteAmout " custom link.
 
But what i want is , whenever i have added Quote Lines Itself has to give me Quote Amount without clicking on that custom link.
 
Can any one tell me how to do this?
 
When clicking "save" Button after adding quote lines , I have to invoke that custom link,
 
Is there any way to change the salesforce pages & their links? 
 
I want solution for this as soon as possible.
 
Sudheer Tumu.
Hi
 
I would like to create a custom field under the Opportunity Products object. It should contain the Total Price of the product multiplied with the probability of the opportunity.
I tried to make a field with type formula, and tried to type this: {!Opportunity_Probability}  *  {!TotalPrice}, but I received an error message: Error: Field {!Opportunity_Probability} does not exist. Check spelling.
How can I solve this issue?
Thanks in advance.
Does the HYPERLINK formula field function support new parameters to control how the window is opened in the Summer'06 release? Currently this function opens a new window, but it has been requested to add a parameter so the link opens up in the current window... Is this available now or any time frame or when it will be available? thanks
Is it possible to change the logo in our SFDC to our own companies? If so any help on how to do so is certainly appreciated!
 
Cheers,

bhensal
Formula Field's HYPERLINK fuction always launch a popup window. Is it possible not a launch a popup window and instead display html page in the right pane of Salesforce.com UI with the sidebar intact?
 
thanks.   
Is there any way to do a redirect, instead of a popup window using a HYPERLINK formula? I'm referencing an Scontrol, so would like it to behave like a Custom Link with an scontrol that uses parent.frames.

Thanks,
Ryan

Message Edited by Grinster650 on 12-08-2005 01:16 PM