How to make a custom popup window conditional

I reviewed the how-to doc to create custom popup pages. It uses a javascript function in the HTML Header of the popup page:
<script language="JavaScript" type="text/javascript">
function callMyPopup (formItem1,formItem2,formItem3) {
var formVal1 = document.getElementById(formItem1).value;
var formVal2 = document.getElementById(formItem2).value;
var formVal3 = document.getElementById(formItem3).value;
var url;
url = 'f?p=&APP_ID.:2:&APP_SESSION.::::P2_ENAME,P2_JOB,P2_SAL:' + formVal1 + ',' + formVal2 + ',' + formVal3 ;
w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
if (w.opener == null)
w.opener = self;
w.focus();
</script>
I don't know javascript -- is there a way to have the page be a popup page conditionally based on the page it's invoked from? I want to use an existing report page that's a tab page as a popup page with a conditional column link that is displayed based on if it was invoked from a specific page that's used for the pass back values. Is this all possible?

Hi Denes,
Thanks so much for your help. I have everything working, it's great! I'm trying to enhance this by having the Select column in my popup page (P57) be conditionally displayed based on the page it was invoked from. I've tried a couple different things. One is I have a page item on the popup page that gets set to the page it's invoked from by setting the page item in the href defined in the Post Element Text for the link in the calling page. What I can't figure out now is how to set it to null after the user selects a value from the popup page, or if they close the window without selecting a value. To make it work in all cases, the P57_FROM_PAGE page item needs to be set to null by the calling page.
Can you give me some pointers on how to do this?
Karen

Similar Messages

  • How to make another modal popup window in a modal popup window?

    how to make another modal popup window in a modal popup window?
    two modal windows must be made by inheritance of JDialog.

    the jdialog has constructors where you can set another jdialog as owner. (the same as frame)
    Visit our german java forum at http://www.java-forum.org/de
    An english version will be released soon at http://www.java-forum.org/en

  • Show the custom popup window on clicking the people name in sharepoint people search result

    Show the custom popup window on clicking the people name in sharepoint people search result
    We are doing the below code to open a popup but while clicking on name link its postback the page and not opening the popup in first click but opening in second click.The same issue occurs while navigate to second page using pagination
    The below code used to show name in item template
    <button id="NameFieldLink" class="temp" style="font-size: 12px;text-decoration:none;color:#0072c6;border:0px solid #fff;background:transparent;margin-left: 1px;height: 15px;padding: 0 10px 17px 0px;text-align: left;cursor:pointer;font-family:
    Arial, Helvetica, sans-serif;" title="">_#= DisName =#_</button> 
    The below jquery code used to open popup in control search template
    ctx.OnPostRender = []; 
    ctx.OnPostRender.push(function () {
    $(".temp").on("click", function(event)
    event.preventDefault();
    $('#fadeout').show();
    $('#pop1').find('.tab-content-people').html($(this).closest('.emp-card').find('.pop-content').html());
    $('#pop1').show();
    return false;

    I believe the issue is that you are not actually searching against the result source you made in step #1.
    It's not enough to make a result source, you have to tell the search results web part to use it.
    Try this:
    1. Go to the Pages library of Search Center
    2. Create a new Search Results page
    3. Edit the page, then edit the search results web part
    4. Change the source for the search results web part to your source
    5. Add the page to your Search Center navigation
    6. Run the search on that page
    Scot
    Author,
    Microsoft SharePoint 2013 App Development
    Author,
    Professional Business Connectivity Services
    Author,
    Inside SharePoint 2013
    Blog, www.shillier.com
    Twitter, @ScotHillier
    SharePoint Trainer, Critical Path Training

  • How to make Excel VBA (on Windows OS) to work on Mac

    Hi,
    I have made an application which uses Excel forms and other features of Excel Form 9like Title, Combo Box, List Box, Buttons etc).
    The code works well on Windows OS however when I run it on Mac it fails to work. Can anyone help me how to make this work.
    Regards, Hitesh

    Hi ExcelUser2507,
    To be honest, I do not have much experience about Office for Mac.
    >> The code works well on Windows OS however when I run it on Mac it fails to work.
    This is possible, MAC and Windows are 2 different platforms and the features of Office System on this 2 platform is also inconsistent (the Office for Windows has more rich features).
    >> How to make Excel VBA (on Windows OS) to work on Mac
    This forum is mainly for discussing question about the Office on Windows platform.
    The thread below may help, and Office for Mac forum should be more appropriate for asking questions about Office for Mac.
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/vba-support-on-office-mac/5023cdbc-fadf-4e39-a49f-59d2534aef85
    Hope it will help.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to Pass Parameters to Custom PopUp Window ??

    Hi
    Please help in passing Data from an MXML  file to my POPUp window mxml
    MainMXML File :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" horizontalAlign="left" verticalAlign="middle">
        <mx:Script>
            <![CDATA[
                import mx.events.FlexMouseEvent;
                import MyPopUpWindow;
                import mx.events.FlexEvent;
                import mx.managers.PopUpManager;
                private var popup:MyPopUpWindow;
                private function openPopUpWindow():void {
                    popup = PopUpManager.createPopUp(this,MyPopUpWindow,true) as MyPopUpWindow;
                    PopUpManager.centerPopUp(popup);
            ]]>
        </mx:Script>
        <mx:Canvas width="288" height="177">
           <mx:HBox id="jai">
            <mx:Image source="images/canvas.png" visible="true" height="100%" width="100%"/>
            <mx:Label id="kkk" text="Ravi"/>
            <mx:Button label="Edit" click="openPopUpWindow()"/>
        </mx:HBox>
        </mx:Canvas>   
    </mx:Application>
    =======
    MyPopuWindow.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <!-- custom popup window component - comps/MyPopUpWindow.mxml -->
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="vertical"
            title="My Custom PopUp Window"
            showCloseButton="true"
            close="PopUpManager.removePopUp(this)">
            <mx:Script>
                <![CDATA[
                    import mx.managers.PopUpManager;
                ]]>
            </mx:Script>
            <mx:Form>
                <mx:FormHeading label="User"/>
                <mx:FormItem label="Username">
                    <mx:TextInput id="un" />
                </mx:FormItem>
            </mx:Form>
    </mx:TitleWindow>
    On to the TextInput i need to have the value of Label kkk value . I tried with inline  binding but it didn't worked
    <mx:TextInput id="un"  text= {kkk.text}/> isn't working . please help

    Thanks for the idea, I did this way . Its working but worried as what happens if its not present inside Main Appliction.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" horizontalAlign="left" verticalAlign="middle">
        <mx:Script>
            <![CDATA[
                import mx.events.FlexMouseEvent;
                import MyPopUpWindow;
                import mx.events.FlexEvent;
                import mx.managers.PopUpManager;
                private var popup:MyPopUpWindow;
                [Bindable]
                public var str:String ;
                private function openPopUpWindow():void {
                    popup = PopUpManager.createPopUp(this,MyPopUpWindow,true) as MyPopUpWindow;
                    str = kkk.text;
                    PopUpManager.centerPopUp(popup);
            ]]>
        </mx:Script>
        <mx:Canvas width="288" height="177">
           <mx:HBox id="jai">
            <mx:Image source="images/canvas.png" visible="true" height="100%" width="100%"/>
            <mx:Label id="kkk"  text="Pavan"/>
            <mx:Button label="Edit" click="openPopUpWindow()"/>
        </mx:HBox>
        </mx:Canvas>   
    </mx:Application>
    ========
    <?xml version="1.0" encoding="utf-8"?>
    <!-- custom popup window component - comps/MyPopUpWindow.mxml -->
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="vertical"
            title="My Custom PopUp Window"
            showCloseButton="true"
            close="PopUpManager.removePopUp(this)">
            <mx:Script>
                <![CDATA[
                    import mx.core.Application;
                    import mx.managers.PopUpManager;
                ]]>
            </mx:Script>
            <mx:Form>
                <mx:FormHeading label="User"/>
                <mx:FormItem label="Username">
                    <mx:TextInput id="un" text="{Application.application.str}"/>
                </mx:FormItem>
            </mx:Form>
    </mx:TitleWindow>
    please sugest correct approach .

  • Calling Transaction Launcher in custom popup window

    Hello Experts,
    I am facing a issue. I have to call transaction launcher in custom popup window.
    It is working when i am calling transaction launcher in main window. but it is not working when i am trying to call transation launcher in popup window.
    I have written the code to call the transaction launcher in DO_PREPARE_OUTPUT method of popup view.
    Please let me know do i need to do anything extra? I am using CRM 6.0.
    Thanks in Advance
    Rajeev Singh.
    Edited by: Rajeev Singh on Feb 9, 2012 1:08 PM

    Hi Manas,
    I implemented a PopUp component some time ago for this task. There was a tutorial written for something similar here on SDN the link is: https://wiki.sdn.sap.com/wiki/display/CRM/OpeninganURLthroughpop-upfromWEBUIofCRM2007
    In the PopUp you do a followup navigation to the transaction you would like to call:
    data: lr_navigation       TYPE REF TO         if_crm_ui_navigation_service.
    lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
      lr_navigation->navigate( iv_link_id         = 'your_logical_link'
                               iv_data_collection = lr_col ).
    lr_col is a BOL collection of any kind of navigational data you need, can be kept empty as well.

  • How to make a custom TableModel for ResultSet

    Hi,
    I am doing my University Team Project using Java and MySQL what would be the best way to implement a custom TableModel for a JTable that shows the data from the MySQL database.
    I've googled it for a couple of hours but all I can really find is examples of how to add static data into the jTable.
    The updating of the database through Java works fine, but I would like to show the results in a JTable.
    I need help on how to implement a TableModel that uses a ResultSet to populate a JTable.
    Any examples of how to make a custom TableModel or links to something that shos me how to do it would be great.
    Thanks
    Shazan Miah

    I've googled it for a couple of hours but all I can really find is examples of how to add static data into the jTable.Then you need more googling practice on picking the appropriate keywords to narrow down a search. Words like "jtable resultset" yielded many hits. Of course I'm partial to the one I suggested that was found in the Swing forum.

  • How to make a custom form, buttons etc... please...

    I mean, how to make a form (for example, JFrame) with arbitrary form (geometry, for ex, round, oval, star like etc). I think you understand what i mean.
    Of course, i think i can use winApi, but it's only for windows. It doesn't suit for Java in this problem solution.
    That question also about cusomizing form of buttons, fields.. etc..
    i think, everything.
    What can java allows to cusomize and what not.
    Thanx!!

    I am just a learner and so i can just suggest you a strategy to implement Customized forms in JAVA. However i am sure that in practice it will work as far as Windows OS are concerned. Here is it:-
    The basic IDEA is to declare a native function in JAVA that makes JNI calls which will be further processed by Win32API and processed output will result into an elliptic or any polygonal shaped forms.
    To achieve declare some function as follows:
    public native void createEllipticalForm(formName formRefrance);
    create a Win32 Compiled DLL that manages this function as follows:
    (Mindwell, i havent stated what you call as pure-code but just a pseudo-code to the actual implementation)
    public native void createEllipticalForm(formName formRefrance)
    /* Search for the below stated Functions in Win32 API and work on
    them. I see a ray of success if you work with these functions properly.
    Further-more I assume that you are aware with concept of HANDLES */
    createEllipticRegion(); //WINDOWS.H
    showWindow(handleToTheForm); //WINDOWS.H
    Search for "createEllipticRegion() or showWindow()" on the GOOGLE to get the pure win32 API Code for Creating Customized Forms.
    Reply me in case any of you people get a solution based on my idea.
    [by VISH]

  • How do you determine custom popup size ?

    RH9/Snagit 10
    I am inserting hyperlinks to graphics in a popup window and trying to get the popups to appear without scroll bars.
    the graphics are all roughly the same size (gui screen caps) and will be viewed internally on the same sized laptop screens.
    I tried auto-sizing but the resulting window was too small.
    I have tried custom popup, but no matter what size i make the image in snagit or when i import into RH, the screen cap does not fit in the popup and there are scroll bars.
    is there a formula i can follow to figure out what size i should make the image/popup.
    thanks

    I found that the best idea is to let Firefox decide that itself.

  • What is, how to fix, stop, small popup window from 'plugin-container.exe' with 3 digit number that won't stop re-appearing???

    I get very small windows popping up on the screen on top of anything else I'm doing regardless of what apps I'm running or not running. If I R-click on the icon in the task bar, it's identified as "plugin-container.exe"
    The window doesn't say why it's there, but only displays a 3 digit number (for example the on on the screen now says 587) and allows only the usual X to close, or an 'OK' button to close. But a short time later it pops up again.
    I'm running Windows 7 64bit MS Security Essentials and Firefox, though it will pop up even if I just booted and haven't started Firefox yet.
    It's really (really really) annoying. How can I fix it or disable it or whatever it takes to make it STOP.
    Perhaps if I had some idea what it was I could attack it that way, but I haven't a clue. BTW, I've cleaned the registry, and done full scan's for virus and turned up nada.
    Thanks.
    D.

    As per the web site:
    There will be no update to Waterfox 25.0 as a bug causes Adobe Flash to crash on 64-Bit Windows 7 systems. Bug here. Although Firefox 25.0.1 is now available and we could build it, there would be no point of releasing a new version of Waterfox for only two weeks.
    I mostly only use Waterfox and had no problem in the past. I suspect a flash problem may be at the root of my problem however.
    As stated, I've performed (full) virus scans with MS Security Essentials. Also with Housecall, and also with HiJackThis. No problems detected.
    Screen shot of popup window attached.

  • How to make a custom calendar

    how can I make a custom calendar

    Nathan,
    What happens if you click on a calendar in the "Sources" pane and select File>Get Info?
    You should be presented with a window which allows you to select from one of several default colors, plus "Other..."
    ;~)

  • How to make a custom toolbar to put various items in?

    Formerly, there used to be an option by which I could add some sort of "custom toolbar" and then add various kinds of buttons into it, like the downloads button, home button, history, save page, etc.
    Now when I customise the toolbars (right click on main topbar>Customize), I can only add things in the given bar, which already has an address bar, a search box, and a few extensions.
    Please advise on how to make custom toolbars if there's an option I may have missed - possibly misplaced to somewhere else by the update to 29.

    If your navigation toolbar is too crowded, right-click an empty area of the tab bar and check "Menu Bar" or "Bookmarks Toolbar", or both. Buttons can also be placed on the tab bar. You can also drag icons you use infrequently into the the ≡ Menu Button panel.
    * [[Customize Firefox controls, buttons and toolbars]]
    The "Classic Theme Restorer" add-on provides an Additional Toolbar, as well as an Add-on Bar at the bottom of the window. Add-ons like "The Add-on Bar (Restored)" and "Status-4-Evar" provide only an add-on bar at the bottom of the window.
    * https://addons.mozilla.org/firefox/addon/classicthemerestorer/
    * https://addons.mozilla.org/firefox/addon/the-addon-bar/
    * https://addons.mozilla.org/firefox/addon/status-4-evar/
    * [[How to make the new Firefox look like the old Firefox]]
    * [[What happened to the Add-on Bar?]]
    * [[What happened to the Status Bar?]]

  • How can I cancel the popup window on my iPad?

    The popup blocks my iPad. How to omit it or cancel it?
    There is a popup window with message: "Your code has expired. To change the code, enter your actual code first". I cannot close this window, and I don't know what application has displayed it, so I don't know what kind of code should I enter. I tried with all codes and passwords that came to my head but nothing helped. I can swipe between applications using gestures but I cant run them, as the popup is still on top, and the only button I can press is "Next". Pressing Next makes the popup appearing again in less than second
    Is there a kind of Program Manger or "Activity Monitor", that I could use to find out what application sends this popup and at least close this app or uninstall it, or enter the code.

    Thank you for trying helping me. I bought the iPad about 7 months ago in Apple Store. It was working properly up till today. I've tried to reboot it, but it didn't help. I also closed all recent apps as you sugested (there were almost 50 of them in the tray. Anyway thank you, I didn't know I can close them this way ). I managed to close all apps but one: there is OneNote (Microsoft app) that I couldn't close, as it has no sign, but it had the progress bar at the bottom, like it would like to download or update. I downloaded it about 3 weeks ago and it worked proper - I synced it with my OneNote on PC. I thought for a while that it can be OneNote, that makes that problem, but I entered my Microsoft Office key, and it didn't helped.
    As the popup appears immediately after unlocking iPad, it might be related with operating system - but I don't have an idea what kind of code (actual, that expired, and new one) it wants.
    The window itself looks like other system popups (like "wake-up" or reminders...).
    To be sure that it is not a OneNote that cause problem I even would like to uninstall it, but I can't get to the start screen with apps (because of this popup window)
    Is there any trick to ommit this window, or uninstall the app?
    (I tried to uninstall OneNote through iTunes on my Mac (I've found such feature), but iTunes said that there is no enough space to synchronize... and I don't know how to move my photos from iPad to laptop  to release some space on iPad

  • How to create a custom protectdoublesubmit window?

    Hi ,
    I am using the xhtmlb:protectdoublesubmit in one BSP page as follows:
    <xhtmlb:protectDoubleSubmit timer  = "400"
                                      active = "TRUE"
                                      design = "POPUP"
                                      title  = "Please Wait!"
                                      text   = "Working on your request..." />
    <htmlb:button id            = "submit"
                                design        = "NEXT"
                                text          = "Transfer To Shopping Cart"
                                tooltip       = "Transfer catalog to shopping cart"
                                 o  n C l ientClick = "  g o b a c k();" />
    <s c r ipt ty p e="tex t / j avascript">
    f u n c tion go b a  ck()
    da c u ment.ge t E l ementById( ' b ack').dis ab led=tr u e;
    d a c ument.g e t E lementByI d ( ' update').d i s  abled=tr u e;
    d a c u ment.getE  l e mentById('su  b mi t').  di s a b l e d = t rue;
    s h o w P r  ot e c t D o u b l e S u b m i t W i n d o w ( t r u e ) ;
    d o c u m  e n t . b o d y . s t y l e . c u r s o r   =   "w a i t ";
    +and the form is submited in this script+
    </ s c r i pt>
    Now i need to do some processing just before the form is submited, so i am calling a BSP page using window.open and executing some code in onInitialization of this window(it is self closing window).
    So i get two windows when the button is clicked.
    Is it possible create custom popup similar to protectdoublesubmit window and do some execution in the onInitialization of this windw so that i dont have to use two popups....
    Hope i was able to explain my query..
    Thanks,
    Anubhav.

    Not Resolved...

  • How do I get a popup window to stay open with a validation failure?

    Environment:
    APEX 3.1.1.00.09 on AIX 5.3
    Oracle 10.2.0.2 EE on AIX 5.3
    Sample app on apex.oracle.com:
    Workspace: galway
    User: gwicke
    Pass: gwicke
    Steps:
    1- run Page 3
    2- select J & B Marketing from drop down
    3- select only contract from drop down
    4- click on Edit Existing Contract
    5- click on Add New Builder
    6- Enter the same builder from calling page: Builder Name: Alvarez Construction City: Baton Rouge State: LA
    7- click Add Builder
    The original version of this page would add the new builder to the database, pass the information back to the calling page and close the popup window. Cool.
    I have added a validation on the popup page (Page 4) to check for an existing builder with the same name and city.
    What I'd like to have happen is the popup window stay open so the user can see the error message with the instructions for them to click on the CANCEL button and then select the builder from the drop down list. When they click the CANCEL button I need to have the window close.
    What is happening is the window is closing as soon as the Add Builder button is clicked.
    This is because there is a region called 'scripts' that contains javascript to submit the page and close the window and the condition on the region is only that the Builder Name is not null. So, the good news is that I understand why the window is closing but I'm not sure the best way to keep it open when the error condition happens.
    Thanks very much for your help. I'm sure you recall everything about this app you helped me with many months ago. NOT!! :-)
    -gary

    Gary, I think I've got it working the way you want.
    1. I added a conditional branch to page 4 which fires on the not exists builder condition condition.
    2. I disabled the reset page process. With that running, the conditional branch to page 4 woul always fire because the builder name and city were always cleared by the time the branch executed.
    3. I noticed that the new builder did not show up in your select list until I refreshed page 2. I haven't had a chance to look at that. Maybe a branch back to page 2 from page 4 after successfully loading a new builder will take care of that.
    Bob

Maybe you are looking for

  • I get a dialog box with a copy of firefox is open and only one copy of firefox can be open at one time.

    I get a dialog box with the following: "a copy of firefox is open and only one copy of firefox can be opened at one time." I do not see where firefox is open. How do get back into firefox so that i can read the links that are in my emails? Thank you.

  • Remote user Authentication in customize login page

    Hi all, I would like to make sincere request to all you that I am not able authenticate my users based on tables. I start to learn HTML DB before 20 days and created simple application. Requirement: 1: Created new login page P16 other than inbuilt lo

  • Need Help on ESB configuration

    I'm new on AIA and ESB. I have a problem on server with Concrete WSDL's location in deployed ESB: location=http://localhost:9700/... (it refers to localhost!!!) I guess somewhere of my ESB configuration is incorrect. However I do have correct "Virtua

  • Making a Dynamic Listview

    hi, i want to to make a listview in which if the selected item is clicked upon,the text showed there should change. for eg. if selected item is currently "on",when clicked upon,the text displayed should be "off ".. can this be done?

  • Issue in Configuring Linksys RV042 router

    Hi, I am facing some issues in configuring the Linksys RV042 router with dual WAN configuration. We are having two internet connection and I want to perform the "Load balancing" between the two internet connections. I have followed the RV042 manual a