Notification Email should be triggered when hit the Apply changes?

Hi All,
Am creating a request form similiar to a remedy form,when ever the user create a new request and submit the request.Notification email will be sent to the user and the admin.
Here when the admin ppl rejects the request,a notification email triggered to the user like request has been rejected .
I have three radio buttons in the Form
1.Submitted(default).
2.Rejected.
3.Accepted.
When the admin edit the request and select rejected radio button,and apply changes ,a notification email should be triggered to the user.
Now i have a after submit process for edit the ,which will be triggered when ever the user hit the apply changes button and it will send notification to both user and admin.
How to achieve the notification email that should be triggered when the admin rejects the request and submit the form???
am using apex version 4.0
when the Admin will select the reject radio button and hit tha apply changes then the notification email should be sent to the user!!
Always appreciate your help!!!
Thanks & Regards,
Ramya.

Ramya wrote:
Hi Gurujothi,
Thanks for your response!.
I can able to send email now.Thing is i need to send an email like when the admin rejects the request.
For eg.
1.Admin opened the request and select the Reject radio button and clicking Applychanges button then the email notification will be sent to the user like,
Your request has been Rejected.
2.If the Admin selects the radio button accept radio button and clicked apply changes,start processing about the request then the Email notification will be sent to the user like ,
Your request has been modified .Request will be notified by the admin.(Working now)
DO i need to create two separate process for the email notification like
one is for all the modifications that the user/admin will do in the form ,once the record is created and another process is for Rejection purpose of the Form.But only one Apply changes button is there in the Form.You don't need two page process, In one single process you can acces the page item session values using *:YOUR_ITEM_NAME* bind variable syntax or V function like this V('YOUR_ITEM_NAME')
So in your PL/SQL code you can easily prepare the email body based on your radio group item's value
declare
l_body varchar2(4000);
begin
IF :Px_MY_RADIO_GROUP ='R' THEN
  l_body := build your conditional email body for rejected
ELSIF  :Px_MY_RADIO_GROUP ='A' THEN
  l_body := build your conditional email body approved
END IF;
apex_mail.send(
        p_to       => '[email protected]',   -- change to your email address
        p_from     => '[email protected]', -- change to a real senders email address
        p_body     => l_body,
        p_subj     => 'APEX_MAIL Package - Plain Text message');
end;
See this http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses_val.htm#HTMDB03012

Similar Messages

  • Print program is not getting triggered when saving the application

    Hi all,
    My requirement is when i save the invoice using VF01 the print program should get triggered.
    The print program is not getting triggered when saving the application even when i have configured the outtype and have attached the print program.
    The setting "send immediately (when saving application)" is also checked.
    I need to configure it for VF01 transaction.
    The error message displayed was " please maintain output device in master data".
    Regards,
    Umesh

    Hi Umesh
    Please check if you have missed any of the following:
    1. Defining Access Sequence(can use existing).
    2. Defining Output Condition Type(can use existing). - Assigning the Driver Program and Form in processing routine.
    3. Output Determination Procedure
    4. Assign Output Procedure to Billing Types
    Kind Regards
    Eswar

  • In VA02 transaction which exit is triggering when saving the data

    hi all sap gurus,
    In VA02 transaction which exit is triggering when saving the data

    Hi Reddy,
    The <b>user exit</b> and badi tried for this transactions are
    V60F0001                SD Billing plan (customer enhancement) diff. to billing plan
    V46H0001     SD Customer functions for resource-related billing
    V45W0001     SD Service Management: Forward Contract Data to Item
    V45S0004     Effectivity type in sales order
    V45S0003     MRP-relevance for incomplete configuration
    V45S0001     Update sales document from configuration
    V45P0001     SD customer function for cross-company code sales
    V45L0001     SD component supplier processing (customer enhancements)
    V45E0002     Data transfer in procurement elements (PRreq., assembly)
    V45E0001     Update the purchase order from the sales order
    V45A0004     Copy packing proposal
    V45A0003     Collector for customer function modulpool MV45A
    V45A0002     Predefine sold-to party in sales document
    V45A0001     Determine alternative materials for product selection
    SDTRM001     Reschedule schedule lines without a new ATP check
    <b>Business Add-in</b>     
    BADI_SD_SCH_GETWAGFZ     Scheduling Agreement: Read WAGFZ from S073
    BADI_SD_V46H0001     SD Customer functions for resource-related billing
    <b>Reward pts if found usefull :)</b>
    Regards
    Sathish

  • ERROR when hitting the "helpful" or "solved" buttons

    Here's the message I get, any system admins know how to fix it?
    Error
    An error in the system has occurred. Please contact the system administrator if the problem persists.

    KevinC & Others,
    This is a wide spread issue, caused by the recent Maintenance on the  Discussions system.
    See these previously posted Topics in Feedback About Discussions, posted below.
    Please review the responses.
    Error when attempting to click "Solved" button in forum
    Error when trying to mark a reply as "solved"
    Thank you for maintenance and another error
    This Thread ERROR when hitting the "helpful" or "solved" buttons
    ali b

  • Enable Recording multi-tracks when hit the '*'

    hi,
    I'm trying to record 3 vocal tracks at once now.And yes,what i can do is,enable 3 of them by hit on the 'R' and will be the RED blink after hited!
    But i realize that it posible to do as below situation, when come to single track (when i recording guitar track),select/highlight the track i want to record and hit the '*' it'll auto enable the recording 'R' button and start record now!!
    Now,when come to more than 1 track,like what i'm trying to do now...it can't be(auto enable 'R' button and record immediately) when hit the '*', but only available to the track of highlight (only able to 1 track).however i try to highlight 3 tracks of them...but can't be!!
    Need your helps and precious opinion here.Thanks and appreciate so much!!
    hope to hear from you guys then...

    i tried this method before...Not Work at all...When you highlight the tracks you want in Mixer...it do highlighting...But in the Arrange Window it Don't!!
    But the idea of GROUPING from " ambient8 " really work...haaa...i just done it!!!
    BTW, Thanks Sampleconstruct ,really helpful!!
    Thanks everyone Thread Solved problem.

  • SelectedItem return null when hit the NEXT page or Submit

    Hello All,
    I try to add the paging to the open source Alfresco content management. We need to process a large dataset (e.g. > 50K files) so after we gather a list of data files we display them with the checkbox and each checkbox has default checked status.
    If the value="#{FixItemList.selectedItems} is omitted in the <h:selectManyCheckbox> then the paging is fine when hitting the NEXT page or Submit button. If we set the value in the selectManyCheckbox then it returns null for selectedItems.
    Would please point out what I have done wrong? Appreciate for all yours helps.
    This is the managed bean object.
    public class ToolsContext
         private FixItemList fixItemList;
         private ToolsContext()
              this.fixItemList = new FixItemList();
         public void addFix(Fix fix) {
              if(fix != null) {               
                   fixItemList.addFixItem(new SelectItem(fix, fix.getPath(), fix.getDetails(), false));
                   fixItemList.addFixSelectedItems("" + fix + "");
    public class FixItemList implements Serializable
         private static final long serialVersionUID = 123784764562L;          
         private List<SelectItem> items;
         private List<String> selectedItems;
         private int displayItemPerPage;
         public FixItemList() {
              displayItemPerPage = 100;
              items = new ArrayList<SelectItem>();
              selectedItems = new ArrayList<String>();
         public void setItems(List<SelectItem> items) {
              this.items = items;
         public List<SelectItem> getItems() {
              return this.items;          
         public int getItemsSize() {
              return this.items.size();
         public int getDisplayItemPerPage() {
              return this.displayItemPerPage;
         public void setDisplayItemPerPage(int displayItemPerPage) {
              this.displayItemPerPage = displayItemPerPage;
         public void addFixItem(SelectItem selectItem) {          
              items.add(selectItem);
         public List<String> getSelectedItems() {
              return selectedItems;
         public void setSelectedItems(List<String> selectedItems) {
              this.selectedItems = selectedItems;
         public void addFixSelectedItems(String selectedItem) {          
              selectedItems.add(selectedItem);
    }My faces-config.xml
        <managed-bean>
         <description>
            This bean is to display in the Web Project tool as the pagination. HOPEFULLY SO
         </description>
         <managed-bean-name>FixItemList</managed-bean-name>
         <managed-bean-class>org.alfresco.module.websitetools.util.FixItemList</managed-bean-class>
         <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>The JSP page.
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
    <%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
    <%@ taglib uri="/WEB-INF/wcm.tld" prefix="w" %>
    <w:avmList id="files-list" viewMode="details" pageSize="#{FixItemList.displayItemPerPage}" styleClass="recordSet"
    headerStyleClass="recordSetHeader" rowStyleClass="recordSetRow" altRowStyleClass="recordSetRowAlt" width="100%"
    value="#{FixItemList.items}" var="row">
    <%-- checkbox column --%>
    <a:column id="col1" primary="true" width="5" style="padding:2px;text-align:left">
       <h:selectManyCheckbox id="wpt" value="#{FixItemList.selectedItems}">
            <f:selectItem itemLabel="#{row.label}" itemValue="#{row.value}" />
       </h:selectManyCheckbox>
    </a:column>
    <%-- file name column --%>
    <a:column id="col2" primary="true" width="50%" style="padding:2px;text-align:left">
         <h:outputText value="#{row.description}" />
    </a:column>
    <a:dataPager id="pager1" styleClass="pager" />
    </w:avmList>When I hit the NEXT page the #FixItemList.selectedItem return null. We use myface version 1.1.5. And below is the stack error
    SEVERE: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NullPointerException
         at javax.faces.component._SelectItemsIterator.hasNext(_SelectItemsIterator.java:73)
         at javax.faces.component.UISelectMany.validateValue(UISelectMany.java:268)
         at javax.faces.component.UIInput.validate(UIInput.java:354)
         at javax.faces.component.UISelectMany.validate(UISelectMany.java:297)
         at javax.faces.component.UIInput.processValidators(UIInput.java:184)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
         at javax.faces.component.UIForm.processValidators(UIForm.java:73)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:149)
         at org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:32)
         at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
         at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:104)Appreciate for all yours helps,
    Anh

    I put the print out statement in the _SelectItemsIterator and found out that the selected item's value doesn't binding. How would I be able to select an item? Attached is the code with debug print out in the SelectItemsIterator.
    Would some one please point me a direction? Appreciate.
        public boolean hasNext()
            if(_nextItem != null)
                return true;
            if(_nestedItems != null)
                if(_nestedItems.hasNext())
                    return true;
                _nestedItems = null;
            if(_childs.hasNext())
                UIComponent child = (UIComponent)_childs.next();
                getLogger().debug("-----_SelectItemsIterator---child is UIComponent---" + child.getChildCount());
                getLogger().debug("-----_SelectItemsIterator---child is UIComponent---" + child.getAttributes());
                Map m = child.getAttributes();
                Set s = m.keySet();
                Iterator i= s.iterator();
                while (i.hasNext()) {                 
                     getLogger().debug("value  = " + m.get(i.next()));
                if(child instanceof UISelectItem)
                     UISelectItem uiSelectItem = (UISelectItem)child;
                    Object item = uiSelectItem.getValue();
                    getLogger().debug("-----_SelectItemsIterator---child is UISelectItem---getValue()--" + item);
                    if(item == null)
                        Object itemValue = ((UISelectItem)child).getItemValue();
                        String label = ((UISelectItem)child).getItemLabel();
                        String description = ((UISelectItem)child).getItemDescription();
                        boolean disabled = ((UISelectItem)child).isItemDisabled();
                        if(label == null)
                            label = itemValue.toString(); //////////////////////IT THROWS THE EXCEPTION HERE, BECAUSE THE
                                                                 ///itemValue is null
                        item = new SelectItem(itemValue, label, description, disabled);
                        getLogger().debug("-----_SelectItemsIterator---create item - label---" + label);
                        getLogger().debug("-----_SelectItemsIterator---create item - descp---" + description);
                        getLogger().debug("-----_SelectItemsIterator---create item - disable---" + disabled);
                        getLogger().debug("-----_SelectItemsIterator---create item - itemValue--" + itemValue);
                    }

  • My outlook email sent page seems locked with the cursor changing to a rotating rainbow coloured ball - how do I stop it?

    My outlook email sent page seems locked with the cursor changing to a rotating rainbow coloured ball - how do I stop it?

    Hello,
    Open Console in Applications>Utilities & see if there are any clues or repeating messages when this happens.

  • Itunes 10.6.3 available, but whenI hit the download button,nothing happens

    itunes 10.6.3 available, but when I hit the download button,nothing happens

    There's a couple of things you can try with that one.
    (1) You could try doing the update using an iTunesSetup.exe (or iTunes64Setup.exe) downloaded from the Apple website:
    http://www.apple.com/itunes/download/
    (2) You could try doing a "Run as Administrator" with your Apple Software Update.
    Quit Apple Software Update first if you've got it open.
    In Computer (or My Computer, on XP) open your C Drive or whichever drive you have your program files installed on.
    If you've got a 32-bit Windows, open the "Program files" folder.
    If you've got a 64-bit Windows, open the "Program files (x86)" folder.
    Open the "Apple Software Update" folder.
    Right-click on the "SoftwareUpdate.exe" file and select "Run as Administrator", as per the following screenshot:
    Does ASU show you the iTunes update now?

  • How do I get my macbook to stop scrolling up and down screens, mainly in safari, when hitting the space bar?

    every time I hit the space bar while in safari, my page scrolls down and then back up.  and when I hit the backspace/delete key, it takes me back to the previous page.  I need this to stop.  I cannot get anything done with this going on.

    every time I hit the space bar while in safari, my page scrolls down and then back up.  and when I hit the backspace/delete key, it takes me back to the previous page.  I need this to stop.  I cannot get anything done with this going on.

  • Safari 6 is slow when hitting the back button

    I notice that on Moutain Lion Safari appears quite slow when I hit the back button.
    Say I'm on some news site, click on a story but then want to go back after 10 seconds, it appears as if it's loading the whole site where I came from again.
    Is there some setting to change this?
    Also with version 6, it appears that Safari is really waiting for each and every object to be finished before displaying anything.
    I think this kind of was always the case with Safari, but before on Safari 5, it felt much quicker here and I'd appreciate some rendering before every image is loaded.

    Same here. After clicking the BACK button in Safari I get old copies. I am using Ipad 16GB wifi-only.
    Issue started with IOS5. It worked fine before.
    When the old page is shown, a refresh helps as workaround. Untill Applie fixes it.

  • Error message when hit the import button in LR3- ?

    I am still using LR3 and am completely happy with it however a few days ago it developed an issue. I have tried several different memory cards and a couple different methods of reading them with the same results;
    LR brings up all the photos on the card normally, just like it always has, I check the ones I want to import, hit the button and an error screen comes up listing all the photos I had check and says- import not complete because it cant read the card.
    Im not very knowledgeable about all this and am wondering if there is something obvious to you that I should check first. My presets have been the same since I set it up… am not sure what could have changed - ?
    Using LR3 on a Mac w/OS X

    well that makes sense but have no idea where that setting would be. I set it all up upon initial install to import to a certain folder and a second copy to extrernal hard drive, change file name, etc - but none of that has changed, ever.
    Would regular updating to the mac have changed the permissions on the folders - ?

  • Open tab doesn't work when hitting the + or going to file, open new tab. automatic ones will work, but not manually.

    does not open tabs by hitting the + or by selecting file, open new tab. i am operating under mac os x software and have updated firefox twice now with no resolution to this issue.

    Many users have discovered this problem (in Firefox 30 and higher) is caused by Conduit add-ons, such as a Conduit plugin and/or a "Community Toolbar" extension.
    You can check for and disable extensions on the Add-ons page. Either:
    * Command+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    (1) In the left column, click Plugins. Set nonessential plugins to "Never Activate".
    (2) In the left column, click Extensions. Then, if in doubt, disable.
    Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Does that help with the "+" button? If so, could you name the specific plugin/extension that caused the problem?

  • My iphone 3GS screen when hit the water

    My iphone 3GS hit the water today and its screen there white in the edges, also still there dew. How do I get my 3GS back to normal? Need some help. Thanks.

    Turn the phone off and put it in a plastic bag 1/3 filled with uncooked rice - or better - silica gel packs.  Seal the bag a leave alone for at least 3 days.  DO NOT HEAT the phone or use a hair dryer.
    If you do this there is a tiny, tiny chance that the phone will function "normally", or at least better,  However even if it does, it's likely to develop future problems from internal corrosion.  Replacement is your only real option.

  • WLC Primary, secondary - when do the AP change WLC?

    Hi Guys
    A Simple question :)
    When a AP is associated to a WLC, lets call it "WL0C1" and i want to move it to another primary WLC "WLC2".
    on the [High Availability] phane:
    Before:
    Primary Controller: WLC1 - 10.10.10.11
    No Secondary WLC
    after:
    Primary Controller: WLC2 - 10.10.10.12
    Secondary Controller: WLC1 - 10.10.10.11
    Mobility groups and so on, is ok :)
    My question is:
    When do the AP switch over to the "new Primary" WLC?
    have a Happy New Year
    Best Regards
    Claus Danielsen

    Hi Scott
    That was exactly what i was expecting, but they only switch over to the other WLC when i reset them.
    maybe i should have told, that i have upgraded software on the failover WLC, and predownloaded the OS to the AP's on the "old WLC".
    the reason for the move of the AP's is, that i want to reload the WLC (to get it up on the new software), in order to have as little downtime as possible.
    i think i have to manually reload the AP's in order to get them to join a WLC with a newer Software.
    \Claus

  • When will the commited Changes progate to Datafiles ?

    Hi Experts,
    I have gone through the bellow link .
    In other words, you are absolutely correct to say that the data is already
    in the data files. But DBWR flushes regardless of whether something is committed
    or not. Therefore the data files during normal operation of the datafiles will contain
    BOTH committed and uncommitted data. It's the redo stream that allows us to work
    out which is which. So you still end up needing the redo logs to make sense of what's in the datafiles Source : Re: Commit/Rollback and Redo Log files.... HJR sir's post.
    So we have all the committed changes only in Redo logs and data files contains both committed and un-committed data (Because of DBWR flushes all modified data in buffer cache during checkpoint (regard less of commit) .
    When we did the clean instance shut down : either everything is committed (all committed data in redo applied to data files and redo logs are no more required to do the instance recovery . ITS IN CASE OF CLEAN SHUTDOWN.
    But if the shutdown did not happen  how the changes in redo log files propagated to data files. What are the responsible back ground processes and what are the steps in this case ?
    Waiting for your replies
    Thanks in Advance.
    Vijay
    Edited by: Vijay.Cherukuri on Jul 3, 2012 8:56 PM
    Edited by: Vijay.Cherukuri on Jul 3, 2012 9:05 PM

    No - there is no parameter that controls how
    often you shutdown and restart your database.You mean to say instance recovery happens instance crash only.? ( this is my assumption in this case)
    My question is how the changes in redo propagated to data files (assume instance never brought down in last 1 month) ?
    And Single node instance. I think in this case bellow points are applicable
    Oracle Database performs this recovery automatically on two occasions:
    At the first database open after the failure of a single-instance
    database or all instances of an Oracle RAC database (crash recovery).
    When some but not all instances of an Oracle RAC configuration fail (instance recovery).
    The recovery is performed automatically by a surviving instance in the configuration.Please correct me If i did any false statements ?
    -thanks
    Vijay

Maybe you are looking for

  • User Profiles are the wrong style after importing/migrating site collections from other SharePoint versions

    I manage a couple of different version of SharePoint, which we are in the process of migrating to SharePoint 2013. I have a problem which I am not sure how to resolve. We are using MetaLogix to migrate site and site collection data from an older Shar

  • Comparar colunas de duas listas do Sharepoint 2013

    Pessoal, minha dúvida é a seguinte: Tenho duas listas no Sharepoint, a Lista A que é uma lista com um termo de aceite, onde você deve preencher com seu CPF e clicar no botão de aceite do termo. A Lista B possui uma base de dados com todos os usuários

  • How to generate a single report  using multiple Databases

    Hi All Is it possible to create a single report using multiple databases I am working on Database A to generate reports usually,, but now i have a second database for which the data is coming from flat files now i have to use few tables from Database

  • MobileMe Gallery sort order

    When i access my MobileMe Gallery through my MacBook Air using Firefox, the sort order of the albums, and the sort order of the photos within the albums are correctly sorted just the way I want them. However when I use ATV 2 to view my MobileMe Galle

  • Sqlcode and sql%rowcount as test conditions

    I am translating a procedure from Ingres to oracle. I use the Oracle sqlcode and sql%rowcount variables in place of Ingres's iierrornumber and iirowcount. I replaced the ingres names with the oracle names, and now am wondering how how oracle uses the