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

How do you use a return url (retURL) when using contentType="application/"?

I have a list view button attached to a VF page.  It exports the selected items to Excel using the contentType for Excel feature.


It works fine, but after the file has been saved to Excel, the user is just sitting there with a big blank screen.


No matter how I set the button behavior (new window, existing with sidebars, etc) the result is always the same.


Is there any way to incorporate a return URL in my VF code?


<apex:page standardController="Account" recordSetVar="accounts" tabStyle="Account" cache="true" contentType="application/">
<apex:form >
<apex:pageBlock >
<apex:pageMessages />
<apex:pageBlockTable value="{!selected}" var="acct">
<apex:column value="{!}"/>
<apex:column value="{!acct.type}"/>
<apex:column value="{!acct.Acct_Fax__c}"/>


<apex:page standardController="Account" recordSetVar="actcounts" tabStyle="Account" cache="true" contentType="application/">. it will just come out a full screen ,but no data .

who c an help us

 hurry hurry.