So then the Else statement does not not under calculation in APEX

Hello

Can someone help me where I'm wrong? I try to use the following code in the calculation process on submit. I'm not able to get the value. It shows nothing.

*

Point calculation

Top

*

Source

Top

*

BEGIN

IF: P3_AGING_DAYS < = '0' THEN

: P3_AGING_BUCKET: = 'to breast due date';

elsif: P3_AGING_DAYS > AND '0': P3_AGING_DAYS < = "3" then

: P3_AGING_BUCKET: = 'within 3 days.

end if;

end;

1efb2968-171D-43f9-9d5d-d38151735ed7 wrote:

Please update your forum profile with a real handle instead of '1efb2968-171d-43f9-9d5d-d38151735ed7 '.

Can someone help me where I'm wrong? I try to use the following code in the calculation process on submit. I'm not able to get the value. It shows nothing.

BEGIN

IF: P3_AGING_DAYS<= '0'="">

: P3_AGING_BUCKET: = 'to breast due date';

elsif: P3_AGING_DAYS > AND '0': P3_AGING_DAYS<= '3'="">

: P3_AGING_BUCKET: = 'within 3 days.

end if;

end;

A calculation of body of the PL/SQL function must return a value, rather than to assign to an element in the PL/SQL block (APEX turns the block in the body of a function). The element for which the value should be calculated is specified in the properties of computation (P3_AGING_BUCKET).

begin
  return case
           when :p3_aging_days < 1
           then
             'Within due date'
           when :p3_aging_days between 1 and 3
           then
             'Within 3 days'
         end;
end;

Tags: Database

Similar Questions

  • If the else statement does not work... worked in AS2?

    Hello

    have a very common function that I use in educational quiz itself noted the user according to their score (from answering multiple choice questions). So I put in place a variable called score without problem... but when I apply my confidence "if else"heuristic of AS2... I have all these errors and my flash file does not work. "

    Is there a better way to code that I'm not aware of?

    Stop();

    If (score < = 5) {}
    endMsg.gotoAndStop ("score1");
    } Else if (score > 6 and score < = 11) {}
    endMsg.gotoAndStop ("score2");
    } else {}
    endMsg.gotoAndStop ("score3");
    }

    feedback video called "endMsg" - according to the function, navigates user to label that provides feedback.

    Any help would be awesome... coz this feature used to work! It doesn't work even in Flash CS4 when I retrograde Panel actionScript to version 2 to test!

    I missed using try IT...

    } Else if (score > = 6 & score)<=>

    I know they used to support the use of words for or, but never made a practice of it, so I can't say if they do not support in AS3.  In addition, as long as there will be a score of 5.5, you should be fine.

  • Windows media player will show it's extraction and burning, but then the burned cd does not play?

    Windows media player will show it's extraction and burning, but then the burned cd does not play? Used to work properly, then a few days ago decided not to make a playable copy.

    Your setting got changed if you don't burn it as audio. This is the setting you need to change...

    Click the dropdown arrow in the "burn" pane and select "audio disc" and you should be ok again. R

    (You will need to start over with a fresh blank disc).

  • I want to install Habu add to thunderbird. The following statements does not allow installation? What I'm missing here?

    Download worked fine, but the installation of the add on does not work. Message says that the download cannot be opened for installation.

    Habu/okipipi is dead.

    Enter the Search tab box Habul modules or download Habul here: https://addons.mozilla.org/en-us/thunderbird/addon/habul/

  • NOT IN clause in State of the CASE statement does not

    Dear friends,

    I want to use on the condition in the WHERE clause of my SELECT statement.

    WHERE <>...
    <>...
    AND eihf.exr_aip_asset_sid NOT IN
    (CASE when safa.fund_relation = 'C' and safa.fund_account_code! = vFundAccount)
    SO (37874,37909,43424,55040,59513,59598,58570,76148,75885,75927)
    ON THE OTHER
    (0)
    END
    )

    But it gives me an error like "missing of good parenthis."

    Help, please.

    Kind regards
    Jonathan

    You can not write a list of values within the case statement.

    try something like this,

     WHERE
    <------------->
       AND CASE WHEN safa.fund_relation = 'C' AND safa.fund_account_code != vFundAccount
             THEN eihf.exr_aip_asset_sid ELSE 1 END
           NOT IN (37874, 37909, 43424, 55040, 59513, 59598, 58570, 76148, 75885, 75927)
       AND CASE WHEN safa.fund_relation = 'C' AND safa.fund_account_code != vFundAccount
             THEN 1 ELSE eihf.exr_aip_asset_sid  END != 0;
    
  • The button state does not ActionScript

    I am very new to flex. In flash builder 4 I use following code to create a button with a custom through action script appearance. The button over State I change color red and it does not work.

    However, if I try to use the mxml script to create the button everything works fine including the color of state change

    mxml code (working) - < s:Button skinClass = "components.myButtonskin" x = "164" y = "29" / > "

    action script code (does not work) -

    private var myButton:myButtonskin;

    private function initApp (): void {}

    MyButton = new myButtonskin();
    myButton.x = 14;
    myButton.y = 30;
    myGroup.addElement (myButton);

    }

    file myButtonskin -

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < s:Skin xmlns:s = "library://ns.adobe.com/flex/spark" xmlns:fx = "http://ns.adobe.com/mxml/2009" xmlns:flm ="http://ns.adobe.com/flame/2008" xmlns:d = "http://ns.adobe.com/fxg/2008/dt" >. "
    < fx:Metadata > [HostComponent ("spark.components.Button")] < / fx:Metadata >
    < s: states >
    < name s: State = "mounted" / >
    < name s: State = "over" / >
    < name s: State = "low" / >
    < name s: State = "disabled" / >
    < / s: states >
    < s:Group blendMode = "multiply" flm: isolated = "false" x = "0" y = "0" >
    < s:Group d: id = '22' flm:knockout = 'false' = '8' x y = "0" >
    < s:Rect height = radiusX "89" = "8.4689" radiusY = "8.4689" width = "88" x = "0" y = "0" >
    < s:fill >
    < s:SolidColor color = "#ADC936" color.over = "#FF0000"/ > "
    < / s:fill >
    < / s:Rect >
    < / s:Group >
    < data s:Path = "' M 9.338 10,783 L 0 L 5,391 9.338 0 L 9.338 10.783 Z" winding = "not null" x = "0,329" y = "38.091" > "
    < s:fill >
    < s:SolidColor color = color.over = "#FF0000" / "#ADC936" >
    < / s:fill >
    < / s:Path >
    < / s:Group >
    < / s:Skin >

    I think that what you do is instantiate a Button object, then assign her skin using setStyle():

    private var myButton:Button;

    private function initApp (): void {}
      
    MyButton = new Button();
    myButton.x = 14;
    myButton.y = 30;

    myButton.setStyle ("skinClass", components.myButtonSkin);
    myGroup.addElement (myButton);

    }

  • If an else statement does not

    I'm sure have the conditions and statements typed in wrong. Here is the original code:

    Stop();

    var my_timedReveal:Number = setTimeout (my_delayedReveal, 15000: 1);

    function my_delayedReveal (arg1) {}
    gotoAndPlay ("reveal2");
    }

    cardA .mouse .addListener (mouseDown);
    cardB.Mouse.addListener (mouseDown);
    cardC.Mouse.addListener (mouseDown);

    cardA.onRelease = function() {}
    gotoAndPlay ("reveal1");
    }

    cardB.onRelease = function() {}
    gotoAndPlay ("reveal2");
    }

    cardC.onRelease = function() {}
    gotoAndPlay ("reveal3");
    }

    only now, I want to add an if/else statement so that if none of the mouseDown conditions are met, it will then the variable timeout:

    I have not tried or no this result:

    var my_timedReveal:Number = setTimeout (my_delayedReveal, 15000: 1);

    If (cardA .mouseDown = true) {}
    gotoAndStop ("reveal2")
    }

    else {}
    my_delayedReveal = true;
    }

    What Miss me? Am I even close?

    I have not tried to reason with your code, but when you compare things to equal you use is, not =

    If (cardA .mouseDown == true) {}

    And in the case of a boolean comparison, like that you can just use...

    If {(cardA .mouseDown)

    So see if what you're trying or could have tried to work when you use the comparison properly.

  • OrderID if else statement does not

    I have a page of payment if I orderID does not exist I want to create a new command id or if the orderID is using the current order id, but if it is not an empty order it does not give you a new command id

    Check if there is already an order

    $query = 'SELECT payment_id FROM host_payments WHERE payment_userid = %s AND payment_transaction_status = AND payment_amount_due = payment_type = LIMIT 1 %s AND %s %s';

    $query = sprintf ($query $userid, $transaction_status, $amount_due, $payment_type);

    $results = mysql_query ($query);

    If (mysql_num_rows ($Results) > 0)

    {

    While ($Row = mysql_fetch_array ($Results))

    {

    $existing_payment_id = $row ['payment_id'];

    }

    }

    on the other

    {

    Create order

    $query = "INSERT INTO host_payments (payment_userid, payment_created_timestamp, payment_amount_due, payment_transaction_status, payment_type) VALUES (%s, %s, %s, %s %s)";

    $query = sprintf ($query $userid, $timestamp, $amount_due, $transaction_status, $payment_type);

    $results = mysql_query ($query);

    $query = 'SELECT payment_id FROM host_payments WHERE payment_userid = %s AND payment_created_timestamp = AND payment_amount_due = payment_type = LIMIT 1 %s AND %s %s';

    $query = sprintf ($query $userid, $timestamp, $amount_due, $payment_type);

    $results = mysql_query ($query);

    While ($Row = mysql_fetch_array ($Results))

    {

    $payment_id = $row ['payment_id'];

    }

    }

    then

    If (isset ($existing_payment_id) & &! empty ($existing_payment_id))

    {

    $ORDERID = $existing_payment_id;

    }

    on the other

    {

    $ORDERID = $payment_id;

    }

    $ORDERID = $payment_id; $existing_payment_id;

    the variable I want to use at the end to send the bridge is so $ORDERID

    > I need to take on more script for your suggestion to work?

    You follow one of my last two suggestions!

    Try this.

    Check if there is already an order

    $query = 'SELECT payment_id FROM host_payments WHERE payment_userid = %s AND payment_transaction_status = AND payment_amount_due = payment_type = LIMIT 1 %s AND %s %s';

    $query = sprintf ($query $userid, $transaction_status, $amount_due, $payment_type);

    $results = mysql_query ($query);

    If (mysql_num_rows ($Results) > 0)

    {

    $row = mysql_fetch_array ($results)

    $ORDERID = $row ['payment_id'];

    }

    on the other

    {

    Create order

    $query = "INSERT INTO host_payments (payment_userid, payment_created_timestamp, payment_amount_due, payment_transaction_status, payment_type) VALUES (%s, %s, %s, %s %s)";

    $query = sprintf ($query $userid, $timestamp, $amount_due, $transaction_status, $payment_type);

    $results = mysql_query ($query);

    $ORDERID = mysql_insert_id();

    }

  • To mySQL, then the email form does not work after the insertion of the post

    I use the Spry framework to validate certain fields on a form and then insert all of the data forms in a database (with no problems). Then, I want to send an email with a few fields from the form submission.  Normally this works very well in the email PHP code that I have, BUT after adding the spry validation or after you add the insert after section of goto, email PHP code no longer receives the form post data.

    Any ideas what could cause the loss of the post of the form variables?

    Thank you!

    -Daniel Hoviss

    Normally the form sends the data to the processing page, I transmit not explicitly all variables form.

    Like this

    In fact, you pass form variables explicitly. It's that submit a form.

    When you submit a form, the variables are passed to the next page, through the GET method or the POST method. That's why you can access it using $_POST or $_GET. Variables exist only from one page to another. As soon as you redirect the user to another page, the values are destroyed. The code in Dreamweaver $insertGoTo uses the header() function to redirect the user to another page. This is why your variables are no longer available.

    The simple way around this is to add the email script immediately before the code that redirects the user. You can either put the E-mail script directly in the same page, or use a PHP include.

  • my computer makes a plaintive sound, he has not done before and since then the cd door does not open, I close it out but still makes noise

    the noise is like a high-pitched moan

    Hello Boomer09,

    Thank you for your message.  This sounds like something is stuck in your CD/DVD.  Most of the models have a small hole at the front.  You can usually use a paperclip (or something of this size) to push through the hole and the drawer opens manually.  If it is stuck, you can open the drawer and eliminate the problem.  Otherwise, it could be a hardware failure and you will need to replace it.  You always have the possibility to open your computer and remove the power cables to your drive.  This will stop the sound, but you will not be able to use the drive.
    Please let us know if it did or did not help to solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Sales to the United States does not

    For more than a month, I tried to get prices on Oracle Business Intelligence Standard Edition One.  The contact email address, [email protected], did not respond in any form to any of my several investigations.

    Follow-up:

    In a day of this announcement, I was contacted by the Oracle sales.

  • Writing and so then the else statement

    I know it's a lot easier that I am making, but I tried to understand the proper syntax all afternoon.

    I have a table with 15 rows, if the column modifications.15 is = R, so I want column FarmDes15 is visible

    Any other value, I want it to be invisible.

    I have...

    If ($(xfa.event.newText) .boundItem == 'R') {}

    this.resolveNode("FarmDes15").presence = "visible";

    } else {}

    this.resolveNode("FarmDes15").presence = "invisible";

    }

    that works, but every time that I chose a value for change, it erases all the other fields in the form.

    Please help if you don't mind.

    Thank you

    I finally understood that.

    If (this.boundItem (xfa.event.newText) is 'R')

    {

    FarmDes1.presence = "visible";

    }

    on the other

    {

    FarmDes1.presence = 'hidden ';

    }

  • Master page with rollover menu, using States, does not work for all pages?

    Hello.

    I created my masterpage with a basic at the top menu. It has two States. The 1st State is normal and State 2 is a simple rollover behavior, just a different color.

    Why my menu would work perfectly on the page ' 01', but then the reversal function does not work for other pages? (portfolio 03 etc.). She has just the hoverover slider and the link, but the color does not change.

    I have something wrong?

    Thanks a lot for all the help on these forums

    Make sure that all the subpages have a second State added to them. You

    do not put any content on this State, but it must be present

    the transfer of work from the watch page.

    If you do not already have that second State, trying to link then cancelled

    the subpages of the master page. I came across this scenario recently

    because I had created a master page after some of my subpages have been

    already built.

    HTH

    Jim Babbage

  • If Else still does not... help!

    Hello
    I try to get four values to add up and be passed to another frame, but I need to check that the four fields are not empty or add up to less than 100 (percent). For some reason even if the four fields add up and the amounts are calculated according to my code - the if else statement does not work!

    Maybe it's the wrong place (although if I move it I get NaN) for amounts so... can someone explain why this is not done or how to change it so it works with the rest of the code?

    Thank you
    E
    Calculates the total price, empty field checking
    and the percentage do not add to 100.

    two_btn.onPress = function() {}
    priceTotal_txt.text = number (field1) + number (Field2) + number (field3), number (field4);
    MyTotal = parseInt (priceTotal_txt.text) / 60 31;
    MobTot = parseInt (mbcalls_txt.text);
    If ((priceTotal_txt.text == null) |) (priceTotal_txt. Text < 100)) {}
    gotoAndStop ("error");
    } else {}
    _root.gotoAndStop (15) ;}
    };

    What happened to the code I posted earlier (again joint).
    Use the code as what and do not use a onEnterFrame handler.
    So, this part is the problem:
    this.onEnterFrame = function () {}
    Field1 = number (qty1_txt.text) * Number (seconds1);
    Field2 = number (qty2_txt.text) * Number (seconds2);
    field3 = number (qty3_txt.text) * Number (minutes1);
    Field4 = number (qty4_txt.text) * Number (minutes2);
    };

  • Rollover State does not not on active state

    Hi, I have a problem with the menu States. The rollover State does not work when a menu item is in its active state. This is supposed to happen or is there a solution to this?

    Thank you.

    Hello

    This works as expected. Active state removes change it to any other State on the interaction of the mouse and other States work only on the links that are currently in Normal condition.

    See also: https://forums.adobe.com/thread/1136562

    See you soon,.

    Vikas

Maybe you are looking for

  • HP Pavilion G6: Which series is my HP Pavilion G6?

    Dear community of HP: Hello and have a nice day. I can't determine which series is my HP Pavilion G6. Display of the BIOS, my product number is: A1Z40EA #ABZ. And this Web site by using this product number give me model: HP Pavilion g6-1267sl Noteboo

  • iMatch &amp; DRM on iTunes,

    iMatch does currently not new subscriptions in the United States: y at - it another way to update old iTunes DRM tracks with DRM-free ones?

  • Weird waveform using the PCI-5922

    Hello I'm having some difficulty with PCI-5922. Rather than see a sinusoidal signal (generated by the PCI-5421), I see the forms attached wave, MAX and configured niScope EX Acquisition.vi Sometimes he would turn to show a normal sine wave, often tim

  • I need to convert a video file by electronic mail type html to a file type that 2.6 MM will support

    I need to edit a video file which was sent by e-mail to me to a type of file Movie Maker 2.6 will support mpeg, etc... the file is currently a .html.

  • creating image

    is illegal if I create a new custom image and install many laptops with the same model, same unit, same drivers even plug with key product incorporated into each unit?