How to have a PopUp window on a Navigation Bar Entry
Hi All,
I want one solution,I want to add a popup window in a navigation bar,I am using apex 3.0.1. Can anybobody please help me with this.
Thanks
Hello,
Try:
javascript:window.open('http://www.oracle.com','_blank','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=630,height=450');
Or even better : create you own function for opening an new window and setting the properties.
Greetings,
Roel
http://roelhartman.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.logica.com/
Similar Messages
-
How to create a navigation bar entry with onclick event
I have requirement of creating navigation bar entry with a an "on click" event. When a user clicking time a location list should open. I didn't understand how to do it on NAVIGATIONBAR_ENTRY.
Also Navigation Bar Entry IMage is not displaying.
Regards
Edited by: satheeshkumars on Oct 25, 2010 7:52 PMDo you specifically need to use the onclick event, or do you jts want to run Javascript from the navbar entry? If the latter then you can use the URL method and set the URL to:
javascript:myfunction()
If it must be an onclick event then I think you would need to attach it dynamically in Javascript (using jQuery if available) to locate the link somehow (it's not easy to give it a unique ID unfortunately).
Edited by: Tony Andrews on Oct 26, 2010 10:35 AM -
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 -
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..
-
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 -
How to display a popup window (DialogMessage) via code behind c#?
hi all,
How to display a popup window (DialogMessage) via code behind c#?
I use sp 2013, in else case I want show the DialogMessage:
if(condition)
else
HttpContext.Current.Response.Redirect(SPContext.Current.Web.Url+"/_layouts/TestError/ErrorDueDate.aspx");
the above Redirect work good but I want show the error in a DialogMessage its better because of Usability and not redirect the user to new page...
if not via code behind is there a better way to do it?
thanks in advance
Ahmad
SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012thanks for you answer,
And yes I includ them via CDN, like below:
<script
type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script
src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js"
type="text/javascript"></script>
<link
href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css"
rel="stylesheet" type="text/css"
/>
But I get still the above error in my previes post.
SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012 -
How can I allow popup window within secured site?
How can I allow popup window wlthin NWA People.com(secured site)?
Ineed to see Access.You can allow pop-ups in Safari via Settings > Safari > Block Pop-Ups set 'off'
-
How do I do a window with no title bar?
Dear,
Can anyone help to let me know how can I make a window with no title bar?
Thanks,
ManUse a JWindow, by default it has no title bar.
http://java.sun.com/products/jfc/swingdoc-api-1.1/javax/swing/JWindow.html -
How do I add an image to my navigation bar?
How do I add an image to my navigation bar? I created my own. Let's say for example I wanted to a page dedicated to the lakers rss feed, and instead of having text in the box "Lakers", I want it to be the lakers logo. I already have the hyperlink in that box working.
That didn't sound right:
How do I add an image to my navigation bar? I created my own. Let's say for example I wanted to have a page dedicated to the lakers rss feed, and instead of having text in the box on the bar that reads "Lakers", I want it to be the lakers logo. I already have the hyperlink in that box that will direct you to that page. -
How to get current PopUp Window
Dear All,
I am using NetWeaver 7.1 sp1 and facing a problem. Actually I want to show a view in popup window. The popup window works fine but i want to get currently popup window. How can i get it in View and controller ??
I found a solution : wdContext.currentPopupElement().getWindowInstacnce();
but in wdContext there is no method like .currentPopupElement(). plz help.Hi
wdContext.currentPopupElement().getWindowInstacnce();
Here PopupElement is a attribute of IWDWindow type where u have to put the window instances (say For close or life control of that popup)
For further plz go through these doc
1. [Dialog|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1&overridelayout=true]
2. [Popup Window|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a04870c5-749b-2b10-06ba-d25515ef39e3&overridelayout=true]
Best Regards
Satish Kumar -
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 maximize a popup window?
Hi,
My issue:
A popup contains data larger that the screen size, it therefore maximizes itself, meaning that it sets its WIDTH to 100%. But this is most unfortunate as WD does not recognise its own scrollbar as the end of the available screen and now the close button (cross) of the popup is beneath the scrollbar!
When doing a "true" maximize by clicking on the button left to the "closing cross", it recognizes scrollbars and stays visible in total.
My question:
How can I programmatically access the maximize/fullscreen function? Interface IF_WD_WINDOW does not provide a corresponding method as far as I can see...
Already tried:
...please no "put width and height to 100%" as I already stated that this is not what I want...
Also setting width to 95% or the likes does not work, as the popup automatically sets 100% on refresh if there are to large contents.
<br>
I would appreciate your help on this!!
Kind Regards,
RobertHi Robert,
You can do any size related actions in POPUP, Actually we have SET_WINDOW_SIZE Method to set window size,
But for popups it wont work.
Please check this thread, check Thomos reply
Re: Confirm Popup in Web Dynpro, window size
Check using set_window_size.. but can't effect.
How to reduce Popup Window Size?
As suggested saravanan, check SAP NOTE also.
Cheers,
Kris. -
How to generate a popup window?
i want to click on a link...in response of this a popup window opens and show the details...help me regarding this...
can u please explain me in bit detail.I can try...
About Popup
A Popup is displaying a Component somewhere on (or outside) the screen. When you create a new Popup object you specify the coordinates of the Popup relative to another Component (this other Component could be null)
How to use it
You should create your own subclass of javax.swing.Popup to use a Popup, because the constructors are Protected. I have an example for you. Also have a look at the API or some of the links other people have listed.
Example
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.event.*;
public class PopupEx extends JFrame{
private javax.swing.Popup pop;
private JLabel lab = new JLabel("text");
public static void main(String args[]){
PopupEx f = new PopupEx();
public PopupEx(){
//setting the JLabel and placing it in the JFrame
lab.setBackground(Color.red);
lab.setOpaque(true);
lab.setFont(new Font("Curier",Font.PLAIN,200));
add(lab);
pack(); //setting the size of the JFrame
//popup
pop = new Poppy(this, new JPanel(), 10, this.getWidth()/2) ;
pop.show(); //makes the Poppy show at the position (10, this.getWidth()/2) - relative to this
setDefaultCloseOperation(EXIT_ON_CLOSE);
setVisible(true);
public class Poppy extends Popup implements ActionListener{
private JPanel pan;
private JLabel mess = new JLabel("I love Java!");
private JButton b = new JButton("ok");
//Constructor
//Overrides the Popup(Component owner,Component contents,int x,int y)
public Poppy(Component owner, JPanel contents, int x, int y){
super(owner,contents,x,y);
pan = contents;
pan.setBackground(Color.yellow);
mess.setFont(new Font("Curier",Font.PLAIN,20));
pan.add(mess);
pan.add(b);
b.addActionListener(this);
public void actionPerformed(ActionEvent e){
this.hide();
}//end of Poppy
}If you have questions, just ask! -
I have a find button in my panel, on click of that button i shld invoke the popup window, to recive the search option.
Can someone tell me that how to invoke/create a popup window in java swings.
Thanks in Advance.Dheeraj_Gaba wrote:
You are wrong :)how come?Sorry, that reply was for the OP. -
How to close a popup window in a used component?
Hi Experts,
I have two applications in the same project, and they each have one component controller. Let they be component A and B. They have similar functionalities and screens. There is a popup window in A that I would like to use in B instead of creating a new popup window in B, so I added a used component of A in B in order to share the popup window. I am able to click a button in B to get a popup window from A successfully, but I am unable to close the popup window since the event has been created in A.
Can anyone suggest me how to fix this please? I would really appreciate your help.
Thanks,
-NapadolHi,
You can either use the approach above, which is having an Attribute, type IWDWindow in B's Component Context. When you open the popup you store the reference. When you click close you get that reference back and destroy the window.
Note, I'd suggest you to have your "View" with no Close Button. Then in Component A you create another View that has an UIViewContainer with your Popup View. You can code the Close code in Component A.
This way you can do the same and have a code in Component B to close your window.
Other way would be having it as a Component variable and using the Component Interface on A (create a Method) that goes to Component A and destroy that instance.
Regards,
Daniel
Maybe you are looking for
-
There needs to be a place to file a complaint without having to post on the site.
Since I signed up in July of this year I have had nothing but problems with my bill. First they forgot to add my fios. After calling several times I was told the bill was in the mail. When I called back to see why I hadn't seen my bill (now September
-
I was upgrading to the new itunes, and it wouldnt open my itunes anymore! i double clicked and it still wouldnt open. this has been happening since saturday, and i realy need help!
-
Skype start problem with lenovo smart phone
I have been using Skype for a long time without problmes. Recently it is not starting on android smartphone. When I try to start Skype just one blue windows is shown with Skype logo on it, and it doesn't go further. I have tried unistalling and insta
-
Error while processing "Prepare Data Transfer"
Hi all, At the Processtype ERP Initial Package for HCM Personnel Administration (PA) I start the stept "Prepare Data Transfer". This step abort at the point "Generate Conversion Objects" with the error message: Subactivity PC002_MT_RT_GEN task 00000
-
A strange issue on PL/SQL and Crystal report
A Crystal rpt file (version=8.5) is called through CRAXDRT.DLL by a VB6 exe. This rpt file has two linked sub-reports. There are 3 Oracle stored procedures behind the main report and two sub-reports. I found that the stored procedure behind the main