Create a popup window
hi, i would like to create a small popup once a button is clicked
this small window does not need to have anything apart from displaying a message, say for example "button clicked"
i remember there is a very simple way to do so, by which i can create a small window and has a default "ok" button on it, and also on the left side of the smal popup there can bean icon, either set to warning or infor. what is that object class called please? really cant remember and cant find out....
thanks!
JOptionPane.showMessageDialog(...)
Similar Messages
-
How to create a popup window to load HTML page in AIR application without using any mx or spark components?
I need to load the HTML page in popup in AIR application without using any of the <mx> or <spark> components. I need to open in the application itself not in the browser.(If we use navigateToURL() it will open in th browser)Can we achieve this? can somebody help me on this scenario..
-
Create a popup window in Swing
Hi, I want to create a popup window that contains some buttons and text fields when the user selects a menuItem from the menuBar using Swing. What would be the best way to do this?
How to Use Menus:
http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html
In your actionPerformed code you would create and display a JDialog. -
Create a popup window in a portal
Hi all,
how to create a popup window when clicked on a role in portal, the iview contains the 4 regions or clients as radio buttons, when i click on radio button, the perticular iview or region should hold and trigger the perticular region or client RFC
i hope u people know this, tell me step by step in doing this
Thanks in advance
Thanks&Regards
charan
Edited by: charan12 on Feb 2, 2011 5:39 AMHi charan,
You can set the property "Launch in New window" of the particular iview which needs to be open on click of the radio button as" Display in seperate headerless portal window".
Regards,
Namrata Dixit -
How can we create a popup window for confirmation while clicking of button
HI Friends,
I am creating a application, In which I want to create a popup window for confirmation on clicking of a button.
I also need two buttons on popup window i.e. 'Yes' & 'No'.
On yes i want to perform some operation and on No i want to cancel that operation.Hi Narendra,
try using the following code in ONACTION of ur button for popup :
* Popup
* Generate Popup
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 = 'W_POPUP'
window_position = if_wd_window=>co_center
message_display_mode = if_wd_window=>co_msg_display_mode_selected
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
DATA: l_api TYPE REF TO if_wd_view_controller.
l_api = wd_this->wd_get_api( ).
" subscribe action for Ok button
lo_window->subscribe_to_button_event(
button = if_wd_window=>co_button_yes
action_name = 'OK_POPUP'
action_view = l_api
is_default_button = abap_true ).
lo_window->open( ).
regds,
amit -
How to create a popup window that allows creation - - -
Hi,
I have a column named owner_id(number) .
My requirement is to display the owner name and in the future I want to allow creation of a new owner from this page, .So i have used an
[ Popup Key LOV (Displays description, returns key value)] for the time being which displays name(Description in other table)
I need to create a popup window that allows creation of the owner and writes the entity_id(owner_id) back to this page.
Can anyone plz help with the solutionhey,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 -
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 -
Requirement to create a popup window in R12
Hi All,
I have a requirement to show a popup window for a column in a table region. I have column which contains the XML data. Once i click on the particular data, the whole XML data should come in a small popup window.
I should not navigate to another page. I should see the data in the same page in a small popup window.
Kindly give me your suggestions.
Thanks and Regards,
MyvizhiIn R12 whe have a properties "Popup id" , Popup enabled for the item.
You can create a new region and you can map that region to the item popup id and Popup enabled "true". -
How to create the popup window..?
Hi,
I'm new to flash and Action Script, I need to add popup window dynamicaly in my application. I'm using Action Script 1.0. Can you help me to solve my problem..?
Regards,
AppuHi Saran,
I want to create dropup menu. Please help me. Just mail me on
[email protected]
Its urgent.
regards,
Sudhir Mishra -
Hi
I have seen in Simon Collins application http://apex.oracle.com/pls/apex/f?p=20411:1:888811517916461 a popup windows.
Can anyone help me, buil a popup windows like that or is there any tutorial where i can see how its done.
TanksHi,
You should have three processes: addPerson, getPerson and updatePerson. All three are "On Demand" processes. This is the PL/SQL code for each:
addPerson
BEGIN
INSERT INTO EMP (ENAME, JOB, MGR, HIREDATE, SAL, COMM)
VALUES (:P1_ENAME, :P1_JOB, :P1_MGR, TO_DATE(:P1_HIREDATE, 'DD/MM/YYYY'), :P1_SAL, :P1_COMM);
END;getPerson
DECLARE
vRESULT VARCHAR2(1000);
BEGIN
SELECT ENAME || ',' || JOB || ',' || MGR || ',' || TO_CHAR(HIREDATE, 'DD/MM/YYYY') || ',' || SAL || ',' || COMM
INTO vRESULT
FROM EMP
WHERE EMPNO = :P1_EMPNO;
HTP.P(vRESULT);
END;updatePerson
BEGIN
UPDATE EMP
SET ENAME = :P1_ENAME,
JOB = :P1_JOB,
MGR = :P1_MGR,
HIREDATE = TO_DATE(:P1_HIREDATE, 'DD/MM/YYYY'),
SAL = :P1_SAL,
COMM = :P1_COMM
WHERE EMPNO = :P1_EMPNO;
END;On the page, in the page's HTML Header setting, I have:
<script type="text/javascript">
$(function() {
$('#ModalForm').dialog(
modal : true,
autoOpen : false,
buttons : {
Cancel : function() {
closeForm();
Add : function() {
$('#ModalForm input[type="text"]').removeClass('ui-state-error');
var valid = true;
$('#ModalForm input[type="text"]').each(function() {
if($(this).val().length == 0)
$(this).addClass('ui-state-error');
message = 'Error: ' + $(this).attr('id').substr(3).replace('_', ' ') + ' is blank';
$('.msg').text(message);
valid = false;
return false;
if(valid)
addPerson();
function openForm(pID)
$('#ModalForm').dialog('open');
$('#ModalForm input[type="text"]').removeClass('ui-state-error');
var btns = {};
btns['Cancel'] = function() { closeForm() };
$s('P1_ENAME','');
$s('P1_JOB','');
$s('P1_MGR','');
$s('P1_HIREDATE','');
$s('P1_SAL','');
$s('P1_COMM','');
if(pID)
initilizeForm(pID);
$('#ModalForm').dialog({ title : 'Update'});
btns['Save Changes'] = function(){updatePerson(pID);};
else
$('#ModalForm').dialog({ title : 'Add'});
btns['Add'] = function(){addPerson();};
$('#ModalForm').dialog('option', 'buttons', btns);
function closeForm()
$('#ModalForm input[type="text"]').val('');
$('#ModalForm input[type="text"]').removeClass('ui-state-error');
$('#ModalForm').dialog('close');
function initilizeForm(pID)
var ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=getPerson', 0);
ajaxRequest.add('P1_EMPNO', pID);
var ajaxResult = ajaxRequest.get().split(',');
$s('P1_ENAME', ajaxResult[0]);
$s('P1_JOB', ajaxResult[1]);
$s('P1_MGR', ajaxResult[2]);
$s('P1_HIREDATE', ajaxResult[3]);
$s('P1_SAL', ajaxResult[4]);
$s('P1_COMM', ajaxResult[5]);
function addPerson(pID)
if (pID)
updatePerson(pID);
else
var ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=addPerson', 0);
ajaxRequest.add('P1_ENAME', $v('P1_ENAME'));
ajaxRequest.add('P1_JOB', $v('P1_JOB'));
ajaxRequest.add('P1_MGR', $v('P1_MGR'));
ajaxRequest.add('P1_HIREDATE', $v('P1_HIREDATE'));
ajaxRequest.add('P1_SAL', $v('P1_SAL'));
ajaxRequest.add('P1_COMM', $v('P1_COMM'));
ajaxRequest.get();
ajaxRequest = null;
closeForm();
gReport.search('SEARCH');
function updatePerson(pID)
if(!valid())
return;
var ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=updatePerson', 0);
ajaxRequest.add('P1_EMPNO', $v('P1_EMPNO'));
ajaxRequest.add('P1_ENAME', $v('P1_ENAME'));
ajaxRequest.add('P1_JOB', $v('P1_JOB'));
ajaxRequest.add('P1_MGR', $v('P1_MGR'));
ajaxRequest.add('P1_HIREDATE', $v('P1_HIREDATE'));
ajaxRequest.add('P1_SAL', $v('P1_SAL'));
ajaxRequest.add('P1_COMM', $v('P1_COMM'));
ajaxRequest.get();
ajaxRequest = null;
closeForm();
gReport.search('SEARCH');
function valid()
$('#ModalForm input[type="text"]').removeClass('ui-state-error');
var valid = true;
$('#ModalForm input[type="text"]').each( function() {
if( $(this).val().length == 0)
$(this).addClass('ui-state-error');
message = 'Error: ' + $(this).attr('id').substr(3).replace('_', ' ') + ' is blank';
$('.msg').text( message );
valid = false;
return false;
return valid;
</script>And I have an HTML region on the page with the following settings:
Region Header:
<div id="ModalForm" style="display:none; width:500px;">Region Footer:
</div>This region contains all of the page items - P1_EMPNO (hidden), P1_ENAME (text), P1_JOB (text), P1_MGR (select list), P1_HIREDATE (datepicker), P1_SAL (text) and P1_COMM (text)
Apart from a bit of styling here and there, that's it
Andy -
How to create a popup window?
I'm a JavaFX newby.
I know that this question's been asked already and I read all the postings, but I still can't work out how to do this (I must be really stupid).
Any sample code how to make this Popup class work will be highly appreciated. All I need is a small dialog that allows the user to enter a value in a text box and then to close that dialog. JOptionPane is not good enough as it does not support a password field.Hi. Take a look at javafx.stage.Popup as JOptionPane
-
Need to create a empty form on popup window
Hi i have 3 master and details tables each table have create button when i click on create new popup window should come with empty data.
i achived with the one table using popupFetchListener method in the backing bean as
public void createHistoryRecord(PopupFetchEvent popupFetchEvent) {
// Add event code here...
System.out.println("Action event for history");
try{
AdfFacesContext adf = AdfFacesContext.getCurrentInstance();
BindingContainer bc = getBindings();
oracle.binding.OperationBinding opb = bc.getOperationBinding("CreateInsert");
opb.execute();
// am.insertData();
}catch(Exception e){
e.printStackTrace();
but when i tried the same code with 2nd table create button then the 1st table row is adding and i am getting error like FirstActivationDate and all are null these fileds are mandatory fields in 1st table.
can any one help me in this.Sireesha thanks for your reply,
i have taken 2nd Vo iterator also like
popup code:
<af:popup binding="#{backingBeanScope.backing_app_AccountsPage.popup11}"
id="popup11" popupFetchListener="#{backingBeanScope.backing_app_AccountsPage.createAddressRow}">
Bean method code:
try{
AdfFacesContext adf = AdfFacesContext.getCurrentInstance();
BindingContainer bc = getBindings();
System.out.println("Binding name is: "+bc.getName());
oracle.binding.OperationBinding opb = bc.getOperationBinding("CreateInsert1");//Here i have taken the page definition id
opb.execute();
}catch(Exception e){
e.printStackTrace();
Page definition:
<action IterBinding="CmSubscriberAddressesViewIterator" id="CreateInsert1"
RequiresUpdateModel="true" Action="createInsertRow"/>
Still i am getting the same error.
Edited by: user5802014 on Sep 4, 2009 3:49 PM -
How to create a new window ?(not popup windows)
How to create a standard window to show my web dynpro window so that the print button can be used ?
hi , you are right , the blog tell me how to create a popup window , but I wanna to create a new window so that I can use the functions provided by the browser , what shall I do ?
Regards , -
RE: Getting multiple values from more than one multiple select popup window
I have a button on a JSP of mine that when clicked creates a popup window (right now it is called popup.html) with a multiple select menu.
My question is how do I get all the values selected from the menu into my JSP (sample.jsp) so that I can set each of the values for my bean.
The other problem is that I have more than one select multiple menu.
Please help if you can. Any advice or suggestions here would be greatly appreciated!
Thank you!I realize that I can use request.getParameterValues to get the values selected from my html because I am passing them to the hidden inputs I have and then using the request.getParameterValues to get each of the values.
MY PROBLEM IS WHAT IF I HAVE 4 MULTIPLE SELECTS??? How can I use the same html popup menu to get the values from the 4 different multiple selects????
I look forward to your response.
This code is from my JSP:
<INPUT TYPE="TEXT" NAME="Field1" SIZE="15">
<INPUT TYPE="hidden" name="F1Rad1">
<INPUT TYPE="hidden" name="Permission">
<input type=button name=choice onClick="window.open('optionPicker.html','popuppage','width=250,height=100');" value="Options"></TD>
Here is my optionPicker.html code for the pop up menu:
<html>
<head>
<script language="JavaScript">
function sendValue(s)
var boxSize= s.options[0].value;
var restrict = s.options[1].value;
window.opener.document.addNewForm.F1Rad1.value = boxSize;
window.opener.document.addNewForm.Permission.value = restrict;
window.close();
</script>
</head>
<body>
<center>
<form name=selectform>
<select multiple name=selectmenu size="2">
<option value="large">Large Text Input Area
<option value="restrict">Restricted Access
</select>
<p></p>
<input type=button value="Select Option(s) For Field" onClick="sendValue(this.form.selectmenu);">
</form>
</center>
</body>
</html> -
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
Maybe you are looking for
-
Hello All, I have developed AddOn application which includes crystal report files created with Crystal Report 2008.i wants to able load the report and preview them within my AddOn application.Which Crytsal report 2008 Components do i need to import t
-
I have Itunes set up to sync with my Ipod touch and Ipad. As of today, iTunes has started searching to sync with an iPhone, which I don't have and pops open with an error message stating it cannot locate the iPhone to sync. I have looked in devices
-
Problem with Printing through Deskjet F4288 on Network
Need suggestion to sortout the problem with HP Deskjet F4288 All in one Printer. This printer is installed on Windows XP OS System and when we try to give print on the network through other WinXp OS system then the spooler stopes working on the main
-
Generated Table not visible in tree
hi, I have registered a Schema and select object_name, object_type, status from user_objects order by object_name, object_type; Results of the statement: OBJECT_NAME OBJECT_TYPE STATUS EXTRADATA177_L LOB VALID NAMESPACES178_L LOB VALID PLAYER TABLE V
-
Steps to setup JDeveloper 9i to modify and test the iPayment servlets
Hi, I am working on modification to iPayments module of EBS Release 11.5.9. We need to modfiy part of code in Paymentech BEP (Back End Payment) servlet. Could anyone please let me know the steps to setup JDeveloper 9i to modify the servlet code, test