• Amol Sable
  • NEWBIE
  • 0 Points
  • Member since 2013
  • Salesforce Developer

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
I am getting this error when saving the retention policy. "Save error: Account : Cannot create a Retention Policy in this organization " field histroy tracking is enable for the object for which i am saving this policy.


I am getting this error when saving the retention policy. "Save error: Account : Cannot create a Retention Policy in this organization " field histroy tracking is enable for the object for which i am saving this policy.


pls anyone Help.


i am creted custom picklist on  UI page values there apple, banana,orange,
     Now my questios is i am giving  input test box another value like water million. 
                       water million is add the custom picklist.how to write the code in vf page.pls help me.
 

How to avoid Cross-site Scripting (XSS) using 

<apex:outputtext value="{!gadgetHTMLContent}" escape="false"/>

.. In the above outputtext gadgetHtmlContent is always a HTML CONTENT for e.g <div id="Test"></div>. Like this. For displaying html content we have to use escape="false". But whenever we are trying to write escape="false", an error is coming about  Cross-site Scripting (XSS) attacks. How can we avoid this attack by using escape="false".

                                     Please reply anyone who has any idea about this as soon as possible. It is very urgent.

                                                                                                                                                                                                   Thanks Souvik.

Hi,

When i handle the validation from trigger using trigger.new.adderror('Message...') for delete functionality the error is being displayed but not in the same page it is being displayed in the system page(new page) as a runtime exception.

 

The error displayed is:

There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "MSG_CANNOT_DELETE_RECORD_WITH_ASSOCIATION : Record cannot be deleted because it is associated with another record.". 



 

 

Have even used return; keyword after adding the adderror functionality inorder to avoid the other operations to be handled but even then this message is being raised.

Please let me know if anyone has a soln inorder to avoid the issue.

 

Thanks