List of selection with zero value Submit reset

Hello
I have two list of selection with new submission namely A and B, both are dynamically filled with SQL query. The 'B' selection list is populated based on the value selected by the user from the list "A".
The problem comes when the user has selected a value from list "B" and by changing the value of 'A', the current value of the 'B' list indicates the value selected previously.

I'm new to APEX would be grateful if you could tell me How to reset the value of 'B' list when 'A' is selected.

Thank you
Spengler.

Your list for ITEM B should allow a null value and the only other thing is to have a conditional process that fires when the request is POINT A. This process must assign POINT B null.

Tags: Database

Similar Questions

  • I have a list of selection with the value yes and no

    I am 10 select list with the value yes or no

    I need to launch a dynamic action, and so I have a variable that indicates the number of selection selected list which has been chosen as Yes or no...

    How can I realize this is apex 4.2 db 11g...

    Thank you

    Published by: zycoz100 on March 4, 2013 12:05

    Brute force method:

    Dynamic Action using a PL/SQL block with something like:

    count := 0;
    Begin
    If :P1_Select_List_1 = 'yes'
      count := count + 1;
    End If;
    If :P1_Select_List_2 = 'yes'
      count := count + 1;
    End If;
    If :P1_Select_List_3 = 'yes'
      count := count + 1;
    End If;
    . . .
    End; 
    

    ???
    Howard

  • I need a box multi select drop-down list or list of selection with image or icon faclitliy

    Hello

    I tried to find a plugin or a jquery plugin that allows to perform the task of

    have a list of selection with images and there should be a facility such as multi select.

    How this can be accomplished. One have they implemented it in any of their application

    Any information will be greatly appreciated.

    Thank you

    pauljohny100 wrote:

    Hello

    I tried to find a plugin or a jquery plugin that allows to perform the task of

    have a list of selection with images and there should be a facility such as multi select.

    How this can be accomplished. One have they implemented it in any of their application

    Any information will be greatly appreciated.

    When ask questions user interface-related still State (at least) the full version of APEX, the theme and the version of browser compatibility / required.

    See the plugin jQuery Select2 , for which there is a plug in APEX .

    Pre-plugin when we have implemented requirements like this using a model report, CSS and personal...

  • List of selection with redirection sets the values to null

    I saw another post with a similar issue. However, the answer given does not work for me.

    I have a "Site" text field whose value depends on a list of select 'customer '. I am able to set the value of "Site" based on the select list with redirect. However, other values on this page are reset to null.

    I saw an answer that says to change the display of selection list type to "select the list to submit." But this type of display requires a page that deals with the process is created. This solution did not help either.

    Any solution?

    If you follow this example, you will be able to set the status of the session without redirection / layout page:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:229

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

  • Failed to create a dynamic action ALERT to build a Select list when selecting a particular value.

    Hi everyone, this should be so easy, and yet I'm stuck.

    I have a form with a P110_VESSEL_ID element.   This article is a list of selection.   It is based on the query:

    Select distinct v.vessel_name, v.vessel_id

    of ships v, frequent_fishermen ff

    where ff.dea_permit_id =: G_PERMIT_ID and

    FF:vessel_id = v.vessel_id

    UNION

    Select v.vessel_name, v.vessel_id

    of apex_collections v, vessels

    where collection_name = "SUPVES_COLLECTION" and

    a.C002 = v.vessel_id

    If the user decides from the values in the selection list query, they can opt to SELECT all THE VALUES.  This SELECT all VALUES is a TEXT of ITEM POST on P110_VESSEL_ID.

    < a id = "popVessels" href = "#" > < font color = blue > select all < /a > ships

    It all works very well.

    The problem is that when the user selects a boat name = "UNKNOWN" and it is corresponding to the value of vessel_id, I want an ALERT to appear indicating that they should check that the boat is UNKNOWN and no one's any ship.

    I created a dynamic action

    event = change

    Select type = item

    Item = P110_VESSEL_ID

    Real ACtion #1 is the ALERT.

    Currently, I have no other logic, but can't even get this working.  All thoughts.   I also tried the SELECT TYPE = jQuery Selector = select [name = "P110_VESSEL_ID"], but that does not work either (although I am not sure if the value must be P110_VESSEL_ID or static VESSEL_ID name).

    Any help is appreciated.

    PS. the page is not submitted when the ship is changed.  There are other data that should be in this region and others and many validations run when submit to submit would not be an option.

    Thanks again,

    Karen

    Is (BOAT = UNKNOWN) a single value with a single vessel_id? If Yes and for example if the vessel_id is 99, then proceed as follows:

    Add an expression "JavaScript" in your dynamic action.

    In the Condition value, enter:

    this.triggeringElement.value == "99"
    

    -Jeff

    And I agree with Nicolette, there is something wrong with some other DA who is at the origin of the DAs after that does not work.

  • Switch poplist display of the list item selected for its value of list item

    Is it possible to change the display in a poplist of the list item to its corresponding list item value?

    For example, I have a list item is filled with a group of records. Name of the country (e.g., Canada) is the list item, and the country code (e.g. CA) is the value of a list item.

    I want users to be able to see the names of countries, when the list is expanded. However, once users choose and click on a country, the country code must be included in the display.

    I suppose that if it is possible to do at all, he would be using a trigger a times-news-point-instance, but I do not know where to go to from there. Please let me know if you need clarification or more information from me. I'd appreciate any help you can give me.

    With the help of Oracle Developer Suite 10 G
    Version of Forms - 9.0.4.3.0

    Hello
    Welcome to the forum,

    Just an idea. Why you do not keep the country with the description at the time code. I mean, it's like you say you query group will be like this...

    SELECT code, description
    FROM table_name;
    

    So, I mean just change this query to concatenate the code with description. for ex.

    SELECT code, code||' - '||description as description
    FROM table_name;
    

    It will show you the code and the name in the list. So, it will not trigger etc.

    -Clément

  • List of selection with redirection on APEX 4.0

    Hello
    I have already used the apex 3.2 a few years back and am now working on something using 4.0. I want to conditionally display a field in a form that is based on the option selected in the select list. Previously, I would have the condition set on the field to display so certain the selection was made on the selection list, and this list would be defined as a selection list with redirect, likely to view or remove the field from the screen. Now, it seems that select lis with redirect has been removed from the APEX 4.0 and replaced by LOVs cascading, which is not good that the conditional is a text field. Can someone tell me how to set up this feature?

    Thank you

    Mark

    Apex 4.0, you need to create an action show/hide dynamics, triggered when the selection list item is changed.

  • Replace the empty column with ZERO values

    Hi experts,

    I'm building a report to display the number of orders per channel / day / hour.

    Since a few days one or several channels may not all orders placed against them in which case my report shows empty values in the report.

    Ideally, I would have zero in these columns rather than an empty cell.

    Sample Qry: -.

    Select
    Channel,
    Count (order_num) County
    Of
    SALES_ORDER

    Pls help!


    Thanks in advance.

    Count always returns 0 if no line found or the actual number based on the found rows. You don't even have to NVL them. I think so
    the problem is in your report layout, in my opinion.

    You run query sqlplus, or Toad or sqldevloper and you can see for yourself that the count is 0.

    See you soon.
    VIN.

  • Select which type of list APEX 4 replaces the selection with redirection list in APEX3.1

    I have 3 selection lists. The first select list is filled with elements by default, independent of the other element values. The second list depends on the value chosen in the list of the first and the third list depends on the values selected in the list of the first and second.

    APEX 3.1 I did the first and the second list "Select list with redirection", because I don't want the page to be submitted, but I want only the values to set. This solution works very well.

    Now, I want to apply this solution in an APEX 4.0 page. The elements are all defined in a select list. I tried different settings-> Page Action options when the changed value. Redirecting to the page and URL redirection are not an option in this case.
    Submit the page and redirect and SetValue both entail the same problems: after choosing a value in Selectlist1 the other elements are reset, but selectlist2 is populated with the items I want. All elements of the page are reset after choosing a value in Selectlist2 and Selectlist2 (and selectlist3) are still empty.

    So my question is: what is the best option to choose when I want to fill the lists that depends on the other? Are there other solutions to use, and then select list with redirection and SetValue?

    Hello

    For dependent Select lists 4 APEX, LOV cascading is the way to go.

    On the second list, select under "List of values" define "Cascading LOV Parent éléments" =
    On the third first + second or third, only value according to your particular situation.

    And when the value modified the Page Action = None.

    Concerning

  • List/Menu, TextField &amp; amp; TextArea with initial values

    I have an html form that uses the intrusion via cfmail to send data to my email. On the form, there is some initial values I want to display empty if the values are the same as the initial values. How can I do this (or is it possible)?

    Example 1: List/Menu (initially selected):
    If the originally selected value = "Please indicate 1 2 3 Maj" then leave blank. Otherwise show some other value of the option that was selected.

    Form.htm
    < select name = "046 a" id = 046 'a' >
    < option value = "Please indicate 1 2 3 Maj" selected = "selected" > please indicate 1-2-3 SHIFT < / option > "
    < option value = "1st shift" > 1st shift < / option >
    < option value = "2nd quarter" > 2nd quarter < / option >
    < option value = "3rd quarter" > 3rd quarter < / option >
    < / select >

    CFMAIL.cfm
    #Form.046a # full time

    Example 2: TextField with the initial value:
    If the originally selected value = 'Please spΘcifier' then leave blank. It does not show any new text that was entered.

    Form.htm
    < input name = "003" type = "text" id = "003" onfocus = "this.value ="; "" " This.onfocus = null; ' value = 'Please spΘcifier' size = '35' / >

    CFMAIL.cfm
    Others. ...: #Form.003 #.

    Example 3: TextArea with initial value:
    If the originally selected value = "Work" then leave blank. It does not show any new text that was entered.

    Form.htm
    < name textarea = "107" cols = "44" lines "5" = class = "textHideScroll" id = "107" onfocus = "this.value ="; "" " This.onfocus = null; "> work < / textarea >

    CFMAIL.cfm
    Work carried out. ...: #Form.107 #.

    Thank you

    Jeff

    Quote:
    Posted by: emmim44
    You store data in db or not? If this isn't the case, every time when you submit the form it will be more to write the old value of form fields... You can store the value in a session variable and compare with the new value of form field... Hope it helps...

    Thanks, but I already had my question answered when I posted the following message title:
    «Question text box»

    I will mark this as the answer to prevent others to respond.

    Thanks again,

    Jeff

  • Impossible to delete previously selected items from the drop-down lists at the click of the button Reset on a page of the screen.

    Hello

    I'm unable to clear previously selected items from the drop-down lists at the click of the button Reset on a page of the screen. The code I did to clear the previous value when the click on the button Reset is as below.

    {} public void onReinitialize (ActionEvent actionEvent)

    System.out.println ("onReinitialize is called ::");

    UIComponent uiComp = actionEvent.getComponent ();

    If (uiComp is nothing)

    {

    otherwise we use the button that we linked to that bean

    uiComp = getButtonResetByBean ();

    _logger.info ("reset fields: buttonID =" + uiComp.getId ());

    }

    on the other

    {

    _logger.info ("reset fields: CompID =" + uiComp.getId ());

    }

    Pass the component inside the uniforms, UIXForm, UIXSubform, UIXRegion, UIXPopup, RichCarousel

    or RichPanelCollection that contains the components to reset

    getTextIDLOV () .setValue (null);

    ResetUtils.reset (uiComp);

    }

    ---

    Using this code Iam able to clear the entrance to the text box but can not clear previously selected items from the drop-down lists when the reset button is clicked

    Can anyone please help on this issue.

    It's simple, you can set GenerateIsNullClauseForBindVars = "false" in the viewCriteria who created in EmployeeView

    After doing that it will fill the list of employees only after the Department selection

    Again check the enclosed application

    Ashish

  • Select list failed at the first value

    APEX Version: 4.1.1.00.23

    Oracle database: 11g


    Question: The application updates the value selected in the list of selection (O/N) to the database, but at the front end, the selection list is set by default to display only the first value in the list. I think this is the data type of the field in the table attached to this select list is TANK (2). And change to VARCHAR2 (2), it worked fine. Now whichever option I choose in the selection list is updated and displayed on the front as well.


    I do not understand why is this to mess with (2) TANK. Someone at - it explain it please, I'd appreciate it really.


    Thank you

    Chrystelle

    never use CHAR() in your tables.

    TANK always touch your strings to the exact same length.

    In your case, you compare the value to the value of the list of the 'Y' table 'Y '.

    declare

    a tank (2): = 'Y ';

    b varchar2 (2): = 'Y ';

    Start

    dbms_output.put_line ('element A as a sign of ' | length (a)); -This will ALWAYS have a length of 2

    dbms_output.put_line ('Variable A as a sign of ' | length (b));

    end;

  • refresh the list of selection - keep value

    Hi all

    I'm having a problem where I don't have a solluion for. Maybe can someone help?

    The (Simplified) situation is as follows:
    There are 2 selection lists in my page:
    -one with articles (you see the name of the topic and the price). The source of this selection list is a query more ITEMS from collection.
    -one with countries (source is not important)

    When a user runs the page, the content of the selection with the items list is defined by a process that calls a procedure in a package to database; This package fills the collection of ARTICLES. So far so good. But when the user selects a country in the second, select list, the same procedure is called to update the ITEMS collection, because for some countries, the price is different. But how do I update the list of selection, while keeping the same selected article? When I run a dynamic action of refresh type, the value of the selection list is cleared. If I backup the value before updating the selection list and after refreshing, set the value of the selection list does not work or the other.

    I hope that the above is clear enough. Otherwise I'll set an example on apex.oracle.com.

    Thanks for your answer in advance!

    Edit: Version of the Apex is 4.2

    Edited by: tomvdduin, 3-dec-2012 0:16

    Hello

    The value of the P2_ARTICLES_BACKUP page element was not defined in the session state (as seen in the option 'session' in the developer toolbar).

    I changed the following:
    1. use of an action "Set the value" of the body of the function type pl/sql to update the value of P2_ARTICLES_BACKUP
    2 removed the last DA update the P2_ARTICLES value using javascript. It is not necessary. You had this code:

    $s('P2_ARTICLES',$v('P2_ARTICLES_BACKUP'));
    

    3. update the default value of P2_ARTICLES to & P2_ARTICLES_BACKUP.

    The changes described above solves your problem. Please test.

    Thank you
    Rohit

    Published by: jaouad khalifi on December 3, 2012 03:44

  • Place the missing documents in the list of records with a rank value

    Hi all

    I have this table:
    WITH taba AS (SELECT 99 AS id,
                         '2011-08-08' AS date_ini,
                         10 AS VALUE,
                         1 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 99 AS id,
                         '2011-09-08' AS date_ini,
                         11 AS VALUE,
                         2 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 99 AS id,
                         '2011-10-08' AS date_ini,
                         10 AS VALUE,
                         4 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 999 AS id,
                         '2011-08-08' AS date_ini,
                         10 AS VALUE,
                         1 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 999 AS id,
                         '2011-09-08' AS date_ini,
                         10 AS VALUE,
                         2 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 999 AS id,
                         '2011-10-08' AS date_ini,
                         10 AS VALUE,
                         3 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 9999 AS id,
                         '2011-08-08' AS date_ini,
                         10 AS VALUE,
                         2 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 9999 AS id,
                         '2011-09-08' AS date_ini,
                         15 AS VALUE,
                         3 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 9999 AS id,
                         '2011-10-08' AS date_ini,
                         10 AS VALUE,
                         4 AS RANK
                    FROM DUAL)
    SELECT *
      FROM taba
    And I need to return the same results but with the addition of records that have no rank. For new records the VALUE must always be zero (0) and the value of DATA_INI must have the same value as the order of the records immediately following. Just like that:
    99       2011-08-08     10     1
    99       2011-09-08     11     2
    *99       2011-10-08     0     3*
    99       2011-10-08     10     4
    999      2011-08-08     10     1
    999      2011-09-08     10     2
    999      2011-10-08     10     3
    *9999     2011-08-08     0     1*
    9999     2011-08-08     10     2
    9999     2011-09-08     15     3
    9999     2011-10-08     10     4
    I can do this using a loop procedure, but I want a filter query. ;)

    Thanks in advance.
    Filipe Almeida

    Hi, Felipe,.

    So, you want multiple copies of a few lines. In other words, if a value or rnk (RANK is not a column name right) is missing in a given id you want to with the next highest rnk and the same id line repeated 2 or maybe even several times. All copies will be identical, except that rnk will have the missing numbers, and the value will be 0 on all additional copies.

    A way to do that is to join your table (or something very similar to it, as in the example below) to a Meter of Table , which is a table (or a result set, in this example) counts 1, 2, 3,... up to however many copies may be required.

    WITH     got_rows_needed          AS
    (
         SELECT     id, date_ini, value, rnk
         ,     rnk - LAG (rnk, 1, 0) OVER ( PARTITION BY  id
                                                ORDER BY          rnk
                                )         AS rows_needed
         FROM    taba
    )
    ,     cntr               AS
    (
         SELECT     LEVEL - 1     AS n
         FROM     (
                   SELECT     MAX (rows_needed)     AS max_rows_needed
                   FROM     got_rows_needed
              )
         CONNECT BY     LEVEL <= max_rows_needed
    )
    SELECT    r.id
    ,       r.date_ini
    ,       CASE
              WHEN  c.n  = 0
              THEN  r.value
              ELSE  0
             END               AS value
    ,       r.rnk - c.n          AS rnk
    FROM       got_rows_needed  r
    JOIN       cntr             c     ON  c.n  < r.rows_needed
    ORDER BY  id
    ,            rnk
    ;
    

    By elsewhere, store date information in a VARCHAR2 column, such as date_ini, is a very bad idea. Use a DATE column.

    Published by: Frank Kulash, August 8, 2012 11:02

    RANK is a keyword from Oracle. (It is the name of a built-in function). If you specify your own columns of RANK, it will confuse people reading the code, and it can result in compiler errors, too.
    ID is also an Oracle keyword. To be sure, you can use another name, such as grp_id, instead of id.
    It is best not to name your own objects with any name of fArrondi in v$ reserrved_words.keyword.

  • Fetch value selection list to select the list using dynamic measurements

    Hello

    I have a select list 1 and select list 2

    as I chooses a 1 based on selected value select list option, select list 2 options screens.


    : Options P1_SELECT1

    DISPLAY RETURN VALUE OF VALUE
    D INTERIOR
    INTERNATIONAL I HAVE

    : P1_SELECT2 with dynamic statement options

    Select NAME, ID from PRODUCT_MAS
    where ADDL_FIELD1 =: P1_SELECT1

    can I do this task using dynamic measurements?
    If so how can I do this?

    You have even set a dynamic Action for this:
    Set as Select list and property 'Cascading LOV Parent article (s)' set of P2_SELECT2 to P1_SELECT1 and you're done.

Maybe you are looking for