Capture the Popup window action
Hi,
I have a requirement when i click 'yes' on popup window i need to save the data. For that i need to capture the fctcode of save.
Below is the sample code...
Data: context_node type ref to if_wd_context_node.
data: lr_popup type ref to if_wd_window,
lr_view_controller type ref to if_wd_view_controller.
data: lr_api_comp_controller type ref to if_wd_component,
lr_window_manager type ref to if_wd_window_manager.
lr_api_comp_controller = wd_comp_controller->wd_get_api( ).
lr_window_manager = lr_api_comp_controller->get_window_manager( ).
lr_popup = lr_window_manager->create_window(
MODAL = ABAP_TRUE
window_name = 'WIN_POPUP' "Name of the window created in step 2
TITLE = 'Do you want to save the form'
CLOSE_BUTTON = ABAP_TRUE
BUTTON_KIND = if_wd_window=>CO_BUTTONS_OKCANCEL
MESSAGE_TYPE = if_wd_window=>CO_MSG_TYPE_INFORMATION
CLOSE_IN_ANY_CASE = ABAP_TRUE
*MESSAGE_DISPLAY_MODE = "MESSAGE_DISPLAY_MODE'
Adds an action to the popup screen buttons
lr_view_controller = wd_this->wd_get_api( ).
lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = 'Yes'
action_name = 'SAVE'
action_view = lr_view_controller ).
lr_popup->open( ).
Hi,
you did right:
lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = 'Yes'
action_name = 'SAVE'
action_view = lr_view_controller ).
Now create action SAVE (within tab 'Action'). When action save is created, method ONACTIONSAVE will be created automatically.
Within ONACTIONSAVE you can check which button is clicked using the WDEVENT parameter:
if wdevent->name = 'ON_NO' or wdevent->name = 'ON_YES'.
endif.
Regards
Similar Messages
-
Refresh only page item while submitting data from the popup window
Hi All,
I'm pretty new to Apex .....
I have a form with text items as first few entries and then a radio button list and few text items again. On selecting certain radio button I have a popup window which acts as an interface for the next text item in the calling page. The purpose of having the popup window is that the text item following the radio button takes the input with certain character delimiters along with the data. Instead of using delimiters while entering the data I want a meaningful data to be keyed in the popup window and all the string operation to be done as a background process. I have been successful this far. I'm using the below javascript on click of the submit button.
javascript:doSubmit();
window.opener.doSubmit('REFRESH');
window.close();
On doing this I'm losing the values submitted for the items prior to the radio button(including radio button). Please note, I have a dynamic action set on page load to reset the values. Is it possible to refresh just the page item from the popup window.
Also, I tried excluding the window.opener.doSubmit('REFRESH'); from the above javascript. It sets the item with the expected value (viewed it in the session items, however I would like to view the concatenated string on my calling page) but following this there is an insert operation which uses all the necessary items in the form. All values except the value returned from the popup window is populated into the table. Am I missing something.
Any help in this regard is appreciated.
Thank you!!!
Regards,
GaneshValue set using Javascript is only in your browser page but is not yet available in the session. This is why the report doesn't return the expected output.
Before refreshing the report you would need to set the session state of this item.
You can set it after you assign the item a new value or before the report is refreshed
For Interactive Reports, this is available built in
you can go to Report Attributes >Advanced Attributes -> Page Items to Submit and specify P2_X1 for the field(and any other page item that the report is dependent on)
For standard reports, you can create a Dynamic Action that is triggered "before refresh" of the report's region, and choose PLSQL as the action types, give a dummy BEGIN NULL END; for the code and specify this item name in the page item to submit field so that it sets the items's value in session. -
Disable Collaboration Features coming up in the popup window for somegroups
Hi,
How can I disable the Collaboration Features
(Send Email,Create Appointment,Send InstantMessage,CreateTask etc )
that come up in the popup window whn we click on the link provided just after user name. I know how it is to be done for all users. But I want it deactivate for certain groups only.
Regards
MKYou need to configure command groups.
Use following link:
http://help.sap.com/saphelp_nw70/helpdata/en/98/dd48a9b4a197489a54187c99372bce/frameset.htm
Regards
Prabhakar Lal -
How to set the width and heigh in the popup window
Hi All,
I tried to show a report in a popup window style.
In the column link section, I defined the URL like the following:
javascript:popupURL('f?p=&APP_ID.:128:&SESSION.::&DEBUG.::P128_PAY_RATE,P128_PAY_TERMS:#PAY_RATE#,#PAY_TERMS#'). how and where to set the height and width for page 128?
Thank you,
sparkHere is a sample of the JavaScript function I re-use that opens a popup window. You'll notice that it includes the width and height of the popup window:
function callTCPopup (formItem1) {
var formVal1 = formItem1;
var url;
url = 'f?p=&APP_ID.:1111:&APP_SESSION.::::P1111_TC_ID:' + formVal1;
w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
if (w.opener == null)
w.opener = self;
w.focus();
}You could also look at using a Modal Page (Skillbuilders' plugin - watch the video for use). -
Urgent!! How to capture the active windows
I want to write a program to capture the active windows in the Windows desktop. Can anyone help me. I know to use class "Robot" to capture the screen, but how to determine the position of the active windows in the desktop.
Thanks...This code could work to capture the desktop screen:
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
Image imgs;
try{
Robot r = new Robot();
Rectangle rect = new Rectangle(0,0,d.width,d.height);
imgs = r.createScreenCapture(rect);
}catch(AWTException awe) {
System.out.println("robot excepton occurred");
Try this!!! -
About the popup window created by if_wd_window_manager- create_window
hi,experts
i want to put out a pdf file in popup window.and use method create_windos of if_wd_window_manager to get it.then i find a question: i at least click twice to close the window....why? what modification i need to implement that the window close as soon as i click the "CLOSE" button once. i guess that is normal.
the original codes is as follows:
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 'print the contract'.
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_comp_controller->model->get_text( '006' ).
call method lr_window_man->create_window
exporting
modal = abap_true
window_name = 'POPUP'
title = l_title
close_button = abap_on
BUTTON_KIND = '1'
default_button = '5'
receiving
window = lr_window.
lr_window->open( ).
thanks..looking forwards to your help!hi ,Sajid
1.
data l_api_v_new_assignment type ref to if_wd_view_controller.
l_api_v_new_assignment = wd_this->wd_get_api( ).
data window_controller type ref to if_wd_window_controller.
window_controller = l_api_v_new_assignment->get_embedding_window_ctlr( ).
data window type ref to if_wd_window.
window = window_controller->get_window( ).
window->close( ).
to your first option. my codes are written in a view of the main windows and the popup window is another, so can't get the exact window.. so there is a dump error after i test this one.
iF MO_POPUP TYPE REF TO IF_WD_WINDOW, IS AN ATRIBUTE DEFINED IN COMPONENT CONTROLLER
and in popup_method this is the coding related for opening popup .
DATA:lo_api TYPE REF TO if_wd_component,
lo_win_manager TYPE REF TO if_wd_window_manager,
lo_api = wd_this->wd_get_api( ).
lo_win_manager = lo_api->get_window_manager( )
wd_this->mo_popup = lo_win_manager->create_window(
title = 'xyz'
window_name = 'WINDOW NAME'
button_kind = if_wd_window=>co_buttons_okcancel
message_type = if_wd_window=>co_msg_type_warning ).
wd_comp_controller->mo_popup->open( ).
Then for closing pop up on event handler method of no write the following coding
wd_comp_controller->mo_popup->close( ).
to second one... i think this part of codes are the same as mine except the last sectence...... and i add the last sentence in my coding but nothing sepecial happend...
looking forward for more helps...thanks a lot -
I am getting the popup window that says my startup disk full even after deleting many files.
I am getting the popup window that says my startup disk is almost full. I have transfered most of my photos to an external HD, deleted most of my iTunes library, and emptied the trash. The problem is that with these steps, the diskspace did not increase at all-not even a megabyte. Any ideas why or how to fix it?
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
Drag or copy — do not type — the following line into the Terminal window, then press return:
df -Hl
Post any lines of output that appear below what you entered — the text, please, not a screenshot. -
Change the popup window size in the "optional label with help" template?
G'Day Apex/javascript gurus,
I am using Apex 4.0 where I coded an HTML table for help text in one item. Now, when an user click for help in this item then the HTML table is bigger than the size of the pop up window so the client has to re size it a bit to see it fully. To fix this, I tried to create a new "optional level with help" template where I can control the size of the pop up window and make it bigger to fit my HTML table so the client does not have to resize but I could not find any parameter in the original template:
<label for="#CURRENT_ITEM_NAME#"><span class="t9optionalwithhelp"> "javascript:popupFieldHelp('#CURRENT_ITEM_ID#','&SESSION.')" tabindex="999" that help me to achieve that
I am not an expert in javascript but I appreciate greatly if somebody here could help me to create a new label (with help) template where I can control the size of the popup window.
Kind regards
Carlos
Edited by: creyes on Aug 1, 2011 1:22 AMHello Carlos,
You can overload the APEX javascript with your own, on the page you want it to happen. You can do that in the Page Definition - Function and Global Variable Declaration.
Copy the below code into there and change the width and height of the popup.
function popupFieldHelp(pItemId, pSessionId){
// Show jQuery div based dialog if not running in screen reader mode, if not fall back to old popup
if (!$x('pScreenReaderMode')) {
apex.jQuery.getJSON(
'wwv_flow_item_help.show_help?p_item_id=' + pItemId + '&p_session=' + pSessionId + '&p_output_format=JSON',
function(pData){
var lDialog = apex.jQuery("#apex_popup_field_help");
if (lDialog.length===0) {
// add a new div with the retrieved page
lDialog = apex.jQuery('<div id="apex_popup_field_help">'+pData.helpText+'</div>');
// open created div as a dialog
lDialog
.dialog({
title: pData.title,
bgiframe: true,
width: 500,
height: 350,
show: 'drop',
hide: 'drop' });
} else {
// replace the existing dialog and open it again
lDialog
.html(pData.helpText)
.dialog('option', 'title', pData.title)
.dialog('open');
} else {
popupFieldHelpClassic(pItemId, pSessionId);
return;
}; // popupFieldHelpHope that makes sense,
Dimitri
http://dgielis.blogspot.com
http://www.apex-evangelists.com -
Can the popup window be moved?
Hello,
Is it possible by the user to move the popup window? If yes, Can you please explain how that can be done programmatically to allow users to do that? I am using NWDS SP14.
Best regards,
DharmiHi Dharmi,
you cant move a modal window
create an external window which opens in a new browser
see this link
IWDWindow object query
Hope this helps you
Regards
Rohit -
I need to capture the Active window on the event of PrintScreen Key pressed. What I get is the whole desktop. Can anyone please tell how do I capture the Active Window?
Try alt-printscreen
But I don't know what it is in Java -
Hi,
When i am debugging the original program i got a popup window like address information. How can i debug the popup window...?
Is there any way except finding and keeping break point in the respective popup code...
Thanks in advance.
Regards,
Gopi.Hi
yes you have to create a shortcut on your desktop
So go to Create Shortcut:
- Choose Application section:
- Insert these data:
Type = System Command
Coomand = /H
Title = Debug
Press enter.
Now the system create an shortcut for debug command on your desktop.
So run your transaction until the popup is showed, now drag the shortcut on popup and debug'll be actived.
Max -
To Disable the Collaboration Features coming up in the popup window
Hi,
Can some one tell me how I can disable the Collaboration Features ( Send Email,Create Appointment,Send InstantMessage,CreateTask etc ) that come up in the popup window whn we click on the link provided just after user name .
I dont want to get the link to be displayed next to user name as we aren't implementing the Collaboration feature in our Portal here
Regards
NazeerHi
You can remove the context menu popup by doing this:
Login to portal as admin
Follow system admin-->sysconfigratrion --> coloabration -->properties -->command group -->users group -->edit --> remove
UserGWGroup
UserSyncGroup
UserAsyncGroup
UserWorkflowGroup.
This way all the menu will be removed.
Best Regards
Prabhakar Lal
PS : You may have to restart the server to see the changes.
Message was edited by:
Prabhakar Lal -
How to handle the popup windows in e-tester.
Hi,
We are currently using the e-Tester by using record/playback on Facebook. During recording as part of functionality we have encountered some confirmation popups (Which are not ordinary windows popups). Actions on those popups (confirm/cancel) are not identified by e-Tester while play back. We don’t have an idea about in which language those popup are developed.
Can any body please suggest the solution?
Regards,
RamWe don’t have an idea about in which language those popup are developedI'm quite sure that is is not Oracle Forms.
-
How can i make the popup window have scroll bar when the content is long?
Hi,
My page have a button, when click it, it will show a popup window, and invoke a taskflow.
<af:commandToolbarButton text="edit"
icon="#{sdk_EmImageMap.toolbar.editCommand.icon[true]}"
disabledIcon="#{sdk_EmImageMap.toolbar.editCommand.icon[false]}"
id="edit"
binding="#{pageFlowScope.procBean.editBtn}"
action="dialog:edit" immediate="true"
partialSubmit="true" useWindow="true"
windowEmbedStyle="inlineDocument"
windowHeight="400" windowWidth="750">
And the page in the taskflow is :
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="#{pageFlowScope.procStepEditor.pageTitle}"
id="document">
<af:form id="f1">
<af:panelStretchLayout id="pgl1" topHeight="10%">
<f:facet name="top"/>
<f:facet name="center">
<af:panelStretchLayout id="psl1">
<f:facet name="center">
<af:panelGridLayout id="pgl3">
<af:gridRow marginTop="5px" height="auto" id="gr1">
<af:gridCell marginStart="5px" marginEnd="5px"
width="100%" halign="stretch"
valign="stretch" id="gc1">
<af:panelBox text="panel 1"
id="pb1"
</af:panelBox>
</af:gridCell>
</af:gridRow>
<af:gridRow marginTop="5px" height="auto" id="gr2">
<af:gridCell marginStart="5px" marginEnd="5px"
width="100%" halign="stretch"
valign="stretch" id="gc2">
<af:panelBox text="panel 2"
id="pb2">
</af:panelBox>
</af:gridCell>
</af:gridRow>
<af:gridRow marginTop="5px" height="auto" id="gr3">
<af:gridCell marginStart="5px" marginEnd="5px"
width="100%" halign="stretch"
valign="stretch" id="gc4">
<af:panelBox text="panel 3"
id="pb3">
</af:panelBox>
</af:gridCell>
</af:gridRow>
</af:panelGridLayout>
</f:facet>
<f:facet name="bottom">
</f:facet>
</af:panelStretchLayout>
</f:facet>
</af:panelStretchLayout>
</af:form>
</af:document>
</f:view>
</jsp:root>
And in panel 2, the content is added dynamically, so it cannot control the width. Once it is very long, then the UI will not show all the data in panel2, and panel 3 also cannot display.
So i want to the window have a scroll bar. How can i do this?
Thanks.Hi Timo.
Thanks for your replies.
I change the panel 2 like this:
<af:gridRow marginTop="5px" height="auto" id="gr2">
<af:gridCell marginStart="5px" marginEnd="5px"
width="100%" halign="stretch"
valign="stretch" id="gc2">
<af:panelBox text="panel 2"
id="pb2">
<af:panelGroupLayout id="pgl4" layout="scroll>
</af:panelGroupLayout>
</af:panelBox>
</af:gridCell>
</af:gridRow>
But it still cannot display a scroll bar for the panel 2.
Thanks. -
Menu and sub menus are showing in the popup window
Hi,
We have seach PG, summary and Detail PG.
When we clicked on summary page link, detail page is opening in popup window.
JavaScript is used for this and toolbar=no,menubar=no used .
Still menus are showing below Oracle Branding image.
How to hide these?
Thanks
JPhello, what do you see instead? please note that at the moment firefox hello also won't work when you've set up the browser to run in permanent private browsing mode ("never remember history" in the options > privacy panel).
[[Settings for privacy, browsing history and do-not-track]]
Maybe you are looking for
-
Is the spotlight index stored on the boot drive or individual volumes?
Hello! My questions are pretty simple, and are sumarized here (from the block of text below): First, if I have several external hard drives, is the Spotlight index file for each drive stored on the external hard drive, or on OS X's boot drive? Second
-
Moving Object from One container to another in workOrder Dri
Hi , I am able to Move Object from One container to another container in workOrder Driver. here is my code which i am using <do-move-src-object class-name="ValeUser"> <arg-dn> <token-local-variable name="var-str-nwoContent"/> </arg-dn> <arg-dn> <toke
-
PSU patch issue while dbupgrade from 11.2.0.1 to 11.2.0.3
Hi, Version : 11.2.0.1 Os : Aix 6 We recently upgraded from 11.2.0.1 to 11.2.0.3.We completed db upgrade sucessfully. We got the follwoing error While applying PSU patch. It shows the patch 13923374 failed.But when i check in opatch lsinventory,it sh
-
I just upgraded my OS to Mountain Lion and didn't realize that my Quicken wasn't going to work on it. Now what do I do? How can I get my info off of here to start with something new? Anyone have any ideas? That was the one thing I didn't backup b
-
Set Show tag for Movies gives sub-menus, new feature to update 2.3?
I heard some people mention using playlist for reducing the size of the movies list, but I've noticed that if you set the Show tag for movies (which I have already done for some of mine where the movies are part of a series - for example Discworld mo