Items on a tabular form

hello,
i want to add a validation to a page, where i definied a tabular form with several editable fields.
If i try to add a validation to an item to that page, apex doesnt find any items?
How can i reach the tabular form items ?
Would be glad about some help
phil

Hi Phil,
you can also take a look at my ApexLib Framework which has some enhancements for the handling of Tabular Forms.
http://inside-apex.blogspot.com/2006/12/plug-play-tabular-form-handling.html
http://inside-apex.blogspot.com/2006/12/accessing-row-selector-of-tabular-form.html
http://inside-apex.blogspot.com/2007/03/min-max-value-validation-in-browser.html
http://inside-apex.blogspot.com/2007/02/restrict-input-length-for-tabular-form.html
For a full list of features see http://apexlib.sourceforge.net/
Patrick
Check out my APEX-blog: http://inside-apex.blogspot.com
Check out the ApexLib Framework: http://apexlib.sourceforge.net

Similar Messages

  • How to refresh page after selecting value from LOV item , in a tabular form

    Hi ,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, couple of issues here.
    1.
    2nd item(column) in tabular form, that LoV should get populated based user's selection value in first item LoV. So how do i refer to the value, that user selected in first item's LoV? I will have to use this reference in LoV query of my 2nd item ( on this tabular form)
    2.
    How can we refresh the page, when user selectes value in first item ( from LoV). As this is a tabular form, here item type is Select List, we dont have an option to pick item type as Select List with Submit. So problem is that when user selects value for item 1, refresh does not happen and item 2 LoV does not get populated as per user's selection in item 1.
    Please help here. Would be really appreciated.
    Thanks and Regards,
    Rave.

    Thanks Ben and Dan for your responses.
    Ben, your solution helped me with refresh of page, as page got submitted.
    This answers to my 2nd question. However, I still need to know first question, which basically is, how do i refer to the value, that user selected in first item LoV.
    Issue is, I selected the value in first item LoV, it got submitted and page fot refreshed. But after page refresh, first item LoV loses its value that I had selected last time. It does not retain the selected value after refresh.
    I have an unconditional process, that on every submit(refresh) of page, I set my items with their corresponding values. But problem is what do i mention there to refer to this item.
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Any help here would be really appreciated. Please suggest how do we refer to this item's selected value.
    Thanks and Regards,
    Ravi.

  • Disabling item in a tabular form - Urgent Issue!

    I'm using Apex 3.0.
    My tabular form has a text item with a following PL/SQL expression: TO_CHAR(:P44_DEFAULT_DATE,'YYYY/MM/DD'). When I either change the item type to "display - save state" or place "disabled=true" into its attribute or try to disable this item, using javascript, I get the following message on submitting changes:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum= "23C7E42B598178DCEBF0D7FD89F22286", item checksum = "FD781F7254FF9A0F007587217EA02C6A"., update "REG"."TEAM_SALES_STAFF" set "TSS_ID" = :b1, "TEAM_ID" = :b2, "STAFF_NO" = :b3, "EXP_DATE" = :b4
    Unable to process update.
    How I can disable my pre-calculated effective_date field?
    Sincerely,
    Mike Mossiagin
    Message was edited by:
    Mike Mossiagin
    Message was edited by:
    Mike Mossiagin

    Hi Mike,
    You should use readonly="true" instead of disabled="true".
    When you do "disabled", the value is not taken into account by APEX MRU.
    Dimitri

  • Update Hidden Item In Manual Tabular Form

    Apex 3.2
    I have a column in my tabular form which is used in an update.
    APEX_ITEM.DISPLAY_AND_SAVE(34,f.qtyuser) oldqtyuser
    I do not want the users to see this column, so on my edit report I unchecked the Show checkbox.
    Now I get an error message and my update fails.
    I have tried changing it to
    APEX_ITEM.TEXT(34,f.qtyuser,10,6) oldqtyuser and unchecking the Show checkbox but still it fails.
    I have tried changing it to
    APEX_ITEM..HIDDEN(34,f.qtyuser) oldqtyuser and unchecking the Show checkbox but still it fails.
    How do I achieve this
    Gus
    Edited by: Gus C on Nov 14, 2012 11:56 PM

    Hi Gus,
    Struggling to remember what is available in 3.2. What I did in this version was to append the hidden item to another item in the table. So for example if you have a text box in the table then use:
    APEX_ITEM.TEXT(33,f.othercol,10,6)||APEX_ITEM.HIDDEN(34,f.qtyuser)
    That way there is not extra column, but the hidden item is still displayed in the table.
    Rod West

  • Select item on a Tabular form with a different dynamic LOV on each row

    I would like to use a tabular form where one of the columns is a dynamic LOV based Select, and where that dynamic LOV refers to one of the column values on each row.
    So if the tabular form represented a list of teams and the LOV-based Select column was the current team leader, I would want that select list to be populated only with the members of that team (different for each row). Since the list of team members is in some other table (all_players or something) I would want to populate the LOV with a query with a where clause that selected only those players records with a team-membership equal to the current tabular form's team id. So, on each row that select list's contents would be different.
    -- Justin

    I'm beating a dead horse here but I did get something to work with "less" code. My current needs do not require me to cascade drop downs, I only want 1. You can use the query like the in the first reply (but I don't have a table with joins) I created a simple two column table dept_emp with 4 records 10,null 20,null .... I want to fill the nulls with an employee but ONLY an employee that matches the dept. (Same concept of team leader and members).
    Here's the query:
    select apex_item.display_and_save(1,dept) dept,
    apex_item.select_list_from_query(2, name, 'select ename from emp where deptno='||dept) name
    from dept_emp
    I removed the code that was there already (ApplyMRU) and just put in this code:
    BEGIN
    FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT LOOP
    UPDATE dept_emp
    SET
    name=HTMLDB_APPLICATION.G_F02(i)
    WHERE dept=to_number(HTMLDB_APPLICATION.G_F01(i));
    END LOOP;
    END;
    The G_F01 matches the column 1 and so forth. There's more documentation but little explanation at:
    http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/api.htm#sthref2171
    The thing I could not get to work was a dynamic message
    #MRU_COUNT# row(s) updated, #MRI_COUNT# row(s) inserted.
    Not sure when the MRU_COUNT gets populated (probably in the routine I removed ;))
    You're probably way past me by now but I like to have as little code as possible when it comes to maintaining an app. That's why I liked oracle forms so much. This kind of stuff was pretty easy to do.
    Thanks again everybody!

  • Help using a dynamic action to update tabular form items (specifically radio button) based on collection

    Hi Everyone, I have posted this question in the past and made huge progress with Denes Kubicek's help:  https://apex.oracle.com/pls/apex/f?p=31517:294:115851992029365::::: based on my earlier question posted: https://forums.oracle.com/forums/thread.jspa?threadID=2537494
    I am struggling with one item in my tabular form.  It is a radio button.  The choices all appear properly, but the value is not saved in the collection (and hence, not saved in the table).  All other items in the tabular form save properly.
    here is what I have for the query.   It is item c024 (which maps to ;'f03'), which is defined as a radio LOV based on an existing LOV.
    Currently I have:
    2 page items:
    P110_ID
    P110_VALUE
    Dynamic action called CHANGE COLUMN:
    event: CHANGE
    selection type: jQUERY Selector
    jQuery:
    jQuery Select = input[name='f03'],select[name'f08'],select[name='f09'],input[name='f10'],input[name='f11'],input[name='f12'],select[name='f40'],input[name='f21'],input[name='f22'],input[name='f23'],input[name='f50']
    event scope: Dynamic
    true action#1: set value P110_ID javascript expression this.triggeringElement.id
    true action#2: set value P110_VALUE javascript expression this.triggeringElement.value
    true action#3: execute pl/sql code
    declare
      v_member number;
      v_seq number;
    begin
      v_member := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
      safis_collections.update_column(v_seq,
                                    v_member,
                                    :p110_value);
    true ation#4 refresh region :LANDINGS_COLLECTION
    the tabular form is based on the query:
    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
    decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 hms_flag,
    decode(c050,'Y',apex_item.checkbox(21,'Y','id="f21_'||seq_id||'" style="background-color:#FBEC5D; " onClick="alterYes('||seq_id||');" onKeyPress="alterYes('||seq_id||');"',c021),'N','N/A') FinsAttached,
    decode(c050,'Y',apex_item.checkbox(22,'N','id="f22_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterNo('||seq_id||');" onKeyPress="alterNo('||seq_id||');"',c022),'N','N/A') FinsNotAttached,
    decode(c050,'Y',apex_item.checkbox(23,'U','id="f23_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterUnk('||seq_id||');" onKeyPress="alterUnk('||seq_id||');"',c023),'N','N/A') FinsUnknown,
    decode(c050,'Y',apex_item.textarea(28,c028,3,null,null,'f28_'||seq_id,''),'N','N/A') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    decode(c020,'Y',
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;"',null,null,null,'f40_'||seq_id,''),
    'N','N/A') HMS_AREA_CODE,
    c020,c050,
    decode(c020,'Y',
    apex_item.text(41,TO_NUMBER(c041),5,null,null,'f41_'||seq_id,''),
    'N','N/A') Sale_Price
    from apex_collections
    where collection_name = 'SPECIES_COLLECTION' order by seq_id
    I have noticed the following:
    when I change column C011 (price) the following values are set in the dynamic action:
    P110_ID = f11_1
    P110_VALUE = whatever I change the price to.
    when I change the column C024 (hms_flag), the following values are set:
    P110_ID = f03_0001
    P110_VALUE = whatever I change hms_flag to.
    the region is refreshed in my dynamic action, and the change for hms_flag does not hold.  I have tested the SQL query that generates the value for v_SEQ in the dynamic action.   In both a change to price and HMS_FLAG it appears valid
    select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
    if f11_1, v_seq:= 1
    if f03_0001, v_seq := 1
    thank you!

    solved.  sort of. 
    field c024 references f03.
    the Dynamic ACtion, step 4 calculates v_member by taking a substring of P110_ID...and in all other fields, the column and the field (fxx) are the same value....except for c024.
    I am not certain exactly how to resolve, but see the problem.

  • How to retain value in LoV item in Tabular Form, after Page Refresh

    Hi,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, 2nd item(column) in tabular form, that LoV should get populated based on user's selection value in first item LoV.
    1. So how do I refer to the value, that user selected in first item's LoV? I will have to use this value as reference in LoV query of my 2nd item ( on this tabular form)
    2. Everytime I select value in first item LoV, page gets refreshed, as my requirement is to calculate 2nd item's LoV based on selected value in first item. So after this page refresh, first item LoV loses its value that was selected before the page refresh happened. So how do i retain this value in first item LoV? I have an unconditional process, that on every submit(refresh) of page, I set all my items with their corresponding values. But problem is what do i mention there to refer to this first item ( of type LoV) of tabular form?
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Please help.
    Thanks and Regards,
    Ravi.

    Hi Rave,
    You will have to use Javascript and Ajax to change the values as ApEx submissions will lose your results unless they are saved into the database.
    Remember, that as you are using a tabular form there will be lots of items called f01, fo2, fo3 etc on the page (one per row).
    Regards
    Michael
    Edited by: MKii on Jun 4, 2009 10:13 AM

  • Unique item on tabular form

    Hi,
    Can somebody help me with a unique item on a tabular form.
    I have atabularform with 3 column. One column CODE must be unique. How should this be done??
    Regard,
    Ekas

    Add a unique trigger on the table, so the column can NOT be duplicate.
    Thank you,
    Tony Miller
    Webster, TX

  • Two select lists in tabular form

    I have two Select Lists which one of them depends on the another -the second one's query depends on the first one's - .....
    This operation can be done in a form or a page, but how it could be done in a tabular form???
    Saad

    The simple answer is that to the best of my knowledge, it cannot be done because of how the tabular form works. If I understand it correctly, Tabular forms are populated completely at page load and cannot post back from items inside the form in order to refresh a list of values on the second select list. If you want to do this, you will need to build the form as a "Form and Report" page type where you have links in your report that populate a regular page form. Just tell it to put the form and the report on the same page them add a hidden page item that you set to 1 or 0 to display the form and setup the form processing so it is button tied instead of unconditional (You may have to duplicate auto processing processes).
    The complex answer....there probably is a way to do this using AJAX as AJAX is good at this kind of stuff and every field in the tabular form has an HTML id of some kind....but I am not well versed enough in AJAX to give you a straight answer as to how to accomplish it. I used AJAX to do something similar to what your talking about but it was with regular page items (using a select list to populate a shuttle without a post back) and not items in a tabular form.

  • Tabular form on a huge view

    Hello Experts,
    I have implemented a tabular form on a huge view (about 300 million rows) in APEX 4.0. I then created custom items in the tabular form page for users to filter records and update them. The search would typically return few rows only. I have a instead of trigger for update on the view that will insert/update records to the appropriate table.
    Now, when searcing a records and updating a record, the default MRU process seems to be going for a full table scan on the large table used in view. This is causing the page to hang and takes very long to update the row.
    Please suggest a better way to implement this and to workaround the full table scan on the huge table. One option I am checking is to use APEX collections.
    Thanks.

    Hi,
    without any details of your environment (OS, DB, Apex versions etc) and the query behind the view (SQL, explain plans etc), it is difficult to offer any information other than general guidelines. In short, the first things to do should be to treat this as a normal performance tuning exercise. Supply the required info and then the solution may be simpler than you think, possibly a simple rewrite of the query behind the view or maybe a new index, but until the info is supplied its impossible to say.
    Regards
    Andre

  • Tabular Form with Popup List Error

    hi,
    am using javascript to display Department Name when Deptno is changed in the Popup List
    am getting message from Popup Item (DEPTNO) (Htlm Form Element Attributes -> onchange="getDname(this); ")
    but am not getting message from popup Item in the Tabular Form ,
    am calling same javascript funtion in both the Popup Item(Column Attributes/Element Attributes->onchange="getDname(this); ")
    but am getting message from LOV item in the tabular form, am calling same function (Column Attributes/Element Attributes->onchange="getDname(this); ")
    u can check from the following URL:-
    http://apex.oracle.com/pls/apex/f?p=17935:12
    Username/Password : test/test
    Is there an setting i need to change in Popup Item in Tabular Form?

    Still nobody knows what the bug in Tabular Form
    CAN ANY ONE HELP ME ?

  • Tabular Form Read Only Date Picker

    Hello,
    I have two or three Items with date pickers and do not want to implement
    this code because it will be too many buttons on my form. I need to clear one item
    at a time when the datepicker is readonly but, in a tabular form.
    function f_clear_items()
        {$x('P1_ITEMA').value = ''};
        {$x('P1_ITEMB').value = ''};
        }Then once I create a url button and pass this function I can clear the datepicker's. But, I
    was wondering is there a cleaner way to this.
    I have other items on the page that are named the same but, in different tables. I only want
    to clear each date picker item at a time. This code works fine for a regular form.
    -Element Post Element Text for the Item to Clear
    a href="javascript:setValue('P1_ITEMA','');">Clear Date</aThere is a thread named 'How to clear a read only page Item...?' that states how this code works but, does not
    work for a tabular form in a Master Detail page. There is a link on side the Date Picker to clear item specified but, in a tabular form Item, there is no Element tab, any ideas on how to clear a readonly date picker item using a tabular form
    and not using a button for each item, thanks in advance. I am using Application Express 3.2.0.00.27.

    Dan,
    I totally understand your point of view. So, this tabular form aspect was not tested once the Clear Date link was discovered to clear a Read Only date field. Yes, using a button to clear a date is great but, I do not want to clear every date or specified item with the click of one button for this application. It is very useful but, not for my needs at the moment.
    Basically, if a date is selected and it needs to be cleared out you can just delete the value. But, if the date is readonly you can not clear/delete the date value unless you have the Clearing functionality for a particular item using the datepicker. It may not be worth the trouble Dan like you state by adding this extra code to the calender. If an invalid date is entered an error will appear anyway.
    Thanks alot Dan for expanding my mind and showing me some JQuery and providing me with this link to do some further research if needed, thanks again.

  • Custom popup from tabular form

    Hi,
    I would like to create a custom popup in a tabular form.
    The standard popup doesn't realy satisfy my needs.
    I followed the "How to" to create a custom popup, so that method is known. And this is working for a part.
    I managed to alter the tabular form so that it calls the Javascript to get the popup window by entering :
    <INPUT TYPE="TEXT" VALUE="#PROJ_ID#"> Click for LOV
    in the HTML Expression of the column format section.
    So the popup window is opened correctly, but the problem is how to return the selected value to the text item in the tabular form.
    Returning a value to a normal text item is no problem, but it is to return it to a cell in an tabular form.
    I tried to enter the following in the Passback Javascript:
    opener.document.getElementById("F04").value = passVal2;
    But this doesn't work correct and also is not flexible since F04 is the cell for only that row.
    So the question is: How can I write my Javascripts Passback function so that it returns the passVal2 value to the right cell of the tabular form?
    Any ideas?
    Regards Guido

    Nobody has ever done such thing?
    Isn't there a way to address a specific cell in a tabular form?
    Maybe then I have to look for another solution:
    What I would like is, when selecting something from the popup (in the tabular form) a second column (The description column)has to be filled in with a value looked up from the selected popup value. This is just a default value,this "Description" field must be a text field so that users can change the description before "saving" the record to the table.
    So anybody has an idea how this can be implemented?
    Thanks for your help in advance!
    Guido

  • Detail tabular form

    db11gxe , apex 4.0 , firefox 24 ,
    i have a master form and a detail tabular form in a page ,
    the master is based on table "Patients" , and the detail is based on "Patient_tests" ,
    i insert the details of the patients in the master , and the tests in the detail tabular form
    what i want is :
    create a tabular item beside the tabular form to view the "Price" of each test inserted in the "test"column of the "Patient_tests" tabular form , but i do not know how .
    the price is existed in a table called "Tests" which has the tests details .
    how to do this task ?
    thanks in advance

    Newbi_egy
    What I have done.
    I made a copy of your page so you can see te difference.
    Part1 add  the price column to the tabular form
    Go to the report attributes of the tabular form.
    Under tasks click "Add Derived Column"
    Go to the column attributes of the derived columns
    Column Formating > HTML Expression =>
    <span id="PRICE_#ROWNUM#" name="PRICE">#DERIVED$01#</span>
    This will give you easier access to the price on the page.
    Part 2 the definition of the dynamic action
    Event change
    Selection Type  jQuery selector
    jQuery Selector [name="f04"]
    Action  Execute Javascript Code
    The javascript code
    /*Declare the variable being used*/
    var row, priceElement, testElement,price,getPriceAJAX,price;
    /*Get the jQuery object of the DOM element that triggered the dynamic action.*/
    testElement = apex.jQuery('#'+this.triggeringElement.id);
    /*Get the row in which the triggering element is located*/
    row = testElement.closest('tr');
    /*Travers back to the element that holds the price*/
    priceElement = row.find('[name="PRICE"]');
    /*Create the object that is going to get the price from an ondemand proces*/
    getPriceAJAX  = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=get price',$v('pFlowStepId'));
    /*Add the value of the triggering element this value will be submitted and set to apex_application.g_x01*/
    getPriceAJAX.addParam('x01',$v(this.triggeringElement.id));
    /*Run the dynamic action and get the price*/
    price = getPriceAJAX.get();
    /*Set the price to the price element the pice element is a span so set the text*/ 
    priceElement.text(price);
    Explation of the parameters of  htmldb_Get
    object Object where the output variable could be set to but we are not using it.
    flow – Flow_id this is the application id. In javascript available through $v('pFlowId')
    req –  The request for an ondemand process is this 'APPLICATION_PROCESS= process name' The name of the ondemand process is case sensitive.
    page – The page id In javascript available through $v('pFlowStepId')
    Part 3 the ondemand process.
    Create a pl/sql process that calculates the price.
    apex_application.g_x01 will hold the name of the test.
    use sys.htp.prn to print the price so it will returned by the htmldb_Get.get function.
    Sorry but I can't be more specific on how to calculated the price. I was expecting the price to be an attribute of the test but it isn't a column in the test table so I have no idea how to calculated the price.
    Nicolette
    Edited the javascript to correct the bug mentioned by newbi_egy in the tread Sending many parameters through the column link. Now it works for newly added rows too. Beware that priceElement.text(price);  only works when the pice is span or div element not an input element then .val() should be used.
    Nicolette

  • Tabular Form lists - Beginner

    Hi,
    Sorry in advance for my silly question... im just starting.
    I have a list of Items in a tabular form but when I try to create a computation it doesn't display the list of items.
    I was wondering why? or how i could get them to show up as page items?
    Thanks

    Sorry,
    Im just following a tutorial,
    Ive created the form with the following query:
    select
    "EMPNO",
    "EMPNO" EMPNO_DISPLAY,
    "ENAME",
    "JOB",
    "MGR",
    "HIREDATE",
    "SAL",
    "COMM",
    "DEPTNO"
    from "#OWNER#"."EMP"im trying to calculate the bonus for employers using this :
    declare
      l_comm number;
    begin
      if :P5_DEPTNO = 30
      then
        l_comm := :P5_SAL * 1.10;
      else
        l_comm := :P5_SAL * 1.05;
      end if;
      return l_comm;
    end;where the department number determines whether the employee is part of the sales team as they get 10% compared to all other who get 5%

Maybe you are looking for

  • I have a problem with the icon in the menu bar MacBooster Beta 3 I can not delete

    I have a problem with the icon in the menu bar MacBooster Beta 3 I can not delete www.advancedmaccare.com and installed and uninstalled the program and past cleanApp or ccleaner programs and nothing works <Link Edited By Host>

  • Folder not showing up in Finder

    When I open Finder from the Dock and navigate to /Library, the folder InputManagers does not appear in the list window. However, when I search for InputManagers with Spotlight, Spotight finds the InputManagers folder and when I click on the folder in

  • Can't attach to message server

    Hi, I have just finished a NW EHP1 upgrade successfully, all the instances started ok from the startsap screen, I can login to R3, but I can't get http://host:5000 working, from dev_jcontrol I see errors like: "Can't attach to message server" connect

  • My X3 3rd Party Applications

    Hi Friends, I recently purchased Nokia X3 phone, it contains preloaded Gmail & Yahoo Mail applications, but  when I tried to install application from Gmail website for mobile & Ebuddy software I'm not able to access application even tried from Nokia

  • Basic questions on Enterprise Services

    Hello, I have a few open questions on the topic for myself and hope that you can help me to answer them: 1) In my Systemlandscape I have several ECC 6.0 systems and a PI system. Now if I want to use a SAP standard webservice, let's say some of the cu