• Kondal Patchala
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
Hi ,
I have new request from my enduser to update the formula field. State_Code__c is the custome text field that stores the state code and country_code__c  is the formula field that stores country code based on Sate_code__c. used the case function in the formula to get the corect country code. Now we have added 4 new countrys so i need to extand tha case function with  50 extra states but unfortunatly the limit is exceeds and i am unable to do with case function . Can anyone please help me to sortout this issue .( ie. one country have many states but i am unabel to add or function in case.)



kInd Regards,
Patchala 
Hi , 
It`s bit urgent , can any one please help me to resolve the bellow issue 
https://developer.salesforce.com/forums/?feedtype=RECENT&dc=Java_Development&criteria=ALLQUESTIONS&#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Java_Development&criteria=ALLQUESTIONS&id=906F0000000Af0bIAC
Hi All,
i am trying to create new button(custom survice item) with javascript to autopopulate record type when create child record . so all the work has done and place the button on parent related list layout and its works when click button on view page related list . but have a issue when click on related list summary ( top of the record )

getting url code in java script is 
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")}
var refurl = window.location.href;

i am placing alert as part of debugging , when i click on related list on detail page, refurl stores correct page url , which is expected (https://cs17.salesforce.com/006g0000004UHMh)
  User-added image
User-added image

But when i click on the same button(custom survice item) from the related list summary on detaild page, different url stores in refurl.
User-added image

User-added image

Can anyone please suggest me what is the wrong in the above case or any process or tag to store current page url in java script 

Kind Regards,
Patchala

Hi , 
It`s bit urgent , can any one please help me to resolve the bellow issue 
https://developer.salesforce.com/forums/?feedtype=RECENT&dc=Java_Development&criteria=ALLQUESTIONS&#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Java_Development&criteria=ALLQUESTIONS&id=906F0000000Af0bIAC
Hi All,
i am trying to create new button(custom survice item) with javascript to autopopulate record type when create child record . so all the work has done and place the button on parent related list layout and its works when click button on view page related list . but have a issue when click on related list summary ( top of the record )

getting url code in java script is 
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")}
var refurl = window.location.href;

i am placing alert as part of debugging , when i click on related list on detail page, refurl stores correct page url , which is expected (https://cs17.salesforce.com/006g0000004UHMh)
  User-added image
User-added image

But when i click on the same button(custom survice item) from the related list summary on detaild page, different url stores in refurl.
User-added image

User-added image

Can anyone please suggest me what is the wrong in the above case or any process or tag to store current page url in java script 

Kind Regards,
Patchala