• Indian
  • NEWBIE
  • 25 Points
  • Member since 2011

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

Hi everyone, 

i have issue with '&' in the page reference URL.

i have  custom objects called A and B. 

object A name : Test & Plan.

i have overwritten the New button in object B.

when i create object B from Object A, its referencing the object A in the URL. 

if the Object name contains '&' or any other special charaters its skiping the below line.

 

 

pageRef = new PageReference('/a0R/e?&Name='+defaultname+'&CF00NE0000000PlaB='+mName+'&CF00NE0000000PlaB_lkid='+objectId+'&retURL='+retURL+'&RecordType='+recordType);

 

mName is the Object A name.

 

any inputs will be helpful.

need to resolve this ASAP. 

thanks in Advance.

  • November 28, 2011
  • Like
  • 0

Hi everyone, 

 i have a trigger to update the rollup summary field on master record. when i was trying to update one field. its working correctly. 

here is the problem, when i was trying to update more than one field with based on the Amount field and the critiria is different. i have around 8 fields to update.

 here is the code for u r reference 

 

help is needed urgently

  • October 14, 2011
  • Like
  • 0

Hi everyone, 

i have issue with '&' in the page reference URL.

i have  custom objects called A and B. 

object A name : Test & Plan.

i have overwritten the New button in object B.

when i create object B from Object A, its referencing the object A in the URL. 

if the Object name contains '&' or any other special charaters its skiping the below line.

 

 

pageRef = new PageReference('/a0R/e?&Name='+defaultname+'&CF00NE0000000PlaB='+mName+'&CF00NE0000000PlaB_lkid='+objectId+'&retURL='+retURL+'&RecordType='+recordType);

 

mName is the Object A name.

 

any inputs will be helpful.

need to resolve this ASAP. 

thanks in Advance.

  • November 28, 2011
  • Like
  • 0

Hi everyone, 

 i have a trigger to update the rollup summary field on master record. when i was trying to update one field. its working correctly. 

here is the problem, when i was trying to update more than one field with based on the Amount field and the critiria is different. i have around 8 fields to update.

 here is the code for u r reference 

 

help is needed urgently

  • October 14, 2011
  • Like
  • 0