How to call a popup window when click save button
Hi, expert
the scenario is :
we we create a order , we click the 'save' button,
then there will show a popup window,
in the window, there are buttons like 'confirm' , 'cancel' and also show some info about the order.
how can i do that.
Thanks
Oliver.
Hi ,
Try to redefine the method and use the IV_TEXT parameter in the CREATE_POPUP_2_CONFIRM method (usaully comes from the Component Controller ).
Regards
Vikranth
Similar Messages
-
Urgent help on opening a new popup window when clicking on h:comandButton
Hi All,
I am working on a JSF application.I got a requirement where i need to Open new popup window when the user clicks on <h:commandButton>. Here is my sample code.
<h:panelGroup>
<h:commandButton onclick="window.open('/gwp/pages/client/auto_id_card_proof.jsp','PrintIDCards','top=30,left=0,width=800,height=600, scrollbars=1')"
value="#{ClientLabels['PrintAutoIdCard.PrintProofOfInsurance']}" immediate="true"/>
</h:panelGroup>
Iam getting an error message in the new popup window as below when i click on the commandButton.
JSP Processing Error
HTTP Error Code: 404
Error Message:JSPG0036E: Failed to find resource /pages/client/auto_id_card_proof.jsp
Root Cause:java.io.FileNotFoundException: JSPG0036E: Failed to find resource /pages/client/auto_id_card_proof.jsp at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.findWrapper(AbstractJSPExtensionProcessor.java:293) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:266) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
Any help will be highly appreciated.
Thanks
VijayPlease, urgency is your own problem and thus irrelevant to us. This way you are seemingly putting pressure to us, which is rude.
At any way, a 404 simply means that the URL is wrong. -
How to switch to another page when clicking a button
I have a main frame consits of many button.What I need to do when click
a button,it switch to another page?
Thanx....Try this, it should work.
// not tested
JButton linkButton = new JButton("<html><a href=\"http://forum.java.sun.com\">link to<br>forum</a></html>"); -
I updated to FF 3.6 in early December. Since then there are some regular sites I visit that display a blank page when I click a link that used to have a popup window with the information.
I do not see the Adobe Reader (PDF) plugin listed with your original question. To see the plugins submitted with your question, click "More system details..." to the right of your original question post. You can also see your plugins from the Firefox menu, Tools > Add-ons > Plugins.
Try the following:
#Close all Firefox windows, File > Exit
#Click (Windows) Start > All Programs (or Programs) > Adobe Reader (Adobe Reader will open)
#On the Adobe Reader menu, click Edit > Preferences > Internet
#Under Web Browser Options, check the "Display PDF in browser" box
#Click OK. Close Adobe Reader
#Restart Firefox and test
Also, check your settings for PDF Content type in Tools > Options > Applications (I know you said you have already done this, but check it again after doing the above). See:
*http://support.mozilla.com/en-US/kb/Managing+file+types
*http://kb.mozillazine.org/File_types_and_download_actions -
Open a new browser window when click a button
Hi,
I am working on Apex - 3.2.0.00.27.
I want that when I click on a button, it should open a new browser window. I have tried to set property on the button , direct to url , html = _blank.
but somehow it is not working.
can you suggest something ?
Thanks in advance.
-JasmineHi,
Even if i create different regions , it is not possible for me to place them between items.
But anyways, I created a separate button in the same region and it works fine.
Thanks Jari for your help.
-Jasmine -
How to call a popup window report
http://101.10.18.15/reportserver?/rptMyProj/varianceHi ,
Try this link -
http://technet.microsoft.com/en-us/library/dd239346.aspx
http://kkryczka.wordpress.com/2013/04/02/open-ssrs-go-to-url-action-in-new-window-in-page-viewer-web-part-2/
sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **. -
Show Top of the Page after Click Save button
Hi all,
i have requirement i want show top of the page after click of save button.if you know answer please give reply.
Regards
VeerendraNadhHi,
Would you mind providing more details(screenshot would be better) about your requirement? It would make others easier to find a solution for you.
Suppose that there is a scenario like this: Edit a page, when content grows too large, page will scroll to the bottom of the page. When clicking “Save” button in the
ribbon, by default, page will scroll to the top just like it is first loaded in the browser.
Feel free to reply if this is not what you really mean.
Best regards
Patrick Liang
TechNet Community Support -
Error when clicking other button after displaying Popup window
Hi,
I'm developing a custom page which calls a popup window in r12, below is the error encountered.
Error: Cannot Display Page
You cannot complete this task because you accessed this page using the browser's navigation buttons (the browser Back button, for example).
To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
On my base page, I have other buttons like Save, Back, and the button to invoke the popup window. I can display the popup window without error, but when i clicked on the base page's other buttons after invoking the popup window, the error above is shown. I'm not clicking any browser's navigation buttons. Please let me know how to solve this error.
Thanks!Hi,
Just want to update...
The error occurred because I have isBackNavigationFired checking, this becomes true when clicking the other buttons in the base page after displaying the popup. Is there a workaround where I can make this work without removing my back browser navigation checking?
Thanks! -
Error when calling a popup window in the initial screen of an application
Hi,
I am calling a popup window in the Initial screen to select the variant list.
I am getting an error reference to Null Object reference.
Here is the Error.
Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED_NO
Exception CX_SY_REF_IS_INITIAL
Date and Time 15.06.2007 10:00:16
Short text
Access via 'NULL' object reference not possible.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_WDR_MESSAGE_AREA===========CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
caught in
procedure "SUPPLY_VIEW_DATA" "(METHOD)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component.
An object reference must point to an object (an instance of a class)
before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the
CLEAR statement.
How to correct the error
Probably the only way to eliminate the error is to correct the program.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"OBJECTS_OBJREF_NOT_ASSIGNED_NO" "CX_SY_REF_IS_INITIAL"
"CL_WDR_MESSAGE_AREA===========CP" or "CL_WDR_MESSAGE_AREA===========CM00Q"
"SUPPLY_VIEW_DATA"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
The exception must either be prevented, caught within proedure
"SUPPLY_VIEW_DATA" "(METHOD)", or its possible occurrence must be declared in
the
RAISING clause of the procedure.
To prevent the exception, note the following:
Looking for Ur valuable suggestions.
Cheers,
SamHi Sam,
The correct code for creating a popup window will be:
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component type ref to if_wd_component.
data lo_window type ref to if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'WINDOW_NAME'
* title =
* close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
* close_button = abap_true
button_kind = if_wd_window=>co_buttons_okcancel
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok
lo_window->open( ).
Hope this helps.
Regards,
Ram -
Need to dynamically include an image file when calling a popup window
I am working on a web dynpro Java app which uses a button to call a popup window/view. Within the popup, I want to dynamically choose an image to show (from mime types) based on a criteria...there will be multiple buttons on the initial view that all call the same popup, but the popup will have content specific to which button called it (specifically the image embedded in the view).
My question is, what is the proper/best way to do this?
Here are some possible ways I can think of...
1. Pass a parameter from each button during the call of the event, but how does that get sent to the implementation of the second view for use in determining which image? And, how do I modify the source property of the image element based on that parameter?
2. Create multiple pages and views for each button to call...but this seems decidedly un-DRY.
3. Saw one posting on how to dynamically create a cached image...I could use different event handlers in the initial view, then load individual images from the mime library at that point...cache it into a hard-coded image name...then just call the identical view every time. Not sure this is even possible...input?
I don't know specifically how to implement any of these options, or know if there are other/better ways. Any help would be appreciated.Just create a context attribute "imageFileName" in the component controller or a custom controller, map this attribute from both views (the one that contains the buttons and the one in the popup window that displays the image).
Now you can have an separate action for each button or one common action. In the first case just set the "imageFileName" inside the action handler for the specific button. In the second case use an action parameter "buttonId" and a parameter mapping
button.mappingOfOnAction().setParameter("buttonId", button.getId());
to determine which button triggered the action. After having checked which button was pressed, set the "imageFileName" accordingly.
Armin -
How to create a popup window that shows detail information when press submi
hi,all
how to create a popup window that shows detail information when press the submit button ?I mean,when I press the button "Sumit"there will appear a popup window that shows the detail information you typed before.it means are u sure to submit,it is like some confirmation window.
how to do achieve this ?help plz .
best regards
hlee
Edited by: hlee on 2011-4-15 上午1:26hey,vee
thanks for your response,but i had already read this thread before i put up a new question.any way,thanks.
best regards
hlee -
Can I launch a new JSP on a popup window, when cliking a HTMLB button ?
Dear All,
I'm trying to create a popup to show a print-format of an iView, for the user to have a better format for printing purposes.
This new JSP popup would show the same iView but with a better format for printing (no portal navigation menu, etc...)
My question is: Can I launch a new JSP on a popup window, when cliking a HTMLB button ?
Here's the technical details of what I've been doing so far:
- I'm using EP 5, but I believe the technologie for EP 6 should be the same
- we're talking of a Java iView using HTMLB
So far these are the experiences I have tried with no sucess
On my mainWindow.jsp I have this piece of code, but it doesn't work:
(etc...)
<%
ResourceBundle res = componentRequest.getResourceBundle();
IResource rs = componentRequest.getResource(IResource.JSP, "printFormat.jsp");
String JSP_URL = rs.getResourceInformation().getURL(componentRequest);
%>
(etc...)
<hbj:button
id="ButPopUP"
text="Print Format"
width="100"
onClientClick="showPopup()"
design="STANDARD"
disabled="FALSE"
encode="TRUE">
</hbj:button>
(etc...)
<script language="Javascript">
function showPopup(){
mywindow = window.open ("<%=JSP_URL %>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1,
resizable=1, width=600,height=400");
htmlbevent.cancelSubmit=true;
</script>
(etc...)
Thank you very kindly for your help.Hi Kiran,
sorry for the late reply.
Thank you so much for your JAR file.
Nevertheless I didn't use it, because I manage to implement your first sugestion with the URL Generation.
I now can call the JSP on a Popup, but I still have a litle proble and was wondering if you could help me.
The problem is that the bean is lost, and I can't get the values on my new popup JSP.
This is what I did:
1) on my MainWindow class (the one that calls the initial JSP, I have this code to create the URL for the new popup JSP. This is the code:
IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
IPortalUrlGenerator portalGen = null;
ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
if (specUrlGen instanceof IPortalUrlGenerator) {
portalGen = (IPortalUrlGenerator) specUrlGen;
try {
String url = null;
url = portalGen.generatePortalComponentUrl(request, "Forum_IS.popvalues");
myBeanDados.setPopupURL(url);
} catch (NullPointerException e) {
log.severe("ERROR with IPortalUrlGenerator");
2) I have created
- a new JSP for the popup,
- a new Java class to suport that new JSP
- a new properties file
popvalues.properties with the following code:
ClassName=MyPop
ServicesReference=htmlb, usermanagement, knowledgemanagement, landscape, urlgenerator
tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
MyPop is the new class that is associated with the new JSP popup.
The problem now is that the bean was lost.
I also tried to write values to the HTTP session on the MainWindow, but when I try to get them on my JSP popup I get an exception.
How can I pass the values (or beans) to my new popup JSP ?
Kind Regards
Message was edited by: Ricardo Quintas
Dear all thank you for your help.
I have managed to solve the problem I had.
Here's the problem + solution sumary.
I have to remind you that we are talking of EP 5, PDK 5 (Eclipse version 2.1.0), with JAVA JDK 1.3.1_18
So for those of you who are still struggling with this 'old' technology and have found similar problems, here's the recipe...
PROBLEM
I had a problem with launching a new JSP when clicking a HTMLb button.
I wanted to create a JSP to present a 'print-format' of an iView.
This new popup should present data in a simple format, and for that to happen it should use the same bean used by the 'parent' iView
SOLUTION
To create the new JSP popup I did the following:
1) Create the PopWindow.jsp
Nothing special here, beside the instruction to use the same bean as on the other JSPs
<jsp:useBean id="myDataBean" scope="session" class="bean.DataBean" />
2) Create the associated JAVA class
MyPop.java. This class will be used to call the PopWindow.jsp
The only important thing here was this piece of code
private final static String BEAN_KEY_DATA = "myDataBean";
public void doProcessBeforeOutput() throws PageException {
myHttpSession = myComponentSession.getHttpSession();
myDataBean = (DataBean) myHttpSession.getAttribute(BEAN_KEY_DATA);
myComponentSession.putValue(BEAN_KEY_DATA, myDataBean);
this.setJspName("PopWindow.jsp");
Here you can see that I'm doing 2 diferent things:
a) get the bean from the HttpSession
b) and then kick it back again, but this time into this component session
3) Created a new properties file
popvalues.properties. This file contains the follwing code:
ClassName=MyPop
tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
Contrary to some opinions on this discussion,
you can't call a component in EP 5 by using ComponentName.JSPname.
Or at least that didn't work for me.
You nee to use an aproach like this one ComponentName.NewProperiesFileName
4) On my main class MainClass.java (for the parent iView) I haded the following code on the event doInitialization:
IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
IPortalUrlGenerator portalGen = null;
ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
if (specUrlGen instanceof IPortalUrlGenerator) {
portalGen = (IPortalUrlGenerator) specUrlGen;
try {
String url = null;
url = portalGen.generatePortalComponentUrl(request, "MyMainApplication.popvalues");
myDataBean.setPopupURL(url);
} catch (NullPointerException e) {
etc...
The idea here was to build dinamicaly a URL to call the popup.
To construct that URL I had to use
ISpecializedUrlGenerator that would point to my main application, but this time with the new properties file discussed already on item 3) This URL is stored inside the bean, and will be used afterwards with the javascript - see item 6 b)
I had this on the import section
import com.sapportals.portal.prt.service.urlgenerator.IUrlGeneratorService;
import com.sapportals.portal.prt.service.urlgenerator.specialized.IPortalUrlGenerator;
import com.sapportals.portal.prt.service.urlgenerator.specialized.ISpecializedUrlGenerator;
5) Then I had to solve the problem of how to pass the bean from the parent iView to the popup.
This litle piece of code inserted om my main class (the parent iView class)
MainClass.java solved the problem:
import javax.servlet.http.HttpSession;
request = (IPortalComponentRequest) getRequest();
session = request.getComponentSession();
session.putValue(BEAN_KEY_DATA, myDataBean);
myHttpSession = session.getHttpSession();
myHttpSession.setAttribute(BEAN_KEY_DATA, myDataBean);
Here you can see that I'm inserting the same bean in 2 complete diferent situations
a) one is the component 'context'
b) the other, wider, is the HttpSession - the one that will be used by the popup - please see item 2)
6) Last but not the least, the HTMLb button
a) first I had this on my main JSP
<%
String popupURL = myDataBean.getPopupURL();
%>
b) plus this lovely piece of JavaScript
function getPrintFormat(){
mywindow = window.open ("<%=popupURL%>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1, resizable=1, width=600,height=400");
htmlbevent.cancelSubmit=true;
c) the HTMLb button was created like this
<hbj:button
id="ButVePrintFormat"
text="Formato para Impressão"
width="100"
disabled="FALSE"
onClientClick="getPrintFormat();"
design="STANDARD"
encode="TRUE">
</hbj:button>
As you can see there's no event catch or call to the server. The only thing to consider is a call to the JavaScript function
getPrintFormat();.
Está todo lá dentro.
That's all there is to it. -
How to open new browser window on click of command button
Hi,
We have a requirement to open an image in new window when a command button is clicked. Is there any sample explaining how to do that?
Thanks in Advance,
PradeepHi,
I have to load an applet viewer in the new browser window. I have URL to the PDF.
I ma able to load the applet viewer in new browser window using javascript. But I have to load the new PDF if the same window in already opened.
The issue here is , i am loosing the window handle if the parent page is refreshed. I want to store the window handle in session scope variable and use the same.
How do i update the session scope variable using javascript?
Thanks and Regards,
Pradeep -
How to call a form with dabble clicking on a record with one time where
Hi All,
How to call a form with dabble clicking on a record with one time where clause. I mean when i dabble click on the current record i want to call another form with details of the
record with onetime where clause. Can anyone help me in this regard.
Now i am calling a form with parameter with onetime where but this should avoid.
Thanks in advance
ArifHello,
I mistakenly mark it as solved. There is a problem remain. when i placed the code below it do not execute with the where condition. I mean the condition to execute is not work.
All records executes. Please correct my code--
Here the WHEN-BUTTON-PRESSED-trigger on the Edit-Button:
:GLOBAL.MODE:='EDIT';
:GLOBAL.REQ_ID:=:PROBLEM_REQUEST.REQ_ID;
CALL_FORM('REQUEST_ID_PARAM',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY);And also, WHEN-NEW-FORM-INSTANCE-trigger of REQUEST_ID_PARAM:
DEFAULT_VALUE(NULL, 'GLOBAL.MODE');
DEFAULT_VALUE(NULL, 'GLOBAL.REQ_ID');
IF :GLOBAL.MODE='EDIT' THEN
GO_BLOCK('PROBLEM_REQUEST');
EXECUTE_QUERY;
SET_BLOCK_PROPERTY('PROBLEM_REQUEST', INSERT_ALLOWED, PROPERTY_FALSE);
END IF;Arif -
How to close a popup window for system events?
Hi,
I have a screen 110 which shows several input field in popup mode.
The Cancel button can close the screen.
But my question is how to close the popup window for the following system events?
1, Customer clicks the cross button in top-right corner
2, Customer clicks the system icon in top-left corner and then select either: "Close" or "Stop Session"
The PAI subroutine of the screen has not been triggered for the above system events.
Thanks for the coming help.
Best Regards,
DavidHi Siddharth,
I did check with another very experienced ABAP developer.
The solution was the same as what Arunima Rudra provided.
And I got a sample program which did work properly.
The headache is that the system events in my program still cannot be triggered even after I have all the same changes.
Anyway, I suggest you to try the solution as provided by Arunima Rudra.
It should work for 2 system events:
1, Customer clicks the cross button in top-right corner
2, Customer clicks the system icon in top-left corner and then select either: "Close"
For "Stop Session", it should not be handled by popup.
You can observe the same behavior in ALV sorting configuration popup.
Good luck!
Regards,
David
Maybe you are looking for
-
Then I got this message "Itunes not installed correctly please reinstall Itunes, Error 7 (Windows Error 126). I have tried re-downloading Itunes but I keep getting the same message. I don't know what else to try? I've ran Microsoft security Essential
-
hi all, Can any body Suggest me regarding my .ard file creation . i am doing like this to create .ard file ie E:\Program Files\SAP\SAP Business One SDK\Tools\AddOnRegDataGen i am going this and creating my .ard file r else any other way to Create .a
-
Songs wiped from ipod and itunes, can i get them back?
songs wiped from ipod and itunes, can i get them back?
-
Max number of part appraiser allowed for a 360d appraisal
Hi, experts, i am trying to implement a 360 degree appraisal using OSA framework(part appraisal). according to F1 help: If you have selected only the Part Appraiser (PAPP) and/or Importance Part Appraisal (PWGT) columns in an appraisal template, this
-
Hi Experts , System - MDM version 7.1 (7.1.04.131) I am working with tuples and the requirement is that one tuple is looked up by 3 different flat tables , There are 3 validation (one per each look up table)which needs to be put in to restrict the v