What case function

Hello
Why Form Builder doesn't support case which function? Is another way?

CASES is more effective than IF... ELSIF and is available in PL/SQL Server-side.

So, you could write code in a procedure stored (within a packet) and call it from the form.

Tags: Oracle Development

Similar Questions

  • Case function can be used as a parameter when calling a procedure, please advise...

    Case function can be used as a parameter when calling a procedure, please notify

    The daily procedure is called with the parameter 3 following one of the parameters using a function box between them as shown below.

    Daily_Ins (c1.p_mtrid, c1.p_UOM CASE WHEN "KWH" THEN 1 ELSIF 'KW' THEN 2 END, v_dateHold);

    In my opinion, using decode is illegal, so I think that I cannot say something like :

    Daily_Ins (c1.p_mtrid, ( decode c1.p_UOM, "KWH", 1 'KW', 2), v_dateHold);

    I think I just found something on the net

    SQL > DECLARE

    2 wages NUMBER: = 20000;

    3 employee_id NUMBER: 36325 =;

    4

    5 PROCEDURE give_bonus (emp_id in NUMBER, bonus_amt number) IS

    6 BEGIN

    7 DBMS_OUTPUT. Put_line (emp_id);

    8 DBMS_OUTPUT. Put_line (bonus_amt);

    9 END;

    10

    BEGIN 11

    12 give_bonus (employe_id,

    13 CASES

    14 salary when > = 10000 AND salary<=20000 then="">

    15. WHAT salary > 20000 AND salary<= 40000="" then="">

    16. WHAT > 40000 salary THEN 500

    17 0 OTHERWISE

    18 END);

    END 19;

    20.

    PL/SQL procedure successfully completed.

  • Help with a case function

    Hello

    I want to create a function box where column2 is based on the value of Column1.

    For example, the table below

    On the underside, I would ask something like

    Select status, description, l3_days, (case when status = 'Open' and DEV_DAYS = null THEN L3_DAYS = 'LOGIN_DATE-SYSDATE' WHAT status = 'open' and DEV_DAYS! = NULL THEN DEV_DAYS = L3_DAYS ELSE LOGIN_DATE-L3_DAYS-SYSDATE, DEV_DAYS END)

    support.jpg

    Not sure so clearly. Basically, I want to L3_DAYS and DEV_DAYS to be updated automatically based on the login_date. I plan to add a DEV_START_DATE column, which would facilitate the calculation of DEV_DAYS

    In any case I want to know how to write a case function, where denotes Column1 Column2?

    Thank you

    There are two CASE statements like this

    select status
         , description
         , case when status = 'Open' and dev_days is null then LOGIN_DATE-SYSDATE
                else l3_days
           end l3_days
         , case when status = 'Open' and dev_days is not null then LOGIN_DATE-L3_DAYS-SYSDATE
                else dev_days
           end dev_days
    

    If this isn't what you are looking for you need to explain your best condition. Provide a CREATE TABLE script and INSERT a TABLE for examples of data and provide a few example expected output.

    Also please read Re: 2. How can I ask a question on the forums?

  • Help me I have Windows XP. Would be, or could you please tell me what the function keys are and how I could use them?

    I have Windows XP. Would be, or could you please tell me what the function keys are and how I could use them?

    I have Windows XP. Would be, or could you please tell me what the function keys are and how I could use them?

    Function keys are used to things dirrent, depending on whether you are simply Windows or a program of work, and if you work in a program, what program it is?

    This search through the documentation of programs you use. Read also here: http://www.internetfixes.com/definitions/IF01424.htm

  • I do not understand what the function of the Pseudo-classes

    I do not understand what the function of the CSS Pseudo-classes 'top', 'right', 'bottom' and 'left' in a tab pane.

    Could someone explain to me? Can you give me an example?

    Another thing... How to center the tabs in a tab pane?

    In advance thank you very much to all

    I do not understand what the function of the CSS Pseudo-classes 'top', 'right', 'bottom' and 'left' in a tab pane.

    They are related to the side property.
    http://docs.Oracle.com/JavaFX/2/API/JavaFX/scene/control/TabPane.html#sideProperty
    The property side is where the tabs are placed with respect to the visible tab pane.

    If you do not use this property, you don't need to worry their about to much.
    The default value for the side is high, as the pseudo-class flaw that will be active.

    Another thing... How to center the tabs in a tab pane?

    Ask a separate question.

  • CASE function is allowed in forms 6i?

    Hello

    CASE function is allowed in forms 6i?

    Thank you
    ESL

    Hello!
    The case statement come first with the Oracle 9i database.
    In Forms 6i, it won't work.
    Concerning

  • How to find what form function is accessible by the user recently.

    Hi Experts,

    I need to know what form function is accessible by the user recently, we can see what has been the last user of form accessed by using the FND_LOGIN_RESP_FORMS table.

    Thank you
    Souma

    Hello

    You are right. However, you should be able to know the function names in the list of forms the user accesses (FND_FORM_FUNCTIONS junction with table FND_LOGIN_RESP_FORMS table).

    Take a look at this link and see if it helps.

    Hussein

  • PREMIUM HP: HP PREMIUM: Howto recover a CASE FUNCTION

    I write a feature of the CASE, in my case I call it VP().

    In the case of Mode, I want back this feature.

    Of course, if I have keys Alpha (with Maj!) I can type VP (3), and it works.

    So, I want to find my VP() function in a menu. So I try the key to the Toolbox. I have try the catalog button, I try... but I can never find my VP() function.

    Find my service on a menu?

    Thank you

    If you created using Define, then it'll be in the menu [Toolbox] [user], as Make replied already.

    However, if you have created by writing a program, then it will appear in the menu [Vars] [CASE] [program].

    DISCLAIMER: I do not work for HP; I'm a happy user of HP Calculator.

  • What cases are compatible with the mods?

    Anyone know of cases that I can get to the United Kingdom that are compatible with the mods?

    Jakeno wrote:
    Yes that's exactly what I mean

    Jakeno,

  • Can what case I upgrade to fit my mobo?

    My pc model is the p6604f. Mono is the card mother-N-Alvorix-RS880-formfat (Alvorix).

    In which case it can adapt? Can he adapt to any atx? Or I have to buy another case of HP brand?

    This is the size of this motherboard: Μatx form factor: 24.4 cm (9.6 inches) x 24.4 cm (9.6 inches)

    Who must adapt in addition no matter what ATX case and can probably fit in a smaller box.  Just check which can accept the 9.6 x 9.6 Μatx motherboard.  HP does not usually use non-compliant motherboards.

  • OBIEE-casting date of char in the case functions

    Hi all

    I'm trying to implement this scenario in the Oracle replies:

    Decode ("dim1".start_date, NULL, 'NA', "dim1".start_date)

    I wrote something like this in the responses:

    CASE WHEN 'Dim1'.start_date IS NULL THEN 'NA"ELSE"Dim1'.start_date END

    I get the error here as "NA" is of type string. If I do this:

    WHEN "Dim1'.start_date IS NULL THEN perform a CAST of CASE ("NA"AS the DATE) ELSE 'Dim1'.start_date END

    I works great... but what a way to encode this scenario? Help, please

    Kind regards
    Neha

    Try this
    CASE WHEN "Dim1".start_date ELSE IS NULL THEN "NA" cast ("Dim1".start_date as char) END

    It's now in char type

    To keep date type

    CASE WHEN 'Dim1'.start_date is NULL THEN 1 January 1970 "ELSE"Dim1'.start_date END
    or
    CASE WHEN .start_date IS NULL THEN timestampadd "Dim1' (sql_tsi_year,-40, current_date) ELSE 'Dim1'.start_date END

    If brand aid

    Published by: Srini VIEREN on March 25, 2013 09:46

  • HP 700-414: what case fan coolers and CPU would fit into a 700 HP - 414

    I installed a GTX 950 in my HP 700-414 played overwatch for maybe 3 or 4 hours max and my time cpu has reached 85 - 87 c and my gpu is between 80-85 C. So I was wondering if you guys know how I could find the size of the case fan and how many mounts for fans are available? Because I can't find anything on it I searched and searched. And do you think I could adapt a CPU cooler to spare in this case?

    Hello92, welcome to the forum.

    The time of your video card do not seem to be too bad.  The absolute maximum for the GTX 950 is 95 C.  Ideally, you do not want to keep at least 10 to 15 C lower than that which is yours according to your figures.  Your time CPU however are much too hot for me.  When OC I am very cautious and want to see time about 50 C.

    You may need to get a little inventive when it comes to add case fans.  It's always a balance.  You can actually get fans to work against the other.  In other words, a fan air may cause another do not work effectively.  Trial and error is the best way to go.  When the fans run correctly, you will see an increase in cooling.  In addition, it probably not places to mount fans.  This can be overcome by using velcro or other means.  There's not enough connectors, so you will need to use adapters.

    After walking coolers are normally very large.  You will need to measure carefully to make sure that the cooler you choose to insert in the case.  I have recommended a Cooler Master Hyper 212 EVO to a member and it was too big.  Cooler Master makes some very good, but you must find one that will fit in your case.

    Please click on the button + Thumbs up if I helped you and click on accept as Solution If your problem is resolved.

  • What case for a Satellite U840 - 10 X?

    Hello

    I just bought a Satellite U840 - 10 X, and I can't find a case that stops the laptop firmly without adding too much height.

    I found some cases for computers laptops 14 "but they have all 4cm of space on the inside, allowing him to move inside.
    The size of the U840 is 34.2 x 23.2 x 1.99 cm.

    Someone at - he found a good one?

    Thank you!

    Hello

    I found a few compatible cases for Satellite U840 / U845

    Advantage for computer laptop backpack Outdoor 40.6 cm (16-Zoll) PX1783E-1NCA
    Advantage, case 40.6 cm (16-Zoll) laptop PX1784E-1NCA
    Advantage Laptop Case Pro 40.6 cm (16) PX1785E-1NCA
    Advantage portable Trolley 43.9 cm (17.3 inch) PX1786E-1NCA

  • What cases does the HP Pavilion Elite m9040n use?

    I want to put new parts inside, because it is quite old. I want to know if all the pieces of my will enter into it. I looked around, the only thing I could find on it is that it is a medium-sized ATX. You are looking for an exact name please!

    Yareen, welcome to the forum.

    It takes a Micro-ATX motherboard (Micro-ATX-24, 4 cm (9.6 inches) x 24.4 cm (9.6 in).  The key is to ensure that the spacers for the motherboard in the case match the holes in the motherboard.  This may be a problem with new motherboards and old cases.

    Well, to tell you the truth, if you don't want to buy a new computer, I would buy a new case for less than $100 and a motherboard to match.  It would be much easier.  Of course, you can always buy a new HP desktop computer.

    Please click on the Thumbs up button '+' if I helped you and click on "Accept as Solution" If your problem is resolved.

  • nwiz.exe what its function and where and how to get it back

    Whenever I have connect my computer that he told me that nwiz.exe is missing and needs to close and it doesn't. However, it asks that I send a report to microsoft. I agree and sends the report without result. Therefore, what is nwiz.exe and how can I get that back on my computer? Frustrated and confused.

    Whenever I have connect my computer that he told me that nwiz.exe is missing and needs to close and it doesn't. However, it asks that I send a report to microsoft. I agree and sends the report without result. Therefore, what is nwiz.exe and how can I get that back on my computer? Frustrated and confused.

    This program is the Nvidia nView Desktop Manager Configuration Wizard, which provides an interface for the configuration and management of Nvidia graphics products on systems in which they are installed. Re-install your graphics driver.

    Click HERE to launch the Nvidia graphics driver auto detect. This will automatically detect your graphics card and provides you with a link to download and install the appropriate driver.

Maybe you are looking for

  • Flash 11.7 shows all content as a black box; outside of Youtube

    It's my problem, there are many like him, but this one is mine. I've recently updated to 11.7 Flash after being asked by Firefox telling me my current version (11.6.602.180) was precarious. Many video sites make videos like a very bad black box after

  • Cannot receive images.

    I can't receive files on Skype photo. I reinstalled and nothing happened. I have Windows 10.

  • Tecra A7: Temperature of the CPU to 95 C

    I bought my Tecra A7 (Core Duo T2300) in August 2006. Recently, I noticed that the left side becomes hot, even when the work more CPU for a short period. It is shown that the CPU runs at approximately 95 ° C in such a case (for example. When Google D

  • 15 N200ed Pavilion: Pavilion 15 n200ed

    Hi guys,. My friends have fallen for the 'Hello, tis is Microsoft speaking phone' - thing. Their laptop requires the administrator password or Power On pass now each time at startup. Black screen with a blue window and white letters. It seems to me t

  • looking for a driver for windows vista inspiron 1525 network

    I reinstalled windows vista 32 bit. a few pilots were missing when he did. the only one I can't find/fix is the network controller. Were find the driver for it?