Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

how to get back to the main page..?

Hi...

i m building a phoneservice where i come from one menu to the next..

after completing the update i give a message back...

Here is the question...

what is the command to go back to the mainpage after 5 sec..so the user has not to close all the different menues that were opened??

Thanks for help

13 REPLIES
Community Member

Re: how to get back to the main page..?

You can use the refresh header with a URL pointing to the main page and 5 second time.

In Java/JSP/Servlet, you do something like this:

response.addHeader("Refresh","5;url=http://mainPage");

Community Member

Re: how to get back to the main page..?

thanks for the reply...

the line is ..

response.setHeader... and so on...

but what is the url of the main page, or where do i find it in ccm??

thanks alex

Community Member

Re: how to get back to the main page..?

I thought you were talking about the main page of your app. What do you mean by main page? services page, that lists are services?

Community Member

Re: how to get back to the main page..?

no..not the services page.. i allready tried that, it works fine and it calls the page after the specific amount of seconds but if i push the exit softkey i get back to the last menu that was opened by my phoneservice to set some value in the database.

i m trying to find a way to collaps all the menues that i opened while my three jsps were running, so that the user doesnt have to press exit three times.

i thought a good idea would be just to call the "main page" meaning the page that is started when u log in on the phone.

do u know where this page is...?

or do u have a better idea to get rid of this problem

Thanks a lot

Community Member

Re: how to get back to the main page..?

Community Member

Re: how to get back to the main page..?

thanks a lot... works great...

if someone else needs the line...

response.set Header("Refresh", "3; URL=Init:Services");

this is case sens.

Thanks

Alex

Re: how to get back to the main page..?

It's interesting to see that this works.. I always figured you'd need to send one of the main XML elements as a response.. so I'm sending an url to a page which contains one CiscoIPPhoneExcuteItem with that URI.

Has anyone ever seen a minimal load requirement for that URI (seeing as only the 6.01 documentation mentions it.. )?

Community Member

Re: how to get back to the main page..?

I just tried in CCM 4.2 with new phone loads. It works when you have it as part of ExecuteItem, but not as refresh header.

This doesn't work:

response.set Header("Refresh", "3; URL=Init:Services");

This works:

Community Member

Re: how to get back to the main page..?

Ofcourse this won't work:

response.set Header("Refresh", "3; URL=Init:Services");

You need an url (http:// etc...) as parameter for the refresh header. You cannot use html/xml or anything else as parameter only url's!

Community Member

Re: how to get back to the main page..?

It definitely works. Haven't tested all phone loads or all versions of CCM, but all the ones we have tried definitely work.

Community Member

Re: how to get back to the main page..?

How do you know which executeitem is working, since you've got two? is it the Init:Services or the SoftKey:Exit? Both would have the same effect, wouldn't they?

We widely use the Init:Services in the refresh header. mostly CCM 4.1(3), I think.

Community Member

Re: how to get back to the main page..?

I am sorry, I was quite sure about the url as parameter. If this does work it's realy nice!

Community Member

Re: how to get back to the main page..?

yes, it is a nice feature. we have an extension mobility proxy (for gathering other user info at the time the user logs in to a phone, and for tracking users so we can deliver messages based on userid). the problem is that, for the later phone types, when we use AXL to log the user in, the last status message stays on the phone through the reset. the way we clear it is to send the "Resetting, please wait ..." message with a refresh header of "10; URL=Init:Services". It was the only way could find to clear the screen in this circumstance for every phone type.

351
Views
0
Helpful
13
Replies
CreatePlease to create content