Pop-up box & condition

Hi,
We have created some pop-up boxes (Text object with html), but we would like them to be displayed based on certain conditions. For instance, if a function is executed successfully, the pop-up box should not appear. Or if a key figure has a specific amount, the pop-up box should appear.
Is there a way to build a logic to achieve that?
The white paper 'How To validate key figure values in Manual planning' can issue error messages but does not give the user the ability to execute or not a subsequent function.
Thanks for any help.
David Thoumieux

Hi David,
What are your javascript skills like?
You could use javascript to read the contents of the message box, check for successful planning functions, then throw up a pop-up choice to execute a BPS planning function (search the forum - there are a few threads for executing functions using javscript) depending on a condition determined by a range of key fig values that you specify....
Marc Bernard posted the following script as a way to sort through the message box and only return messages of a certain message number...........use this as a start to scroll through a return/find certain message types, then write a little script which executes the relevant BPS function.....
Good luck,
Rael
<SCRIPT LANGUAGE="JavaScript">
var msg_table = document.all("msg_table");
if (msg_table != undefined ) {
// Loop over all rows and hide some
for (var j = 0; j < msg_table.rows.length; j++) {
var msg_text = msg_table.rows[j].innerHTML;
// Regular expression pattern to look for message
var msg_search = /msgid=UPC.*msgno=301/i;
if (msg_text.search(msg_search) > 0) {
msg_table.rows[j].style.display = "none";
</SCRIPT>

Similar Messages

  • To buypass the SAP standard POP up box in PO create and change mode

    Hi All,
    In purchase order ME21N or ME22N, i have made changes using enhancement MM06E005. It is in FM Exit_sapmm06E_012 that i have my new code. Here when the business requirement is met the custom warning message is triggered.
    With this, i get sap pop-up box like this when i try to save or do checking:
    Save Doc
    System messages issued
    Do you want to save document or process data ?
    'Save' Edit cancel -
    > These are buttons.
    I like to bypass this sap pop-up box. Instead, when my business condition is met upon save or enter, i like to display the message where user can see it directly.
    Anyone has come across this for ME21N ? Any suggestions are welcome.

    Hi maruvada14,
    I guess you should move this question to the [Enhancements and Modifications forum|ABAP Switching, Enhancing, and Adapting Standard Programs;.
    Anyway, have you tried issuing your message as type 'E'? If you're on ECC 6.0, you can do it with the addition DISPLAY LIKE so you can have the desired effect.
    Att.,
    Leonardo

  • Pop up Box while workflow executes an activity step

    Hi Folks!
    I dont know whether this is feasible or not, but please shoot your suggestions.
    I want to display a pop up box in SAP GUI when a workflow executes a particular step. Basically, once my workflow starts, I have included a condition step (it checks the document type). So if the document type is 'X', then the workflow should proceed as usual. However, when the document type 's 'Y', the workflow should throw a pop up message over the screen and the workflow should terminate.
    Now the reason why we want the pop up screen rather than an email/workitem is because we have two workflows that utilize the same business object (FIPP). There was a situation where an end user manually started *(thru 'services for object'-> start workflow) the wrong workflow for a document, due to which the document got posted without getting any approvals.
    So what we would like to achieve is when the user manually starts the wrong workflow, the workflow should proceed and then when the check condition fails the user should get a pop up box immediately in SAP itself saying that the wrong workflow was started.
    Your inputs/comments are most welcome.
    Regards,
    Anwar.

    I am sorry but it is not possible to throw pop up every time, actually workflow consists of background task which got executed without user intervention and in those cases no pop up will come up.
    You can get pop up box for dialog task (such as user decision etc)you have to write down business object method code for that.
    there are many ways you can handle your situation:
    1. Write down the Check FM for FIPP-Posted Event where you can check it whether it is approved or not, If not then do not complete the workflow and start some dialog WI and send across to approvers
    (It is just outline, you have to formulate the solution around this outline).
    2. Also you can check for BAdi or user Exit and directly can write down message for that, It seems more easy.
    Cheers
    Jai

  • Pop up box is not handel in BDC program

    hi to all experts,
    in tcode ' IP10 '  one pop up box is came in simple processing and recording also. but when i used the system source code in program , this pop up box is not encounter on this conditions. how can i solve this issue.
    Help is appriciated.
    Regards:
    Mahesh

    hi,
    if the warning message coming in a pop-up window then it can be supressed in the following way.
    1. comment the lines of the code of bdc recording of that pop-up screen along with the perform of bdc ok code '=ENTE".
    2. use the structure ctu_params and fill the correspondings fiels, particularly the field nobinpt = 'X' and then use this structure in the call transcation statement as
    call transcation 'ME11'
    using bdcdata
    options from opt ( structure of ctu_params )
    3. At the time of recording use the option of check box " no batch input session ".
    regards,
    Alok

  • Pop up box connected to AP Div

    Hi all,
    I have created 2 AP Div's:
    1. One which have map as background
    2. One which have a connected pop up box/tooltip
    The pop up box is working just fine when i have separated the two AP Divs, and after changing the Z-value to 2 for map AP div and Z-value to 1 for AP div with the pop up box.
    Correction: the AP div with pop up has Z-value 3
    When I place the AP div with the connected pop up box/tooltip over the AP Div containing the map, the pop up box doesnt work anymore.
    Anybody have a clue?
    Best regards,
    Ivan

    I have studied this a bit closer and think i need to input a z-index in the script running (or whatever the correct terminiology is). The script is:
    /* --- BoxOver ---
    /* --- v 2.1 17th June 2006
    By Oliver Bryant with help of Matthew Tagg
    http://boxover.swazz.org */
    if (typeof document.attachEvent!='undefined') {
       window.attachEvent('onload',init);
       document.attachEvent('onmousemove',moveMouse);
       document.attachEvent('onclick',checkMove); }
    else {
       window.addEventListener('load',init,false);
       document.addEventListener('mousemove',moveMouse,false);
       document.addEventListener('click',checkMove,false);
    var oDv=document.createElement("div");
    var dvHdr=document.createElement("div");
    var dvBdy=document.createElement("div");
    var windowlock,boxMove,fixposx,fixposy,lockX,lockY,fixx,fixy,ox,oy,boxLeft,boxRight,boxTop,bo xBottom,evt,mouseX,mouseY,boxOpen,totalScrollTop,totalScrollLeft;
    boxOpen=false;
    ox=10;
    oy=10;
    lockX=0;
    lockY=0;
    function init() {
        oDv.appendChild(dvHdr);
        oDv.appendChild(dvBdy);
        oDv.style.position="absolute";
        oDv.style.visibility='hidden';
        document.body.appendChild(oDv);   
    function defHdrStyle() {
        dvHdr.innerHTML='<img  style="vertical-align:middle"  src="colombiareiser/info.gif">  '+dvHdr.innerHTML;
        dvHdr.style.fontWeight='bold';
        dvHdr.style.width='150px';
        dvHdr.style.fontFamily='arial';
        dvHdr.style.border='1px solid #A5CFE9';
        dvHdr.style.padding='3';
        dvHdr.style.fontSize='11';
        dvHdr.style.color='#4B7A98';
        dvHdr.style.background='#D5EBF9';
        dvHdr.style.filter='alpha(opacity=85)'; // IE
        dvHdr.style.opacity='0.85'; // FF
    function defBdyStyle() {
        dvBdy.style.borderBottom='1px solid #A5CFE9';
        dvBdy.style.borderLeft='1px solid #A5CFE9';
        dvBdy.style.borderRight='1px solid #A5CFE9';
        dvBdy.style.width='150px';
            dvBdy.style.fontFamily='arial';
        dvBdy.style.fontSize='11';
        dvBdy.style.padding='3';
        dvBdy.style.color='#1B4966';
        dvBdy.style.background='#FFFFFF';
        dvBdy.style.filter='alpha(opacity=85)'; // IE
        dvBdy.style.opacity='0.85'; // FF
    function checkElemBO(txt) {
    if (!txt || typeof(txt) != 'string') return false;
    if ((txt.indexOf('header')>-1)&&(txt.indexOf('body')>-1)&&(txt.indexOf('[')>-1)&&(txt.indexO f('[')>-1))
       return true;
    else
       return false;
    function scanBO(curNode) {
          if (checkElemBO(curNode.title)) {
             curNode.boHDR=getParam('header',curNode.title);
             curNode.boBDY=getParam('body',curNode.title);
                curNode.boCSSBDY=getParam('cssbody',curNode.title);           
                curNode.boCSSHDR=getParam('cssheader',curNode.title);
                curNode.IEbugfix=(getParam('hideselects',curNode.title)=='on')?true:false;
                curNode.fixX=parseInt(getParam('fixedrelx',curNode.title));
                curNode.fixY=parseInt(getParam('fixedrely',curNode.title));
                curNode.absX=parseInt(getParam('fixedabsx',curNode.title));
                curNode.absY=parseInt(getParam('fixedabsy',curNode.title));
                curNode.offY=(getParam('offsety',curNode.title)!='')?parseInt(getParam('offsety',curNode. title)):10;
                curNode.offX=(getParam('offsetx',curNode.title)!='')?parseInt(getParam('offsetx',curNode. title)):10;
                curNode.fade=(getParam('fade',curNode.title)=='on')?true:false;
                curNode.fadespeed=(getParam('fadespeed',curNode.title)!='')?getParam('fadespeed',curNode. title):0.04;
                curNode.delay=(getParam('delay',curNode.title)!='')?parseInt(getParam('delay',curNode.tit le)):0;
                if (getParam('requireclick',curNode.title)=='on') {
                    curNode.requireclick=true;
                    document.all?curNode.attachEvent('onclick',showHideBox):curNode.addEventListener('click', showHideBox,false);
                    document.all?curNode.attachEvent('onmouseover',hideBox):curNode.addEventListener('mouseov er',hideBox,false);
                else {// Note : if requireclick is on the stop clicks are ignored              
                   if (getParam('doubleclickstop',curNode.title)!='off') {
                       document.all?curNode.attachEvent('ondblclick',pauseBox):curNode.addEventListener('dblclic k',pauseBox,false);
                   if (getParam('singleclickstop',curNode.title)=='on') {
                       document.all?curNode.attachEvent('onclick',pauseBox):curNode.addEventListener('click',pau seBox,false);
                curNode.windowLock=getParam('windowlock',curNode.title).toLowerCase()=='off'?false:true;
                curNode.title='';
                curNode.hasbox=1;
           else
              curNode.hasbox=2;  
    function getParam(param,list) {
        var reg = new RegExp('([^a-zA-Z]' + param + '|^' + param + ')\\s*=\\s*\\[\\s*(((\\[\\[)|(\\]\\])|([^\\]\\[]))*)\\s*\\]');
        var res = reg.exec(list);
        var returnvar;
        if(res)
            return res[2].replace('[[','[').replace(']]',']');
        else
            return '';
    function Left(elem){   
        var x=0;
        if (elem.calcLeft)
            return elem.calcLeft;
        var oElem=elem;
        while(elem){
             if ((elem.currentStyle)&& (!isNaN(parseInt(elem.currentStyle.borderLeftWidth)))&&(x!=0))
                 x+=parseInt(elem.currentStyle.borderLeftWidth);
             x+=elem.offsetLeft;
             elem=elem.offsetParent;
        oElem.calcLeft=x;
        return x;
    function Top(elem){
         var x=0;
         if (elem.calcTop)
             return elem.calcTop;
         var oElem=elem;
         while(elem){       
              if ((elem.currentStyle)&& (!isNaN(parseInt(elem.currentStyle.borderTopWidth)))&&(x!=0))
                 x+=parseInt(elem.currentStyle.borderTopWidth);
             x+=elem.offsetTop;
                 elem=elem.offsetParent;
          oElem.calcTop=x;
          return x;
    var ah,ab;
    function applyStyles() {
        if(ab)
            oDv.removeChild(dvBdy);
        if (ah)
            oDv.removeChild(dvHdr);
        dvHdr=document.createElement("div");
        dvBdy=document.createElement("div");
        CBE.boCSSBDY?dvBdy.className=CBE.boCSSBDY:defBdyStyle();
        CBE.boCSSHDR?dvHdr.className=CBE.boCSSHDR:defHdrStyle();
        dvHdr.innerHTML=CBE.boHDR;
        dvBdy.innerHTML=CBE.boBDY;
        ah=false;
        ab=false;
        if (CBE.boHDR!='') {       
            oDv.appendChild(dvHdr);
            ah=true;
        if (CBE.boBDY!=''){
            oDv.appendChild(dvBdy);
            ab=true;
    var CSE,iterElem,LSE,CBE,LBE, totalScrollLeft, totalScrollTop, width, height ;
    var ini=false;
    // Customised function for inner window dimension
    function SHW() {
       if (document.body && (document.body.clientWidth !=0)) {
          width=document.body.clientWidth;
          height=document.body.clientHeight;
       if (document.documentElement && (document.documentElement.clientWidth!=0) && (document.body.clientWidth + 20 >= document.documentElement.clientWidth)) {
          width=document.documentElement.clientWidth;  
          height=document.documentElement.clientHeight;  
       return [width,height];
    var ID=null;
    function moveMouse(e) {
       //boxMove=true;
        e?evt=e:evt=event;
        CSE=evt.target?evt.target:evt.srcElement;
        if (!CSE.hasbox) {
           // Note we need to scan up DOM here, some elements like TR don't get triggered as srcElement
           iElem=CSE;
           while ((iElem.parentNode) && (!iElem.hasbox)) {
              scanBO(iElem);
              iElem=iElem.parentNode;
        if ((CSE!=LSE)&&(!isChild(CSE,dvHdr))&&(!isChild(CSE,dvBdy))){       
           if (!CSE.boxItem) {
                iterElem=CSE;
                while ((iterElem.hasbox==2)&&(iterElem.parentNode))
                        iterElem=iterElem.parentNode;
                CSE.boxItem=iterElem;
            iterElem=CSE.boxItem;
            if (CSE.boxItem&&(CSE.boxItem.hasbox==1))  {
                LBE=CBE;
                CBE=iterElem;
                if (CBE!=LBE) {
                    applyStyles();
                    if (!CBE.requireclick)
                        if (CBE.fade) {
                            if (ID!=null)
                                clearTimeout(ID);
                            ID=setTimeout("fadeIn("+CBE.fadespeed+")",CBE.delay);
                        else {
                            if (ID!=null)
                                clearTimeout(ID);
                            COL=1;
                            ID=setTimeout("oDv.style.visibility='visible';ID=null;",CBE.delay);                        
                    if (CBE.IEbugfix) {hideSelects();}
                    fixposx=!isNaN(CBE.fixX)?Left(CBE)+CBE.fixX:CBE.absX;
                    fixposy=!isNaN(CBE.fixY)?Top(CBE)+CBE.fixY:CBE.absY;           
                    lockX=0;
                    lockY=0;
                    boxMove=true;
                    ox=CBE.offX?CBE.offX:10;
                    oy=CBE.offY?CBE.offY:10;
            else if (!isChild(CSE,dvHdr) && !isChild(CSE,dvBdy) && (boxMove))    {
                // The conditional here fixes flickering between tables cells.
                if ((!isChild(CBE,CSE)) || (CSE.tagName!='TABLE')) {              
                   CBE=null;
                   if (ID!=null)
                          clearTimeout(ID);
                   fadeOut();
                   showSelects();
            LSE=CSE;
        else if (((isChild(CSE,dvHdr) || isChild(CSE,dvBdy))&&(boxMove))) {
            totalScrollLeft=0;
            totalScrollTop=0;
            iterElem=CSE;
            while(iterElem) {
                if(!isNaN(parseInt(iterElem.scrollTop)))
                    totalScrollTop+=parseInt(iterElem.scrollTop);
                if(!isNaN(parseInt(iterElem.scrollLeft)))
                    totalScrollLeft+=parseInt(iterElem.scrollLeft);
                iterElem=iterElem.parentNode;           
            if (CBE!=null) {
                boxLeft=Left(CBE)-totalScrollLeft;
                boxRight=parseInt(Left(CBE)+CBE.offsetWidth)-totalScrollLeft;
                boxTop=Top(CBE)-totalScrollTop;
                boxBottom=parseInt(Top(CBE)+CBE.offsetHeight)-totalScrollTop;
                doCheck();
        if (boxMove&&CBE) {
            // This added to alleviate bug in IE6 w.r.t DOCTYPE
            bodyScrollTop=document.documentElement&&document.documentElement.scrollTop?document.docum entElement.scrollTop:document.body.scrollTop;
            bodyScrollLet=document.documentElement&&document.documentElement.scrollLeft?document.docu mentElement.scrollLeft:document.body.scrollLeft;
            mouseX=evt.pageX?evt.pageX-bodyScrollLet:evt.clientX-document.body.clientLeft;
            mouseY=evt.pageY?evt.pageY-bodyScrollTop:evt.clientY-document.body.clientTop;
            if ((CBE)&&(CBE.windowLock)) {
                mouseY < -oy?lockY=-mouseY-oy:lockY=0;
                mouseX < -ox?lockX=-mouseX-ox:lockX=0;
                mouseY > (SHW()[1]-oDv.offsetHeight-oy)?lockY=-mouseY+SHW()[1]-oDv.offsetHeight-oy:lockY=lockY;
                mouseX > (SHW()[0]-dvBdy.offsetWidth-ox)?lockX=-mouseX-ox+SHW()[0]-dvBdy.offsetWidth:lockX=lockX;            
            oDv.style.left=((fixposx)||(fixposx==0))?fixposx:bodyScrollLet+mouseX+ox+lockX+"px";
            oDv.style.top=((fixposy)||(fixposy==0))?fixposy:bodyScrollTop+mouseY+oy+lockY+"px";        
    function doCheck() {   
        if (   (mouseX < boxLeft)    ||     (mouseX >boxRight)     || (mouseY < boxTop) || (mouseY > boxBottom)) {
            if (!CBE.requireclick)
                fadeOut();
            if (CBE.IEbugfix) {showSelects();}
            CBE=null;
    function pauseBox(e) {
       e?evt=e:evt=event;
        boxMove=false;
        evt.cancelBubble=true;
    function showHideBox(e) {
        oDv.style.visibility=(oDv.style.visibility!='visible')?'visible':'hidden';
    function hideBox(e) {
        oDv.style.visibility='hidden';
    var COL=0;
    var stopfade=false;
    function fadeIn(fs) {
            ID=null;
            COL=0;
            oDv.style.visibility='visible';
            fadeIn2(fs);
    function fadeIn2(fs) {
            COL=COL+fs;
            COL=(COL>1)?1:COL;
            oDv.style.filter='alpha(opacity='+parseInt(100*COL)+')';
            oDv.style.opacity=COL;
            if (COL<1)
             setTimeout("fadeIn2("+fs+")",20);       
    function fadeOut() {
        oDv.style.visibility='hidden';
    function isChild(s,d) {
        while(s) {
            if (s==d)
                return true;
            s=s.parentNode;
        return false;
    var cSrc;
    function checkMove(e) {
        e?evt=e:evt=event;
        cSrc=evt.target?evt.target:evt.srcElement;
        if ((!boxMove)&&(!isChild(cSrc,oDv))) {
            fadeOut();
            if (CBE&&CBE.IEbugfix) {showSelects();}
            boxMove=true;
            CBE=null;
    function showSelects(){
       var elements = document.getElementsByTagName("select");
       for (i=0;i< elements.length;i++){
          elements[i].style.visibility='visible';
    function hideSelects(){
       var elements = document.getElementsByTagName("select");
       for (i=0;i< elements.length;i++){
       elements[i].style.visibility='hidden';
    Anybody know how to input a line setting the z-value for the box over?
    Best regards,
    Ingvar

  • I need to update my apps in the App Store, but when i try to update, the Sign Up Apple ID pop up box came out with different Apple ID. How can I change it to mine? My iTunes Store already login with my own Apple ID.

    I need to update my apps in the App Store, but when i try to update, the Sign Up Apple ID pop up box came out with different Apple ID. How can I change it to mine? My iTunes Store already log in with my own Apple ID.

    Just now you said the other Apple ID stored inside it, is that mean all my data back up in that the other ID?

  • Pop up box in yahoo mail won't close, asks "do you use the yahoo! toolbar on multiple computers?" has option buttons but no response when clicking on anything, pop up box just sits there in the way

    whenever I open my yahoo mail when using Firefox, a pop up box appears on the upper left side of the screen, it asks the question "do you use the yahoo! toolbar on multiple computers?" and gives click boxes for "Save to my yahoo ID" and "No thanks, just save to this computer". I get no response to clicking on either box, nor will the pop up close if I click on the "X" in the upper right corner of this pop up. It won't close out and it sits right over the top of the email messages in my inbox. All else seems to work fine, but can't get rid of this pop up box....very annoying.

    go mail.yahoo.com as the login entrance for yahoo mail.

  • When I open iTunes it is slow to open for one, and two when it does see my iPhone and i go to sync it this is what I get in return... The iPhone "My Name here" could not be synced because the iPhone could not be found on the network. that is a pop up box

    When I open iTunes it is slow to open for one, and two when it does see my iPhone and i go to sync it this is what I get in return... The iPhone "My Name here" could not be synced because the iPhone could not be found on the network. that is a pop up box in middle of screen that says that it does it like every time I go to sync the phone after i do app updates. I am getting very frustrated by this can someone please help. I have made 2 other discussion topics about this and no replies on them. Please if anyone can help I ask for help. This has occurred ever since the iOS 5.1 update and the iTunes 10.6.0 and still continues with the iTunes 10.6.1 update just yesterday and perhaps even worse now. PLEASE HELP IF YOU CAN. I have looked through my network settings etc and everything looks good here on my side.

    When I open iTunes it is slow to open for one, and two when it does see my iPhone and i go to sync it this is what I get in return... The iPhone "My Name here" could not be synced because the iPhone could not be found on the network. that is a pop up box in middle of screen that says that it does it like every time I go to sync the phone after i do app updates. I am getting very frustrated by this can someone please help. I have made 2 other discussion topics about this and no replies on them. Please if anyone can help I ask for help. This has occurred ever since the iOS 5.1 update and the iTunes 10.6.0 and still continues with the iTunes 10.6.1 update just yesterday and perhaps even worse now. PLEASE HELP IF YOU CAN. I have looked through my network settings etc and everything looks good here on my side.

  • I'm unable to open up Lightroom 5, I get this message in a pop up box: "Lightroom encountered an error when reading from it's preview cache and needs to quit" Underneath  that is "Lightroom will attempt to fix this problem the next time when it launches."

    I'm unable to open up Lightroom 5, I get this message in a pop up box: "Lightroom encountered an error when reading from it's preview cache and needs to quit" Underneath  that is "Lightroom will attempt to fix this problem the next time when it launches."  It hasn't, what should I do? Thanks Shawn (Irish Se7en) .

    Can you try to rename (not delete!) the folder named "YOUR_CATALOG_NAME Previews.lrdata" and restart Lightroom?

  • Suppress the pop-up box in iCal when "The server responded with an error"

    So there are tons of questions already on this site about this pop-up error in iCal when trying to connect to Google calendars or MobileMe calendars. My issue is that the connection is fine 90% of the time, but every now and then the connection fails (it checks every 5 minutes) and I get this pop-up.
    Now in a perfect world, this error would not result in a pop-up that demands my immediate attention, but would fail silently and simply try again 5 minutes later. Normally Apple's software design is sensible and would do things this way, so I'm totally confused why they think a pop-up (and bouncing dock icon) is anything but annoying, especially when I know it's not a big deal and will probably connect successfully next time.
    Soooo... is there a top-secret way I can suppress this pop-up box? It is one of those things that can drive one insane. I even switched to BusyCal for a while but decided it wasn't quite worth $50 just to be rid of the pop-up.

    Is this the pop-up you get?
    The request for account “[email protected]” failed.
    The server responded with
    “HTTP/1.1 502 Bad Gateway”
    to operation CalDAVAccountRefreshQueueableOperation.
    I've never seen it before but am getting it this evening (UK time). Also if I try to log in to MMe Calendar it's not logging in but going to 'find my iPhone' like it did when Mail was mucking about a few weeks back.

  • Why do I keep getting a pop up box asking me to enter my apple id and password - and the id in the box is not mine? Is it phishing for my password?  How do I get rid of it?

    I keep getting a pop up box on my iPhone asking me to enter my password - and the apple id does not match mine.  I click 'Cancel' but it keeps reappearing and interfering with other apps.  What did I do to get this and what do I do to get rid of it?  Is it someone or something phishing for my password?  The only app I recently downloaded was PF Chang's and I got that directly from the App Store.

    Try signing out and then back in again by going into Settings>Store>Apple ID:>Sign Out>

  • Pop up box with Ok and Cancel choices, not working. Please Help.

    Hello! I am trying to create a pop up box that allows users to choose Ok and Cancel (i'm just testing with Ok and Cancel for now). For some reason when I run it a CMD line pops up and closes very quickly, but i do not get errors. Here is my code:
          private void button1_Click(object sender, EventArgs e)
                PopupForm popup = new PopupForm();
                DialogResult dialogresult = popup.ShowDialog();
                if (dialogresult == DialogResult.OK)
                    Console.WriteLine("You clicked OK");
                else if (dialogresult == DialogResult.Cancel)
                    Console.WriteLine("You clicked either Cancel or X button in the top right corner");
                popup.Dispose();
    Please help! 
    Thanks
    - Rocketman123

    Hi Rocketman123,
    Per my understanding, you are developing a winform application, but in your code, I see "Console.WriteLine".
    So please use MessageBox.Show() instead.
    http://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l=EN-US&k=k(System.Windows.Forms.MessageBox.Show);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.5);k(DevLang-csharp)&rd=true
    Best regards,
    Kristin
    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.

  • I successfully downloaded ADE 4.0 MacOSX, but when I try to open my epub file, a pop up box comes up and says: No available application can open it. Anybody have any ideas on how to correct? Thanks

    Successfully downloaded ADE 4.0 MacOSX, but when I try to open an epub. file, a pop up box says: No available application can open it. Anybody have any ideas on what I can do to open the file? Thx.

    Successfully downloaded ADE 4.0 MacOSX, but when I try to open an epub. file, a pop up box says: No available application can open it. Anybody have any ideas on what I can do to open the file? Thx.

  • SAP JavaScript Need Help with Pop Up Boxes In SAP ie: Warning, Instructions

    Can someone help me get my script to enter through the pop up boxes in SAP? ie: Warning, Instructions, Batch code Errors
    When recording the script, I am unable to identify what code would notify my script of the box.
    Each order can have 0 pop ups, 1, up to 100...
    Help???

    NVM got it figured out.

  • Outlook 2010 authentication pop up box won't go away

    After we applied the latest round of Windows Updates to our guinea pig workstations, we discovered that one of them caused something to break in Outlook 2010.  We are set to use AD auto detect authentication on a local Exchange 2007 server. The pop
    up window has varied, and nothing we have done has fixed it, not even uninstalling all the patches.  (After the first workstation had the bug, I installed the patches one at a time and determined its KB2553248 that breaks it.)
    Mail flows normally and we can send and receive without any problems.  The pop up box can be sent to the back but cannot be minimized.
    Mine says:
    Windows Security
    Microsoft Outlook
    Connecting to (my AD email address)
    The OK button is grayed out.  Hitting the Cancel button breaks the connection to Exchange, and causes "Connected to Microsoft Exchange" to change over to "Need Password" on the bottom toolbar.  Clicking "Need Password" logs me in within a few seconds
    without any further prompting.... but within five minutes the pop up box is back.
    On the other user's computer, the pop up box says:
    Windows Security
    Please Insert a Smart Card
    and prompts for credentials if she hits OK.  Like my pop up, the window can be ignored and mail flows normally.  If she hits cancel, her connection to Exchange breaks until she hits "Need Password" at which point she's logged right back in again.
    Interestingly, her Outlook was never configured to authenticate with a smart card.  Like mine, it's set to Auto Detect connection type and to configure with the Windows AD login information.
    We're holding off deployment of KB2553248 until we have a fix for this.  Although it does not impede mail flow it's annoying as heck, and our clients that use Outlook (all 500ish of them...) are sure to click Cancel and break their connection to Exchange
    without knowing to click the Need Password again.
    How can we hide this pop up box?

    OK...update on my issue (which is now RESOLVED!!!) since other people may did what I did.
    I looked at the following link:
    http://demazter.wordpress.com/2010/02/09/outlook-continually-prompting-for-username-and-password-2/
    None of the above worked...even the kerberos method.
    OL 2010 pop up box didn't say anything about connecting to where.  So I looked closely at the popup box for OL 2007...keeps on saying connecting to mail.company.com.  I was wondering why OL was trying to go outside instead of exch2010.domain.local
    even though my account settings/profile is set to exch2010.domain.local.
    As I was reading an article on SCP and how to locate it using adsiedit (which I couldn't figure out how),
    http://blogs.msdn.com/b/douggowans/archive/2007/06/28/serviceconnectionpoints.aspx
    This line in the blog got me thinking:
    This url can be changed using the set-clientaccessserver cmdlet with the parameter -AutodiscoverServiceInternalURI.
    That InternalURI got me thinking.  When I looked at a txtfile that I jolted down and saved of what I did during the install of Exch 2010,
    Set-ClientAccessServer -Identity "exch2010" –AutodiscoverServiceInternalURI
    https://mail.company.com/autodiscover/autodiscover.xml
    Set-WebServicesVirtualDirectory -Identity "exch2010\EWS (Default Web Site)" –InternalUrl 
    https://mail.company.com/EWS/Exchange.asmx
    Set-OABVirtualDirectory -Identity “exch2010\OAB (Default Web Site)” -InternalURL
    https://mail.company.com/OAB
    I figured, let's try changing them to:
    Set-ClientAccessServer -Identity "exch2010" –AutodiscoverServiceInternalURI
    https://exch2010/autodiscover/autodiscover.xml
    Set-WebServicesVirtualDirectory -Identity "exch2010\EWS (Default Web Site)" –InternalUrl 
    https://exch2010/EWS/Exchange.asmx
    Set-OABVirtualDirectory -Identity “exch2010\OAB (Default Web Site)” -InternalURL
    https://exch2010/OAB
    I entered those commands in EMS and executed them...then I loaded up OL 2010 and OL 2007.  It's been 30 min and nothing has popped up!!!
    Silly me..I think why I did mail.company.com was that I was following a couple of guides that were posted out there on the internet on exchange 2010 and they just entered mail.company.com into there.  But I think their guides are for networks where
    the internal domain and external domain are the same.  ie company.com for both insdie and outside.
    I am going to install KB2553248 back onto my Win 7/OL 2010 workstation and see if that breaks it.

Maybe you are looking for

  • JGSL : about java scientific library, how to use it any tutorial or etc

    Hay, I have a question regarding JGSL: java scientific library. I just download the jgsl.0.1.1 lib for my project It contains a bunch of file, including the lib files I set the lib folder path in the LD_LIBRARY_PATH and when i tried to run the testfi

  • Issues viewing PDF's in safari with frames

    I am a college student and I have a lot of PDF's to look at while in class. The university's website for class info is called blackboard. In safari, when I open a link to a pdf file, the pdf opens in the main frame of the website, but only the first

  • Options for compressing video in iPhoto

    So after using iPhoto for several years now, I've got lots of HD video snippets (hefty MOV files) scattered all throughout my years of created iPhoto Events. I don't have any intention of using iMovie to drag all the pics and movies together and make

  • Can't sync my Itunes through WIFI.

    I've tried troubleshooting from what Apple suggested, but no luck. I understand it has to have a power source (such as overnight charging), and I've tried that, but it says "sync will resume when "PC is available". I've tried it with iTunes up on my

  • Fast Previewing is slow, how to fix?

    Can anyone help please! While I'm editing it takes a lot of time for stuff to render, for example in this video After Effects Tutorial - Basic Typography & Motion Graphics - YouTube he moves everything around so smoothly and you can see that he's mov