Popup page and PREV_PAGE

Can you set a call to a popup to pass the page number of the calling page to the PREV_PAGE field of the popup page and then set the closing process on the popup page to go back to &PREV_PAGE. instead of a page number? What would be the syntax for such a thing?

Below is the code I am now using. You will notice that it includes specific pages:
Calling page calls up p 127, the popup page:
<input type="button" value="Add Call Administrators" onClick="javascript:window.open('f?p=&APP_ID.:127:&APP_SESSION.:::','Popup2','width=400,height=300')";>
Popup page closing process, sends back to P36(calling page):
BEGIN
-- Redirects the calling (parent page) to the Allocate Site to Run
--page
-- then closes this popup window
htp.p('<body>');
htp.p('<script type="text/javascript">');
htp.p('window.opener.location.href="f?p=&APP_ID.:36:&SESSION.";');
htp.p('window.close(this);');
htp.p('</script>');
htp.p('</body>');
END;
What I want to do is be able to put something in the calling page code to insert the page number of the calling page into P127_PREV_PAGE, and then to replace 36 with &P127_PREV_PAGE. I just don't know where or how to insert them into the code.
If I do not have a page number in the closing process, it bounces to the previous page and then bounces to the login page.

Similar Messages

  • I opened a website that said that all of my files had been encrypted. A popup appeared and asked if I wanted to leave the page, but when I tried to, it wouldn't let me.  How do I know if this is a real problem or not?

    I was researching information for a class and I clicked on a website that said that all of my files had been encrypted.  A popup appeared and asked if I wanted to leave the page but when I tried to, it would let me.  I had to force quit Safari in order to do so.  How do I know if this is a real problem or not? 

    It's a JavaScript scam that only affects your web browser, and only temporarily.
    1. Some of those scam pages can be dismissed very easily. Press command-W to close the tab or window. A huge box will pop up. Press the return key and both the box and the page will close. If that doesn't happen, continue.
    2. From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Security
    and uncheck the box marked Enable JavaScript. Leave the preferences dialog open.
    Close the malicious window or tab.
    Re-enable JavaScript and close the preferences dialog.
    3. If the Preferences menu item is grayed out, quit Safari. Force quit if necessary. Relaunch it by holding down the shift key and clicking its icon in the Dock. From the menu bar, select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    to get rid of any cookies or other data left by the server. Open your Downloads folder and delete anything you don't recognize.

  • Popup window and navigate to home page visual web part SP 2013

    I've a visual webpart where i am inserting items in the list in the button click event as below
    protected void btnSubmit_Click(object sender, EventArgs e)
    SPSite site = new SPSite(SPContext.Current.Site.OpenWeb().Url);
    SPWeb web = site.OpenWeb();
    SPList list = web.Lists["Request"];
    SPListItem item = list.Items.Add();
    item["Title"] = txtBoxTitle.Text;
    item.Update();
    Now after items is being added in the list i want to show popup window with message showing that
    "item has been inserted and click here to go to home page of the site"
    how do i achieve this can anyone help in this
    Note:there is a restriction in our requirement so only sandboxed solution can be used so i want resolution for sandboxed solution 

    You can' t use criptManager.RegisterStartupScript for redirection in sandbox solution.
    Please find the below reference
    http://social.msdn.microsoft.com/Forums/office/en-US/bd37b640-e225-41c0-8344-9f3b52fe0434/open-popup-window-and-redirect-user-to-home-page-in-sandboxed-solution?forum=sharepointdevelopment
    You have one more option to open a popup SP.UI.ModalDialog
    Please find the below reference
    http://msdn.microsoft.com/en-us/library/ff798375.aspx
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx

  • Open popup window and redirect user to home page in sandboxed solution

    i've created a sandboxed solution visual webpart and it has submit button so when user fills the information in the text boxes availble in webpart and clicks submit button so I want to open popup button containg success message and ok button so when user
    clicks ok button in popup window i want user to be redirected to the home page of the site.
    i tried to open popup and showed success message by below code
     string gotohomepage = "http://sp2013:1111/Pages/home.aspx";
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Your Record has been submitted successfully,you will be redirected to home Page shortly');location.href =
    '" + gotohomepage + "';", true);
    but it's not opening popup window can anyone help how do i open popup window and redirect user to home page in sandboxed solution

    Page class and script manager are not supported in sandbox solution
    You can create model popup to achieve this
    below are the reference links
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    http://social.msdn.microsoft.com/Forums/en-US/9427db4d-60f2-4b2a-8db6-b50d01ac4f23/how-to-create-modal-popup-using-sandboxed-solution

  • How to capture text input value by user in a LOV search popup page?

    I need to capture the input by the user in LOV search page. I added one controller in the LOV region, and the flow is also working, but what I need to hold the search input in the search popup page. Also do you know what is the id of " Search Term" text input? then I can try to hold the value in PFR of the CO.

    Hi Sandeep,
    Yes, as of now I need to populate blank, so I need to modify the SQL, therefore I need to capture the value which is given by the user. I am trying to capture the value through passive criteria, but not able to get the result. I added below code in PFR of lov region controller,
           Dictionary passiveCriteriaItems = pageContext.getLovCriteriaItems();
           String lov = (String)passiveCriteriaItems.get("SwitchLOV");
          if ((lov != null) && !("".equals(lov)))
               throw new OAException(lov, OAException.INFORMATION); 
    SwitchLOV is a lov map I have added in the LOV, and
    Programmatic Query set to true. and
    LOV Region Item is the id for which user searches.
    I am getting null in the "lov" where i have give some value in the search field.
    Is this would be the way?
    I dont understand where is the issue, Please suggest.

  • When I open safari, I get a blank page and the beach ball.

    When I open safari, I get a blank page and the beach ball. If I try to go to a website, it will load up to a certain point sometimes—the .com of www.facebook.com for instance—but other times, nothing at all.
    I've fixed this once before by deleting some files in the library folder—extensions & preferences I believe—and choosing not to have plug-ins selected, then restarting the whole computer—rather than just safari. It will work fine for a day, or maybe 3 at the most, before I have to repeat the process all over again. I'm sure it's because I usually put plug-ins back on once I get it to work, because you can't really use the internet without using plug-ins. But I'm using Chrome right now, as I do when I'm too lazy or too in a rush to try the whole process of getting safari to work again, and I don't have a single issue with it.
    My question is really, what plug-in could cause this to happen repeatedly? It's not like I'm going to websites that may have malware on them. I spend most of my day going to some of the most visited websites on the internet. 
    Is there a known bug out there, because Java has been overrunning concurrently with this happening. It's CPU % runs around 100. I quit the process, but it doesn't change anything. So, other than the fan turning on, I have not had any popup telling me that safari has crashed, that I'm not connected to the internet, or that something went horribly, horribly wrong. I'm pretty sure Safari things it's running fine, but it's not.
    Thanks in advance.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    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.
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.
    Step 1
    Copy or drag — do not type — the line below into the Terminal window, then press return:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
    Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.) You can omit the final line ending in “$”.
    Step 2
    Repeat with this line:
    sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}'
    This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step.
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting.
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
    Remember, steps 1-5 are all drag-and-drop or copy-and-paste, whichever you prefer — no typing, except your password. Also remember to post the output.
    You can then quit Terminal.

  • How can I lock Pages and Numbers files on my desktop?

    I have a Numbers spreadsheet and some documents in Pages that I'd like to 'lock' or password protect.  The old Appleworks program used to allow me to 'lock' files.   Is there a way to do this using Lion or is there a simple app I can use?

    There is a way to do that in both Pages and Numbers in Snow Leopard; I don;t have Lion available to see if that was carried forward to it.
    In SL, with the document open click the Inspector button in the toolbar for  the document. In the Inspector window, click the leftmost icon in its toolbar ("document inspector" in the popup tooltip), If a Pages document, also then click the Document button below that icon.
    Then, at the bottom of the window look for an item "Require password to open" - checkmark that, and you'll be prompted to set a password.

  • How can i deploy a silverlight application when it contains an aspx page (And Aspx page content is a DevExpress Scheduler)

    I have a silverlight application. It has containing many navigation pages in it. One of this pages is containing an .aspx page and i have used devexpress scheduler on there. It is working perfect on development machine but on production machine when client
    logged and navigate to the scheduler page there is a message top of the page saying
    webbrowser is enabled only for out-of-browser applications running with elevated permissions in Internet Explorer.
    And i have found something like that
    https://msdn.microsoft.com/en-us/library/gg192793(v=vs.95)
    But I think my problem is not that in my project properties i always checked the require permission checkbox. i couldnt understand this behavior and how can i solve. I tryed to use .pfx file by adding in project properties signing tub. Even i couldnt understand
    how why are we using this certificate and is it interesting with it
    Also now i seen in my development machine when i opened this page a popup window come up this message:
    the current webpage is trying to open a site in your trusted sites list. Do you want to allow this?
    current site: res/npctrUI.dll
    Trusted site: localhost
    warning allowing this can expose your computer to security risk. If you dont trust the current page, choose no.
    regards
    Hamit YILDIRIM

    Things that require elevated trust will always work in visual studio.
    You need elevated trust to use the webbrowser inside a Silverlight page on a user's machine.
    That means purchasing a security certificate.
    https://msdn.microsoft.com/en-us/library/gg192793(v=vs.95)
    You can open up any old web page in another tab from Silverlight and I would suggest you consider that instead of using a webbrowser control inside a Silverlight page.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • Unable to return from a column link to popup page in the same window

    Using 3.2
    I have a tabform with a link to a pop-up page (and passing values). It's working fine but when I 'Save' on the pop-up, instead of returning to the originating page, it opens up a new window with the originating page on it. How do I get back to the originating page? I'm sure it's in my branch or button url syntax but can't figure it out. I tried creating a process to 'close window' but still opens up a new window.
    FYI - if I just do the 2nd page as a normal page, all is fine but the users would prefer a popup.
    Thx.
    Sandie

    Use the template 'Popup' for your page.
    Create a After Submit Process and select the option 'Close Window'. Make sure this is the last process (highest sequence number). This will automatically closes the popup window and user will be on the parent page.
    Do not create any branches on the popup page or any target in your Save button.
    If you need to refresh the parent page with the information entered on the popup page, enter the following code, at the end, in the process that does your DML (a process that comes before the Close Window process).
    htp.p('<script>');
    htp.p('window.opener.location.reload(true);');
    htp.p('</script>');
    I have created popups this way and they work, at least in 3.2version. In APEX 4.0, the parent page is not refreshing with the data entered on the popup page, which I'm currently investigating into. If you have a different code to refresh the parent page, please share it with me.
    Edited by: rbheemir on Nov 10, 2010 2:56 PM

  • To close popup page from parent page .

    HI ,
    I want to close the popup page when my parent page is redirected to login page when session gets invalidated.
    with out calling any onload or any kind of functions in popup jsp page.
    In my application when i open a popup page from the main page ,when the session is getting expired parent page is redirected to login ,but still the popup page is in active state.i want it to be closed when the redirect happen for the parent page.
    Please help me in this matter.
    Thanks in advance.

    This is a Javascript question, not a JSP question.
    I'll give only a hint then: get hold of the handle of the popup window so that you can call close() on it.
    If you stucks, please continue at a JS forum. There are ones at webdeveloper.com and dynamicdrive.com. Once again: JSP is completely irrelevant in this question. Just base the problem on the HTML and JS output generated by JSP.

  • After adding a flashfile .swf into a dreamweaver page and trying to run it, I get an error message related to Javascript

    after adding a flashfile .swf into a dreamweaver page and trying to run it, I get an error message related to Javascript
    I have no trouble viewing other websites with (most likely), flashfiles.
    Here is the the PopUp message:
    "Adobe-warning Adobe Flash PLayer has stopped a potentrially unsafe operation......"

    In newer versions of Flash Pro, you can export to HTML5 Canvas, that's probably what they're talking about: Flash Professional Help | Creating and publishing an HTML5 Canvas document
    .FLV and .SWF are Flash formats that won't show up on iOS (or an ever increasing number of other mobile devices). Mobile Flash was killed by Adobe a couple years ago, so the number of mobile devices that can see it is dwindling rapidly, don't use those formats if you want your viewers on mobile devices to see your content.

  • How to show result from process in popup page?

    <br>We want to use one popup page for many information in application. So we want to make the following thing.
    <br>We want to execute process and show result in popup page (through hidden parameter-"P2_MESSAGE").
    <br>We also assign title of region on that popup page through "P2_TITLE".
    <br>What I do not know is how to show popup after process-branch problem.
    <br>Process is executed from one button. Button is located on page "28" and popup page is "2"
    <br>Code for javascript should be like:
    <br>
    javascript:popupURL('f?p=&APP_ID.:2:&APP_SESSION.::::P2_TITLE,P2_MESSAGE:'+'status '+','+'&P28_X.')<br>THX

    I have found in one thread:
    <br>
    <br>1) create an application item APP_ONLOAD (of course you can choose your own name)
    <br>2) create an application level before footer computation on APP_ONLOAD to clear the item after the page is generated.
    <br>3) place &APP_ONLOAD. (dot also) in the on load property of the page.
    <br>4) fill the APP_ONLOAD using :APP_ONLOAD := 'onload="your own javascript to call a popup window;"' in the plsql of an after On Submit - After Computations and Validations process (type PL/SQL anonymous block)
    Fill the when button pressed property of the process with the button you want to use to show the popup.
    <br>5) create a branch to branch to the current page (or a other if you wish)
    <br>
    Looks OK but when I create in PL/SQL js with "&" signe, which I use for filling some hidden values in popup page I get error.
    begin
      is_test_ok (1, :P28_X);
      :APP_ONLOAD := 'onload="javascript:popupHeightURL(''f?p=&APP_ID.:2:&APP_SESSION.::::P2_TITLE,P2_MESSAGE:''+''statusu testova''+'','+''&P28_X.'')"';
    end;<br>Should I use ASCII codes for that or what? Any example please!
    <br>THX

  • How to remove "Delegate" option from Reassign Popup page in task details

    Hi
    I'm using SOA 11g and Jdev 11.1.1.3 for the development. I created a Human task and using the Reassign functionality. From the BPM Worklist, When I click the Reassign in the Actions menu, a popup for Reassign task is displayed. In this popup, I have two options -
    1) Reassign (transfer task to another user or group) and
    2) Delegate (allow specfied user to act on my behalf)
    Functionality of option 1 is working fine. But I do not want to show the option 2 in the popup page.
    I tried to find the popup JSPX page and tried to find for any edit options from the BPM Worklist screen, but no luck.
    Can anyone throw some light on how I can achieve this.
    Thanks,
    Udaya Neeliahgari

    Hello,
    create a new permission level. Copy the "Contribute" permission level and call it "Contribute no Delete". Edit the new permission level and untick the "Delete" box in the List Permissions section.
    The next step depends on whether you want this to be site-wide or just for a particular library.
    Go to the Approval Task list and click List Permissions in the List ribbon. 
    Select to break permission inheritance.
    Then select the Sharepoint group that normally has "Contribute" permissions and change the permissions to "Contribute no Delete". To do that, tick the tick box for the group and use the ribbon command to edit permissions for the selection.
    cheers, teylyn

  • Datepicker on custom popup page close the popup page when date is selected

    Hi
    I have created a custom popup page according to the "How-To": Build Custom Popup Pages in Oracle Application Express. http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html
    I have changed one of the search fields to a date and use the datepicker.
    When running the custom popup page from a simple form page, and select a date with the datepicker, the custom popup page is closed, and I return to the form page.
    How do I prevent the popup page to be closed, when date is selected ?
    BR Klaus

    Is there a way to control the javascript in the
    standard datepicker.No.
    Why would you want the builtin date picker window to hang around after the user selects a date?

  • Popup ads and windows showing in Safari

    Hi all,
    it has been few weeks that Safari started to show popup ads. Both the one in page and the ones creating a new window (tab since I use Glims). I wonder because they all are in Italian (I am in Italy indeed). I never had them before. Did they find a way to break the popup block (which is enabled)? is there any way to cure it? I already use GlimmerBlocker that does a wonderful job generally, but nothing stops these few popups coming out. Any idea? Thanks!!

    HI,
    From the Safari Menu Bar click Safari/Block Pop Up Windows
    See if that helps.
    Glims can cause issues with Safari.. just be aware.
    Safari 4: May unexpectedly quit with "Glims for Safari"
    Carolyn

Maybe you are looking for