How to close the main window from Popup
hello all,
i need to close the main window from a popup, so i create a popup and after clicking on close button of this popup, should also the main window be closed.
how can do this please?
BR
Hi
Please go through this.. check thomas reply
Re: Close Main Window directly on action on Pop up window
also check this..
how to close main window on click of a button on popup window
cheers,
Kris.
Edited by: kissnas on May 12, 2011 5:06 PM
Similar Messages
-
I use Windows 7 Ultimate in Aero-mode. When a new Firefox window is opened, or a Pop-up window appears, I can't close it without first clicking on that page and clicking the "X" in the corner. Instead, whenever I try to close a window that is not the first window (my main window), it will ask me if I want to close the main window with all the tabs... I have noticed some other slight quirks in this stable release as well, but this one is always present.
When I hover over the window, it does come up front, but as soon as I press the red "X" it goes immediately back to the main window and acts as if I was trying to close that one. Once in a while it will work, but shortly thereafter, it will just go back into this manner. Quite odd. This is the first time I've truly had any problems with Firefox.
In addition to that problem I have noticed a few things, but one that may be linked is sometimes I'll click a link. Although I haven't specified to open it in a new window, it will do so anyhow. This gets annoying quickly. Usually shutting down Firefox and reopening will fix this (and once in a while just leaving it be for a long time). Somehow, I think this issue is somehow linked to the one above. -
Seems like when FF restores a session, it restores the session of the last window open. If you use tabs as a way of keeping a list of things to do or look at, you have to be careful if you have a second window open to close the second window before your main one, or you will lose your list. I'm absent minded though and do this all the time. The only way to prevent this is bookmark all my tabs once a day, but I tend to forget to do even that. Any workaround for this?
When you re-open Firefox and choose Restore Session, by default it picks up your most-recently-open window, and the other windows should then show up in Recently Closed Windows.
The Firefox add-on Session Manager lets you manage how many closed windows and closed tabs are saved, in case it's not enough. -
How to find the main window?
Hi, can someone help me. I cant find the main multi track window. Ive looked in the window drop bar and searched with no luck and its starting 2 get annoying. Please any info would help
I got it from a mate who's doing a music degree. Its the educational version its authentic. I was having problems with it just shutting down on me in the middle of a session so I re-installed the programme then when i ran it ther were no windows. I had to click on the window bar to make them appear but i dont know how th make the main multi track window appear? I installed the patch but still no change. Its probably somthing i have to open ye?
-
How to hide the main window menu ?
Hi, Im developing a Java app that has an horizontal menu bar,which has the option to exit the program . So I want to hide, or get rid of the main window menu bar, the one that has the close, minimize and maximize buttons..is it possible ?
Thanks in advance :)from java.awt.Frame api
A frame may have its native decorations (i.e. Frame and Titlebar)
turned off with setUndecorated. This can only be done while the
frame is not displayable. -
Toolkit for CreateJS: How to control the main timeline from outside the canvas.
Hey Everyone,
I'm currently trying to do something simple, but my animation breaks whenever I attempt to change my code. I have created a basic animation in Flash where an object moves from the left side of the canvas, to the right, and then loops from the last frame to the first frame. Nothing else. The animation is simply put on the main timeline. I exported the animation with Toolkit for CreateJS through Flash's extension and the animation runs as it should. I am trying to start and stop (restarting from the first frame) the animation with mouse over and mouse off events. I want the events to fire when moused over/off a div OUTSIDE the animation's canvas tag. Is this possible with CreateJS? I'm trying to figure out how to control the main timeline without being inside the canvas tag.
Example HTML:
http://www.thephotoncore.com/testing/example_test.html
Example Code:
<section id="container">
<canvas id="canvas" width="550" height="400" style="background-color:#cccccc"></canvas>
<section id="animation_control">
<p>Roll over to start and stop animation.</p>
</section>
</section>
Thanks again for the help!
-DJHi DjPhantasy5,
All movieclips on the stage are children of the stage,
So on the "mouseover" all movieclips on the stage could be stopped with stop and on the "mouseout" all children could be restarted with gotoAndPlay like this:
function Stop()
if (stage && stage.children)
var i, l = stage.children.length;
for (i = 0; i < l; i++)
var child = stage.children[i];
if ("stop" in child)
child.stop();
function Restart()
if (stage && stage.children)
var i, l = stage.children.length;
for (i = 0; i < l; i++)
var child = stage.children[i];
if ("gotoAndPlay" in child)
child.gotoAndPlay(0);
See http://www.liauw.nl/forums/adobe/djfantasy5/index.html
But it is also possible to expose "ball1", for example, by adding it to the document.
This can be done by adding code to "ball1" like so:
/* js
document.ball1 = this;
Then the stopping of the animation would look like:
function Stop()
if ("ball1" in document)
document.ball1.stop();
etc.
Have fun!
Ronald -
How to make the main window's table size fixed?
Hi all,
when i have a single line item, the size of table in main window is getting reduced. Its size is varying according to number of line items. Is not is possible to keep the size of table fixed even you have single line item?
Regards,
BipenHi,
You need to create a dummy template of fixed size and do not use lines for the main window table use the template. this will overlap with the window height.
If you want tro display something then pass the field based on some condition on end of the table
Regards
Shiva -
How to close the adobe forms in popup windows once.
hi,expert..
i show a adobe form in a popup windows in my webdynpro program...but i find out that i at least click twice on the "CLOSE" button on the right top of the window.....how can i modify my program to close the window once..
the original codes are as follow:
method onactionprint .
data lo_nd_zhrhap_vp_app_01 type ref to if_wd_context_node.
data lo_nd_zhrhap_t_document type ref to if_wd_context_node.
data lt_zhrhap_t_document type wd_this->elements_zhrhap_t_document.
lo_nd_zhrhap_vp_app_01 = wd_context->get_child_node( name =
wd_this->wdctx_zhrhap_vp_app_01 ).
lo_nd_zhrhap_t_document = lo_nd_zhrhap_vp_app_01->get_child_node(
name = wd_this->wdctx_zhrhap_t_document ).
lo_nd_zhrhap_t_document->get_static_attributes_table(
importing
table = lt_zhrhap_t_document ).
DATA lo_nd_zhrhap_s_app_leader TYPE REF TO if_wd_context_node.
DATA lo_el_zhrhap_s_app_leader TYPE REF TO if_wd_context_element.
data ls_zhrhap_s_app_leader type
wd_this->element_zhrhap_s_app_leader.
lo_nd_zhrhap_s_app_leader = lo_nd_zhrhap_vp_app_01->get_child_node(
*name = wd_this->wdctx_zhrhap_s_app_leader ).
lo_el_zhrhap_s_app_leader = lo_nd_zhrhap_s_app_leader->get_element(
lo_el_zhrhap_s_app_leader->get_static_attributes(
IMPORTING
static_attributes = ls_zhrhap_s_app_leader ).
DATA lo_nd_zhrhap_s_dates TYPE REF TO if_wd_context_node.
DATA lo_el_zhrhap_s_dates TYPE REF TO if_wd_context_element.
data ls_zhrhap_s_dates type wd_this->element_zhrhap_s_dates.
lo_nd_zhrhap_s_dates = lo_nd_zhrhap_vp_app_01->get_child_node( name
*= wd_this->wdctx_zhrhap_s_dates ).
lo_el_zhrhap_s_dates = lo_nd_zhrhap_s_dates->get_element( ).
lo_el_zhrhap_s_dates->get_static_attributes(
IMPORTING
static_attributes = ls_zhrhap_s_dates ).
采集表名称和日期
data lo_nd_if_data type ref to if_wd_context_node.
data lo_el_if_data type ref to if_wd_context_element.
data ls_if_data type wd_this->element_if_data.
lo_nd_if_data = wd_context->get_child_node( name =
wd_this->wdctx_if_data ).
lo_el_if_data = lo_nd_if_data->get_element( ).
lo_el_if_data->get_static_attributes(
importing
static_attributes = ls_if_data ).
ls_zhrhap_s_dates-valid_begda = ls_if_data-begda.
ls_zhrhap_s_dates-valid_endda = ls_if_data-endda.
DATA lo_el_zhrhap_vp_app_01 TYPE REF TO if_wd_context_element.
data ls_zhrhap_vp_app_01 type wd_this->element_zhrhap_vp_app_01.
data lv_description like ls_zhrhap_vp_app_01-description.
lo_el_zhrhap_vp_app_01 = lo_nd_zhrhap_vp_app_01->get_element( ).
lo_el_zhrhap_vp_app_01->get_attribute(
EXPORTING
name = `DESCRIPTION`
IMPORTING
value = lv_description ).
REPLACE ALL OCCURRENCES OF '类别:' in lv_description with ''.
lv_description = ls_if_data-stext.
data l_is_ok type boole_d.
data pdf_source type xstring.
data l_msg type ref to cl_hrpa_message_list.
create object l_msg.
call method zcl_hr_appraisal_utility=>print_contract_direct
exporting
form_type = 'COD'
zhrhap_t_document = lt_zhrhap_t_document
zhrhap_s_dates = ls_zhrhap_s_dates
zhrhap_s_app_leader = ls_zhrhap_s_app_leader
description = lv_description
job_description =
message_handler = l_msg
importing
is_ok = l_is_ok
pdf_xstring = pdf_source
check l_is_ok is not initial and pdf_source is not initial.
data lo_nd_pdf type ref to if_wd_context_node.
data lo_el_pdf type ref to if_wd_context_element.
data ls_pdf type wd_this->element_pdf.
data lv_source like ls_pdf-source.
lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
lo_el_pdf = lo_nd_pdf->get_element( ).
lo_el_pdf->set_attribute(
exporting
name = `SOURCE`
value = pdf_source ).
*-->ADOBE View embeded to ViewContainer UI
data: lr_view type ref to if_wd_view_controller,
lr_api_main type ref to if_wd_component,
lr_window_man type ref to if_wd_window_manager,
comp_usage type ref to if_wd_component_usage,
l_title type string value '打印合同',
lr_window type ref to if_wd_window.
lr_view = wd_this->wd_get_api( ).
lr_api_main = wd_comp_controller->wd_get_api( ).
lr_window_man = lr_api_main->get_window_manager( ).
l_title = wd_colr_mp_controller->model->get_text( '006' ).
call method lr_window_man->create_window
exporting
modal = abap_true
window_name = 'POPUP'
title = l_title
button_kind = if_wd_window=>co_buttons_yesno
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_yes
receiving
window = lr_window.
lr_window->open( ).
endmethod.
looking forward to your help....thanks in advancePing,
1st, see the Markup formatting options over on the right part of the screen - if you wrap your code between the code tags it will read MUCH better.
2nd, I can't replicate this issue - we have several PDFs opening in new windows & we only need to click once on the clost 'X' - how are you calling the PDF in a new window?
If you can't find a final resolution, an alternative would be to place a LinktoAction on your web dynpro application somewhere that makes sense which would close the window for you.
We do this on Sucess Message Views...
You can simply add the link to action to the screen, and in the event handler use
data : l_view_cntr type ref to if_wd_view_controller,
l_win_cntr type ref to if_wd_window_controller,
l_window type ref to if_wd_window,
l_parameter_list type wdr_event_parameter_list,
l_parameter type wdr_event_parameter,
l_val type ref to data.
field-symbols <fs> type any.
l_view_cntr = wd_this->wd_get_api( ).
l_win_cntr = l_view_cntr->get_embedding_window_ctlr( ).
l_parameter-name = 'CLOSE_WINDOW'.
create data l_val type c.
assign l_val->* to <fs>.
<fs> = 'X'.
l_parameter-value = l_val.
insert l_parameter into table l_parameter_list.
l_win_cntr->if_wd_view_controller~fire_plug(
exporting plug_name = 'EXIT_PLUG'
parameters = l_parameter_list ).
Make sure you have an Exit plug on your Window with Plug Type EXIT. -
How to submit the parent window from child window
Hi,
I am looking out for a solution. I have a main JSP page and on clicking a button in the page a pop up window will be displayed, which is too a JSP page. Finally i should submit both Popup window JSP page and the parent window JSP page, when clicking the button in pop up window. Can anyone come out with some possible solutions.Hi
Please go through this.. check thomas reply
Re: Close Main Window directly on action on Pop up window
also check this..
how to close main window on click of a button on popup window
cheers,
Kris.
Edited by: kissnas on May 12, 2011 5:06 PM -
How to bring the browser window from background/minimized to on top of all windows in Flex
Hi I have the requireemnt where based on some condition I am opening a JSP in a new window by calling
navigateToURL(myFormData, _MYWINDOW);
Calling this will open a new browser window. My requirement is when the new window if minimized or behind other windows, how can I bring this window(MYWINDOW) infront of all the windows using JavaScript in Flex.
In which file under html-template do I have to write my JavaScript function.
Any help on how to call JS from Flex and handling in JS is very much appreciated.
Someone please share with me if there is any sample code. Thanks in advancehi
to communicate with javascript, use ExternalInterface (see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/External Interface.html for an example)
you can add your JS directly to the index.template file or create a separate JS file and add the link
not sure what JS you would use to bring window to front but i am guessing there is something... -
How to restore the Main Drive from Time Machine after replacement
I have a Late 2008 PowerBook Pro. I have a 2TB external drive for Time Machine.
I replaced the main drive with a 1 TB drive and thought that i could restore from the Time Machine. I have another external drive that has an earlier OS on it. It lets me select the time machine drive but doesn't allow me to restore the main drive.
I must be missing something because this is exactly why there is a Time Machine.
Can anybody give me some hints?
Thank you so much
RudolfYou need to use online recovery to re-install an OS X on the hard drive;
the utilities to correctly format the hard drive may be accessed there.
Ideally, you'd have a working copy (clone) to then be able to re-clone
into a prepared hard drive, for an off-line complete restore to new HDD.
There are details, right now I'm not able to go into them.
•OS X: About OS X Recovery - Apple Support
Good luck & happy computing! -
How to control the main timeline from within a symbol?
I have a small world map as a symbol called "verden" and I want the user to click Europe, Asia, or Africa and jump to named labels in the main timeline.
http://www.dagbladet.no/grafikk/neshorn/neshorn.html
On the main timeline a have the label "intro" with a Stop action and the label "europa". At label "europa" I have a symbol also called "europa" which has a display of None at label "intro" and On at the label "europa".
The animation never goes to label "europa"
I have this code on europa in the symbol "verden" :
// insert code for mouse click here
sym.getComposition().getStage().getSymbol("europa").play("europa");
The files are on Dropbox here
Update, now it works:
sym.getComposition().getStage().play("europa");Hi Bill,
There are plenty of threads on here about scope, but here's one way to create a global variable:
// code on Stage.compositionReady
sym.myGlobalVar = 1;
Then, anywhere in your project, you can check/set that var like so:
sym.getComposition().getStage().myGlobalVar = 2;
And here's one way to create a global function:
// code on Stage.compositionReady
sym.myGlobalFunction = function(){
console.log('myGlobalFunction');
Then, anywhere in your project, you can call that function like so:
sym.getComposition().getStage().myGlobalFunction(); -
How to close the command prompt from program
Hi,
I am using Swing. i used System.exit(0) to close my frame when a condition is met. But the command prompt is not closed. How do i close that automatically@Op.
When was the command prompt opened?
It won't close if it was opened before you started your application, and it won't close if you are executing your application from a bat/cmd-file that doesn't terminate.
Kaj -
How to dock the main window to the screen edge?
Is this feature implemented in Swing or some other frameworks?
PS: I need only window docking to screen,but not docking panels or other elements to window.I guess I don't understand what you mean by docking.
That method will place the frame at the left edge of
the screen.I meen that if the frame is located on small distance from the screen egde it tends to be attached to this egde, like taskbar and other panels on the desktop. I hope you will understand my poor english :) -
How to close the Return Order from Billing due list
Dear Gurus,
This is the scenario of Free subsequent delivery with the reference of Return Delivery.
In brief-->
I created one sales order and done its normal delivery and billing. So this order to cash cycle is completed.
Then due to the damage in transit of some material customer wants to return some good and ask for the subsequent delivery of same goods.
therefore I create a return sales order with the reference of previous sales order and and do the return delivery. Here I am not making the credit note as I have to make the subsequent delivery for the return order.
So I create the sales order for subsequent delivery with the reference of Return order and do the delivery.
Now I have the query that when I run the billing due list (VF04) I get the same return order in billing due list as I have not created the credit memo with its reference. And the return order will remain there always. But I dont want that return order to appear in the billing due list as I have done the subsequent delivery for that return order.
Please tell me how the return order's status can be made completed to avoid it in billing due list.
Please suggest me all the possible solutions to complete the scenario.
regards,
SanjayHi,
The SDF has to be created with refernce to the Sales Order only.
In Brief:-
When ever the goods are damaged in transit,generally we ask them to scrap the damaged goods and then decide what to do like
1) Either to give a credit note to the customer for the damaged goods.
or
2)Replace the Goods by SDF.
Check me if iam wrong
Regards
SK
Maybe you are looking for
-
Use airport express to extend network from linksys wrt54g
Hello all, I'm having no luck here, and hope you can help me. I am running a MacBook Pro, 2.16 GHz, Intel Core 2 Duo, 3 Gigs ram, OS X 10.6.8.I am at work, trying to use a newly purchased AirPort Express to extend the signal from the back office, whi
-
Cyan Highlight Behind Text in Design Pane
Hi, Could anyone tell me why some of my pages have a cyan colored highlight behind the text in the design pane. It does not happen to all of my sites and am wondering why this particular site that is doing this, is doing his. File is a .asp extension
-
Request help on Oracle Applications InterConnect Downloads
Hi ! Recently I have attended the seminar conducted by Oracle in Hyderabd,there they given Oracle Applications InterConnect using iStudio.Where we have to get this Oracle Applications InterConnect software.for this server any sever sholud need ? Kind
-
Hi Sapients, i wanted wht r the different versions of SAP R/3 released after SAP 4.7E.Plz tell me its urgent.
-
Dear team, I have one doubt in return order creation. There are two scenarios while creating return order, (1) if customer returns within 180 days (from invoice date) than i need to give him full credit (base price as well as tax) and (2) if customer