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
BrianWKBrianWK 

Display ActionStatus while page loads

Hey everyone.

 

I have two pages where I'm trying to use ActionStatus and I'm running into some issues that I haven't been able to find solutions for.

 

Situation: I have two VF pages. Page1 is loaded through a custom link on the Opportunity. This page does some custom validation and only displays if there's an apex message. Otherwise, Page1 goes straight to Page2.

 

On this page, I want to be able display my ActionStatus as the page is loading and doing it's own validation. I've looked through the options, but it doesn't appear there's a way I can call the status against the Apex : page component - or through an event ="onload" in ActionPoller or ActionSupport.

 

 

Page2 I have a different issue. I have two buttons taht I want to use the same status. Button1 just refreshes the page. I've successfully gotten the status to work on this. Button2 calls a big method that ultimately returns to the Opportunity - but it can take some time. I have button2 call my status but it never appears. I know the status is working because it works when I use Button1

 

So to try something different, I removed the status from Button1, and the Action from Button2. The status then loads when using button2. If I had status back to button1 - the Status only works for one of the buttons (Button2). I thought this meant that the status can only be used once, so I removed Status from Button1 and put the action back in Button2. But I still don't get my status with button2.

 

so questions:

 

1. How can I get my action status to appear as Page1 is loading?

2. Is there's limitations or restrictions on the number of components able to use the same actionStatus?

3. Is there particularly controller activities that won't show an actionStatus? (My controller is creating an attachment, sending an email, attaching the Attachment to the Opportunity, creating an activity, saving a field on the opportunity and then returns to the Opportunity page).

BrianWKBrianWK

I think I figured out why I can't display actionStatus when my Page1 Loads.

 

I'm calling my method in the apex: page component - The help says that the action on apex page is called before the page rendered. I assume since the page doesn't get rendered that the action status never gets displayed.

 

If that's accurate - is there a different way to display a loading status for my page1 load. I know I can use an S-Control but I hear those are being phased out and I would much rather not put the work into setting something up that will be going away.

 

Still don't know about my other questions though

clarkbkclarkbk

Hi,

 

I'd like to second and bring this question back to the surface.

 

Can anyone out there definitively say whether or not there is any way to display a 'Loading…' message or spinning .gif while a Visualforce page loads (before it is rendered)?

 

B

stutistuti
Hi,
I understand this question was posted long, but did anyone figure this out?