By default, all selection list

I have a selection list that has
1 (Critical) 2 (Major) 3 (Significant Error) 4 (Minor) 5 (Suggestion) 6 (Enchancement)
as possible return values. I want to understand (All) of 0 by default, how can I work that my request? Currently, I have something like
and issue_severity.issue_severity_id = :CBO_P21_SEVERITY
in the WHERE clause, which works very well for values of 1 to 6 above. However, users would be able to raise questions of all severities (basically don't filter not not results based on gravity at all), and this is where I am stuck. I tried implementing a decoding as
 and decode(:CBO_P21_SEVERITY, 0, issue_severity.issue_severity_id in (1,2,3,4,5,6), issue_severity.issue_severity_id = :CBO_P21_SEVERITY)
or an instruction box as
case :CBO_P21_SEVERITY when 0 issue_severity.issue_severity_id in (1,2,3,4,5,6) else issue_severity.issue_severity_id = :CBO_P21_SEVERITY
but neither works. I thought to do some sort of calculation, but I don't know even where to start with this.

Hello

OK your column is the number that's why error. Try

and (
(issue_severity.issue_severity_id = DECODE(NVL(:CBO_P21_SEVERITY,'%'||'null%'),'%'||'null%',0,:CBO_P21_SEVERITY)
 OR (NVL(:CBO_P21_SEVERITY,'%'||'null%') = '%'||'null%')
)

BR, Jari

Tags: Database

Similar Questions

  • Pass default to select list

    Hi all


    Select City_name in ABC.

    I want to spend this Quary in default value of the select list.

    How can I do that.


    Thank you

    If you open any item definition, you can find a section called default. Choose the type of organ Function, PLSQL and add an anonymous PLSQL block that returns the value

    For example.

    DECLARE
      lc_value ;
    BEGIN
      Select  INTO  lc_value
      from  where <>;
    
      return lc_value;
    END;
  • By default, all the value in the selection list, so Select percent select list

    Hello

    I created the application process to extract the name of the State in the selection list based on the name of the city.
    Now I need if I don't have the name of the city and I select % in city name select list then any name should come in the select list.
    Now if I select % in select list and then he shows me empty in state name select list.

    How can I extract all the name of the State if I select % in select list.

    My application process
    BEGIN
      OWA_UTIL.mime_header ('text/xml', FALSE);
      HTP.p ('Cache-Control: no-cache');
      HTP.p ('Pragma: no-cache');
      OWA_UTIL.http_header_close;
    htp.prn('<data>');
       HTP.prn ('<select>');
       FOR c IN (select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND C.CODE =:SELECT5)
    LOOP
      HTP.prn ('<option value="' || c.CODE || '">' || c.NAME || '</option>');
       END LOOP;
    
       HTP.prn ('</select>');
    htp.prn('</data>');
    
    END;
    My city name Table

    CREATE TABLE  "CITY_MAS" 
       (     "CODE" VARCHAR2(3) NOT NULL ENABLE, 
         "NAME" VARCHAR2(1000) NOT NULL ENABLE, 
         "STATE_CODE" VARCHAR2(3) NOT NULL ENABLE 
            )
    My name status Table

    CREATE TABLE  "STATE_MAS" 
       (     "CODE" VARCHAR2(3) NOT NULL ENABLE, 
         "NAME" VARCHAR2(50) NOT NULL ENABLE 
         )
    /
    How can I do that.

    Thank you

    Published by: 805629 on January 25, 2011 02:06

    Change the cursor query loop to handle this

    select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND C.CODE =:SELECT5
    

    TO

    select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND
    ( C.CODE =:SELECT5 OR :SELECT5 = '%' )
    
  • Selection lists does not not on Android FF but work on default browser

    Hi, hoping for help

    Building an online game site that I'd like to work on the mobile and the PC without different versions.

    I find that the selection lists do not open on FF Android or iOS FF-mobile, even if they work fine in the default browser Android and chrome. Could someone help me debug this, or is this a problem in FF?

    Page URL: http://www.HoldingTheBall.com/clubroom.php?logon=1
    To test: load the URL, click on the image of the Guernsey on the middle right, and then try to use one of the selection lists.
    Features of the page: HTML4, CSS, JS, Jquery, Jquery ui, Jquery-touch-punch (by drag and drop on mobile)

    Any suggestions would be greatly appreciated!

    There is no such thing as Firefox iOS. There is Firefox at home, who would have bookmarks Firefox Sync and the history of your iOS device. All the browsers on iOS are based on the iOS stock Safari Webkit.

    That being said on Firefox for Android that I see the behavior you mention. Is it still a question if you disable the div dragging?

  • How to set the default value in the select list to cascaded

    Hello
    I use Denes Kubicek cascade example list of selection http://htmldb.oracle.com/pls/otn/f?p=31517:119

    And I want to give cascading the selection list with a default value. So, anyway, I use this application process:

    < pre >
    BEGIN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< select >");
    HTP.prn ("< option value ="' | 1 |) "" > ' | '- all employees-' | ' < / option > ");"

    FOR c IN (SELECT ename, empno
    WCP
    WHERE mgr =: cascading_selectlist_item_2)
    LOOP
    HTP.prn ("< option value ="' | c.empno |) '">' || c.Ename | ("< / option >");
    END LOOP;

    HTP.prn ("< / select >");
    END;
    < / pre >

    How can I select for example empno default 1000?
    Thanks in advance.
    Jacob

    Jakob,

    In this case, your default value is

    HTP.prn (')

    However, you can set the default value in the loop as you want. You just say that is your default - first, second, third...

    In the list select ajax there's no submit and no calculation of values then I assuem your default is the punch one you wan to display when a selection list has been changed?

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Would it be beneficial to allocate all its defaults for each listed default program programs or could that cause problems.

    Original title: default programs

    Would it be beneficial to allocate all its defaults for each listed default program programs or could that cause problems.

    I think it's depend on... for example, if you want to open all types of file of the video file to open in your video player favorite itz acceptable to choose program to "set this program as default"...

    But if you want certain types of video files to open with another player (with double clicking on file)... Choose the second option "Choose defaults for this program"

  • When a Blu - Ray burning are all selected by default different regions?

    When a Blu - Ray burning are all selected by default different regions?

    By selecting a region in Encore for Bluray has no effect, then Yes.

  • How do the default editing a selection list after a change in another list of selection is made (not in cascade LOV).

    Hello

    I searched for the answer for a while now, but could not find a solution to my problem. It's a rather trivial issue, but after dealing with more urgent problems, I stuck with it and I can't move forward I use Apex 4.2.1

    OK, lets start with a description.

    I have two selection lists. After making a choice in the first, I would like to than the second value to change. It is not cascade LOV case, however, at least I don't.

    Let me give you an example. Suppose we have a table with name and default to the occupation.

  • Name By default occupancy
    JohnDoctor
    MarkFirefighter
    GeorgeFirefighter
    TomConcierge

    End user first selects the name in the first list, then the occupation of another. It's perhaps not clearly in the example given, but the order of the questions.

    What I want is to force a change in the second value in the list after a choice in the first. So after the name is chosen, the occupation should switch to the default.

    The assignment is the most typical, but not the only one. So I want the end user to be able to change the occupation if necessary. Tom of sense is not to be janiotor, it can be whoever he wants this is why it is not cascade LOV problem.

    I tried with dynamic action - definition of value and then refresh. It works when the second selection list is the text field. I can't find a way to make it work with another selection list.

    Hope you can help.

    Concerning

    AEMs salvation,

    What I wanted with display and return value, you usually have a list of selection like this query:

    SELECT occupation d, occp_id r

    OF professions

    If your return value is an identifier. To use the text as return value is rather rare. Where my question, because obviously you must select the return value in your query, NOT the display value.

    So let me explain what is a set value. It takes the value of the server by using your query and AJAX in the background, then uses Javascript to set the value of the item in the browser.

    At this point your selection list still has the OLD value in the session. Then, you do a refresh and the element uses the old value, and it seems that nothing happens.

    So solution:

    -clear default values, you don't need those

    -get rid of refresh it in your DA

    Kind regards

    Joni

  • Select list-ALL

    Hi Experts,

    I use the apex 4.0 version
    I have 2 areas in my page.
    1 region html that displays select list (my_list), item (Go) button

    Selection list gets the values of LOV (TYPE)
    LOV query is like that...
    Select the item d, section demo_items r
    Union all
    Select 'ALL', 'ALL' double r d

    When I run the page selection list has values like this...
    Item1
    Item2
    Item3
    ALL THE


    2 region of graph
    Application of graph is like this...

    Select from demo_items where item =: P1_my_list

    Based on, select chart value list will generate.
    If only 1 value of select user select list and click on the GO button above query works fine.


    But my requirement is...

    If the 'ALL' user select from the list of selection, I need to spend 3 values(item1,item2,item3) to the top of the query.
    To select multi, I can use APEX_UTIL. Function STRING_TO_TABLE (item1, item2, item3 values lie in the demo_items table, but the value is not in the table demo_items)
    Please can someone help me out in this... How to select selection list value to query if the value selected in the list is "ALL".

    Thanks in advance...

    mn123 wrote:
    Hi joel,.
    Thanks for your reply...
    keyword 'ALL' cannot be applied to the column level, it seems...

    This isn't what I said at all - I was hoping you could see the problem for yourself, but alas...

    Well, if we were to express your where clause as it is currently based on Boolean logic, it might look like this:

     A.B.C+D 
    

    where

    A => supplier = :p2_supplier
    B => purchase_date Between To_date (Nvl (:p2_frmdt
                                                  ,To_char (Add_months (Sysdate
                                                                       ,-6)
                                                           ,'MM-DD-YY'))
                                             ,'MM-DD-YY')
                                 And To_date (Nvl (:p2_todt
                                                  ,To_char (Sysdate, 'MM-DD-YY'))
                                             ,'MM-DD-YY')
    C => itemname = :p2_listitem
    D => :p2_listitem = 'ALL'
    

    You can see that, in the cases to be true (i.e. p2_listitem = 'ALL') this setting overrides other parts of the where clause, because the GOLD [+] operator has a lower priority than AND [..] (see http://en.wikipedia.org/wiki/Logical_connective#Order_of_precedence for more details). That's why you return all the results, even if you provide a value for: p2_Supplier.

    The solution is to explicitly mark the predicates with parentheses:

     A.B.(C+D)
    

    And so your where clause now becomes:

    supplier = :p2_supplier
               And purchase_date Between To_date (Nvl (:p2_frmdt
                                                  ,To_char (Add_months (Sysdate
                                                                       ,-6)
                                                           ,'MM-DD-YY'))
                                             ,'MM-DD-YY')
                                 And To_date (Nvl (:p2_todt
                                                  ,To_char (Sysdate, 'MM-DD-YY'))
                                             ,'MM-DD-YY')
             And (itemname = :p2_listitem OR :p2_listitem = 'ALL')
    

    Do you see the difference between the two? In fact, if you re - examine original post of Alex and a later message by Gaetano, they off explicitly mark the relevant attributes that use GOLD operators within the parenthesis.

    Published by: Joel_C on November 26, 2011 14:56

  • LOV SQL: How to configure a selection list to get all the records

    Hello

    I use Oracle 10 g with APEX 2.0.

    Here's my question:

    I have a report and I use 3 text fields and a selection list to search in a join of two tables. The selection list is composed of a "list of values" and the parameter is used in the SQL sentence, has a numerical value.

    Table of results after the join operation looks like this:
    Field1 Field2 Field3 Field4 (assuming that the field3 is used in the select list).
    21 has this NL 1000
    21 bis as 1001-vb
    33 so 1012 ct

    What I want to do is put another pair of the value of the parameter in the select list to let the user choose the "ALL" items mentioned in the selection list, so that the search returns all records without taking this select list-field into account.

    Is it possible to do it with SQL and LOV? Do I need other functions? or configurations?

    Thanks in advance,

    Sedef

    Hi user630478!

    I always use a selection with submit list and the option to get a NULL value for such things. To solve your problem do the following:

    1.) create two named LOVs. As you have already done and another for all values.
    2.) to submit your selection list must be configured to display a NULL value e.g. it shows EVERYTHING with the value 0.
    3.) create two conditional branches that work with your selection list. Which show normal results, if a user has clicked on a normal value and the second should act only if a user has clicked on the WHOLE.
    4.) write a process triggering the LOVs in your selection from one to the other list. This process should only be fired if the second conditional branch has been activated.

    As I understand it that's maybe what you want to know.

    Yours sincerely

  • selection list dynamic default value

    Hello world

    I have a question about the dynamic selection lists.
    I have a report of a table that displays records. Each record has different versions of data. So when you click on a folder you get to another page where you get some information on this record and where you can select the version of this information (using a selection list).

    The selection list works very well and is set dynamically as follows:

    Select distinct b.SID display_value,
    return_value a.version_id
    cn_pl_version a.,
    cn_pl_std_peplanung b
    WHERE a.version_ID = b.version_id AND
    b.pe_id = "& P6_HELP_PRODET."
    a.version_id desc order


    My problem is that when I click on a folder that I always get the report filled with the oldest version of the current record, so I always choose the most recent version to the list manually. I always prefer to have the most recent version in the report.

    The report query is:

    Select
    ....
    ....

    (select sum (stunden) in cn_pl_std_peplanung t02
    where abt_id = '10'
    and t02.pe_id = t1.pe_id
    and t02.version_id = t1.version_id
    and t02.idee_id = t1.idee_id) stunden_ir;

    (select name from cn_pl_version u01
    where u01.version_id = t1.version_id) Version

    of cn_pl_std_peplanung t1, cn_pl_projektelemente z1, u1 cn_pl_version cn_pl_projektidee s1
    where t1.version_id = ' & P6_VERSION_WAHL. »
    and t1.pe_id = z1.pe_id
    and z1.pe_id ='& P6_HELP_PRODET. »

    Group of t1.pe_id, t1.version_id, t1.idee_id




    ' & P6_VERSION_WAHL.' is the element of the selection list
    ' & P6_HELP_PRODET.' is the ID of the current record

    I don't know if you understand my problem, my English is not the best...

    Thanks for any help!

    Patrick

    Hi Patrick,

    What value choose it show list, when you create a branch to the page? That's the good?
    If not, you must change your selection list, that the correct version is selected by default. You can set a 'default' value when you set the source of the element.

    Otherwise, you may configure a sample application to http://apex.oracle.com.

    Best regards
    Chrissy

  • cloning of a line with the default value in a select list

    Hello, how clone this selection list it will display the first value always when I add a line?

    This is my work space:

    workspace: RGWORK
    user: Tester
    Pass: test12
    Apllication name: TESTER 01
    page: 2

    Thanks in advance
    Joe

    Hello

    Then add in your cloneRow function

      $('[name="f01"]:last').val($('[name="f01"]:last option:first').val());
    

    See the page of your app 900

    Kind regards
    Jari

  • When selecting a "select list with redirect', all variables are losing value

    I have a form where a field (: P38_CUSTOMER_ID) receives its value from the parent report and it appears as: "display text (saves the State)).".

    I have 2 fields from selection list. The first (: P38_COUNTRY) is shown in the form "select list with redirect.
    As soon as I select the value (name of the country) in this list box, I lose the value: P38_CUSTOMER_ID.

    An idea on what I need to do to ' P38_CUSTOMER_ID to avoid losing its value?

    Thanks in advance.

    You are welcome. There are many options to choose from ;-)

    Be sure to note the answers as people only get points if you do.

    Thank you
    Dimitri

  • Printer selection list.

    I set up my HP OFFICEJET 6700 printer all-in-one for Fax operation. Now, I can only choose Fax-HP6700 as a choice of the printer. I am unable to choose HP Officejet 6700 (network) of my microsoft Word printer selection list, I use a laptop Toshiba Satellite with Windows7 32-bit operating system.

    Hello!

    Looks like your default printer is set for the fax version.

    Try these steps

    1. click on start

    2. Select the devices and equipment

    3. check under printers and see if you have several printers listed

    4 right-click right who is not say fax and a default

    Return to Word and see if the problem persists.

  • Development of the selection list after refresh using jQuery

    Hi all

    I have an Express Application 4.1.1.00.23 application that runs on a server, Oracle 10 g R2.

    In the application, I have a page (suppose it to be Page 10) that has a drop down (let's call it P10_PARENT). Next to the dropdown menu, I have a button that when clicked opens another window popup with page 11. This 11 page is used to create many of the points listed by the P10_PARENT drop down. When enter us the data P11 and click OK, we have a javascript to call a process application that creates the object in the database. Now select the P10_PARENT list is updated to reflect this new object. So after the application process is running, the JavaScript on the Page 11 calls a function in Page 10, using window.opener.functionName. This Page 10 function performs an apex to help refresh

    $('#P10_PARENT').trigger('apexrefresh');
    

    This function returns the Page 11, the page is closed using the Window.Close ().

    It works fine up until this point. Now, there are also by default the value selected in the select list of the newly created object. We made a function for it. But he calls immediately after the outbreak of the updating of the apex does not work because he probably did not updated the list since the back end still.

    Therefore link us an apexafterrefresh event to this element and making the default here. Like this:

    $('#P10_PARENT').bind('apexafterrefresh',function(){
      setdefault('P10_PARENT',newCreatedObjVal);
      alert('Refresh completed!');
    });
    

    But this event does not seem to be triggered. I've tested in IE and Chrome. In Chrome, it started once, but never after that.

    The relevant code on page 10 looks like this. The refreshBusList function is called Page 11 with the value of the newly created object.

    function refreshBusList(pDefault)
    {
      newCreatedObjVal = pDefault;
       $('#P10_PARENT').trigger('apexrefresh');
    }
    
    $('#P10_PARENT').bind('apexafterrefresh',function(){
      setdefault('P10_PARENT',newCreatedObjVal);
      alert('Refresh completed!');
    });
    

    I would like to know what we're doing wrong. Is it still the right way to do it? I can't use dynamic actions here because the logic of javascript page is too complicated be properly implemented using the declarative logic like DAs (we tried once and had to leave after a week. has become a nightmare to manage).

    Any help would be much appreciated!

    Thank you!!

    Aalami

    What does setDefault? Have you tested this feature by running it from the console? It doesn't have the required behavior?

    Can what newCreatedObjVal value contain? What is an object? A string?

    Are you sure that the selection list is updated?

    I would also like to rewrite your refresh logic. On the one hand, you declare a variable of global scope: horrible! There is no need of it. You can also control refreshing after a little better by simply acting on it once.

    function refreshBusList(pDefault)
    {
      // not really necessary. But use "var" to declare scoped variables!
      var newCreatedObjVal = pDefault;
    
      // bind a one time afterrefresh event handler
      // then, trigger the refresh
      $('#P10_PARENT')
      .one('apexafterrefresh',function(){
        setdefault('P10_PARENT',newCreatedObjVal);
        alert('Refresh completed!');
      })
      .trigger('apexrefresh');
    }
    

Maybe you are looking for