Exit button Handling.
Dear all,
Am using Jdev(11.1.1.5.0). This is my scenario, Consider am having a Exit button in which, I ve written the below code.
FacesContext facesContext = FacesContext.getCurrentInstance();
org.apache.myfaces.trinidad.render.ExtendedRenderKitService service = org.apache.myfaces.trinidad.util.Service.getRenderKitService(facesContext,ExtendedRenderKitService.class);
service.addScript(facesContext, "window.close();window.opener.location.href = window.opener.location.href;");This code works fine in Firefox browses, whereas it doesn't support for other major browsers such Chrome, Safari, IE, etc. How can I fix this issue. Pls suggest me some ideas.
-raka
HELP! You need help, no shit!
Please spend time WRITING A SUBJECT!
Similar Messages
-
Hiding exit button ess payslip2
In ECC5 ESS I've been trying to make the floorpattern exit-button invisible.
In the onInit() function of the Component of vcRem2Selection, of the ess~rem DC the message-text and tooltip are already set.
In the context of vcRem2Selection there's no property for the visibility of the component controller, this is found in the FcRfw interface controller. After context-mapping the element bexit_label and setting it to WDVisibility.NONE, nothing happened though.
Can anybody tell me how to make this button invisible?Is it possible the perspectives/buttons are handled on the portal side with a srvconfig definition?
-
EXIT button on the top level form is not working.
Hi I have 10g forms deployed on the web.
On the top level form, there is a exit button on it.
And for this form, under ALERTS I have two alerts viz. QUIT_ALERT and BANNER_ALERT.
Now when I press the EXIT button on the form, nothing is happening. Neither prompting the ALERT nor closing the FORM.
Where and What could be the problem??
I have the following code for the exit button
IF G$_DISPLAY_ALERT('QUIT_ALERT','Do you really wish to quit?') = ALERT_BUTTON1 THEN
EXIT_FORM;
END IFAnd the function G$_DISPLAY_ALERT has following code
FUNCTION G$_DISPLAY_ALERT(ALERT_NAME IN VARCHAR2,
MSG_STRING IN VARCHAR2) RETURN NUMBER IS
ALERT_ID ALERT;
AL_NAME VARCHAR2(30);
ALERT_BUT NUMBER;
BEGIN
IF ALERT_NAME IS NULL THEN
AL_NAME := 'G$_WARNING_ALERT';
ELSE
AL_NAME := ALERT_NAME;
END IF;
ALERT_ID := FIND_ALERT(AL_NAME);
IF ID_NULL(ALERT_ID) THEN
RAISE FORM_TRIGGER_FAILURE;
END IF;
SET_ALERT_PROPERTY(ALERT_ID, ALERT_BUT, MSG_STRING);
ALERT_BUT := SHOW_ALERT(ALERT_ID);
RETURN ALERT_BUT;
END;Edited by: Charan on Mar 30, 2011 2:01 PMseems like some trigger is firing, because i'm getting a CAUTION popup now saying Please Acknowledge.Actually, the PAUSE() built-in is what brings up the "Please Acknowledge" alert. Clearly, your trigger is firing so there must be something wrong with either your WBP trigger code or your G$_DISPLAY_ALERT program unit.
Try the same technique on your program unit. I would also suggest you display a message in your Exception handler. My guess is that your function is failing but since you don't report the failure, it appears that your code runs successfully.
FUNCTION G$_DISPLAY_ALERT(ALERT_NAME IN VARCHAR2,
MSG_STRING IN VARCHAR2) RETURN NUMBER IS
ALERT_ID ALERT;
AL_NAME VARCHAR2(30);
ALERT_BUT NUMBER;
BEGIN
Message('Alert_name: '||ALERT_NAME);
PAUSE;
IF ALERT_NAME IS NULL THEN
AL_NAME := 'G$_WARNING_ALERT';
ELSE
AL_NAME := ALERT_NAME;
END IF;
ALERT_ID := FIND_ALERT(AL_NAME);
IF ID_NULL(ALERT_ID) THEN
Message('Unable to find Alert: '||ALERT_NAME);
Message('Unable to find Alert: '||ALERT_NAME);
RAISE FORM_TRIGGER_FAILURE;
END IF;
SET_ALERT_PROPERTY(ALERT_ID, ALERT_BUT, MSG_STRING);
ALERT_BUT := SHOW_ALERT(ALERT_ID);
RETURN ALERT_BUT;
END;Then you can see what the value of ALERT_NAME is and verify your code is executing as expected.
Craig...
Edited by: CraigB on Mar 30, 2011 12:54 PM -
"Exit" button used in multiple sequence frames
I am hoping there is a more elegant way to do this...
See the attached VI for a vastly-simplified program that typifies what I am trying to accomplish. Basically, I've got one button that I want available in multiple sequence frames. In this case, I have used an "Exit" button. When pressed, the program passes through any remaining sequence frames until it ends. The final frame "unclicks" the "Exit" button. This final frame is necessary because I had to set the mechanical action of the Exit button to "Switch When Released" because I used local variables in all sequence frames after the first one.
Is there a way I can accomplish the same functionalities of this program without using local variables and/or while setting the mechanical action of the "Exit" switch to "Latch When Released?" I am specifically looking for solutions which will work in multiple frames of a stacked sequence structure (I realized there are ways to turn the three lights on without using a stacked sequence structure, but I am not interested in doing so).
Any help would be greatly appreciated! Thanks!
Solved!
Go to Solution.
Attachments:
Stop Button Demo.vi 14 KBhi dia,
So many discussion was finished regarding this multiple Event structure. In your code totally 3 event structures you are using. But in a program only one Event structure is enough to operate properly. Because in LabVIEW only one event queue is there in built. So if you use more than one event structure LabVIEW will got confused and it will get queued up, even though there is no state and it will be masked some time. That's why your code taking so much of time to exit. Some times it seems like hang...
Try this VI...
<<Kudos are welcome>>
ELECTRO SAM
For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
- John 3:16
Attachments:
Event Handle.vi 11 KB -
I created an exit button to close a webpage at the end of an Adobe Presenter course using; javascript:window.close() and pubished it. On inserting the .swf file and publishing the Presenter file the exit button does not work.
Using: Captivate 5, Presenter 7.0.6There are solutions available. While not all browsers allow you to close a window without handles; you can close IE (for example) and then attempt to close other browers. If they don't close within a reasonable period of time (e.g. one or two seconds) you can redirects your users to another page (e.g. either your website; or a simple document with instructions to the learner to close the browser using the X).
I do NOT recommend using Flash files with embedded "window.close()" or the like. This will only work if the page that is opened is a simple page and not contained within a frameset (where you might need "parent.close()" or "top.close()", etc). You'd have to edit your Flash file each time to make this work, if it works at all. I recommend creating a Flash file that contains a reference to an actual function you create, such as "closeBrowser". Then you create that function in the HTM file that contains the Flash-based files and you can easily modify that.
I discussed this issue and originally developed some certificates or quit buttons for AS2-based Presenter and Captivate files in an article on Connect Users: http://www.connectusers.com/tutorials/2009/02/certificates/.
I have to update my articles (in my spare time) for AS3-based articles. However, you could easily create a Flash-based button that calls ExternalInterface.call('closeBrowser'); or something similar. The code you'd want to include in your HTM file is found here: http://www.connectusers.com/tutorials/2009/02/certificates/JSCodeForHTMLTemplates.txt
The function to call from Flash is: closeBrowser
-Andrew -
Can anyone help? - exit buttons
i have a deadline for an assignment tomorrow. the sub movies are loading without any problem but the exit buttons on the loaded swfs are not working. can any help? my code is the following and i'd appreciate it if someone could help:
monkey_btn.addEventListener(MouseEvent.MOUSE_DOWN, buttonPressed);
zebra_btn.addEventListener(MouseEvent.MOUSE_DOWN, buttonPressed);
penguin_btn.addEventListener(MouseEvent.MOUSE_DOWN, buttonPressed);
lion_btn.addEventListener(MouseEvent.MOUSE_DOWN, buttonPressed);
gallery_btn.addEventListener(MouseEvent.MOUSE_DOWN, buttonPressed);
video_btn.addEventListener(MouseEvent.MOUSE_DOWN, buttonPressed);
//set the variable to record the name of the button pressed;
var button:String = "empty";
// function to record which button pressed
function buttonPressed(event:Event):void
if (event.target.name == "monkey_btn")
button = "monkeysub";
else if
(event.target.name == "zebra_btn")
button = "zebrasub";
else if
(event.target.name == "penguin_btn")
button = "penguinsub";
else if
(event.target.name == "lion_btn")
button = "lionsub";
else if
(event.target.name == "gallery_btn")
button = "picture gallery";
else if
(event.target.name == "video_btn")
button = "videosub";
// the next statement closes the if }
// add a trace statement to test which button name is recorded
trace(button);
//calls the deactivateButtons function
deactivateButtons();
// the next statement closes the function }
//Now we need to create our addMovie function:
//define a loader to load the movie to the stage
var movieLoader:Loader = new Loader();
function addMovie()
//define the movie to load
var movieRequest:URLRequest = new URLRequest(button+".swf");
//Set the loaders load property to the var movieRequest
movieLoader.load(movieRequest);
//add the movie to the stage;
addChild(movieLoader);
//set its x and y positions
movieLoader.x=0;
movieLoader.y=0;
//function to deactivate the buttons
//function to call the addMovie and deactivate the buttons
function deactivateButtons()
// disables the buttons
monkey_btn.mouseEnabled = false;
zebra_btn.mouseEnabled = false;
penguin_btn.mouseEnabled = false;
lion_btn.mouseEnabled = false;
gallery_btn.mouseEnabled = false;
video_btn.mouseEnabled = false;
addMovie();
//function to remove the loaded movie and reactivate the
//buttons this function is called by the child loaded through
//the addMovie function
function activateButtons()
removeChild(movieLoader);
// enables the buttons
monkey_btn.mouseEnabled = true;
zebra_btn.mouseEnabled = true;
penguin_btn.mouseEnabled = true;
lion_btn.mouseEnabled = true;
gallery_btn.mouseEnabled = true;
video_btn.mouseEnabled = true;First of all it would be helpful if you can provide us a somewhat simplified version of your LabView code to understand your problem better.
As far as I understood your descriptions you want to open a second front panel (besides your main front panel) when pressing on the configuration button. You also want your main VI front panel operational while your sub VI front panel is open.
I guess you have changed the window behaviour of your sub VI to "floating" in VI properties / "window appearance". So you don't want a modal dialog? Do you really need the configuration dialog to be non modal, because a modal dialog would be simpler?
Next, you are trying to handle the button events of your sub VI in a second event structure of your main VI, which is bad design in my opinion. Why don't you create an event structure in your sub VI and put all your configuration dialog related code there? This will make the main VI block diagram cleaner. If you need access to main VI front panel objects pass them as references to the sub VI.
As an alternative to dynamically calling the sub VI in parallel you can also use a separate while loop with a notifier waiting for a notification which you fire in the configuration button event. The notifier while loop will then call the sub VI and wait there until the subVI is closed. -
Adding an EXIT button in ALV toolbar
Hi,
i want to add an exit button in my ALV toolbar wherein it should exit the browser or the URL which displays the output. Plzz help me on this.
Thanks.Hi,
the following code may help you:
DATA:
l_ref_cmp_usage TYPE REF TO if_wd_component_usage,
l_interface TYPE REF TO iwci_salv_wd_table,
lr_table TYPE REF TO cl_salv_wd_config_table.
create alv component
l_ref_cmp_usage = wd_this->wd_cpuse_<name_of_alv_comp>( ).
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
l_ref_cmp_usage->create_component( ).
ENDIF.
get config models
l_interface = wd_this->wd_cpifc_alv_activities_prdstd( ).
lr_table = l_interface->get_model( ).
create the toolbar button
DATA:
lr_functions TYPE REF TO if_salv_wd_function_settings,
lr_function TYPE REF TO cl_salv_wd_function,
lr_fe_button TYPE REF TO cl_salv_wd_fe_button.
lr_functions ?= lr_table.
lr_function = lr_functions->create_function( 'MYBUTTON' ).
CREATE OBJECT lr_fe_button.
lr_fe_button->set_text( 'MyButton' ).
lr_function->set_editor( lr_fe_button ).
After that add an event handler for the ON_FUNCTION event of the alv. In this method you can do whatever you want.
Kind Regards,
Anika -
Exit button is not popping Quit/cancel options in application (.exe)
Hi,
I have created a VI with Exit button using run time menu option
When I run same VI and click on Exit button, it popups a message with Quit or cancel options
Then I created .exe for the same VI and executed, when i click on exit button it is directly quitting labview with out any popup message
Can some one help me in creating .exe with quit/cancel popup message
Thanks in advanceOh, you are calling the LabVIEW IDE's Exit. Do not do that. With that you are aborting any running VIs (ie, not letting them stop on their own) and shutting down LabVIEW.
I recommend you use an Event Structure to handle the pressing of the exit menu item and doing whatever you need to inside that event case.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
RE: [iPlanet-JATO] image button handling
Hi Todd,
from what I have seen so far on the Project they are just buttons on
the page.
In the interim, I modified RequestHandlingViewBase.acceptsRequest() to
handle the matching of parameter and command child names.
from
if (request.getParameter(commands)!=null)
return getCommandChildNames()[i];
to
if (request.getParameter(commands[i])!=null ||
(request.getParameter(commands[i]+ ".x")!=null ))
return getCommandChildNames()[i];
This fixed the problem with the image buttons in our cases.
Kostas
-----Original Message-----
From: Todd Fast
Sent: 10/27/00 6:21 AM
Subject: Re: [iPlanet-JATO] image button handling
Hi Kostas--
I wanted to get some feedback on the known issue of the
handleXXXXRequest method not being fired for buttons which have
images, due to the the browser submitting
the pixel coordinates back to the server like this:
Page1.ImageButton1.x=...
Page1.ImageButton1.y=...
As the ND conversion project we are currently working on heavily uses
image buttons we would like to get and indication if and when a patch
is planned for this.
Our current work around is to remove the src attribute from the JATO
tags in the JSPs.We are currently working on getting this fixed. One question--what is
the
relative type of usage of image buttons in your project? Are they just
buttons on the page (view bean), or do they appear in tiled views as
well?
Todd
[email protected]
[Non-text portions of this message have been removed]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. -
In Editable ALV the BACK/CANCEL/EXIT buttons are not working?
Hello,
I wrote a editable FM based ALV, working fine that when user changes the data and press SAVE button, values are transfering into prog. But, i need to put a validation that, if user changes the values and press BACK/CANCEL/EXIT button, i need to popup the message that "Do you want to save changes", my PF-STATUS is good(because, SAVE is working).
But, its not working that when user done changes and press BACK button (forgot to press SAVE button), system taking me to selection screen/screen 0!! I my code is as below,
FORM pick USING v_ucomm TYPE syucomm
it_selfield TYPE slis_selfield.
DATA: v_answer TYPE char1.
READ TABLE it_z_tbl INDEX it_selfield-tabindex
INTO w_z_tbl.
CASE v_ucomm.
WHEN '&IC1'.
" working fine this functionality
ELSE.
MESSAGE i000 WITH 'Double click on key field'.
ENDIF.
WHEN 'SAVE'.
" working fine this functionality
WHEN BACK' " OR 'CANCEL' OR 'EXIT'.
PERFORM popup_for_user_decision CHANGING v_answer.
CHECK v_answer = '1'.
PERFORM now_update.
ENDCASE.
ENDFORM.
when i put the break point on the first line of this piece of code, its not stopping on pressing BACK/CANCEL/EXIT buttons!! (its stoppig for SAVE press or double click)
Its stopping at this point,
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'.
EXPORTING
i_callback_user_command = 'PICK'
IMPORTING
EXCEPTIONS
IF sy-subrc <> 0 =================> its stopping at this point!
ENDIF.
Pls. let me know why system is not recognising that i hv a PICK form (SAVE and Double clicks are working fine)?
Thank youHi,
Actually BACK is standard user command so it is not stopping and going to selection screen.
Give some other use command like 'BCK' and try.... -
Exit button not working in exe file made with Aggregator
Hi,
I created an .exe file using Aggregator in full screen mode but the exit button on the skin doesn't work. When I click the exit button, the dislay hiccups (wobbles a bit) but the file keeps playing and doesn't close. This is especially problematic since this occurs in full screen. The only way to exit is by hitting the Escape key on the keyboard. The exit button works fine in individual .exe files of the modules; it's just in the aggregated .exe file that the exit button doesn't work. Is there anything special I need to do to make the exit button work with Aggregator?Hi, this is more J2EE related stuff, SAP came with a solution but is taking ages to get the next page after the "Exit" button is pushed:
Go to VisualAdnmin >server(n) >Services >Configuration Adapter >
(Right side Pane) webdynpro >sap.com >tcwddispwda >PropertySheet
default.
Edit the property sheet and change the custom value for the property
"sap.locking.maxWaitInterval" to 200.
Note 1113811, explains why these kind of errors happen.
I still waiting for a better solution from SAP.
Cheers -
Exit button not working in MS Explorer
Hi. The exit button in our Captivate courses are not working
all of a sudden. They work in FireFox but in MS IE. We are using
Capivate 2.0. IE version is 6.0.Hi Apparo,
In onAction method of the Exit button, a call is made to the TargetExitApplication as follows:
fpm.navigate(wdThis
.wdGetFcNavigationInterface()
.getNavigationTargetExitApplication());
Also, the Exit button does work in the Address Overview/Edit/Review Page, but not in W-4 Tax and Benefits Enrollment.
Any help on this problem !!!
Regards,
Adren -
Exit Button not working in ESS
Hi All,
We have configured ESS in our landscape. When I go to any Overview/Edit/Review Page (in W-4 Tax, Add/Change dependents etc..), the Exit button which is present is not working. When I click the Exit button, it doesn't exit the current view, but instead stays at the current location.
Can anyone tell me the reason for this strange behaviour? Also, where should I make the code level changes for the Exit button work.
Any kind of help would be greatly appreciated.
Regards,
AdrenHi Apparo,
In onAction method of the Exit button, a call is made to the TargetExitApplication as follows:
fpm.navigate(wdThis
.wdGetFcNavigationInterface()
.getNavigationTargetExitApplication());
Also, the Exit button does work in the Address Overview/Edit/Review Page, but not in W-4 Tax and Benefits Enrollment.
Any help on this problem !!!
Regards,
Adren -
How to make Exit button for Out-of-browser application
Greetings all,
This sounds so simple, yet I can't find anything about it. I want to make an Exit button in a Silverlight 4 Out-of-browser application. When the user clicks the button, the application is to quit or close or exit. (The same effect as if the user clicks
the red X icon in the upper right-hand corner of a window.)
Any ideas will be appreciated.Jonathan --
Yes, the word Page has taken on many meanings in the last 15 years. I'll clarify. When I make a simple Silverlight OOB (out-of-browser) application using Visual Studio 2010, I ask Visual Studio to Add New Item, then choose Silverlight Page. Let's
say I name it Page2.xaml.
By default VS2010 already made another page for me, MainPage.xaml.
Now, here is my need: On the page called MainPage.xaml, I want to place a large button that says Exit Application. When the user clicks that button, I want the application to end and the entire window to close. This is the standard behavior in most traditional Windows
applications, for example in Microsoft Word or Microsoft Excel or Microsoft Access. In any of those traditional applications, the user can, from the menu, choose File/Exit. If he does, then not only does the application quit, but also the window
closes itself. The user doesn't have to click the small red X icon in the upper right corner.
That simple behavior of almost all traditional Windows applications, large and small, is what I'm looking for in my simple Silverlight
OOB applications: An Exit command that quits the application and closes the window itself.
Sorry for the confusion. I really appreciate your help. Any ideas? -
Exit Button script won't work in Adobe Reader 8
Hello,
I have this code on Exit button for pdf form:
app.execMenuItem("Close");
Or
to give warning before Exit: Have a second RealExit Button hidden to execute the code
var answer = xfa.host.messageBox("Are you sure you want to Exit?","Warning Message",2,1);
if(answer==1){
RealExit.execEvent('click');
I tried both the code one at a time but no luck in Adobe Acrobat Version 8, works like a charm in Adobe Acrobat 9
I would like the user to click the Exit button if they choose to exit. However it doesn't work in Adobe Acrobat 8 but works in 9 version. Is there a work around? Any suggestions???
ThanksThis answer may not be a big help but sure will give you some level of understanding....
Check the URL>>>http://kb2.adobe.com/cps/402/kb402673.html
Check the section "PDF Forms-related issues:" starting mid page.....
Not all releases/versions are good. Some releases tend to have some bugs...the version you tested could be one of them. Adobe always recommends to be on the latest version. If client still on older version that is client's problem especially there should not be any restrictions on upgrading to Latest version when the software is free!
Maybe you are looking for
-
My ipod nano has been working fine for at least three years. All of a sudden I get two messages. First, "there is a problem with this drive, scan and fix it". And, an Ipod has been detected but can't be identified properly. It's a 6th generation n
-
My iPod Touch 4th Gen won't play certain songs?
Okay, so here's what happened. I opened my iTunes (the latest one) and it's also on the latest iOS, and then plugged my iPod touch into the computer. Since an album didn't have album artwork and I wanted an album artwork to show up in my ipod, I adde
-
AD SSO with entry point for SAP users....
A client would like to use Active Directory (AD) Single Sign On rather than SAP for authentication purposes. There are two potential scenarios we would need to support: Scenario 1, access to SAP BW (General Ledger, Profit Centre Accounting) and rela
-
The assignment to variable x has no effect
public class A{ int x; public static void main(String args[]) A a = new A(); a.someMethod(); someMethod() x=x++; System.out.println("Value of x...."+x); I am getting warning that The assignment to variable x has no effect and the output i get is 10;
-
Mac won't detect second superdrive (pics)
so, here's the story. i flashed my macs superdrive (both of them) and after that one of them was just completely gone. when i go into system profiler and go under hawrdware and into ATA, it detects both drives, but when i go into Disc Burning, i only