function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ryepes15ryepes15 

how can i stop my visualforce page from refreshing

Currently we have a visualforce page on a case page that will pull in the opportunity product page in. Right now it will update everytime that opportunity product is updated. how can we get that page to only display what the opportunity product page looked like when the case was created and not update after the case has been created and saved.
LBKLBK
Hi ryepes15,

I believe you are using Account and Opportunity objects to figure out the relationship between Case and OpportunityLineItem objects.

You have to setup a hard relationship between OpportunityLineItem and Case objects.

It could be a lookup relationship between Case and OpportunityLineItem objects. Or, you can have a Child Object that has lookup / master-detail relationship with both Case and OpportunityLineItem objects.

This way, you can stop the data from automatically refreshed.

Let me know if this helps.