cancel
Showing results for 
Search instead for 
Did you mean: 

Can some one suggest a solution for my scenario

Former Member
0 Kudos

Hi All,

We have a issue with webdynpros executed using IE10 and working with SAP with that.

The issue is that when ever some thing is getting executed the image which comes like spinning wheel is not coming and SAP suggests us to totally upgrade which is a 6 month project and we are not ready for that as of now.

The component is getting executed fine and data is being rendered into to ALV and displayed perfectly fine , but when it takes little mor etime for getting data then user doesn't even know if it is processing or if it is hanged as there is not spinning wheel showing the progress.

So i am trying to resolve this using a Image of Spinning wheel which i wanna make visible when some input is entered and a button is clicked to get the data and when data is extracted and ALV is filled i want to make the image  invisible. I tried creating events one for making visible and another for making image invisible but only the last event gets fired as all the code is in same method of DISPLAY button.

Is there any way i can achieve this kind of scenario, please suggest as I have already exhausted all the ways i knew.

Thanks

Phani

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member211591
Contributor
0 Kudos

Hi all,

is it a problem with your browser version (IE10), since with Firefox ESR 17 or IE8 I always do have the spinning wheel while the browser is waiting for response.

Try it with another browser. If the version IE10 is the problem, you can try to use an "user agent switcher (add-on)" (if you have to use IE10 and cannot downgrade to IE8) to tell the server that you are an IE8. There are several add-ons for the firefox browser; there have to be some too for the IE.

Regards,

ismail

former_member211591
Contributor
0 Kudos

on the other hand you could do following (I never tried that, just an assumption; maybe this works.):

create an view "please be patient...", which you can call as a popup.

After each action the user triggers, you popup this view. We now have to create an automated closing of this popup, when the server has responsed.

Create an event "server_response" at componentcontroller, which we'll trigger when the server responsed. Your "please be patient..."-popup handles this event to close itself.

The only thing to do is to know when to trigger the event. This should be whenever the view is populated with your new data. This has to be usually after statements like "node->bind_table" etc., this should be the time, when the server has responsed and you populate your nodes with your new data.

Give it a try... 'Wondering if this works..

Regards...

Former Member
0 Kudos

Any more suggestions from any one.

Former Member
0 Kudos

Hello Phani,

Are you trying to pull huge data and is ALV your initial screen  ?

Regards

Anurag

Former Member
0 Kudos

Hi Anurag,

Yes I have ALV on initial screen and also data can be huge some times and some times its not.

Phani

Former Member
0 Kudos

Hello Phani,

Showing an image and then making it invisible could be your last resort, Before that we could try more wise options.

Could you also share in which method, do you pull the data into the context ?

I believe the reason why framework is taking lot of time to render the view could be that the data is huge, and you may not want to load it at the same time when all the other operations of the framework are being performed and loading your webdynpro application.

Regards

Anurag Chopra

Former Member
0 Kudos

Hi Anurag,

No thats not the issue actually we went for a upgrade and thats started this issue and SAP suggested us that we need to go for a full upgrade in order to fix this issue of IE10 which we dont want to do at this point of time keeping in mind many other issues.

Thats the reason we are looking for a temporary solution till we go for upgrade at thanks giving week end.

Phani

amy_king
Active Contributor
0 Kudos

Hi Phani,

The phase model is preventing the image from being both shown and then hidden in the single action. An alternative to a loading image is to give the users a popup confirmation message like "Please be patient...". Another option would be to set a TimedTrigger when you first display the loading image to hide the image after a certain period of time has elapsed, though you would have to guesstimate the amount of time needed.

Cheers,

Amy

Former Member
0 Kudos

I tried the timed trigger but it is getting hard to guess on time because some ties the report is taking more time and some time less abased on the inputs.

amy_king
Active Contributor
0 Kudos

Hi Phani,

True, with a TimedTrigger you would need to guesstimage the amount of time. Here is another idea-- I'm not sure this will work with the sequence of events in the phase model, but maybe worth a try.

In the handler method of the display button, instead of getting the ALV data, instead fire three events...

  1. show_loading_image
  2. get_data
  3. hide_loading_image

In the event handler method of each event, do what the name suggests. In event show_loading_image, just make the loading image visible. In event get_data do your updates to the ALV data. In event hide_loading_image, hide the loading image.

It might be easier to upgrade.

Cheers,

Amy

Former Member
0 Kudos

Hi Amy,

I already tried this scenario, where i created two events and Component controller and VISIBLE and HIDE adn then in my action of the button  i first call the VISIBLE event and then get the data and bind it and once its done i am calling the HIDE event .

But it is not happening and before making the spinning wheel visible it hides it as HIDE evnt fires as all are in same action.

Phani