• Sekha(Devlope)r
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

HI..

 

I am trying to write a custom button with Onclick javascript..

 

On click of button on OpportunityLineItem i want value from my custom field to be copied to standard field(Unit price) 

 

Here is my code...

 

{!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/10.0/apex.js")}

Var OppId={!GETRECORDIDS( $ObjectType.OpportunityLineItem )};

var Opp = new sforce.SObject("OpportunityLineItem");
Opp.Id = OppId ;
Opp.UnitPrice = "{!OpportunityLineItem.Customfield__c }",replace ',' -->;
updateRecords.push(Opp);
result = sforce.connection.update(updateRecords);

 

 

I get Unexpected identifier when i click on the button...

 

Please help

 

Thanks

Hi All,

 

I have a set of record types for opportunities in my organization. I have a visual force page. I would like to redirect the user to the visual force page whenever a particular record type is selected in the drop down list.

 

Can anyone help me out , how to do this ?

 

Thank in Advance.

Good Day.