APEX 4.2 Radio Group NULL value behaves differently than on APEX 4.1.1

DB version: 11.2.0.3 Linux
APEX: 4.2
APEX listener 1.1.4 on tomcat6
Firefox 16.0.2

Values NULL Radio Group behave differently than on APEX 4.1.1.
4.2 creating radio group and selecting:
Display Null value = Yes
NULL, Display value = no value (or any string)
NULL Return Value = (leave blank, for the NULL value returned)

When the user selects that option 'No value', then APEX point value is set on "on", but on APEX 4.1, the element has the value NULL as expected.

When you look at the Web page source code, the reason seems to be that APEX does not generate an attribute value for the NULL value (if the browser returns the default "on"):
<input type="radio" id="P1_X_0" name="p_t01"  ><label for="P1_X_0">No value</label>

Hi Ilmar,

same thing here. The best solution I could come up with is to create a process to request again (before the calculation / validation)

BEGIN
  FOR x IN (
       SELECT *
       FROM (
         SELECT item_name
         FROM apex_application_page_items aapi
         WHERE aapi.application_id = :app_id
         AND aapi.page_id = :app_page_id
         AND LOWER (aapi.lov_display_null) = 'yes'
         AND aapi.display_as_code='NATIVE_RADIOGROUP'
         AND aapi.lov_definition IS NOT NULL
         AND aapi.lov_null_value IS NULL
         AND ROWNUM > 0
    ) x
          WHERE LOWER (v (x.item_name)) = 'on'
  ) LOOP
    apex_util.set_session_state (x.item_name, NULL);
  END LOOP;
END;

Jens

Tags: Database

Similar Questions

  • How to set group radio default null value option?

    I have a dynamic LOV that appears as a group of radio buttons. I want to display null values (Null display value set to 'All values') to use a custom search page. How to set the default to "all values"? I tried to use the value default '% null' area without success.

    O all values (value zero)
    O Option 1
    O Option 2
    Option 3

    Hello

    In order to ensure that "ALL" is selected, you must do a few things:

    1. on the definition of your radiogroup, set the following parameters:

    Display Null: No.
    Value null, display value: (leave empty)
    Value null, return value: (leave empty)

    2. then, update the list of parameter values to include a NULL value. Something like:

    SELECT ' ALL ' d, -1 r FROM DUAL
    UNION ALL
    SELECT DNAME d, DEPTNO r FROM DEPT ORDER BY 1
    

    (in this way, EVERYTHING becomes a part of the data). Note that in this example, I used-1 as "return value zero"-that's because I use a numeric field (DEPTNO). Change a string if you are using a field of VARCHAR2.

    3. create a new calculation of Page. It should run on the radiogroup element header before. The calculation would be a static assignment of the "return value zero" you set above - in my example, it is -1 the calculation should depend on the value of the element being null radiogroup. This, I found it, is the best way to make sure you get a default value before the page is loaded.

    I did all this on: [http://apex.oracle.com/pls/otn/f?p=33642:216]. My report SQL query is then:

    SELECT EMPNO, ENAME, DEPTNO
    FROM EMP
    WHERE :P216_DEPTNO = -1 OR DEPTNO = :P216_DEPTNO
    

    Andy

  • Display radio group-Format values

    Hi all

    I use the Application Express 4.2.3.

    I have a group of buttons with the LOV query as follows:

    SELECT option1 | » '|| details as display, option1 AS return FROM my_table

    'details' are a hardcoded text in the table "my_table" enriched in the entry screen and stored as html text field

    When viewing in the radio group, details field appears in the html code.

    for example:

    Apple < p > < em > < strong > red in color. < facilities > < you /i > < / p >

    But I need the information should appear in the text formatted only.

    Any suggestions?

    Thanks in advance!

    Kind regards

    Archana

    For this radio group set "Escape special characters" no in the Security section of the element definition.

  • Dynamic objects in CS5 behave differently than in CS4?

    I just upgraded to CS4 CS5, and I noticed, what is for me, a BIG change in the way work dynamic objects.

    Imagine this simplified hypothetical scenario...

    I create a new document in Illustrator, with two layers.

    On a layer would be a full 800 x 600 rectangle. On another layer, I would put a small circle of 50 x 50.

    The import thing here, is that the circle could be positioned in the upper left corner with respect to the rectangle.

    I would select the two objects, switch to Photoshop, create a new document to 800 x 600 and paste what I just copied in the document as a smart object.

    Photoshop would treat both Illustrator layers of course, as a single smart object and they would get stuck together, and they would look exactly how they did it in Illustrator - which is the circle that is positioned in the upper left corner of the rectangle.

    Now, I decide I want to hide the massive rectangle in my dynamic object, but I want to keep the circle exactly as it is now in the Photoshop document.

    So I simply double-click to edit the original Illustrator file, and then I hide the layer with the rectangle on him, save the file, close it and return to Photoshop.

    In CS4, the file would be updated to show the changes I had made, then the rectangle would disappear and only the circle would remain - and what is important, the circle would maintain its position. He would stay in the upper left corner of my Photoshop document (the rectangle still exists in the original Illustrator file, but the layer it's on is simply hidden).

    However, when I do the same exact process in CS5, when I update the smart object after the rectangle in Illustrator layer masking, the smart object seems to ignore the rectangle that is hidden in the file, and the solitary circle remaining gets totally offbeat in the center of the file Photoshop 800 x 600. So it is now no longer in the top left corner, where it was before.

    This causes me ENORMOUS problems, because I carefully positioned many many various objects in my Illustrator files which then is moved his place whenever I'm doing an adjustment!

    Is it possible to get CS5 to deal with dynamic objects in the same way that CS4 done in front of him?

    I heard about the Illustrator team. It seems that this behavior is the result of a change in how the framework encompassing is determined for communicating objects. I'll add a feature request for Illustrator, but in the meantime, the suggested solution is to change the opacity of the object to 0 rather than hide the object.

  • iOS10 live wallpaper behaves differently?

    Hi, I just got my new iPhone Plus 7 and it seems that the Live wallpaper behaves differently than in iOS9.

    Namely, in the old system (on an iPhone 6 more) by varying the pressure on the screen I can control precisely of the wallpaper Live playback speed and easily play to the front/rear.

    In iOS 10 (on the new iPhone 7 more) it seems that the reading speed of the Live wallpaper has no can be controlled by the pressure.

    Is this normal? Or do I use a screen may be defective? Thank you!

    Same here on iOS iPhone 7 10.0.1

  • Alter the State of Session? -Apex form publishes text with null value

    Recently I discovered a problem with our Apex facility in which all selected as source for a text field value will eventually be displayed as a null value in the database.
    We run APEX version 3.2 in an Oracle 10.2.0.4 database using Oracle HTTP Server from 10 g companion disc.

    At first glance, everything seems to work as expected; I created a simple table called "oracle_sr" with 2 columns, as both not null:

    SQL > desc capacity.oracle_sr
    Name Null? Type
    ORACLE_SR_ID NOT NULL NUMBER
    TIMESTAMP NOT NULL DATE

    In APEX, the form wizard has been used to create a form on this table.
    After execution of the pages and you enter a value for the timestamp field, I can create folders without problem.

    The question arises when I choose a source for the timestamp field value.
    All the source options causes the same error (including a static value) so I'll focus on the SQL query to the source as:

    Select sysdate double;

    This should replace the date system in the area of text timestamp when the page is executed.
    As expected, the value appears in the text box, but when I submit the form to create the folder I get the error:

    ORA-01400: cannot insert NULL into ('ABILITY'. "" "" ORACLE_SR '. "" TIMESTAMP")

    I have worked with APEX for quite awhile and have successfully used this technique in many applications but just to begin to see this error in recent days. What's particularly odd about this message is by default postings "not null" created by the form wizard sees timestamp class as having a value. Session state information included below reports a value yet the database is to launch the ORA-01400.

    Someone has a similar problem? I have spent a good amount of time to try looking for this problem but can't seem to find any similar messages.

    I have included the release of my test page, debugging from what I see, it seems to be a value associated with the filed timestamp:

    0.00: a C C E P t: request = "CRΘER."
    0.00: metadata: go look up the definition and application shortcuts
    0.00: NLS: wwv_flow.g_flow_language_derived_from = FLOW_PRIMARY_LANGUAGE: wwv_flow.g_browser_language = en - us
    0.00: alter session set nls_language = "AMERICAN."
    0.00: alter session set nls_territory = 'AMERICA '.
    0.00: NLS: CSV charset = WE8MSWIN1252
    0.00:... "NLS: decimal separator Set =". »
    0.00:... NLS: Set NLS Group separator = ",".
    0.00:... NLS: Date Format Set = "DD-MON-RR.
    0.01:... Setting session time_zone in-06: 00
    0.01: setting NLS_DATE_FORMAT application date format: DD-MON-RR
    0.01:... NLS: Date Format Set = "DD-MON-RR.
    0.01: fetch database session state
    0.01:... Check the owner of the 2303701116904676 session
    0.01: setting NLS_DATE_FORMAT application date format: DD-MON-RR
    0.02:... NLS: Date Format Set = "DD-MON-RR.
    0.02:... Check for expiration of the session:
    0.02:... Metadata: Page Fetch, calculation, process and branch
    0.02: session: extract information from session header
    0.02:... Metadata: Retrieve the attributes of the page for application 109, page 50
    0.02:... Validate page affinity point.
    0.02:... Check off the items hidden_protected.
    0.03:... Check authorization security systems
    0.03: session state: Save elements of form and p_arg_values
    0.03: *... Session state: you save newValue of the object "P50_ORACLE_SR_ID" = "" "escape_on_input ="N"* 0.03: *..." " Session state: you save the object "P50_TIMESTAMP" = newValue ' 26 May 09 "" escape_on_input = "N" * ""»
    0.03:... Session state: Save "P0_CURRENT_PERSONNEL_ID" - registration of same value: "1."
    0.03:... Session state: Save "P0_OFFSET" - registration of same value: "0".
    0.03:... Session state: Save "P0_ACTIVE_WEEK" - registration of same value: "24 May 09".
    0.03: point of treatment: ON_SUBMIT_BEFORE_COMPUTATION
    0.03: branch point: BEFORE_COMPUTATION
    0.03: point of calculation: AFTER_SUBMIT
    0.03: tabs: make the connection for the tab queries
    0.03: branch point: BEFORE_VALIDATION
    0.03: perform validations:
    0.03:... Point Not Null Validation: P50_TIMESTAMP
    0.04: branch point: BEFORE_PROCESSING
    0.04: point of treatment: AFTER_SUBMIT
    0.04:... Process 'PK get': PLSQL (AFTER_SUBMIT) declare function get_pk return varchar2 is begin C1 in (select ORACLE_SR_SEQ.nextval double next_val) loop return c1.next_val; end loop; end; Start: P50_ORACLE_SR_ID: = get_pk; end;
    0.04:... * session state: saved point new value "P50_ORACLE_SR_ID" = "6."
    0.04:... Treat "Line of ORACLE_SR process": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER #:ORACLE_SR:P50_ORACLE_SR_ID:ORACLE_SR_ID | IUD
    0.04: see the error page...
    0.04: execute rollback...

    ORA-01400: cannot insert NULL into ('ABILITY'. "" "" ORACLE_SR '. "" TIMESTAMP")

    Cannot process the row in the ORACLE_SR table.
    Back by demand.

    Any thoughts would be appreciated.

    Thank you

    Justin.

    If you have changed the Source Type of an element of database column to something else, so he cannot participate in the automated line choreography Fetch/automatic line processing (DML). You must leave the Type of Source, as it was and change the default value of the element fill when the ARF process retrieves a null value for the column.

    Scott

  • Group by excluding null values

    I want to run a select using "group by". However, I would like the results to exclude all null values in my area. Like for example the code following, but excluding NULL values.

    Select the FIELD, count (FIELD)

    of MYDATA

    FIELD group;

    How can I do this?

    Hello

    Maybe I don't understand your complete problem, but what of this

    select FIELD, count(FIELD)
      from MYDATA
     where field is not null
     group by FIELD;
    

    concerning
    Kay

  • NULL value in Radio buttons 11.1.1.6.2 OBIEE

    Hello

    I use OBIEE 11.1.1.6.2. When we create fast with radio buttons, I was able to learn a button with a NULL value.
    Even if add a where condition clause to restrict the values Null his watch upward.

    I have the same problem with the check box.

    Is this a Bug in this version?

    Thank your.
    MBVAnand

    Hello

    Uncheck the option 'nullable' for this column in the physical layer and restart presentation services. It should disappear.

    Paul
    http://total-bi.com

  • Oracle Apex open modal dialog URL sent a Null value

    Salvation;

    I am trying to open a url in a modal dialog window, when you click an item in a report, defining a local variable with the primary key using ' $s ('P95_X9', #SEQ_ORDEM_SERVICO #); "return false", but in a javascript call to open the field of modal dialog P95_X9 previously set is sent with a null value.

    Below the call to URL:

    f? p = & APP_ID.:67: & APP_SESSION.:P67_NUMEROOS, P67_HIDENPROJETO: & P95_X9, & P95_PROJE. »

    & P95_X9. -> is sent with a null value.

    How to solve this problem?

    Thank you.

    981949 wrote:
    Salvation;

    I am trying to open a url in a modal dialog window, when you click an item in a report, defining a local variable with the primary key using ' $s ('P95_X9', #SEQ_ORDEM_SERVICO #); "return false", but in a javascript call to open the field of modal dialog P95_X9 previously set is sent with a null value.

    Below the call to URL:

    f? p = & APP_ID.: 67: & APP_SESSION. : P67_NUMEROOS, P67_HIDENPROJETO: & P95_X9, & P95_PROJE. »

    & P95_X9. -> is sent with a null value.

    How to solve this problem?

    Thank you.

    f? p = & APP_ID.: 67: & APP_SESSION. : P67_NUMEROOS, P67_HIDENPROJETO: & P95_X9, & P95_PROJE. »

    Replace above with

    var vUrl = 'f?p=&APP_ID.:67:&APP_SESSION.::::P67_NUMEROOS,P67_HIDENPROJETO:'+$v('P95_X9')+','+$v('P95_PROJE');
    

    now use the many vUrl as necessary!

  • Problem with the Radio Group

    Apex 4.2

    Theme 21

    Firefox

    I created my group of radio as follows

    My LOV only has values of Y and N, but on my page, the radio group is displayed as

    I expected to see all three in a line

    Gus

    fac586 wrote:

    Workarounds would be to include the option zero in the definition of LOV, or use a dynamic action of jQuery to move the first cell of the second row and delete the first.

    A circumvention of jQuery to change the layout of the radio group table is:

    $('fieldset#P3_X tbody tr:first-child td')
      .prependTo('fieldset#P3_X tbody tr:last-child')
      .parent()
      .prev()
      .remove();
    

    where P3_X is the name of the group element.

  • How to implement 'Null value replace' inside a RTF

    Hello

    This is my area:

    <? for-each - group:current-group(); / RP_CURRENCY? >

    <? If: RP_CURRENCY = "ABOVE"? >

    <? for-each - group:current-group(); / RPT_DESCRIPTION? >

    <? If: RPT_DESCRIPTION = 'debit card '? >

    <? sum (current - group () / RP_CI_EQUIVALENT_CALC)? >

    <? end if? >

    <? end for each group -? >

    <? end if? >

    <? end for each group -? >

    If this field does not always reach the sum, and then returns a NULL value. I need it to return 0 instead, but I think I'm this overload since RTF are not flexible.

    I tried to reach '+ 0' at the end and it works when its null, but if the number is not null, then it adds a 0 to the result rather than adding it.

    The XML code is attached.

    Please use this amount

    And the code below will be more optimized for performance and maintenance.

  • Bar chart stacked - strange behavior on display null values

    Hi all

    I'm trying to graph a county of the end dates of the activities over several years by months grouped by project.

    The problem I have is that there is a gap of 3 months where none of the activities that I am tracking complete. The default value for the stacked bar chart is to ignore the columns with no data (in my case it October-December 2015).

    To view these any given month I went to properties graphic and ticked the box "Include Null values. At this point, I get a very strange behavior. Once this option is selected, the legend explodes, showing each project in the database regardless if it meets my criteria for analysis.

    Has anyone another considering that happen? I'm doing something wrong?

    If it's important I'm in the OBI 11.1.1.7.150120

    Thank you for your help,

    Kevin Wolfe


    Hello

    You have a filter on the list of projects you want to see?

    Based on the way you describe your analysis I guess you don't have any what filter on the list of projects, but some of the filters on the other dimensions/attributes and these filters were limiting the list of projects.

    If this is the case then what you see is not a weird behavior, but everything you've asked your analysis.

    "Include null values" is not limited to the time dimension, it fits any dimension of your analysis, so no filter on projects = all projects.

  • apex5, a null value to the title of the tree made the developer toolbar disappear

    Hello

    With for example the query tree:

    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status, 
           level, 
           (CASE WHEN "ENAME" = 'KING' THEN null ELSE "ENAME" END) as title, -- null value is evil
           null as icon, 
           "EMPNO" as value, 
           null as tooltip, 
           null as link 
    from "#OWNER#"."EMP"
    start with "MGR" is null
    connect by prior "EMPNO" = "MGR"
    order siblings by "ENAME"
    

    The developer toolbar disappears when there is a value zero in the title. It's very very difficult to detect the problem.

    https://Apex.Oracle.com

    workspace: imagetest_ws

    user: guru

    Pass: meditation

    App: imgtst

    page: 12

    Rgrds Paavo

    Hi Paavo,

    Can I ask what you are trying to achieve by one of the labels by assigning null value?

    Null or an empty string are not useful as a tree node labels. Yet we could be as a minor bug that the area of the tree should be more robust in the JavaScript that it generates.

    Detect the problem (disappears from the dev toolbar) is not different from almost all JavaScript errors. Whenever any client-side behavior seems to not work, for example, no dev toolbar or a tree node does not expand, or a menu is not falling down, or something is not show or hide it should etc, the first thing to check is the browser console log. In this case, it shows the error ' SyntaxError: lack the name of the variable.

    Kind regards

    -John

  • Ignoring the Null value or 0 for an average of

    Hello

    I don't code in Java, so I'm having a problem with a form.

    We have a form of training that adds the total of the sides and then is supposed to understand on average.  My problem is that the provided average is based on the average function canned for the field, so it's the calculation of all the fields, including those who have either a Null value or a zero.  Can someone help me with this please?

    By the way.  If the N.O. is checked, the coast is n/a.

    There are also five sections that will total all the sides and will need an average of these totals.

    Thanks in advance.

    Tom

    FTO Form SCRN SHOT.png

    Screenshot taken: 15/03/2013-21:09

    Here's a generic function to calculate the average of a group of non-empty fields.

    This function takes two parameters: an array of domain names at average and a Boolean value specifying if the function should return an empty string if the result was zero.

    function averageFields (fields, blankIfZero) {}

    var total = 0;

    var n = 0;

    for (var i in fields) {}

    var f = this.getField (fields [i]);

    v var = f.valueAsString;

    If {(v)

    total += (+ v);

    n ++ ;

    }

    }

    var returnValue = (n == 0)? ' ': total/n;

    If (blankIfZero & returnValue = 0) returnValue = "";

    return returnValue;

    }

    You can set this function at the level of the document, and then call it as follows (starting a custom calculation script, in this case):

    Event.Value = averageFields (["field1", "Field2", "Field3"], false);

  • Keeping the description of the table on the evolution and not displaying only not NULL values

    I have the table grouped by MPV and then showing by Fund. I can't get the description section appears for the first Fund and then when he changes nothing only shows funds. When the year changes once again it appears so.
    ex.
    MPV: 2005: 0100AXXXXD
    but when changes in Fund 0100AXXXXD... nothing appears.

    Also, I wanted to not include any funds/years that have the value null. I had the following code in, but it does not prevent null values.
    <? If: SEC_ZERO_INDICATOR! = 0 ? >

    Thanks for any help.

    Need to see your xml data structure. Can you send me the xml and the RTF file to [email protected]? I'll take a look.

    Thank you
    Bipuser

Maybe you are looking for