h:messages from an action

Hi
I've been trying to show messages as a result from an action. I think it's a natural way for an application to interact with the user, but haven't found it "natural" and easy to do in JSF.
The messages are appended to the FacesContext, but when processing you have no access to the FacesContext.
A validation method in a bean receives the FacesContext as parameter but this is not true for processing methods. When you bind the action of a submit button to a method in a backing bean as in the example below, that method should not have parameters, otherwise JSF are unable to find it.
<h:commandButton id="submit" action="#{Bean.process}" value="go" />
The result of this situation is that you perform the processing tasks but can't report its result to the client.
How can I do that ?
Processing in the validator methods ?? I think this is awful !!!!!!!
Any ideas ?
Thanks in advance !
Eduardo
note: by the way, I'm new to JSF, I could be missing something important relative to messages, so there could be my solution. Hope someone can help!. Thanks again.

Yes, look two messages above.
Here's a code example of my processing method
          FacesContext context = FacesContext.getCurrentInstance();          
          FacesMessage msg = new FacesMessage();
          msg.setSummary("SUMMARY MESSAGE");
          msg.setDetail("DETAIL MESSAGE");
          msg.setSeverity(FacesMessage.SEVERITY_INFO);
          context.addMessage(null, msg); //null for global message?
And that's all, then you can display the messages using
          <h:messages globalOnly="true" tooltip="true" showDetail="true" />
In your JSP.
Good Luck !

Similar Messages

  • How can I prevent Mail from applying actions (moving/copying/flagging/marking read) to duplicate messages?

    I use Mail to check multiple accounts. When I receive the same e-mail in multiple accounts, actions applied to an e-mail in one account often (though not always) affect duplicate messages in other accounts.
    Example 1
    Someone sends an e-mail to both me and my wife. Mail is set up to check both accounts. If I open the message in my Inbox, it marks it as read in my Inbox as well as in my wife's Inbox.
    Example 2
    For historical reasons, I have chosen to have all my e-mail forwarded (by the server) to a second account, to be used essentially as an un-touched archive of all incoming mail. If I manually move a message from my main account Inbox to another mailbox, the destination mailbox will end up with 2 copies, one from my main account Inbox and the other from the "un-touched archive" Inbox (which has obviously now been altered unintentionally).
    Does anyone know of a way to prevent this behavior. I can manage my own duplicates. I don't want Mail to do it for me.
    (Btw, I already have the "AlwaysShowDuplicates" option set using "defaults delete com.apple.mail AlwaysShowDuplicates")

    There are certainly many ways of organizing things so that Mail never has to deal with multiple accounts and duplicate messages (separate user accounts, separate computers, separate mail clients, etc., etc). That's just not what I was asking. I'd like to know how to fix Mail's behavior when it does have to deal with multiple accounts and duplicate messages.
    I was hoping there might be another hidden preference or something (and by the way my original post should have said "defaults write com.apple.mail AlwaysShowDuplicates -bool true", instead of the "defaults delete ...")

  • Fields missing in Support Message from CRMD_ORDER

    Hi All,
    when we create a Support Message from transaction notif_create, there some fields like
    component, project and solution
    but when we create the same support message from transaction crmd_order, i could not find those fields.
    Please suggest
    Regards,
    Pradeep L

    Hi Prakhar,
    Is there any work around where we can configure such these fields would be visible in the transaction CRMD_ORDER.
    The issue we are facing is:
    Standard Transaction Type: SLFN is being used for another project in the same system
    Now i have created another Transaction Type: ZSLF with customized status, action and date profile.
    Now we cannot use notif_create as it will pick up SLFN and we cannot change it to ZSLF as the other project is using it
    Please suggest
    Regards,
    Pradeep L

  • How to get data back from an action ?

    Hello,
    Would it be possible to get data back from an action (out of the question EO_MESSAGE & ET_FAILED_KEY )?
    For example we got an order with order positions and we need a "function" to e.g. count all positions. Because of Performance the function should not be processed each time the order is changed, read or a position is added. Instead the function should be processed only if it was called explicitly.
    Is it possible to create a kind of action which is actually counting all entries and export the number of them?
    How to mark a parameter in is_parameters as exporting?
    Is this just done by (naming-) convention?
    What is the preferred way to have “methods” with returning/exporting values?
    Regards,
    Lorenz

    Hello Lorenz,
    As you have already figured out , the Action API provides you with only the messages and failed keys if any.
    Post action execution , you can always execute a retrieve or retrive by association , to get the latest buffer snapshot , which of course would include the changes that you have made in your action.
    If you want to ensure that users have explict control on execution of your "fucntion", then of course , you should model it as an action on the BO.
    The parameter is_parameters is an IMPORTING parameter. You CANNOT use it to export anything back from the action. For importing ,  you can of course have any structure to use as the is_paramaters , which you model as the action parameter structure which modelling your BO action.
    From an external entity the only way to interact with a BO is by consuming the BO services and you are bound by the BOBF standard interfaces. Any and all data you require needs to be modelled as node attributes ( persistent or transient ) and fetched using the RETRIEVE, RETRIEVE_BY_ASSOCIATION or QUERY services.
    Regards,
    Indranil.

  • Cannot delete messages from inbox, cannot move messages out of inbox, message do not copy to "sent" or "draft"

    The following problems occur:
    - cannot delete messages,
    - cannot move messages out of inbox,
    - messages do not copy "sent"
    - messages cannot be saved to "draft"
    This applies to imap and to gmail accounts.
    The following has not helped:
    - compact trash and other folder
    - deinstall and reinstall TB 31.4.
    - archive profile with mozbackup and replace profile from archive after reinstall of TB.
    - deinstall and reinstall TB 31.3 downgraded
    - delete all folders and files with "trash*" in the file name (all IMAP)
    - delete all files of 1 mail account completely in the TB profile and resync from server (IMAP)
    This might coincide with these system changes:
    - upgrade to TB 31.4.
    - some of these email accounts were installed on ios8 iphone.
    Not sure if the problems had already started before these 2 occurrences.
    Any help is appreciated to solve this.
    Thanks!
    fashi

    What type of mail account is this (POP, IMAP, .Mac)? If POP, what are your Preferences > Accounts > Advanced > Remove copy from server settings?
    You may be able to get rid of those messages in Mail doing Edit > Cut (⌘X) (for best results do it with one message or just a few at a time), but you should remove them from the server first if they’re still there.
    Does this account allow web access? If not, you may find the Account Info window useful to solve this problem — choose Get Info (⌘I) from the Action menu (gear icon) located below the mailboxes list in the main Mail window.

  • How to stop iOS7 Mail from deleting messages from server?

    Recently I started using an iPhone 5S after over four years with an iPod Touch. The Mail app on the iPhone deletes messages from my server. I do not want it to do this, I cannot find the option to turn off in Settings, and the iOS Mail help page at Apple Support is for an older OS version. Insight and advice would be appreciated. Thanks.

    I think I figured out a workaround at least.  It appears that the "Power Nap" feature is doing the mail checking.  Although the concise descriptions of Power Nap say it "allows your Mac to do things like periodically check for new mail, calendar, and other iCloud updates" (http://support.apple.com/kb/HT5394?viewlocale=en_US&locale=en_US), it apparently doesn't just allow these actions, it does them -- regardless of your mail settings.  I suspect this is a bug.
    Turning off Power Nap (in the Energy Saver panel in System Preferences) stopped the unwanted mail fetching, but unfortunately that also means that I don't get the benefit of the other activities it does, like Spotlight indexing. There are two places to turn it off, one for the "Battery" tab and one for the "Power Adapter" tab.
    Since Power Nap was introduced with Mountain Lion, but I never had the problem until Mavericks, I assume that either (1) Power Nap was off by default in Mountain Lion but is on by default in Mavericks, or (2) this is another of several Mail problems introduced by Mavericks.

  • How can I block spam text messages from an email address?

    Twice per week I am getting spam texts in the middle of the night from a random email address, in reference to a free Target gift card. The problem is, the sender's email address is different every time. Any ideas how to make it stop??

    tikibar1 wrote:
    Forward the texts to SPAM and follow the directions in the reply text that you receive from Verizon.
    Or log into your on-line MyVerizon account, click on the blue More Actions under I Want To, under Safety and Security, click on the blue Block Internet Spam.  Enter the e-mail addresses, or go to the bottom and check block all.  Click the red Apply.
    That was one of the first things I did when starting my current account with Verizon Wireless. I blocked all premium messages and messages from the Internet. Those blocks are still in place to this day.

  • I am unable to print PDF's using either Adobe Reader or Safari. In Adobe Reader, I get an error message from my Cannon printer that says, "/usr.libexec/cups/filter/pstocupsraster failed". In Safari, I can only print the first page of a PDF.

    To try to resolve this problem, I have done the following actions.
    1 - I have run Disk Warrior.
    2 - I have repaired permissions.
    3 - I have deleted all plist that are either Cannon or Adobe.
    4 - I have downloaded and installed the lastest versions of Adobe Reader and the Cannon printer drivers.
    I am still unable to print PDF's.
    In Safari, I can print only the first page. In a multipage PDF, Safari only seems to recognize the first page.
    In Adobe Reader, I get an error message from my printer: "/usr/libexec/cups/filter/pstocupsraster failed".
    Any help would be greatly appreicated!

    Quit Safari.
    Open the Library folder in your home folder as follows:
    ☞ If running OS X 10.7 or later, hold down the option key and select Go ▹ Library from the Finder menu bar.
    ☞ If running an older version of OS X, select Go ▹ Go to Folder… from the Finder menu bar and copy the line below into the text box that opens:
    ~/Library
    Delete the following items from the Library folder:
    Caches/com.apple.Safari/Cache.db
    Preferences/com.apple.quicktime.plugin.preferences.plist
    Preferences/QuickTime Preferences
    Relaunch Safari and test.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Select "/var/log/cups/error_log" from the file list. Post the messages from the time of the last printing attempt.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.

  • Is there any tools for move messages from errorqueues in WLS 8.1.5?

    Hello!
              I have created a JMSDestination (MyQueue) in my wls 8.1.5.
              I have also created an other JMSDestination (MyErrorQueue) in my wls 8.1.5.
              In the wls it is possible to specify an "Error Destination:" for a JMSDestination. In my wls I have specified MyErrorQueue as error destination for MyQueue.
              If anything goes wrong during consuming message from MyQueue the message will be moved to the error destination MyErrorQueue.
              If this situation ever occur, for eg. there is a cable connection loss or something. The error destination will save me alot of trouble.
              Very nice!
              But now I wonder if there is any tool or function i wls 8.1.5 that helps me move the message back to MyQueue from the error destination, MyErrorQueue, when the problem is solved.? For eg, when the broken cable is replaced.
              Or do I have to write such a application my self? Seems strange since the concept of error destination exists.
              Best regards
              Fredrik

    Have a look at this
              http://www.hermesjms.com/confluence/display/HJMS/Home
              We use it and it works very well for handling messages on error queues.
              Some messages we automatically re-queue using a modified version of this
              code here
              https://codesamples.projects.dev2dev.bea.com/servlets/Scarab/remcurreport/true/template/ViewIssue.vm/id/S134/eventsubmit_dosetissueview/foo/resultpos/1/nbrresults/285/action/ViewIssue/tab/2/readonly/true
              Hope that helps.
              Pete
              Fredrik Andersson wrote:
              > Hello!
              >
              > I have created a JMSDestination (MyQueue) in my wls 8.1.5.
              > I have also created an other JMSDestination (MyErrorQueue) in my wls 8.1.5.
              >
              > In the wls it is possible to specify an "Error Destination:" for a JMSDestination. In my wls I have specified MyErrorQueue as error destination for MyQueue.
              >
              > If anything goes wrong during consuming message from MyQueue the message will be moved to the error destination MyErrorQueue.
              >
              > If this situation ever occur, for eg. there is a cable connection loss or something. The error destination will save me alot of trouble.
              >
              > Very nice!
              >
              > But now I wonder if there is any tool or function i wls 8.1.5 that helps me move the message back to MyQueue from the error destination, MyErrorQueue, when the problem is solved.? For eg, when the broken cable is replaced.
              >
              > Or do I have to write such a application my self? Seems strange since the concept of error destination exists.
              >
              > Best regards
              > Fredrik

  • Error Message from VM TMS 13.0

    Dear all,
    We have receive some error message from the VM TMS 13.0, that is installed a month ago.
    <ErrorCode 1000>
    Message="Faulting application name: TMSSNMPService.exe, version: 1.0.4008.29206, time stamp: 0x4d12159c Faulting module name: mscorlib.ni.dll, version: 4.0.30319.18444, time stamp: 0x52717d7e Exception code: 0xc0000005 Fault offset: 0x0000000000cd5bf7 Faulting process id: 0x116c Faulting application start time: 0x01cf68076319516f Faulting application path: C:\\Program Files (x86)\\TANDBERG\\TMS\\Services\\TMSSNMPService.exeFaulting module path: C:\\Windows\\assembly\\NativeImages_v4.0.30319_64\\mscorlib\\abf62e6545d2802fc60286678a67e6bf\\mscorlib.ni.dll Report Id: 371654ff-d3fb-11e3-98ea-005056b1027a"
     <ErrorCode 1026>
    Message="Application: TMSSNMPService.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException Stack: at System.Runtime.InteropServices.Marshal.ReadInt64(IntPtr, Int32) at Tandberg.CommLib.SnmpLib.TrapHandling.SnmpTrapHandler.VbToObject(Tandberg.CommLib.SnmpLib.WinSnmp.SMIVALUE ByRef) at Tandberg.CommLib.SnmpLib.TrapHandling.SnmpTrapHandler.VblToHashtable(IntPtr) at Tandberg.CommLib.SnmpLib.TrapHandling.SnmpTrapHandler.OnSnmpMessage(IntPtr, IntPtr, Int32, UInt32, UInt32, IntPtr)"
     <ErrorCode 7031>
    Message="The TMSSnmpService service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 60000 milliseconds:
    Any comments on the above error?
    Best Regards,
    Ben Lai

    This seems to be happening on 14.2.2 as well.
     Component: Application Error
      Severity: Warning
      Event class: /App/Failed
      Device class: /Server/Windows/WMI/TMS
      Systems: None
      Summary: Faulting application name: wmiprvse.exe, version: 6.1.7600.16385, time stamp: 0x4a5bc794
    Faulting module name: ole32.dll, version: 6.1.7600.16624, time stamp: 0x4c2984e3
    Exception code: 0xc0000005
    Fault offset: 0x00000000000393a9
    Faulting process id: 
      Message:
      Faulting application name: wmiprvse.exe, version: 6.1.7600.16385, time stamp: 0x4a5bc794
    Faulting module name: ole32.dll, version: 6.1.7600.16624, time stamp: 0x4c2984e3
    Exception code: 0xc0000005
    Fault offset: 0x00000000000393a9
    Faulting process id: 0x39c4
    Faulting application start time: 0x01d04d36eb9b6c36
    Faulting application path: C:\Windows\system32\wbem\wmiprvse.exe
    Faulting module path: C:\Windows\system32\ole32.dll
    Report Id: e334bd6f-b990-11e4-aa1d-842b2b6be310
    http://tools.cisco.com/security/center/viewAlert.x?alertId=29142

  • Service Desk - Create Message from Satellite System

    Hi Guru,
    I'm learning SAP Solution manager service desk tools (on EHP1 SP22). I've managed to activate it and I can create the message from satellite system (with SLFN as default transaction type). Is it possible to change default of transaction type while creating support message from satellite system (e.g. using ZSLF, etc)?
    Appreciate for your input.
    Thanks and Regards,
    Yan

    Yes. It is very much possible.
    Use transaction - SPPFCADM
    select the row - DNO_NOTIF
    click on - Define action profile and action
    Select the action profile - SLFN0001_STANDARD_DNO
    Select the action - SLFN0001_STANDARD_DNO_CRM
    in processessing type, change the container value to ZSFN.
    Hope this will be helpful.
    Regards
    K.Kumar

  • Support Message from satelite system: Reported By field blank only from BI

    Hi,
    I have configured the Incident Management for solman 7.1 with SP12. I am using the transaction type ZMIN that is a copy of SMIN.
    In our landscape are two satelite systems: BI and ECC
    When I create a message from managed/satellite system via HELP>Create Support Message, it comes to Solman the field "Reported By" is not filled automatically if I created the message from BI. The Creation from ECC works fine: the field "Reported By" is filled automatically.
    The system data is fetched up correctly and it includes the system info, component code and all details. Even the Support Team Determination with BRF+ is working fine.
    Not successful actions to solve the problem:
    - I tried some access sequences in Partner Determination for "Reported By":
         - Preceeding Document -> Reporter -> Current User
         - User
    - Checked IB52
    - Checked DNO_CUST04
         No_User_CHECK; No Existence Check for User; field value:X
    - Checked BP (Generated with BP_GEN):
         identification in BP seems correct (I added created/expiry date manually)
    - Checked BCOS_CUST.
    - Checked Read RFC.
    Has someone an idea what the problem could be?
    Thank You for your effort in advance,
    Beda

    Hi,
    1) Under identification tab in external BP no. put details as
    <Server short name>space<client>space<search term
    (which you have maintained in address tab or employee no.
    of that user in satellite system)>
    2) In ID type put CRM001
    3) Under identification put details as <Server short
    name>space<installation no.>space<client>space<search
    term (which you have maintained in address tab or
    employee no. of that user in satellite system)>
    4)Go to trns. BP>select BP role as "Employee"> Indentification tab--> Maintain user name same as user id of employee in satellite system or serch term you maintained while creating BP.
    Try this. Reward the points for useful answer.
    Regards,
    Niks

  • HR_INFOTYPE_OPERATION not working when called from Dynamic action

    Hi ,
           Senario  : I would like to execute a form from dynamic action which
    creates a record in 0015 (Additional payment IT) .
           I have writen the code as shown below am using FM HR_INFOTYPE_OPERATION
    . When i execute the program from se38 it is creating a record, however it is
    not created when it is called from dynamic action..when i debugged the code in
    inside the FM HR_INFOTYPE_OPERATION there is a FM HR_MAINTAIN_MASTERDATA where
    they are using call dialog (statement) and
    sy-oncom = 'N'   when called from Dynamic action and
    sy-oncom = 'S'   when called executed directly.
    I tried to change the sy-oncom to S while run from Dynamic action it created
    the record.
    So Can anyone explain me abt sy-oncom and how can i resolve the issue..
    code..
    REPORT ZHRPYENH01 .
    perFORM TERMIATION_9000.
    INCLUDE DBPNPMAC.
          FORM Termiation_9000                                          *
    FORM TERMIATION_9000.
    INFOTYPES : 0015.
    *data : i .
    *i ='c'.
    *break-point.
    *message i000(000) with i.
      TABLES : PRELP.
      DATA : P9000 TYPE PA9000." with header line.
      DATA : P0000 TYPE STANDARD TABLE OF  P0000 WITH HEADER LINE.
    DATA : P0015 TYPE STANDARD TABLE OF  P0015 WITH HEADER LINE.
      DATA : HIRE_DATE  LIKE SY-DATUM,
             TERM_DATE  LIKE SY-DATUM.
      DATA : MOLGA LIKE T500L-MOLGA VALUE '25',
             SEQNR LIKE PC261-SEQNR.
      DATA : RGDIR TYPE STANDARD TABLE OF PC261 WITH HEADER LINE.
      DATA : ACTUAL_PERIOD LIKE PA9000-RETENTION.
      DATA : PNP-SW-FOUND TYPE SY-SUBRC ,
             PNP-SY-TABIX TYPE SY-TABIX.
      DATA : TER_PERNR LIKE PA0001-PERNR.
      DATA : REF_PERNR LIKE PA0001-PERNR.
      data : key type BAPIPAKEY.
      data : payed_amount type p0015-BETRG.
    data : future_payment_amount type p0015-BETRG.
    data : p0002 like pa0002.
      types : begin of t_deduction ,
              deducation_date like p0015-begda,
              future_payment_amount type p0015-BETRG.
      types : end of t_deduction.
    data :  future_deduction type standard table of t_deduction with
    *header line.
      data :  future_deduction type  t_deduction .
    data : RETURN type  BAPIRETURN1.
    *data : deduction_p0015 like standard table of p0015 with header line.
    data : deduction_p0015 like p0015 .
    xxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxx
    ****Prepare 0015 data for deduction
    *deduction for payed amount
    clear deduction_p0015.
    *refresh deduction_p0015.
    deduction_p0015-pernr = REF_PERNR.
    *deduction_p0015-pernr = TER_PERNR.
    deduction_p0015-lgart = 'M120'.
    deduction_p0015-begda = sy-datum + 1 .
    deduction_p0015-endda = sy-datum + 1 .
    deduction_p0015-BETRG = payed_amount.
    deduction_p0015-WAERS = 'SGD'.
    deduction_p0015-ZUORD =  TER_PERNR.
    *append deduction_p0015.
    **deduction for future payment amount
    *loop at future_deduction.
    *clear deduction_p0015.
    *deduction_p0015-pernr = REF_PERNR.
    **deduction_p0015-pernr = TER_PERNR.
    *deduction_p0015-lgart = 'M120'.
    *deduction_p0015-begda = FUTURE_DEDUCTION-DEDUCATION_DATE.
    *deduction_p0015-endda = FUTURE_DEDUCTION-DEDUCATION_DATE.
    *deduction_p0015-BETRG = future_deduction-future_payment_amount.
    *deduction_p0015-WAERS = 'SGD'.
    *deduction_p0015-ZUORD =  TER_PERNR.
    *append deduction_p0015.
    *endloop.
    Create a deduction wage type in 0015 for the employee
    break-point.
    CLEAR RETURN.
    CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
      EXPORTING
        NUMBER              = REF_PERNR
        VALIDITYBEGIN       = '18000101'
    IMPORTING
       RETURN              = return
    if not return is initial.
    message E000(000) with
    'Referred Employee could not be locked for referal  payment deducation,
    please try after some time'.
    endif.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY                  = '0015'
        NUMBER                 = REF_PERNR
       SUBTYPE                = 'M120'
      OBJECTID               =
      LOCKINDICATOR          =
       VALIDITYEND            = SY-DATUM
       VALIDITYBEGIN          = SY-DATUM
      RECORDNUMBER           =
        RECORD                 = deduction_p0015
        OPERATION              = 'COPY'
      TCLAS                  = 'A'
       DIALOG_MODE            = '2'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
    IMPORTING
       RETURN                 = return
       KEY                    = key
    break-point.
    COMMIT WORK.
    if not return is initial.
    *return-TYPE
    *ID
    *NUMBER
    *MESSAGE
    message I000(000) with return-MESSAGE.
    endif.
    CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
      EXPORTING
        NUMBER              = REF_PERNR
        VALIDITYBEGIN       = '18000101'
    IMPORTING
       RETURN              = return
    xxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxx
    Thanks and regards
    -Senthil Bala
    Message was edited by: senthil bala

    Hi Senthil
    Why at all U want a subroutine to create a record in IT0015 through Dynamic action.There are some standard codes available to update infotypes.
    Let me give U an example
    14     9CON     BETRG     4     2     I     INS,0015 This will create a record in IT0015 when IT0014 is updated with Wagetype 9CON
    14     9CON     BETRG     4     3     W     P0015-LGART='5400' Set wagetype for IT0015(Here U can use a subroutine call to set the wagetype)
    14     9CON     BETRG     4     4     W     P0015-BETRG=P0014-BETRG set amount for IT0015(Here U can use a subroutine call to get the amount)
    14     9CON     BETRG     4     5     W     P0015-BEGDA=P0014-ENDDA set the dates(Here U can use a subroutine call to set the dates)
    Hope this will help U.
    Please award points if helpful

  • How do I delete dozens of messages from the same sender at the time. There must be a way. Thank you.

    I have not been able to check my messages for a couple of weeks. I now find myself with 315 messages, many from same sender. I want to delete most, but don't know how. There must be a way to delete all messages from same sender as many of mine are. Please help. Life is way to short and precious than to accomplish this task deleting them one at a time. Thank you so very much for your help.

    Hey leeann316,
    Thanks for the question. The following resource outlines how to select multiple messages in the Mail application. Once selected, you can then delete the messages:
    Work with multiple messages - iPhone
    http://help.apple.com/iphone/7/#/iph9db03b2f5
    Delete, move, or mark multiple messages. While viewing a list of messages, tap Edit. Select some messages, then choose an action. If you make a mistake, shake iPhone immediately to undo.
    If you are looking for an even faster method, you might want to visit your email account from a web client (on your computer), and select all of the message in your inbox for deletion. If you require assistance doing so, please consult your email service provider for more information.
    Thanks,
    Matt M.

  • Send a message from a list of emails in lightswitch 2013.4 HTML screen using ajax

    Hi There,
    any idea how to make a button to send a message from a list of emails in lightswitch 2013.4 HTML.
    my idea is to send message to all emails in the details picker (or the drop down menu or a choice list) tat is filled by SQL query (as a data source in lightswitch)
    i have read many articles,  most of them were written in PHP or VB !
    for example:
    http://www.devarticles.com/c/a/HTML/Sending-email-with-AJAX-building-a-small-application/1/
    http://stackoverflow.com/questions/22442074/how-to-send-email-to-a-list-of-addresses-from-lightswitch
    http://lightswitchhelpwebsite.com/Forum/tabid/63/aft/75/Default.aspx
    http://maxslabyak.com/c-sharp/using-jquery-to-send-email-with-web-services/
    http://www.paulspatterson.com/microsoft-lightswitch-sending-emails-from-the-client/
    http://www.quercussolutions.com/blog/index.php/microsoft-lightswitch-sending-emails/
    http://www.lightswitchspecial.com/2013/01/7-most-easiest-way-to-send-email-from.html
    as far as  i know, the HTML screens in lightswitch 2013 can be encoded with ajax only, not vb or C# any more!
    my project contains only HTML screens, no desktop screens. i know that i can do the VB programming in the tables actions, but i am looking to have this code in the Browse screen to give me more flexibility depending on my decision to
    send or not..
    help please :)  

    Hello Hasan,
    I do this using a generic handler(e.g. sendmail.ashx). In the ashx file i use this code:
    Imports System.Net.Mail
    Imports System.Web
    Imports System.Web.Services
    Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
    Dim str As String = "there was no error "
    Dim Recipient As String = Convert.ToString(context.Request.Params("pRecipient"))
    Dim strsub As String = Convert.ToString(context.Request.Params("pSubject"))
    Dim strmsg As String = Convert.ToString(context.Request.Params("pMessage"))
    Dim msg As New MailMessage
    Try
    ' Your mail address and display name.
    ' This what will appear on the From field.
    ' If you used another credentials to access
    ' the SMTP server, the mail message would be
    ' sent from the mail specified in the From
    ' field on behalf of the real sender.
    msg.From = New MailAddress("[email protected]", "Displayname")
    ' To addresses
    msg.To.Add("[email protected]")
    'msg.To.Add(New MailAddress("[email protected]", "Friend B"))
    ' You can specify CC and BCC addresses also
    ' Set to high priority
    msg.Priority = MailPriority.High
    msg.Subject = strsub
    ' You can specify a plain text or HTML contents
    msg.IsBodyHtml = True
    msg.Body = strmsg
    'msg.Body = _
    ' "Hello everybody,<br /><br />" & _
    ' "I found an interesting site called <a href=""http:'JustLikeAMagic.WordPress.com"">" & _
    ' "Just Like a Magic</a>. Be sure to visit it soon."
    ' In order for the mail client to interpret message
    ' body correctly, we mark the body as HTML
    ' because we set the body to HTML contents.
    ' Attaching some data
    ' msg.Attachments.Add(New Attachment("D:\Site.lnk"))
    ' Connecting to the server and configuring it
    Dim client As New SmtpClient()
    client.Host = "mail.gmx.com"
    client.Port = 25
    client.EnableSsl = True
    ' The server requires user's credentials
    ' not the default credentials
    client.UseDefaultCredentials = False
    ' Provide your credentials
    client.Credentials = New System.Net.NetworkCredential("yourcredentias", "f2f081639ad")
    client.DeliveryMethod = SmtpDeliveryMethod.Network
    ' Use SendAsync to send the message asynchronously
    client.Send(msg)
    Catch ex As Exception
    str = ex.Message
    Finally
    msg.Dispose()
    End Try
    context.Response.ContentType = "text/plain"
    context.Response.Write(str)
    End Sub
    When you create the ASHX then replace the ProcessRequest with the above function.
    In LS HTML Screen create the function for pressing a button an appen the following text:
    $.ajax({
    type: 'post',
    data: {
    pRecipient: Screen.yourdata,
    pSubject: Screen.yourdata,
    pMessage: Screen.yourdata,
    url: '../sendmail.ashx',
    success: function success(result) {
    alert(result);
    This is a way you can do that. In VB and out of your browse Screen.
    Hope this helps
    Thomas

Maybe you are looking for