Simple problem with popup message before adding document on system form

Hi all,
We have an AddOn that validates price lines on system Sales Order form matrix, so that if prices fall below a certain value, a popup is show to ask to continue or not, when user presses ADD button.
The problem is that if he chooses yes (to continue), the Sales Order is not added since the button ADD keeps being selected ....
Here is my code:
        [B1Listener(BoEventTypes.et_CLICK, true)]
        public virtual bool OnBeforeClick(ItemEvent pVal)
            int iResult = B1Connections.theAppl.MessageBox("Price lines fall bellow minimum! Continue?", 1, "NO", "YES", "");
            if (iResult == 1) // NO
                // Show error
                B1Connections.theAppl.StatusBar.SetText("OK", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
                return false;
            // YES: Continue to add Sales Order
            return true;
The problem is somehow related with the popup message being shown: if user says YES to continue, the system form does not continue with the standard process of adding the Sales Order (when I move the cursor above the ADD button is shows it already pressed...).
Do I have to do anything more to force the process to continue, when the user says YES?
Regards,
Manuel Dias

Thtas known problem. The solution for this is declare global variable as boolean, when user selects Yes, then set this variable to true and emulate click to add button again where before the message box check if its varaible sets to true - in this case dont show message box, only set variable to false.
The concept of code will be
dim continue as boolean = false
in item event
if continue = false then
    x = messagebox...
  if x = 1 then
    continue = true
     items.item("1").click
end if
else
continue = false
end if

Similar Messages

  • Problem with Digital Signature strategy in Document Managment System

    Hello ALL,
    I am facing problem with Digital Signature strategy in DMS. If any help its greatly appreciated.
    I have senario where Approvers in DMS will review the document and approve the document and put on their digitial signature. if i have multiple approvers maintained in the characterstics it has to check weather it has been approved by all approvers otherwise it has to reset the status to for approval.
    My problem is i am able to reset the status back from approved to for approval using the badi document_status01 but when the next approver logs in to the document and change the status to approved he is not able to get the digital signature pop up which it comes only first user approves it.
    can any one help me out on whats going wrong in it.
    Thanks
    Srikanth Aduri.

    Hi,
    maybe the reason for this is that the status of the digital signature is not changed. Then the system thinks that the digital signature is still completed and therefore the user is not getting the pop-up again. The database table for the digital signature for documents is TC77. I hope this information is usefull for you.
    Best regards,
    Christoph

  • When attempting to use Firefox email, I get a yellow background popup headed ' There is a problem with this message.

    when i attempt to open Firefox Mail, I get a popup (yellow background) with the heading "There is a problem with this message". We are sorry, but Yahoo Mail has encountered a temporary problem, referring to Temporary Error 4. It goes on to suggest that I might solve the problem by going to Yahoo Help Page. I tried this to no avail. Can you help? Please keep it simple as I am sort of computer impaired. Thanks, Bob Mayfield

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    *https://support.mozilla.org/kb/clear-cache-history-and-personal-information

  • Anyone else having problems with popups since the new security upgrade? can't get rid of them

    anyone else having problems with popups since the new security upgrade? can't get rid of them

    You may have inadvertently installed adware. You do not need to download or install anything to fix it. It ought not to be related to any Apple security update.
    For a description of how this may have occurred, how to avoid it in the future, and for Apple's recommended actions read How to install adware. Apple's instructions are linked in the Recovery Procedure near the end of that document. Read and follow them carefully. Pay particular attention to the easily overlooked passages directing you to restart your Mac when required.

  • I have two Iphones with different email addresses sharing one Apple ID. Will that cause problems with using messaging and FaceTime?

    I have two Iphones 5 with different email addresses sharing one Apple ID account.Both are using IOS 8.
    I would like to set up a new Apple Id for one of the phones and remove it from the old account.
    If I do that, can I move all of the purchased apps and songs to the new Apple account?
    Also, will sharing one Apple ID account with two devices cause problems with using messaging and FaceTime?

    Sharing an iCloud account between two devices can be done without causing issues with iMessage and FaceTime, just go into Settings for each of these functions and designate separate points of contact (i.e. phone number only, or phone number and unique email address).  While that works, you'll then face the problem where a phone call to one iPhone will ring both if on the same Wi-Fi network -- but again, that can be avoided by changing each phone's settings.
    Rather than do all that, don't fight it -- use separate IDs for iCloud.  You can still use a common ID for iTunes purchases (the ID for purchases and iCloud do not have to be the same) or you can use Family Sharing to share purchases from a primary Apple account.

  • Problem with Nokia Messaging on my N97 (V22)

    Since afew weeks I have a strange problem with Nokia Messaging on my N97.
    I receive emails using Nokia Messaging (V10.2.26) with a date shown incorrect as 01.01.0000 and the email then can’t be opened/read.
    This happens either on 3G connection as well as WLAN and it seems to be by random, not only HTML-emails or emails with text only.
    I have uninstalled Nokia messaging already and reinstalled V10.1.24 but the problem still remains.
    Is there any idea how to fix this issue because it is quite annoying and I can’t use the full functionality of my cell phone?

    millic wrote:
    ceroberts75,  I remember from your other posts somehow server thinks you already have an account with the email you are trying to configure and you/nokia support is not able to get access to it. Different people have resolved this issue in different ways. For me it was just another way. Thought it might help someone.
    absolutely m8.  thats why i gave you a kudos.
    the challenge is that NM has been unruly as of late...and believe when i say that i have literally been on the phone teching nokias support up to tier 2 and creating, canceling, trying new acounts with different email, different ways of creating them, with wifi, gprs...and praying for hours accross mutliple phone calls
    but to no avail, are the devices we are using connecting and syncing...even with thier n900 specialist which i had to help him!   lmao. 
    another option for a solution is alwayhs welcome as there are more then one way to skin a cat.
    i hope it works for him and others as i kno9w thesome that are just giving up on it.

  • I have a problem with Pages shutting down my documents.

      I have a problem with Pages shutting down my documents. I have several
    several documents on my homepage,but once I select one it shuts down and
    goes to the ipad homepage.Other documents open with no problem.
    Can someone tell me what's happening
    antdel

    Pages is crashing for some reason.
    You say that other documents open with no problems, do you mean other Pages documents or documents in another app?
    Try closing Pages completely in the recents tray and reboot your iPad. See if that helps. If it doesn't help, you may have to delete and reinstall Pages. If that doesn't work, you might have a corrupt document that you need to track down and delete.
    Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • I had a problem with print preview of billing document.

    HI all,
    I had a problem with print preview of billing document which contains two output types ZR1 ZR2..
    For the footer text of billing document I maintained the font size as 7,5 pts, But when i go for print preview from output type ZR1 the font size of footer text is very small and looks good for output type ZR2.
    If i change the print options-->logical destination of output type ZR1 same as Output type ZR2, the footer text looks good.
    I think there is some issue with logical destination in print options for the output type ZR1, how can i resolve  it.

    hi,
    for both the output types , r u using same sapscript or smartform?
    if yes then, u can control it in output options of smartform and also in sapscript , you can control through if condition.
    and if differect sapscript or smartform then you should not get such problem.
    you can check the sapscript or smartfrom in TNAPR table.

  • Problem with instant message in clustered environment

    Hello, I have some problem with Instant Message service.
    We need to use it in our Production Environment (a clustered emvironment with a central instance, two dialog instances and two web dispatchers), some months ago we tested it in Development Environment (not clustered emvironment, just a single system) and it worked fine.
    So I did the same configurations on Production Environment but it did not work.
    But if I access on my portal (Production Env.) by the central instance (avoiding the dispatchers) the instant message service works.
    I think it can be a web dispatcher's configuration problem, in its logs I found the message :
    "<i>[Thr 3700] *** ERROR => htmlEncode: called with empty string [icpif.cpp 847]</i>"
    I' ve repeated the same configuration done in Dev.Env. (no dispatcher) on the Prod.Env. (with 2 dispatcher), is possible that I'm missing some configurations??
    Could someone helps me?
    Best Regard
    null

    Hi Alessandro,
    unfortunately I got the same problem but I haven't found the solution yet.
    Hoping someone will help us.
    Regards  Nicola

  • Close browser window of mozilla Firefox with popup message in ADF

    below code is working in "Internet Explorer " browser but I want to excute this on "mozilla Firefox" browser with popup message when I click on browser cross Cancel button in ADF. Please help me how can I achieve this ?
    <af:resource type="javascript">
    function closeWindow(event){
    window.opener = self;
    window.close();
    </af:resource>

    Hi,
    thats not possible...
    you can't close the parent browser window(except IE).. you can only close the window that is opened by you... with window.open('');

  • HT1657 Hi, I rented a movie off iTunes but the there is no sound. I've bought and rented previous movies and I've never had any problems with the sound before. Is this some kind of glitch? How can I get my money back?

    Hi, I rented a movie off iTunes but the there is no sound. I've bought and rented previous movies and I've never had any problems with the sound before. Is this some kind of glitch? How can I get my money back?

    Hey grossa2,
    First, here is a way to report an issue with your purchase:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    http://support.apple.com/kb/HT1933
    Then, I'd go through this article, which helps troubleshoot a lack of audio playback in iTunes:
    iTunes and QuickTime for Windows: Audio does not play or plays incorrectly
    http://support.apple.com/kb/TS1362
    Take care,
    Delgadoh

  • I keep having the same problem with my messages over and over again. My number is not checked in my message settings it just unchecks itself

    I keep having the same problem with my messages over and over again. My number is not checked in my message settings it just unchecks itself

    Dear Tomarshe
    I had the same problem a couple of weeks back.
    What I did was that I restarted that Ipad of mine and voila!
    Problem solved!
    hope this helped!
    - DASHdotDASHdot

  • I have Power Mac G5 1.8 single. I have a problem with ethernet port, before it was working with the internet, but now i shows it is connected even the cable is disconnected. I'm running Leopard 10.5. any help

    I have Power Mac G5 1.8 single. I have a problem with ethernet port, before it was working with the internet, but now i shows it is connected even the cable is disconnected. I'm running Leopard 10.5. any help

    Reset the PRAM.
    http://support.apple.com/kb/HT1379
    If that fails, reset the PMU.
    Scroll down the following page and click the G5 link for instructions:
    http://support.apple.com/kb/ht1939

  • TS3276 Does anyone have problems with sent messages not showing in their Mail? I have two sent folders when really I only want one. Any tips?

    Does anyone have problems with sent messages not showing in their Mail? I have two sent folders when really I only want one. Any tips?

    Not sure if this is a fix, but I tried sending myself a test email from only  the Bcc field, and lo and behold it now shows the Bcc field in all sent item previews;
    ...maybe leaving the 'To' field blank on purpose forced Mail to show it.
    Rebooted the Mail program, still there - rebooted the machine, still there. Hope this is still relevant and it works for you too - J.

  • Having problems with a message saying a script in this movie is causing adobe to run slowly if it continues to run, your computer may become unresponsive

    Having problems with a message saying,A script in this movie is causing adobe flash player to run slowly if it continues to run, your computer may become unresponsive. Do you want to abort script. And my system seems to freeze. What can I do

    Here is the download page for Click-to-PlugIn:
    http://hoyois.github.com/safariextensions/clicktoplugin/

Maybe you are looking for