How to make response required when rejecting requisition in i procurement?

*{color:#ff0000}When aprover rejects a requisition from Iprocument, then response should be required. System should not allow to reject a requisition without any response. How can we achieve this, is this posssible by any change in Req approval workflow?{color}*

Assume that that the the Attribute name of the comment is 'APPROVER_CMT'
Then write a pl/sql package as below and use it as post notification function in workflow.
CREATE OR REPLACE PACKAGE BODY RB_TEST_PKG AS
PROCEDURE notification_handler (
itemtype IN VARCHAR2
, itemkey IN VARCHAR2
, actid IN NUMBER
, funcmode IN VARCHAR2
, resultout OUT NOCOPY VARCHAR2
AS
v_nid NUMBER := NVL (wf_engine.context_nid, wf_engine.g_nid);
v_result VARCHAR2 (30) := wf_notification.getattrtext (v_nid, 'RESULT');
v_comments VARCHAR2 (240) := wf_notification.getattrtext (v_nid, 'APPROVER_CMT');
BEGIN
IF (funcmode = 'VALIDATE' OR funcmode = 'RESPOND' ) THEN
IF (v_result = 'REJECTED') THEN
IF (v_comments IS NULL)
THEN
raise_application_error (-20001, 'Please enter comments');
END IF;
END IF;
END IF;
END notification_handler;
END RB_TEST_PKG;
Regards,
Ravi.

Similar Messages

  • Need to make response required on rejecting expense claim (Workflow/OIE)

    Hi,
    I have a customer requirement as follows:
    When a manager is rejecting an expense claim (on the Workflow Notifications page - /oracle/apps/fnd/wf/worklist/webui/NotifDetailsPG), I need to validate that the Note field is populated. So, basically, I need to stop the user from rejecting a claim if a reason for rejection is not provided in the Note field.
    At this moment, I am at my wits end on how to achieve this - would highly appreciate any pointers on how I might proceed towards achieving this.
    Thanks in advance for your time
    Kiran
    PS:
    1. I have already posted this message in the Workflow forum - so if you come across this twice, please forgive me - just trying to reach a larger audience
    2. I am well versed with OAF extensions. I also know that NotifDetailsPG is just a place holder. However, since the "Response" header region, the Note field and the page buttons are all FND region/code, I am not sure if I can customize it. Thus the question.

    Assume that that the the Attribute name of the comment is 'APPROVER_CMT'
    Then write a pl/sql package as below and use it as post notification function in workflow.
    CREATE OR REPLACE PACKAGE BODY RB_TEST_PKG AS
    PROCEDURE notification_handler (
    itemtype IN VARCHAR2
    , itemkey IN VARCHAR2
    , actid IN NUMBER
    , funcmode IN VARCHAR2
    , resultout OUT NOCOPY VARCHAR2
    AS
    v_nid NUMBER := NVL (wf_engine.context_nid, wf_engine.g_nid);
    v_result VARCHAR2 (30) := wf_notification.getattrtext (v_nid, 'RESULT');
    v_comments VARCHAR2 (240) := wf_notification.getattrtext (v_nid, 'APPROVER_CMT');
    BEGIN
    IF (funcmode = 'VALIDATE' OR funcmode = 'RESPOND' ) THEN
    IF (v_result = 'REJECTED') THEN
    IF (v_comments IS NULL)
    THEN
    raise_application_error (-20001, 'Please enter comments');
    END IF;
    END IF;
    END IF;
    END notification_handler;
    END RB_TEST_PKG;
    Regards,
    Ravi.

  • CS6 Fluid Grids - how to make images resize when page is resized? [was: Hello]

    I am new to fluid grid layouts in Dreamweaver cs6, I want to insert a GIF file on my index page but I do not know how to make it so when the page shrinks the GIF or image shrinks as well. The only code that I have found is
    img, {
        max-width: 100%;
    But this code already exists in the css file when you create a new fluid grid based layout
    img, object, embed, video {
        max-width: 100%;
    can anyone help a newbie please..

    this is my source code
    <!doctype html>
    <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
    <!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
    <!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <html class="">
    <!--<![endif]-->
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Kyle Childress Foundation</title>
    <link href="boilerplate.css" rel="stylesheet" type="text/css">
    <link href="/layout.css" rel="stylesheet" type="text/css">
    <!--
    To learn more about the conditional comments around the html tags at the top of the file:
    paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
    Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
    * insert the link to your js here
    * remove the link below to the html5shiv
    * add the "no-js" class to the html tags at the top
    * you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
    -->
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="respond.min.js"></script>
    </head>
    <body>
    <div class="gridContainer clearfix">
      <div id="animation"><img src="images/images/kyleanimation2014gif2.gif" alt="kylechildressfoundationanimation"></div>
    </div>
    </body>
    </html>
    this is my css
    @charset "UTF-8";
    @import url("/kyle.css");
    /* Simple fluid media
       Note: Fluid media requires that you remove the media's height and width attributes from the HTML
       http://www.alistapart.com/articles/fluid-images/
    img, object, embed, video {
        max-width: 100%;
    /* IE 6 does not support max-width so default to width 100% */
    .ie6 img {
        width:100%;
        Dreamweaver Fluid Grid Properties
        dw-num-cols-mobile:        5;
        dw-num-cols-tablet:        8;
        dw-num-cols-desktop:    10;
        dw-gutter-percentage:    25;
        Inspiration from "Responsive Web Design" by Ethan Marcotte
        http://www.alistapart.com/articles/responsive-web-design
        and Golden Grid System by Joni Korpi
        http://goldengridsystem.com/
    /* Mobile Layout: 480px and below. */
    .gridContainer {
        margin-left: auto;
        margin-right: auto;
        width: 87.36%;
        padding-left: 1.82%;
        padding-right: 1.82%;
    #LayoutDiv1 {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #animation {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #image {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    /* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */
    @media only screen and (min-width: 481px) {
    .gridContainer {
        width: 90.675%;
        padding-left: 1.1625%;
        padding-right: 1.1625%;
    #LayoutDiv1 {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #animation {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #image {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    /* Desktop Layout: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */
    @media only screen and (min-width: 769px) {
    .gridContainer {
        width: 88.2%;
        max-width: 1232px;
        padding-left: 0.9%;
        padding-right: 0.9%;
        margin: auto;
    #LayoutDiv1 {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #animation {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #image {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    the animation GIF is 700 x 908
    I changed the code from max-width to just width 100% but it still did not work ,, please help

  • How to make fields required in an updateble multi line form?

    How to make fields required in an updateble multi line form?

    You need to create a validation item that is triggered when the user clicks the submit button.
    Set the validation type to "Function Returning Error Text".
    Then add your validation into the "Validation Expression 1" field. Something like:
    BEGIN
    FOR I IN 1.. HTMLDB_APPLICATION.G_F02.COUNT LOOP
    IF HTMLDB_APPLICATION.G_F02(I) IS NULL THEN
    RETURN 'Please enter in a value for xxxxx on line ' || TO_CHAR(I,'0');
    END IF;
    END LOOP;
    RETURN NULL;
    END;
    As long as the function returns a string, an error is generated - as there is no single field where this error can be displayed, it will need to be displayed "On Error Page".
    If the return value is NULL, then the fields are valid and the submit process can continue.
    Andy

  • How to make taxonomywebtaggingcontrol required

    Hi,
    I have created custom aspx and I have added taxonomywebtaggingcontrols.I want to make those controls required.
    Can any body let me know how to make taxonomywebtaggingcontrols required?
    I tried the following link but no luck.
    http://sharepoint.stackexchange.com/questions/28602/is-it-possible-to-have-a-required-field-validator-for-taxonomy-webtagging-contro
    Any help would be appreciated.
    Thank you,
    AA.

    http://sharepoint.stackexchange.com/questions/78561/how-to-make-taxonomy-picker-required-when-used-in-visual-web-part
    Taxonomy:TaxonomyWebTaggingControl runat="server" ID="taxProjectOwnerDepartment" Visible="true" IsMulti="false" IsDisplayPickerButton="true">
    </Taxonomy:TaxonomyWebTaggingControl>
    <asp:CustomValidator ID="rfvProjectOwnerDepartment" runat="server" OnServerValidate="validator_ServerValidate" />
    http://sharepoint.stackexchange.com/questions/17019/taxonomywebtaggingcontrol-the-data-entered-was-not-valid-on-postback
    Or you can plan to use Javascript to make mandatory that column.

  • How to make it selected when clicked and open popup

    Hi,
    I 've a form in the parent page with many form elements.
    I've 2 radio buttons with values "Yes" and "No". I am opening a modal popup when clicked on "Yes" radio button. The modal popup is opening fine.
    But when I click "Yes", it' s not selected. After modal popup is closed, when I return to parent page, the option "Yes" is still not selected.
    How to make it selected when clicked and open popup?

    Perhaps try moving the application to your preferred desktop and then right-click it's dock icon > options > Assign to This Desktop.

  • How to make session invalid when user refresh the page?

    How to make session invalid when user refresh the page?

    I have a <form> in a JSP file that has another JSP file as an action.
    I have main.jsp that has <form> with action.jsp file as an action.
    Now when I submit the <form>, request forwarded to action.jsp and it will take the action. But this file is taking so long, hence user refresh the page again and again, hence duplicate request processing is occuring.
    I want to prevent this.

  • Can 3 vertical Radio Buttons span 3 rows in a table? AND how to make form highlight when radio butto

    I am trying to add 3 grouped vertical radio buttons where one is on each line of a 3 row table. When I group the 3 buttons it squeezes them into one row, is there a way I can have them grouped and one in each.
    Also, I would like to know how to make part of the form highlight when one of the 3 buttons is selected

    Hi,
    If I am not wrong, a table cell can hold only one component or none. In order to place the radio group to different positions vertically, you can use subforms instead of table.
    Asiye

  • How To Make Text Disappear When Mouse is On a Button?

    Hello,  I'm completely new to Flash and well I need some help. I created a page that has static text in the center.
    The page has buttons on side and when I rollover a button text appears, but the problem is that when I rollover a button, the static text in the center is there and I want to hide it as I can't read anything because the texts are overlapped.
    How do I make the text in the center disappear/hide when I rollover a button and how do I make it reappear when the the mouse is off the button?
    I hope what I am explaining makes sense.

    You can assign onRollOver and onRollOut code to the buttons to make the text dispappear, but you'll need to make the text a movieclip with an instance name that you can use to target it to turn it invisible.  In the simple example below, the button has an instance name of "btn" and the text movieclip has an instance name of "text_mc"
    btn.onRollOver = function(){
          text_mc._visible = false;
    btn.onRollOut = function(){
          text_mc._visible = true;

  • How to make attachments "show" when sending mail?

    Hello
    How can I make sure that when I add attachments to my mail it would show in the body of the mail on the receivers end,
    regardless of what mailprovider or program he/she is using. (e.g. a pdf file)
    Any clues?

    If you make sure your message is in rich text (Format -> Make Rich Text, if it says Make Plain Text it's already rich text) and make sure that you're sending Windows-friendly attachments (Edit -> Attachments), that will increase the chances. But there is *no way* to guarantee that an attachment will be displayed inline at all, since different mail clients work differently and different people have different settings... many people prefer plain text e-mails, and there is nothing you can do about that.

  • How to make phone vibrate when call is answered?

    Hi!
    Does anybody know how to make a BB phone (Bold 9700) to have a short vibrate when your call is being answered, so that you don't have to look at the phone or hold it to your ear when making a call?
    Appreciate any advice, thks!

    Hello Daven02,
    You might want to try using a bluetooth headset as there is no way to enable a vibration when a call is connected.
    You can find a variety of supported headsets at the Shop BlackBerry website.
    Thanks and have a great day!
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • How to make response time of switch faster?

    on 3750, when
    1. execute ping -t command from a PC to the switch interface vlan 1 ip address,
    2. unplug the cable and plug it again,
    it takes about 30 seconds to start pinging again.
    i disabled the STP protocol and observed that; with the same procedure, recovering ping replies decreased to 3 seconds.
    is there any other tuning that i can configure and make response time even faster?
    thank you for helping :)

    Hi,
    STP convergence is typically the biggest part of host connection delays. Rather than disabling STP, you can configure "spanning-tree portfast" on the port which will achieve the same end.
    Beyond that, some of the response time delays are going to be part of MAC address learning, ARP, and the fact that the switch places a low priority on processing ICMP packets. A better test is to ping from another device _through_ the switch rather than to or from the switch.
    Here's a good document that covers various commands you can use to mitigate connectivity delays.
    Using PortFast and Other Commands to Fix Workstation Startup Connectivity Delays
    http://www.cisco.com/warp/customer/473/12.html
    HTH,
    Bobby

  • How to make round curves when you are animatting with the Rec mode?

    Hi! I am making a project in motion. I recored a freind writing words and stuff in the roof of my house with two flashlights. My plans was to follow the lights with motion traking: Analize move or match move. And then add a particle emmite for making something like this: http://www.youtube.com/watch?v=MZf2W3S7gV0&feature=fvw . When i tried to make the match move it was imposible. So i desided to make it manually with the REC button. And it work perfectly, the only problem is that it can's achive the round cruves (bezier like). I can only make squared like turns and it looks awful. I have also tried bezier as a path but i don't know how to make the particle emmiter follow it with different speeds, becouse the movement of the flashlight is inconstant.
    What can i do to make a round curved path and make a particle emmiter follow it with the rec button with the different speeds of the flashlights? Please help me!!!! I have to deliver this work for tuesday!
    Thanks for you time y hope you can help me out as soon as possible.
    Juan Javier.
    PD Sorry for my english! jajajaja.

    Juan Javier Ibarra Pitts wrote:
    When i tried to make the match move it was imposible.
    Hi
    Why was it impossible?
    It sounds like tracking is the only way your going to achieve what your after given the way you've shot your footage and the spatial and temporal nuances therein.
    You'll find comprehensive instructions on how to track particles to footage starting on page 49 of this document:
    http://manuals.info.apple.com/en/MotionSupplementalDocumentation.pdf
    Regards.

  • How to make mac speak when logging on or waking up

    hi, i was wondring how you make your mac speak to you and say welcome or hello everytime you log on or wake it up.
    if anybody knows, plesae help.
    Thanks!

    A login greeting is simple.  Make a small application with Automator:
    1. Choose Application from the Automator template.
    2. Add one action: Run Shell Script.  In this action, replace cat with say welcome.
    Save the application and store it somewhere.  (The Applications folder is a good choice.)
    Open System Preferences, choose Accounts, then select the account you want to target.  In that account, select Login Items.  Drag your new application to the login item window to create a link to the file.  Close System Preferences.
    Each time that you login to that account, the application will run and the Mac will say "Welcome."   Once it becomes annoying, return to the Login Items to remove the link to your application.
    A spoken wake-up message is trickier, but it can be done.  See these discussions: https://discussions.apple.com/message/3240458 and http://hints.macworld.com/article.php?story=20060908113605812, then get a copy of SleepWatcher, http://www.bernhard-baehr.de/.

  • How to make it that when i click my logo, it goes to the home page?

    I want to make it on my website, that when i click on my logo on the top of my webpages, it should go to the home page. How can I do that?
    My website is www.iphoneappguru.com
    Thanks!
    -RahulR

    Select the logo in iWeb and use the Inspector/Link/Hyperlink pane to link the logo image to "One of my pages"
    Click to view full size
    However, I would not use the First menu option but select the page name instead.
    OT

Maybe you are looking for