• sumprit
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 19
    Questions
  • 43
    Replies
Hi there,

In one of the Developer edition I have created a custom object A that I would like to move to another Devloper edition.

What is the best way to do that?

I tried packaging the object and then uploading to app exchange and then received a URL too - however I am confused what do I do with this URL? When I copy and paste this URL to a new browser it asks for a login details? Its confusing. How do I move it?
Hi there,

I already have a Scontrol which displays an alert message on the Opp page when the 3 criterias are met. I would like to implement the same logic in a Trigger so that it displays the alert message only when the SAVE button is clicked. Here is the code for Scontrol:-
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
<html>
<head>

<script type="text/javascript" language="javascript" src="/js/functions.js"></script>
<script type="text/javascript" src="/soap/ajax/10.0/connection.js"></script>
<script type="text/javascript">
   
function updatethechkbox()
{
var cas= new sforce.SObject("Opportunity");
result = sforce.connection.create([cas]);
cas.Id = "{!Opportunity.Id}";
cas.ForAlertMsg__c = "true";
result = sforce.connection.update([cas]);


}

    function throwalert()
    {

     // Begin by creating 3 variables for the criteria to be met.
    // 1st RecordType should be KBB Generic for the Opportunity
   
    var recordtype = "{!Opportunity.RecordType}";
    
    // 2nd will be the TYPE of opportunity that is created, which is the standard field.
   
    var thetype = "{!Opportunity.Type}";
   
    // 3rd will be the Opportunity Status which is also a standard field.
   
    var isstatus = "{!Opportunity.StageName}";
  
   // Another variable is defined which will hold the ALERT message as this is the better approach - inside the function.

    var msgg = "You can now create the Sales Order for this Opportunity"

   // Another variable for the hidden checkbox field on the Oppor page which will be set to TRUE first time alert is displayed
   
     var hide = "{!Opportunity.ForAlertMsg__c}";
     //var isChanged = false; // This will be set to TRUE when the ALERT is displayed the first time.

   
    // Now the IF statement for 3 criteria to be met, along with the following:-
    //  1. Check if the chkbox is set to TRUE or not.
    // 2. If checkbox is NOT TRUE then display the message and set it to TRUE.
    // 3. If checkbox is TRUE then dont display the message.


     if ((recordtype == "KBB Generic") && (thetype == "KBB KPO") && (isstatus == "Closed Won") && ({!Opportunity.ForAlertMsg__c} == false))

     {
        updatethechkbox();
        alert(msgg);
       
       }
       else
       {          
                     window.parent.location.replace = "{URLFOR($Action.Opportunity.View, Opportunity.Id,null,true)};"
        }
     } 
    </script>
</head>
<body onload="throwalert()";>
</body>
</html>
////////////////////////////////////////////////////////////////////////////////////////

I am little confused as to how will I start writing a Trigger which does the same thing?

I understand it will be of the Before Insert and Before update.

Can you give me few starting points on this one please?

thanks
Hi there,

I need to place the following S-control on the SAVE button for **Opp Edit Page** so that it creates the ALERT message each time the user clicks on the SAVE button.

<html>
<head>

<script type="text/javascript" language="javascript" src="/js/functions.js"></script>
<script type="text/javascript" src="/soap/ajax/10.0/connection.js"></script>
<script type="text/javascript">
   
function updatethechkbox()
{
var cas= new sforce.SObject("Opportunity");
result = sforce.connection.create([cas]);
cas.Id = "{!Opportunity.Id}";
cas.ForAlertMsg__c = "true";
result = sforce.connection.update([cas]);


}

    function throwalert()
    {

     // Begin by creating 3 variables for the criteria to be met.
    // 1st RecordType should be KBB Generic for the Opportunity
   
    var recordtype = "{!Opportunity.RecordType}";
    
    // 2nd will be the TYPE of opportunity that is created, which is the standard field.
   
    var thetype = "{!Opportunity.Type}";
   
    // 3rd will be the Opportunity Status which is also a standard field.
   
    var isstatus = "{!Opportunity.StageName}";
  
   // Another variable is defined which will hold the ALERT message as this is the better approach - inside the function.

    var msgg = "You can now create the Sales Order for this Opportunity"

   // Another variable for the hidden checkbox field on the Oppor page which will be set to TRUE first time alert is displayed
   
     var hide = "{!Opportunity.ForAlertMsg__c}";
     //var isChanged = false; // This will be set to TRUE when the ALERT is displayed the first time.

   
    // Now the IF statement for 3 criteria to be met, along with the following:-
    //  1. Check if the chkbox is set to TRUE or not.
    // 2. If checkbox is NOT TRUE then display the message and set it to TRUE.
    // 3. If checkbox is TRUE then dont display the message.


     if ((recordtype == "KBB Generic") && (thetype == "KBB KPO") && (isstatus == "Closed Won") && ({!Opportunity.ForAlertMsg__c} == false))

     {
        updatethechkbox();
        alert(msgg);
       
       }
       else
       {          
                     window.parent.location.replace = "{URLFOR($Action.Opportunity.View, Opportunity.Id,null,true)};"
        }
     } 
    </script>
</head>
<body onload="throwalert()";>
</body>
</html>

How can I overwrite the SAVE button on Opportunities?

Thanks
Hi there,

I was trying one of the example mentioned in Apex Api documentation and followed these steps:-

1.> From my developer edition, I saved the WSDL file - enterprise wsdl to the C drive

2.> I would now like to import this WSDL file to the .NET Environment. So I followed these steps and I am stucked here:-

a) When I click on http//localhost/website76 and say "Add Web Reference".

b) In the URL section, I typed in the following:-
C:\Salesforce+Integrations\DuringTraining\enterprise.wsdl

and it returns an error saying - Make sure the Internet Address is correct.

How do I refer to this WSDL file which I saved it.?

What am I missing.


In the documentation it says the same thing:-

File:///C:\Salesforce+Integrations\DuringTraining\enterprise.wsdl

But when I type this, it is not accepted either.

Please advice.

Thanks



Hi,

Lately, I am unable to have save the scontrols and triggers created in Eclipse to the server. It gives this error?

Severity and Description    Path    Resource    Location    Creation Time    Id
Save error: Conflict found while preparing to save 'LoanerIssued_Checkbox.scf' to server.  Remote instance has been updated since last save or sync.  Use the Synchronize Perspective to resolve the conflict.    Salesforce_Cusomizations/src/unpackaged/scontrols    LoanerIssued_Checkbox.scf    line 1    1208287908574    3


Any idea?
Hi there,

I would like "Ready to Convert" checkbox to be checked when a user clicks on CONVERT on Leads. Here is my code:-

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script type="text/javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/12.0/connection.js"></script>


</script>
</head>

<script type="text/javascript">

function btnConvert_Click() {
// First we will make a reference to the CheckBox which is on the LEAD object.
// this is the second choice var chkReady = parent.document.getElementById("chkReady");

var chkReady = parent.document.getElementsByName("Ready_To_Convert__c");

// check if chkReady exists when this function is called.
if (chkReady != null) {
chkReady.checked = true; // check the checkbox.
}
}


<body onLoad="btnConvert_Click();"></body>
</html>

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

It gives me this error:-

btnConvert_Click is not defined

Hi there,

I need to update a checkbox on Object A , based off its related list which is Object B and also which is of LOANER record type.
Object A = CDM RMA (custom object)
Object B = RMA Add ON
Field to be updated = Loaner_Issued.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script type="text/javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/10.0/connection.js"></script>
<script language="JavaScript">

// Global Values

var isChanged = false; // set to true if the checkbox is placed on Loan Issued checkbox

// List checkbox fields here to compare the final values with
// CDM RMA is the object name and the Loaner_Issued is the customer checkbox.

var loanerIssued = {! CDM_RMA__c.Loaner_Issued__c};

// Function created to updated the checkbox.

function RmaAddon()
{

// Create temp account for updating

var updateCDM_RMA__c = new sforce.SObject("CDM_RMA__c");

// Update each CDM RMA record based on the ID.
  updateCDM_RMA__c.ID = '{!CDM_RMA__c.Id}';

// Get the RMA Add on lists attached to the CDM RMA object.
// Tried this too.(" SELECT Id, (SELECT Id, FROM R00N30000001Xi2lEAC WHERE RecordType.Name = 'Loaner') FROM CDM_RMA__c ");

var getprods = sforce.connection.query("SELECT r.Id, r.Name, CDM_RMA__r.Name FROM RMA_Add_On__c r WHERE CDM_RMA__r.Name = '{!CDM_RMA__c.Name}'");

var records = getprods.getArray ("records");

// Here I am checking that the RMA Add-On Type is Loaner based record type and if yes then place
// checkmark on the Loan Issued checkbox.
 
for(var i=0;i<records.length;i++){
dynaBean = records[i];

if(dynaBean.$Recordtype.Name == 'Loaner'){ // Record Type
updateCDM_RMA__c.Loaner_Issued__c = 1;                  // Checkbox is the checked.
if(loanerIssued == 0) isChanged = true;                  // variable name is TRUE becuase the checkbox value is changed from False to True
}
}

// If the CDM RMA record has been changed then save the new RMA Add on type for LOANER RecordType and save the record.


if(isChanged){
var saveResult = sforce.connection.update([updateCDM_RMA__c]);
if(saveResult[0].success){
window.parent.parent.location.href = '/{! CDM_RMA__c.Name }';
} else {
alert('There was an error when saving CDM RMA Record.');
}
}
}
</script>
</head>
<body>
<script>RmaAddon();</script>
</body>
</html>
////////////////////////////////////////////////////////////////////////

Here is the problem:-

1.> Either the SOQL is not correct
2.> I am unable to tell how to update a field based off Record Type
3.> Error =
dynaBean.$Recordtype has no properties
if(dynaBean.Recordtype.Name == 'Loaner'){ // Record Type

Thanks.

Hi there,

I already have the validation rule created for Phone Validation field - 10 digits with 4 digits extension? This works great. But would also like make sure, that it also checks for International Format.

AND(LEN(Phone) <> 0,
NOT (
AND(

LEFT(Phone,1)="(",
MID(Phone,5,1)=")",
MID(Phone,6,1)=" ",
MID(Phone,10,1)="-",


CONTAINS("0123456789", MID (Phone, 2, 1)),
CONTAINS("0123456789", MID (Phone, 3, 1)),
CONTAINS("0123456789", MID (Phone, 4, 1)),
CONTAINS("0123456789", MID (Phone, 7, 1)),
CONTAINS("0123456789", MID (Phone, 8, 1)),
CONTAINS("0123456789", MID (Phone, 9, 1)),
CONTAINS("0123456789", MID (Phone, 11, 1)),
CONTAINS("0123456789", MID (Phone, 12, 1)),
CONTAINS("0123456789", MID (Phone, 13, 1)),
CONTAINS("0123456789", MID (Phone, 14, 1)),

OR(AND(LEN(Phone)<=20,MID(Phone, 15,2)=" x",

CONTAINS("0123456789", MID (Phone, 17, 1)),
CONTAINS("0123456789", MID (Phone, 18, 1)),
CONTAINS("0123456789", MID (Phone, 19, 1)),
CONTAINS("0123456789", MID (Phone, 20, 1))
), LEN(Phone)<=14
)
)
)
)


What needs to be added ?

I got this from the doc:-

LEFT(Phone, 1) <> "+"

Also, if I add the above logic would it not conflict with the 10 digit rule?




Hi there,

Our company is in the process of integrating the external system with Salesforce.

1.> What are the factors that need to be considered while integrating a system with the Salesforce?

2.> If we need to send out the data from the Salesforce to an external URL - how can we do that any restrictions on this one?

3.> We can create a webservice in Salesforce using APEX , can someone confirm that ?

If someone can share few ideas or if anyone has perform Salesforce integration please get in touch as I would like to discuss more on this. Contact me on bmwspeedracer@aol.com

Thanks


Hi there,

Our company is in the process of integrating the external system with Salesforce.

1.> What are the factors that need to be considered while integrating a system with the Salesforce?

2.> If we need to send out the data from the Salesforce to an external URL - how can we do that any restrictions on this one?

3.> We can create a webservice in Salesforce using APEX , can someone confirm that ?

Thanks

Can someone take a look at this piece of code?

 

if(dynaBean.Product2.ProductCode == '25PS'){

updateAccount.PowerSystem__c = 1;                  

if(PowerSystem.substring(0,4))== 0 isChanged )= true;                      

}

 

 

What is the correct technique of using substring function in the Salesforce. I want to say, if the Product Code of the Product Name – POWERSYSTEM starts with 25PS then it should place a check mark.

 

Could you suggest please?

 

 



Hi there,

I am following the instructions from http://wiki.apexdevnet.com/index.php/Members:Apex_Toolkit_for_Eclipse_Installation#First-Time_Installation.2C_Step_by_Step

and yet I cannot install Eclipse toolkit.

When I get to step 7, it gives this error message:-

Apex Toolkit for Eclipse (8.1.0.200710161138) requires plug-in "org.eclipse.wst.sse.core".



Please can some one help me. I have installed Eclipse 3.3.1.1 version.

Please advice.

thanks

Hi there,

Has anyone created a S-control that would display the cross object workflow between objects? Is there an example I can refer to?

Or can u give where should I start from, I am really struggling with this one.

thanks
Hi there,

Can we use a SWITCH control statement in the APEX class? Is it possible and supported by APEX?

thanks
Hi there,

I need to create a S-Control which will display the fields (2) from the oppurtunity tab and 3 from the Accounts Object.
This Scontrol will be displayed on the Oppurtunity tab.

Any ideas how to S-controls with the merge fields?

thanks
Hi there,

I have created a custom button on "Oppurtunity" object. I would like to
do the following:-

1.> When the user clicks on this custom button, it will capture the
details/fields from other related objects (like Accounts and Oppurtunity).

How can I acheive that using a S-Control? Any examples?



thanks
Hi there,

How can I send the data from Sales force to an external system?

I believe it can be done through a S-Control which can be attached to the custom button (URL type) that will trigger to send the data using HTTP POST method.

Has anyone ever done anything like this and could you share the details with me.?

Thanks

Hi there,
Here is what I am trying to acheive let me know if any ideas:-
1.> Account Object has MSG ID field which is custom field.
When the user creates a case and clicks on "Account Name" this custom field MSGID automatically gets displayed.
2.> There is another object called - CONTACTS
When the users selects on any name, the name gets displayed.
Is there any way to display the VALUES of MSGID (custom field of ACCOUNT object) in the CONTACTS object?
I have already created another custom field/TEXT in the CONTACTS object that should display this value. I am not understanding on how to connect these two objects. These are pre-built/standard objects within the system. Any ideas is greatly appreciated! thanks
How can I create a field under <CASES> tab that will allow me to perform search based on the Employee ID?
 
I am trying to get users to search a record based on the MSG Employee ID which can be found in another object?
 
 
Appreciate your help!
 
thanks
Hi there,

In one of the Developer edition I have created a custom object A that I would like to move to another Devloper edition.

What is the best way to do that?

I tried packaging the object and then uploading to app exchange and then received a URL too - however I am confused what do I do with this URL? When I copy and paste this URL to a new browser it asks for a login details? Its confusing. How do I move it?
Hi,

Lately, I am unable to have save the scontrols and triggers created in Eclipse to the server. It gives this error?

Severity and Description    Path    Resource    Location    Creation Time    Id
Save error: Conflict found while preparing to save 'LoanerIssued_Checkbox.scf' to server.  Remote instance has been updated since last save or sync.  Use the Synchronize Perspective to resolve the conflict.    Salesforce_Cusomizations/src/unpackaged/scontrols    LoanerIssued_Checkbox.scf    line 1    1208287908574    3


Any idea?
We are a group of seasoned force.com experts and are offering tips and tricks training (mini-camps) to developers/administrators on specific hurdles which Salesforce seems to lack enough documentation on.  We have managed applications on the AppExchange and have been working with salesforce.com for over 2 years now.
 
Some of the areas include:
1) Deploying and working with Apex Code
2) S-controls
3) Visualforce tips and tricks
4) Managed Apps and deployment
5) Salesforce setup and customization
 
We will tailor your session to what area of the force.com platform you are interested in becoming more intimately familiar with.  This will be done over web conferencing software and can be a great economic way to speed up the learning process of any business looking to accelerate their development life cycle.  We have spent the time tediously exploring the various technologies and found easy ways to get them up and running so you don't have to.  Mini Camps are now forming so please respond if interested...
 
 
Thanks
Hi there,

I would like "Ready to Convert" checkbox to be checked when a user clicks on CONVERT on Leads. Here is my code:-

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script type="text/javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/12.0/connection.js"></script>


</script>
</head>

<script type="text/javascript">

function btnConvert_Click() {
// First we will make a reference to the CheckBox which is on the LEAD object.
// this is the second choice var chkReady = parent.document.getElementById("chkReady");

var chkReady = parent.document.getElementsByName("Ready_To_Convert__c");

// check if chkReady exists when this function is called.
if (chkReady != null) {
chkReady.checked = true; // check the checkbox.
}
}


<body onLoad="btnConvert_Click();"></body>
</html>

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

It gives me this error:-

btnConvert_Click is not defined

Hi there,

I need to update a checkbox on Object A , based off its related list which is Object B and also which is of LOANER record type.
Object A = CDM RMA (custom object)
Object B = RMA Add ON
Field to be updated = Loaner_Issued.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script type="text/javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/10.0/connection.js"></script>
<script language="JavaScript">

// Global Values

var isChanged = false; // set to true if the checkbox is placed on Loan Issued checkbox

// List checkbox fields here to compare the final values with
// CDM RMA is the object name and the Loaner_Issued is the customer checkbox.

var loanerIssued = {! CDM_RMA__c.Loaner_Issued__c};

// Function created to updated the checkbox.

function RmaAddon()
{

// Create temp account for updating

var updateCDM_RMA__c = new sforce.SObject("CDM_RMA__c");

// Update each CDM RMA record based on the ID.
  updateCDM_RMA__c.ID = '{!CDM_RMA__c.Id}';

// Get the RMA Add on lists attached to the CDM RMA object.
// Tried this too.(" SELECT Id, (SELECT Id, FROM R00N30000001Xi2lEAC WHERE RecordType.Name = 'Loaner') FROM CDM_RMA__c ");

var getprods = sforce.connection.query("SELECT r.Id, r.Name, CDM_RMA__r.Name FROM RMA_Add_On__c r WHERE CDM_RMA__r.Name = '{!CDM_RMA__c.Name}'");

var records = getprods.getArray ("records");

// Here I am checking that the RMA Add-On Type is Loaner based record type and if yes then place
// checkmark on the Loan Issued checkbox.
 
for(var i=0;i<records.length;i++){
dynaBean = records[i];

if(dynaBean.$Recordtype.Name == 'Loaner'){ // Record Type
updateCDM_RMA__c.Loaner_Issued__c = 1;                  // Checkbox is the checked.
if(loanerIssued == 0) isChanged = true;                  // variable name is TRUE becuase the checkbox value is changed from False to True
}
}

// If the CDM RMA record has been changed then save the new RMA Add on type for LOANER RecordType and save the record.


if(isChanged){
var saveResult = sforce.connection.update([updateCDM_RMA__c]);
if(saveResult[0].success){
window.parent.parent.location.href = '/{! CDM_RMA__c.Name }';
} else {
alert('There was an error when saving CDM RMA Record.');
}
}
}
</script>
</head>
<body>
<script>RmaAddon();</script>
</body>
</html>
////////////////////////////////////////////////////////////////////////

Here is the problem:-

1.> Either the SOQL is not correct
2.> I am unable to tell how to update a field based off Record Type
3.> Error =
dynaBean.$Recordtype has no properties
if(dynaBean.Recordtype.Name == 'Loaner'){ // Record Type

Thanks.

Hi there,

I already have the validation rule created for Phone Validation field - 10 digits with 4 digits extension? This works great. But would also like make sure, that it also checks for International Format.

AND(LEN(Phone) <> 0,
NOT (
AND(

LEFT(Phone,1)="(",
MID(Phone,5,1)=")",
MID(Phone,6,1)=" ",
MID(Phone,10,1)="-",


CONTAINS("0123456789", MID (Phone, 2, 1)),
CONTAINS("0123456789", MID (Phone, 3, 1)),
CONTAINS("0123456789", MID (Phone, 4, 1)),
CONTAINS("0123456789", MID (Phone, 7, 1)),
CONTAINS("0123456789", MID (Phone, 8, 1)),
CONTAINS("0123456789", MID (Phone, 9, 1)),
CONTAINS("0123456789", MID (Phone, 11, 1)),
CONTAINS("0123456789", MID (Phone, 12, 1)),
CONTAINS("0123456789", MID (Phone, 13, 1)),
CONTAINS("0123456789", MID (Phone, 14, 1)),

OR(AND(LEN(Phone)<=20,MID(Phone, 15,2)=" x",

CONTAINS("0123456789", MID (Phone, 17, 1)),
CONTAINS("0123456789", MID (Phone, 18, 1)),
CONTAINS("0123456789", MID (Phone, 19, 1)),
CONTAINS("0123456789", MID (Phone, 20, 1))
), LEN(Phone)<=14
)
)
)
)


What needs to be added ?

I got this from the doc:-

LEFT(Phone, 1) <> "+"

Also, if I add the above logic would it not conflict with the 10 digit rule?




Hi all!

I'm a Salesforce Professional user, and was curious if there is a way to specfically hide either an entire case section in a layout, e.g. RMA information, or specific fields, making the appearance conditional on a specific case type, e.g. RMA Request?

I've scoured the documentation and the forums here but haven't seen anything that would give me a clear cut yes, or no.

Thanks!
I need someone who can help me in developing of Bug tracking application.
 
Where to start
Is there already built application in force.com?
After creating the lables, tabs etc how to view them?
 
Note: I am very beginner in salesforce.com application/technology.
 
Thanks in Advance and much appreciated your help.
 
Bonthu. 
  • January 25, 2008
  • Like
  • 0
Hi,
 
I need to find out if the owner of account is changed during the batch processing.
Not sure if i can put a trigger on the field itself.
 
If i cannot the other option is to compare old and new values but i dont have a clue on how to do that.
Can somebody help ?
 
Thanks
  • January 14, 2008
  • Like
  • 0
Hello -
 
I have an S-Control that, for all intents and purposes, opens the existing object (an Opportunity in this case) in Edit mode and then saves it immediately with no changes.  We want to trigger a workflow rule that copies information from roll-up summary fields to the Amount field, but this is only triggered with an edit on the Opp itself, not from the child edit(s).
 
So from a link (and eventually a button), we call the S-Control, which calls Edit/Save on the Opportunity, then we reload the parent and close the child.
 
I'm using opener.location.reload().
 
The trouble is, the Opportunity page frequently refreshes too quickly, in that the database change (apparently) hasn't gone through yet.  A subsequent refresh will display the changes, but what good is that?!
 
Here's the code:
Code:
oppHasBeenSaved = false;

function init() { 
// Open Opportunity Edit page & then save the Opportunity 
    try {
         if (oppHasBeenSaved == false) {
              var url = '{!URLFOR($Action.Opportunity.Edit, Opportunity.Id)}'; 
              window.parent.location = url + "&save=1";
              oppHasBeenSaved = true;
              updateComplete();
              close();
         }
         else {
              notify();
              close();
         }
    } catch(error) {
      alert(error);
    }
} // end function init()

function updateComplete() {
    //alert("inside updateComplete ...");
    opener.location.reload();
    opener.focus();
    close();
}

Is there a way to use window.setTimeout() or some other function to allow that background activity to be completed?  (I suggested an override to the Opportunity Product's Save button, but I was overruled, hence we're doing this from Opportunity.  There's no SOQL, so there's no waiting for the return to come back.)
 
Let me know what you know.
 
Thanks!
Hi,
Has anyone solved this and has a solution to share?
It can not be done via formula as formula's limit is 1000 characters and there are a LOT of zip codes and counties.

Thanks,
Sasi