Display message once inside loop

Hi,
I'm trying to display 2 messages to the user indicating 2 distinct conditions in my program. However, since the entire program runs in a single while loop, the messages appear over and over again. If I take the message boxes out of the loop, they both appear after one of the conditions is met. I would like each message to appear once when their corresponding condition is met, have the user click OK, then have the message disappear and have the program continue running.
Any ideas on how to do this?
Thanks,
Daryn

Hi Daryn,
You could use a separate loop driven with a queue:
Example attached in LV2010.
steve
Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
question. Give "Kudos" to replies that help.
Attachments:
dialog loop.vi ‏14 KB

Similar Messages

  • Field: Goto -- Display messages inactive

    Hi Experts
    We are facing a problem with viewing XML files coming from the customs. We receive the PDF after an Export, also the Swiss EVV comes into our system. But it is not possible to show the XML files. The field Goto --> Display messages is inactive. Here normaly you can see the XML files which are stored in the content server. With the PDF which is also stored there, we have no problems to show. Also Seeburger told us, that there are no problems on their side.
    Can somebody help us?
    Thanks in advance.
    Andreas
    Edited by: Andreas Drees on Oct 1, 2009 2:37 PM

    Hi Casadillo,
    I think I know why it does not work.
    1. When you place the CALL TRANSACTION statement inside the loop, the messages that were collected in the internal table i_messages will get overwritten by the new messages.
    2. Also, adding the new field is a good approach, but the new field is not getting populated into the internal table at all.
    Try out something like this.
    DATA I_MESSAGES TYPE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF I_ERROR_TABLE OCCURS 0,
    DATA: NEWFIELD TYPE  <XYZ>.
                 INCLUDE STRUCTURE BDCMSGCOLL.
    DATA: END OF IERROR_TABLE.
    LOOP AT I_LF1PRO.
      PERFORM BDC_DYNPRO USING '' ''.
      MOVE I_LF1PRO-NEWFIELD TO I_ERROR_TABLE-NEWFIELD.
      CALL TRANSACTION 'XXXX' USING I_BDCDATA
                               MODE C_N
                             UPDATE C_S
                           MESSAGES INTO I_MESSAGES[].
      LOOP AT I_MESSAGES.
        MOVE-CORRESPONDING I_MESSAGES TO I_ERROR_TABLE.
        APPEND I_ERROR_TABLE.
      ENDLOOP.
    ENDLOOP.
    Regards,
    Anand Mandalika.

  • af:validateLongRange displaying message: How to insert 'new line' ?

    Hello,
    While using <af:validateLongRange> tag we need to display message in a well formatted way, we have to display each statement in a new line.For eg. : message as displayed by property 'messageDetailNotInRange' must come in three different new lines not as a continuous statement.I tried inserting '\n' escape sequence for new line, but it dint work.I tried spacing the statements but that also is not working out.
    Any idea how can we get this message displayed separately in three rows rather than in a continuous statement ?
    ++messageDetailNotInRange="You have entered a value more than is available. Value entered must be in the range of {2} to {3}.To delete this line, clear the value and click Delete"++
    +<af:validateLongRange id="xyz_VC1" minimum="1"+
    maximum="100"
    messageDetailNotInRange="You have entered a value more than is available. Value entered must be in the range of {2} to {3}.To delete this line, clear the value and click Delete"
    messageDetailMinimum="Minimum {0} allowed is {2}"
    messageDetailMaximum="Maximum {0} allowed is {2}"
    hintNotInRange="#{'xyz'}"/>

    Thx..Done that!! but dint get the desired result ,I put it as :-
    messageDetailNotInRange="You have entered a value more than is available.&lt;br&gt; Quantity entered must be in the range of {2} to {3}.&lt;br&gt; To delete this order line, clear the quantity and click DELETE."
    On corresponding page this message was displayed as :
    You have entered a value more than is available.<br> Quantity entered must be in the range of 1 to 100.<br> To delete this order line, clear the quantity and click DELETE.
    It dint insert line breaks in the message.Do i need to write it differently?
    Above html code is modified once i posted it, it has inserted line breaks here for the br tag i added , but in my actual .jsff page it did not . I can only see br tag displayed as part of message and no new line got inserted.
    I dont see an option to attach a file with the post so that I can show the code to you.
    Edited by: user13439821 on Aug 15, 2011 2:58 PM

  • Calling a subform inside loop

    Hello Experts,
    We have a requirement where we have to call a subform as many times as number of entries in an internal Table.
    Here is the subform:
    In the driver program, we have an internal table with 4 languages. I have to do mapping for those 4 languages so that the above subform appears 4 times, once for each language. Later on, if user wants to add or remove any entry, he can do it by using the Add and Remove buttons. Add/Remove buttons are working fine and the user can Add/Remove language details manually.
    My question is, can we call this subform multiple times based on internal table entries?
    Can you help me with this?

    Hello Meenakshi,
    The answer for your question, " can we call this subform multiple times based on internal table entries?", is  YES.
    Process:
    Expected: You are Passing the table as an Interface parameter to the form.
    Please keep the Subform which need to be printed for each row of the table inside the Data Subform of the table.
    Now you will get the subform printed for each and every line of the form.
    To restrict the presence of the subform based on the Internal table entries, write a script to hide/display the subform inside the IndexChange event.
    Please let me know if additional details required.
    Reward if useful.
    Cheers,
    Sivanand Ala

  • Change message in display message to user dynamically?

    I want to have the Display Message to User vi pop up and notify the user that the computer will reboot in x number of seconds, where x is constantly decreasing. Is this possible? I have tried sticking it in a for loop and the message won't change without clicking on the button. Also, when the time does reach zero, how can I have it destroy that pop up box?

    you can't use Display Message unless you convert it to a normal VI and do a lot of modification. It simple though, to create your own pop-up that does what you want. Look at the subVI in the attached file. It uses the Elaspsed Time function to create the time left and the window appearance properties to show and then close itself. There are also some shipping examples on creating your own dialog box or pop-ups.
    Attachments:
    Pop-up Demo.llb ‏64 KB

  • Sun Messaging Server message-store inside zone (container)

    Hi Guys,
    i'm running Sun Messaging Server 7.3-11.01 (64bit, sparc).
    Do you now if message-store inside a zone is supported?
    Thank's in advance!
    Caius

    Yes, it is supported. For more info see [Installing Communications Suite on Solaris Zones|http://wikis.sun.com/display/CommSuite7/Installing+Communications+Suite+on+Solaris+Zones].

  • Display Message from a procedure

    Hi
    I have a trigger when-button-pressed. It has a prcedure that would be run. The procedure would display a message once it is run. I would like to display the message on a popup window on the form. How can I achieve this

    Hello,
    thaks for the lot of details you give...
    I suppose thart "external" is database ? If yes, you cannot directly display a message to Forms.
    You can manage this only when the control returns back to Forms.
    Francois

  • Preparing Video for display message

    So starting within the last three days I have been having issues with a 'Preparing video for display' message/progress bar coming up whenever I move clips in a timeline, the same message that usually only comes up when a project is being loaded for the first time. This was never something I have had to deal with before, and each time it happens I have a three to five second delay for it to do whatever it is that it is doing. (It adds up.) Is this something that is supposed to happen or can I (please) make it stop somehow.
    Thanks for the help.
    .ryan.

    Im running with 1 1/2 gigs RAM right now, cutting in FCP 5.0.4
    There are usually between 2-5 layers of video in play, but never more than two at once (no overlays or mattes, just straight cuts right now.)
    Maybe it is just the project is getting too large for the RAM i have, and I need to buy more. I was hoping to avoid this as I have spent pretty much everything I have, but if it saves me bursting a capillary, I'll do it.

  • Fn on screen display message generator for ThinkPad has stopped working

    Hi,
    I did a clean install of Windows Vista Enterprise edition and have installed all the drivers for my T400.
    What I found was that the Fn on screen display message generator was working fine right before I installed the driver for the Intel GM4500 video controller.
    Once I installed this video driver, I get a popup window that says On screen display message generator for Thinkpad has stopped working
    The problem details are as follows:
     Problem signature:
      Problem Event Name:    APPCRASH
      Application Name:    TPOSDSVC.exe
      Application Version:    1.1.5.0
      Application Timestamp:    49ba1898
      Fault Module Name:    MMDevApi.dll_unloaded
      Fault Module Version:    0.0.0.0
      Fault Module Timestamp:    4549bd03
      Exception Code:    c0000005
      Exception Offset:    749c19ad
      OS Version:    6.0.6000.2.0.0.256.4
      Locale ID:    1033
      Additional Information 1:    d5a1
      Additional Information 2:    c4214129afe40788e38f0b75c15ad165
      Additional Information 3:    ed09
      Additional Information 4:    309182ce310d7491a448199eccbd6ba1
    I know that some of you have experienced this problem too but so far there hasn't been a solution that's worked.
    I'm reluctant to install Vista SP1 or SP2 as that may caus other unrelated problems.
    Thanks in advance for any advice you may have.

    Dear All
    Error message on start "on screen display message generator for thinkpad has stopped working"
    Event Log "Faulting application TPOSDSVC.exe"
    OS Vista Business 32
    I have experienced this on a customer's ThinkPad R61e Machine Type 7650-DNG and found that the following solves the problem.
    Firstly run Thinkvantage System Update and get everything up to date from Critical, Recommended and Optional Updates tabs.
    Next Run Windows Update and view the available updates select all High Priority Microsoft updates and any optional ones that you require and (and this is where it differs from normal Lenovo advice) select the Conexant Audio driver aswell.
    Current Vista version available on Windows Update is 4.98 (Date 23 Jun 2009)
    Current Vista version available on Thinkvantage System Update is 4.18 (Date 2 Oct 2007)
    NB Re-installing 4.18 may have solved the problem also, but I have not tried that and do not plan to.
    I hope this helps. 
    Jason Bolton - BWCL - Lenovo Premium Business Partner - www.bwcl.co.uk

  • Message in forms AS10g does not display message

    We use the message command to display messages when debugging forms. In AS10g, the content of the message is not displayed. Has anyone found a workaround to this?
    Thanks,
    Jeff

    The console window is set to the proper window. If I duplicate the line of code, it works... twice. I.E.
    message('before commit');
    message('before commit');
    commit;
    message('after');
    message('after');
    This works but you get two messages. Code it once and you get only an acknowledge button on not the text. I've also tried all combinations of the acknowledge option and using a pause after the message.

  • Why is Mail 6.2 not displaying messages from my Exchange account?

    Greetings,
    I have a new 13" MacBook Air running Mountain Lion and I'm noticing that most of the time my Mail inbox is not displaying messages from my work Exchange account; however, it does display messages correctly for my Gmail account.  I've included a screen shot of what I'm experiencing.
    Any ideas?
    Thanks,
    Garry

    I have the same problem, as does a coworker. It happens, for instance, if I click on another mailbox (such as Junk) then go back to the inbox. Our company uses Exchange. Quitting mail usually fixes it. A rebuild of the mailbox will too.  Only happens on my Mac at work, not my Mac at home (connected via VPN).
    Another problem I have is with mail not syncing. Mail I have deleted from another device (such as on my Mac at home or my iPad) does not get deleted from my inbox at work. Sometimes they'll go away when I click on them. Other times they won't go away and the only way to delete them is to rebuild the mailbox.
    And lately I have had problems with attachments. Attachments sent from my Exchange account at work show up as .eml attachments in my iCloud account and mime attachments on my iPad or as a string of characters (20-30), not as an attachment. This happens whether sent from home or work.
    I have our IT department looking into the third problem (which is the most vital one for me).  I'll report the other two annoying problems and see what they can figure out.

  • I keep getting a display message saying this cable or accessory is not capitiable with this apple product may not be reliable with this iphone even when i have no cable or accessory in use

    My iphone 5 has been saying this for days now. Yes I have recently purchased a motorola ear piece for easy talking while walking, but i have also used a 10ft cord purchased at walmart for months now and no display before the motorola. now even without anything plugged in ,I still get the display message on my phone saying" the cord or accessory is not capitable with this iphone and may not be reliable with this iphone.
    what DO I do ?! is there something I can do without going to either Sprint or Apple for help.... will this be damaging to my iphone ?! HELP before its too late.
    sincerely,
    Apple lover JAJA

    Try resetting your iPhone.  Hold the on/off and home buttons together for about 10 seconds till the Apple logo appears.
    CAUTION - This may get rid of the warning for now, but the issue the warning points out still remains.  One or both of your cables is certainly suspect.

  • XSL-How to get value of a variable from inside loop-- to the outside loop?

    Pls help
    hi im currently working on this xsl file..
    This works on generating a txt file,my problem right now is
    ' how can i get the value of a variable generated from the inside forloop,
    i have to get the total,sum value of this variables after performing the loop
    ***this is the for loop
    <xsl:for-each select="OutboundPayment">
    <xsl:variable name='id' select='generate-id(OutboundPayment)'/>
    <xsl:sort select="PaymentNumber/CheckNumber" data-type="text" />
    <xsl:variable name='PValue' select='format-number(100*PaymentAmount/Value,"0000000000000")'/>
    <xsl:value-of select='$id'/>
    <xsl:text>D</xsl:text>
    <xsl:value-of select='$DDate'/>
    <xsl:value-of select='$Batch'/>
    <xsl:text>3</xsl:text>
    <xsl:value-of select='format-number(PaymentNumber/PaymentReferenceNumber,"0000000000")'/>
    <xsl:value-of select='format-number(PayeeBankAccount/BankAccountNumber,"0000000000")'/>
    <xsl:value-of select='substring(Payee/Name,1,20)'/>
    <xsl:value-of select='$PValue'/>
    <xsl:variable name='Addend' select='concat($DDate,substring($DAcct,5,5),$Batch)'/>
    <xsl:variable name="LHash">
    <xsl:call-template name="GetHash">
    <xsl:with-param name="A1" select="$PValue" />
    <xsl:with-param name="A2" select="$Addend" />
    </xsl:call-template>
    </xsl:variable>
    <xsl:value-of select="concat('[',$LHash,']')" />
    <!--LHash*i have to get the total amount of this one from the outside loop /---->
    <xsl:call-template name='NewLine'/>
    </xsl:for-each>
    <!--I have to put in here the total value of that LHash/---->
    <!--This is the template on how to get the value of that variable in the inside loop/---->
    <xsl:template name="GetHash">
    <xsl:param name='A1'/>
    <xsl:param name='A2'/>
    <xsl:variable name='TwoSum' select='format-number($A1+$A2,"000000000000000")'/>
    <xsl:variable name='Weight' select='317191314191112'/>
    <xsl:call-template name="WDigit">
    <xsl:with-param name="Cnt" select="15"/>
    <xsl:with-param name="Sum" select="$TwoSum"/>
    <xsl:with-param name="Wgt" select="$Weight"/>
    <xsl:with-param name="Tot" select="0"/>
    </xsl:call-template>
    </xsl:template>
    <xsl:template name='WDigit'>
    <xsl:param name='Cnt'/>
    <xsl:param name='Sum'/>
    <xsl:param name='Wgt'/>
    <xsl:param name='Tot'/>
    <xsl:choose>
    <xsl:when test="$Cnt > 0">
    <xsl:variable name='Multip' select='substring($Wgt,$Cnt,1)'/>
    <xsl:variable name='Factor' select='substring($Sum,$Cnt,1)'/>
    <xsl:variable name='Prduct' select='$Multip$Factor'/>
    <!--xsl:value-of select="concat($Tot,'[',$Cnt,']')"/-->
    <!--xsl:value-of select="concat($Multip,'x',$Factor,'=',$Prduct)"/-->
    <!--xsl:call-template name='NewLine'/-->
    <xsl:call-template name="WDigit">
    <xsl:with-param name="Cnt" select="$Cnt - 1"/>
    <xsl:with-param name="Sum" select="$Sum"/>
    <xsl:with-param name="Wgt" select="$Wgt"/>
    <xsl:with-param name="Tot" select="$Tot+$Prduct"/>
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:variable name="Rem" select="$Tot mod 11"/>
    <xsl:variable name="Chk" select="11 - $Rem"/>
    <xsl:value-of select="format-number(concat($Tot,$Chk),'00000')"/>
    </xsl:otherwise>
    </xsl:choose>
    <xsl:template name='GetTotal'>
    </xsl:template>
    Thanks in advance for those who are willing to help.
    -Leighya

    It would have helped if you had posted your code as CODE but as it is, I could hardly read it. My guess about what you are asking is, if you want a template to return a value, just write that value to the result stream inside the template.
    If that wasn't what you were asking, then please post your code in a readable format.

  • My ipod touch displays message "ipod touch disabled,connect to itunes."I have held down on/of switch until apple logo appears on screen of ipod touch , but the problem persists. Any suggestions?

    My ipod touch displays message" ipod touch disabled,connect to itunes. Ipod touch does no connect with i tunes. I hold on/off switch on ipod touch until Apple log appears on the screen, but the problem persists. Any suggestions ?  I am running Itunes 10.6(7)  My Mac OS X Version is 10.5.8.

    I connected ipod touch to my IMAC while holding on/off switch as stated to by anothe community memberand problem is solved. I wasable to update and reatore.  I have been trying to solve the disable problem
    for weeks. althou you did not actually solve the problem, In time you probably would. You were on the right track  Thank you.
    This helped me
    rbrookstone

  • Why previously displayed message is coming again?

    Hello
    I am on view_1, here user selecting a option, if its incorrect, then am throwing a message(say, its INCORRECT PICK) in a popup with the below code,
    * Navigate from <CONTEXT> to <ERROR_MESSAGE> via lead selection
        lo_nd_popup_message = wd_context->get_child_node( name = wd_this->wdctx_popup ).
    * Get element via lead selection
        lo_el_popup_message = lo_nd_popup_message->get_element( ).
    * Get single attribute
        lo_el_popup_message->set_attribute(
        EXPORTING
        name = `MESSAGE`
        value = lv_message ).
        lo_api_component = wd_comp_controller->wd_get_api( ).
        lo_window_manager = lo_api_component->get_window_manager( ).
        lo_window = lo_window_manager->create_window(
        window_name = 'POPUPW'
        title = 'Invalid Selection'
        message_display_mode = if_wd_window=>co_msg_display_mode_selected
        close_button = abap_true
        button_kind = if_wd_window=>co_buttons_ok
        message_type = if_wd_window=>co_msg_type_none
        default_button = if_wd_window=>co_button_ok
        lo_window->open( ).
        lo_window->close( ).
        EXIT.
    Then, the user clicks OK button, and selects correct option, then user will navigated to view_2 and user will enter data, clciks submits button, then i am throwing a successful submission message on view_3, fine. But, along with successful message, user is getting the previously displayed message (INCORRECT PICK) as well!!
    How can fix it? Why still the previous message INCORRECT PICK is persisting there? why system is retaining it?
    Thank you

    Hi
    Do you use the messge area to throw messages in?
    If this is the case, please try to reset the message queue by using
    the message manager clear_messages method.
    if you are using a special node say "Messages", check if you go over
    the elements of your node. You should make this node's cardinality 1:1
    and select one attribute at the time.
    I hope this helps
    regards
    yuval peery

Maybe you are looking for

  • Best Practice(s) for Laptop in Field, Server at Home? (Lightroom 3.3)

    Hi all! I just downloaded the 30-day evaluation of Lightroom, now trying to get up to speed. My first task is to get a handle on where the files (photos, catalogs, etc.) should go, and how to manage archiving and backups. I found a three-year-old thr

  • Am I OK to turn off my Time Capsule?

    I bought my TC principally as a wireless external hard drive but have connected my old wireless router into it and am using the airport feature as well which is fine. I only use my mac for 30 mins some days and other days not at all, am I ok to turn

  • WPA enterprise airprint printers

    Does anyone know of any airprint printers that support WPA enterprise authentication?

  • Velocity - Is it possible to use "velocity in reverse"

    I am new to velocity - what I want to do is if I have a template like Hello $Name and a string like "Hello World" I should be able to do something like this context.get("name") - Now this should return "world" I dont know if this is even possible. Sh

  • Exporting movie made with bitmaps - problem

    Hey mates, Its REALLY important ill get it done in the next 8 hours, i need to present this somewhere. so ill really appreciate a quick solution if possible... i made a scene in a 3d software, and rendered the whole scene to bitmaps frame by frame, i