You need to sign in to do that
Don't have an account?
sp13
visualforce page in website
i have a problem in updating the records that shows on the table in my visualforce page. when i create a new record for Account it doesn't display immediately in the visualforce page's table.
this is my visualforcepage:
my salesforce site domain: http://cnsctest-developer-edition.ap1.force.com/mysitesample
how can i update the visualforce page in the website immediately after creating new records?
this is my visualforcepage:
<apex:page standardController="Account" extensions="AccountCX" sidebar="false">
<apex:pageblock >
<apex:pageBlockTable value="{!Accounts}" var="acc">
<apex:column value="{!acc.Name}"/>
</apex:pageBlockTable>
</apex:pageblock>
</apex:page>
apex class:
<apex:pageblock >
<apex:pageBlockTable value="{!Accounts}" var="acc">
<apex:column value="{!acc.Name}"/>
</apex:pageBlockTable>
</apex:pageblock>
</apex:page>
public with sharing class AccountCX{
public AccountCX(ApexPages.StandardController controller) { }
public List<Account> getAccounts() {
return[select id, Name from Account ORDER BY Name];
}
}
and this is the code for my website:
public AccountCX(ApexPages.StandardController controller) { }
public List<Account> getAccounts() {
return[select id, Name from Account ORDER BY Name];
}
}
<html>
<body>
<object data=http://cnsctest-developer-edition.ap1.force.com/mysitesample width="850" height="500">Error.</object>
</body>
</html>
<body>
<object data=http://cnsctest-developer-edition.ap1.force.com/mysitesample width="850" height="500">Error.</object>
</body>
</html>
my salesforce site domain: http://cnsctest-developer-edition.ap1.force.com/mysitesample
how can i update the visualforce page in the website immediately after creating new records?
http://help.salesforce.com/HTViewHelpDoc?id=sites_caching.htm&language=en_US
Use the cache="false" attribute in the page tag
<apex:page standardController="Account" extensions="AccountCX" sidebar="false" cache="false">