URGENT!!!!! Back Button functionality
Hi folks,
I have to implement the back button functionality in swing.I have currently 4-5 screens and i navigate through them. I have to add back button on each screen. And if it is pressed user should go to previous screen and also previous screen status should be retain.I mean the fields should be populated.
I would really appreciate if anyone can help me in this.It would be of great help anyone have code snippet.
Thanking you in advance...Its URGENT guys...
Regards
ashish
You can use Card Layout for this.
Similar Messages
-
Re: [iPlanet-JATO] Back Button functionality
Hi Mike,
Our test environment does not include proxy server.
regards,
syam.
Please respond to [email protected]
cc:
Subject: Re: [iPlanet-JATO] Back Button functionality
Guys,
Please clarify something for me, the JATO code is commented as follows
protected void addResponseHeaders(RequestContext requestContext)
// These values should make any proxy between the client and
// server avoid caching, and ensure that pages from one user
// can never be seen by another user (if they're cached anyway)
requestContext.getResponse().addHeader("Pragma","no-cache");
requestContext.getResponse().addHeader
("Cache-Control","private");Yet you make no mention of whether your test environment includes a Proxy
Server, or does your browser
go directly to the Application Server's web server?
Can you clarify, please?
----- Original Message -----
From: <syam_reddy@p...>
Sent: Wednesday, April 25, 2001 2:59 PM
Subject: [iPlanet-JATO] Back Button functionality
>
Hi,
We observed the following difference in behaviour between JATO pages
and NetD served pages.
We have the following scenario. User will login to the
site. After login he will get a frame set. This frame set has threeframes.
Top and bottom frames are used for navigation (to switch between various
sections on the site.) .The middle frame(main frame) shows the actual
content. When the the frame set gets loaded main frame shows page1. User
will click on a link on page1. Page 2 will be loaded in main frame. Atthis
point if the user clicks on back button , with migrated application(JATO
pages) the following message appears in the main frame.
In Netscape Communicator 4.61 the following message appears in the main
frame :
Data Missing
This document resulted from a POST operation and has expired fromcache.If
you wish you can repost the form data to recreate the document by
presenting the reload button.
In IE 4.72/5.5 the following message appears in the main frame:
Warning : Page has Expired
The page you requested was created using information you submitted in a
form.This page is no longer available.As a security precaution, Internet
Explorer does not automatically resubmit your information for you. To
resubmit your information and view the web page click teh refresh button.
However, in the NetD site page1 will appear in main frame.
How do we mimic the NetD behaviour with the migrated
applications ?
We think the above behaviour with migrated Apps, is due to the
headers that are get set in Application ServletBase , see the following
code snippet :
protected void addResponseHeaders(RequestContext requestContext)
// These values should make any proxy between the client and
// server avoid caching, and ensure that pages from one user
// can never be seen by another user (if they're cached anyway)
requestContext.getResponse().addHeader("Pragma","no-cache");
requestContext.getResponse().addHeader
("Cache-Control","private");
If we comment the above code , we were able to mimic theNetD
behaviour. Are there any alternatives/thoughts on how to mimic the NetD
behaviour ?
Thanks in Advance,
syam&ravi.
[email protected]
[email protected]OK, here's what I'm trying to do: We have, like you said, a menu
page. The pages that it goes to and the number of links are all
variable and read from the database. In NetD we were able to create
URLs in the form
pgXYZ?SPIDERSESSION=abcd
so this is what I'm trying to replicate here. So the URL that works
is
pgContactUs?GXHC_GX_jst=fc7b7e61662d6164&GXHC_gx_session_id_=cc9c6dfa5
601afa7
which I interpreted to be the equivalent of the old Netd way. Our
javascript also loads other frames of the page in the same manner.
And I believe the URL-rewritten frame sources of a frameset look like
this too.
This all worked except for the timeout problem. In theory we could
rewrite all URLs to go to a handler, but that would be...
inconvenient. -
The Problem is about Standard Back Button Function in Report Program
The Problem is about Standard Back Button Function in the Report Program.
In the Report,First call screen Then Using "write" output some information,That is ok. but In the GUI When I press back button that is standard button,it exit screen to program.
My question is how can i do When i press back button,the screen can be back forward first screen instand of exit screen to program. Thanks .This problem is solution.I call screen using T-code and submit report In PAI,at last return to PAI.That is OK.
-
The Problem is about Standard Back Button Function in the Report Program.
The Problem is about Standard Back Button Function in the Report Program.
In the Report,First call screen Then Using "write" output some information,That is ok. but In the GUI When I press back button that is standard button,it exit screen to program.
My question is how can i do When i press back button,the screen can be back forward first screen instand of exit screen to program. Thanks .Hi,
You can define your own PF-STATUS and in that assign the function code for BACK button anything except 'BACK'.
The code would somewhat look like this:
SET PF-STATUS 'TEST'.
write : itab-col1,
itab-col2.
in the PF-STATUS 'TEST', assign the function code to BACK button as 'BCK'.
Now in your program you can use the event AT USER-COMMAND.
In this you can handle the functionality of BACK button.
Hope this helps.
Regards,
Himanshu -
BACK button functionality to be changed for custom report in ITS screen
Hi all,
I am working on SRM 5.0 with INTERNAL ITS.I have created a custom report and a transaction code for the same.Now in the SRM Web menu,I have provided a link for this report.
Now i can see all the std menu options like BACK SYSTEM CANCEL as buttons in the web screen.However when i click on the BACK button,it takes me to the SAP EASY ACCESS MENU screen as we see in SAPGUI.
My reqt is that on click of the BACK button,i need to show the HOMEPAGE of the SRM.Is this possible?If so,how?
All inputs will be highly appreciated and rewarded.Hello!
There are several possibilities how to call transaction:
- You can call it as service (that is what you do when you test it from SICF)
- You can call it through service (or alias) WEBGUI (not using service for the specific transaction to call it)
If you are calling it through WEBGUI then parameter ~SINGLETRANSACTION should be added to service (or alias) of WEBGUI. And there should be added also Log Off URL (in SICF). At this case it should navigate back to the URL which is specified in SICF.
Hope this helps!
Best regards,
Rorijs -
Dear All,
I have developed a Block List ALV Report . In it I have made a Hyperlink on each column of cells. The Requirement for it is to view more details if any value is clicked. So I have called a Classical Output. Till here it is working fine.
Now when I click BACK Button then it is navigating to Selection Screen but it should go to Block List ALV.
I have tried all the methods like by creating PF Status and capturing SY-UCOMM for BACK button.
Please guide me.
Regards,
Bharti JainHi,
How do you call your CLASSICAL OUTPUT? If you used CALL TRANSACTION command,
better used it with SKIP FIRST SCREEN. See the sample below.
SET PARAMETER ID 'AUN' FIELD gt_vbak-vbeln.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
Let me know if this work with your requirements.
Thanks,
iostreamax -
No back button function in Metalink?
Hi.
Does anyone have a problem with the back button on the (Flash) Metalink?
Any work-arounds for this please, other than going to the non-flash html site instead.
Thank,user11981168 wrote:
Hi.
Does anyone have a problem with the back button on the (Flash) Metalink?
Any work-arounds for this please, other than going to the non-flash html site instead.In new version (Flash), AFAIK, it is not possible.
Please read
http://www.actionscript.org/resources/articles/142/1/Enabling-a-back-button-within-flash/Page1.html
Regards
Rajesh -
Question about back button and Onload function in a jsp
Hi All,
I am having two jsp pages, say a.jsp and b.jsp. I had a javascript onload function which refreshes all the fields in a.jsp. When i enter some values in a.jsp, based on those values i will be getting the results in b.jsp. Now when i click the back button in b.jsp, it will go to a.jsp again. The problem i am facing is when i click this back button, because of the onload function in a.jsp all the fields in a.jsp are getting refreshed but i want the values which i entered previously in that page. Is there a way that i can do this such that the onload function will not run when i come to that jsp by clicking the back button.
Also i would like to know why a.jsp is reloading when we click the back button in b.jsp and coming to a.jsp. Is this way how back button will function. I am not sure of it. Plz clarify my doubts..
Thx.....Normally it is not advisable to use the browser back button rather if there is a need we should
implement the back button functionality.
For e.g
In b.jsp
<head>
</head>
<script language="Javascript">
function fnBack()
document.frmHeader.action = "a.jsp";
document.frmHeader.submit();
</script>
<form name="frmHeader" method= "post">
<input type="hidden" name="hdCheckFromB" value="Y">
<p>
<input type="button" name="btnBack" value="Back" onClick="javascript:fnBack();">
</p>
</form>
</body>---------------------------------------
Now , in a.jsp
<%
String strBackParameter = requst.getParameter("hdCheckFromB");
%>
// Now if strBackParameter is carrying a value "Y" , then we know its from B else body onLoad refresh-------------------------------------
Hope this helps.
Thanks -
Safari 7.0.4 Back button often greyed out.
Since updating to Mavericks and getting Safari 7.0.4 with that, often my Safari back button is greyed out when clicking on a link in a page. When a link opens a new window, of course there will be no back button function for that new window until you click on to another page. That is not the problem. My back button is greyed out often when I click on a link that changes the current window to the new page without giving me a new window. Normal surfing stuff. I have had to use my History dropdown to go back to the previous page.
Delete the cache and troubleshoot Safari extensions and plug-ins...
pen a Finder window. From the Finder menu bar click Go > Go to Folder
Type or copy paste the following
~/Library/Caches/com.apple.Safari/Cache.db
Click Go then move the Cache.db file to the Trash.
Quit and relaunch Safari to test.
If that didn't help, try troubleshooting extensions.
From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.
If it's not an extensions issue, try troubleshooting third party plug-ins.
Back to Safari > Preferences. This time select the Security tab. Deselect: Allow plug-ins. Quit and relaunch Safari to test.
If that made a difference, instructions for troubleshooting plugins here. -
Disabling of back button in Oaf
How to diasble the functionality of back button present in Internet explorer?
Thanks in advanceYou cannot disable the back button functionality, but can handle the back button clicks on your page.
Please check pageContext.isBackNavigationFired() method. Accordingly there is a class called TransactionUnitHelper which can be used to identify the sequencing of the back button and a decision made accordingly whether you want to continue with the page functionality or show a Stale data page.
Regards
Sumit -
IE Back Button Control.
Hi
I am facing a problem.If any one can help me please do. The problem is ..
I want to handle the control of Back Button. Suppose page1 browses page3 after redirecting page2.deafult back Button coming on page3 to page2.But I wants to come on page1.Is it possible. That means I want to customize the back button functionality.
Is there any method to handle history . If it is possible please answer me as early as possible.
Regards,
KoushikI found some articles to solve this. If you see the banking sites like icicibank.com(after loggin in), they followed this concept. Their if the user clicks back button then, it''l say like u've clicked back button or your session is expired. Then it'll ask to relogin again.
please refer this link for further information.
[http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911|http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911]
Hope this iformation helps you little bit. -
Safari Back Button - Broken Again!!!
In a previous post, http://discussions.apple.com/thread.jspa?messageID=9724856 I was able to restore the back button functionality by doing a complete reset on my 1G iPod after the Safari Back Button became permanently disabled. This happened shortly after upgrading to OS 3.0.
It has now happened again, and this time I know the step that caused it. I was on Wikipedia and clicked a hyperlink to another wiki page. The link generated a 502 Bad Gateway error. At this point, the Safari Back Button became permanently disabled.
I guess I have another full reset to do again.
MartyAfter doing another full reset, the Back Button on Safari was activated again. BUT!!! Now after using it for a day, it's gone again!!! Arrrrrrrggggggggggggghhhhhhhhhh!!!!!!
Is there any way of going back to OS 2.x? This never happened over the last 1.5 years of using OS 1.x or 2.x on my 1G iPod Touch.
Marty -
Back button is not working-urgent
hi ,
i created my own pf status by using following function modue. it is showing pf status correct. in my pf status i keep back and exit buttons only. when i execute the following report it is showing back and exit buttons only. when i click back button action is not performing . any body can tell why the action is not working . i activated my pf status also. if possible send me the sample code.
iam sending my code below....
selection-screen: begin of block b1.
parameters : p_appln type mara-matnr.
parameters : p_user type marc-werks.
selection-screen: end of block b1.
data: begin of exclude occurs 0,
func(10) type c,
end of exclude.
At selection-screen output.
set pf-status 'SELK'. <-- Comment this line
if sy-dynnr eq '1000'.
call function 'RS_SET_SELSCREEN_STATUS'
exporting
p_status = 'SELK'
tables
p_exclude = exclude
exceptions
others = 1.
endif.
thanks,
maheedhar.tPlease assign the function codes to the back button and use the function code in your program for a particulat action.
Check this piece of code might help you.
call the ABAP list viewer *
FORM list_display TABLES a_output.
pgm = disvariant-report = sy-repid.
disvariant-variant = variant.
call list viewer
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = pgm
i_callback_pf_status_set = 'SET_PF_STATUS'
it_fieldcat = fieldcat
is_layout = layout
is_print = print
i_save = 'A'
it_events = eventcat
it_sort = sortcat
i_callback_user_command = '<b>USER_COMMAND'</b>
TABLES
t_outtab = a_output
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. "LIST_DISPLAY
FORM SET_PF_STATUS *
FORM set_pf_status USING extab TYPE slis_t_extab.
SET PF-STATUS 'STATUS1'.
ENDFORM. "set_pf_status
FORM USER_COMMAND *
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
DATA t_difference TYPE i.
CASE ucomm.
WHEN 'ENT1'. <--The function code.
Shreekant -
Back button is premanently greyed-out and non-functional
I have tried all of the suggested fixes: disabling add-ons and extensions, deleting and re-installing the program, etc... but the back button remains non-functional, even on safe mode and after the last few updates. I cannot use the browser until this problem is fixed, and will continue to use Chrome until it is (even though I hate it and really miss Firefox). Funny thing is, it only happens on my Macbook Pro, running the latest version of Snow Leopard... it doesn't happen on my i7 iMac, running the same version of Snow Leopard.
Any help would be greatly appreciated.
Thanks, and have a great day,
-JimRalph Johns (UK) (to Emily Vu) 19 minutes ago
Hi,
Check the Font AppleGothic.ttf is active and validates using the Font Book app.
if you have to change anything restart the Mac.
If this is not the issue go to ~/Library/Preferences and find com.apple.ichat.plist and Drag it to the Trash and then restart Messages.
The above reply in another thread solved my issue! Namely that my apple gothic font was disabled, breaking the entire Messages app. -
Disable Default function of "Back" button for Android.
Hi there!
I have tried SO MANY methods to PREVENT the default function of Back button in Android but no success
This is one of the codes I have used with no success:
stage.addEventListener(KeyboardEvent.KEY_UP, optionsKey, false, 0, true);
function optionsKey(ke:KeyboardEvent):void
if (ke.keyCode == Keyboard.BACK)
ke.preventDefault();
ke.stopImmediatePropagation();
//Do my own code below...
I am using Flash Cs6 , Air 3.2 for Android , Testing it on LG Google nexus 4.
When I use the flash simulator, it works fine! Means the Back Button, let the App go back to previous step (as I expect it to do)
But after I publish the apk (Aspect ratio: Auto , Auto orientation , Render mode: GPU), as soon as I press BACK, it minimize my app!
(means when i press the Back button on my phone, the App minimize down (not close!). when I re-activate it/click on it, I see the app has actually gone one step BACK (as I programmed and expected), but I just CANT STOP the default action of MINIMIZING/De-activating my app after pressing Back button.
Anyone have any "Fla" file that I can see it in ACTION please?!
Because I have used many-many codes and no success yet
thanks and looking forward for your any kind of hlep...
Message was edited by: PouradamI got my own answer thanks to myself!!
in above code .KEY_UP should be changed to .KEY_DOWN.
simple!
Maybe you are looking for
-
I am trying to use an external 3g modem made by Huawei model e173s-6 and when I do connect it on my usb port the macbook pro just do not recognize it. I own a 2012 model with mountain lion 10.8.2 . What should I do ?
-
How to extract data from ORCL GL in "full" and not "delta " with FDM ERPI?
Hi I am using FDM ERPI 11.1.2.1 to extrct data from Oracle eBS 11. I can see that FDM ERPI extracts data in "delta mode" using the GL_TRACK_BALANCES_DELTA (FDM adds a row in this table after the 1st load of the period"). Is it possible to force the "
-
it keeps on crashing all the time
-
Zen Micro Doing Some Weird THINGS PLEASE H
well i've had my zen for a long time and enjoyed it for along time till one day the screen goes blank but i could still listen to my music. its way out of warranty and i tryed to upgrade the firmware but my device wasnt recognized bye the update. Nap
-
Hello all, thanks for reading. I have searched the Internet, this forum, and I am at the end of my wits. I have workstations that must run Java applets for specific sales training. Several workstations will not run applets at all, and only get the re