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.

Tags: Database

Similar Questions

  • 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

  • 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.

  • Cannot display the column format in SQLPLUS.

    Hi all

    Why my sqlplus just displays # when I run sql > column group # format a20;

    SQL > column group # format a20;
    SQL > select group # log v$.

    GROUP #.
    ----------
    ##########
    ##########
    ##########
    ##########

    Help, please!
    Thank you!

    Welcome to the forums!

    Try:

    COLUMN group# FORMAT 9999
    

    You try to provide a column for a VARCHAR2 format, but the data type is NUMBER.

  • I can't formMail.php to recognize my simple Spry Radio Group button

    I don't know any PHP, but I have a form of dreamweaver which sends its information from a document called "formmail.php" and sent me the email.

    I was able to add text fields by duplicating the code text field in the formmail.php file and it works, BUT I don't know what code should be on the file to process the information of the radio button. The radio button group consists of 2 buttons 'Yes' and 'no '.

    This is an abridged version of "formmail.php.

    ______________________________________

    < body >

    <? PHP

    $name = addslashes($_POST['name']);

    $address = addslashes($_POST['address']);

    $email = addslashes($_POST['email']);

    $radioGroup1 = addslashes($_POST['arrangements']);

    $comments = addslashes($_POST['message']);

    You can specify which email you want your contact form to be emailed here

    $toemail = " " [email protected] "; "

    $subject = 'on the VFS site. "

    $headers = "MIME-Version: 1.0\n.

    ." From: \"".$name. » \ » < ". $email. "" > \n ".

    ." Content-type: text/html; charset = iso-8859-1\n ";

    $body = "name:". " $name. "" < br / > \n ".

    ." Address: ".." $address. "" < br / > \n ".

    ." E-mail: '. '. $email. "" < br / > \n ".

    ." Do you have made prior arrangements? : «. $radioGroup1. "" < br / > \n ".

    ." "Comments: < br > \n".

    . $comments;

    If (! ereg ("^ [a-zA-Z0-9_] + @[a-zA-Z0 - 9-] + \.")) [a-zA-Z0 - 9-------.] + $"(, $email))"

    {

    echo "is not a valid email address.  "Please return to the.

    . "previous page and try again. ';

    "exit";

    }

    mail ($toemail, $subject, $body, $headers);

    echo "thank you for your comments";

    ? >

    < / body >

    < / html >

    _________________________________________________________________

    And that's what the code for my Radio Spry buttons band button looks.

    _________________________________________________________________

    < id p = 'settings' > < span id = "spryradio1" >

    < label >

    < input type = "radio" name = "RadioGroup1" value = "Yes" id = "RadioGroup1_0" >

    Yes < / label >

    < label >

    < input type = "radio" name = "RadioGroup1" value = "" id = "RadioGroup1_1" >

    Not < / label >

    < br >

    < br >

    </span > < / p >

    Please help - I am lost!

    Form post method gets a variable by name and sends this value to your processor.  You called $_POST ['attached'] which is the name of the container

    tag and not the Group of radio buttons.  So change:

    $radioGroup1 = addslashes($_POST['arrangements']);

    TO

    $radioGroup1 = addslashes($_POST['RadioGroup1']);

    This changes the

    arrangements for the RadioGroup1 which is the name you gave the Group of radio buttons.

  • Radio buttons with values and how to calculate.

    Hello

    Im am pretty new to building Web site and in particular with script, so please be gentle ;) .
    For the moment, I work with Dreamweaver CS4.

    I create a formula of the "ecological footprint" with several questions of the Radiobutton.
    These questions must have a certain value attached to each possible answer and then when I press 'submit' to end these values must be added together and display the score. But how?
    Example:

    Question 1
    How will you work:

    * Market/bicycle value: 0
    * Value train/bus: 5
    * Car                                value: 7

    Question 2
    How do you travel by train/bus.

    * Never of value: 0
    * A few times a month value: 2
    * A few times a week value: 5
    * Daily value: 10

    * Submit * = calculate and display values. For example, Question 1, I had a value of 5 and 2 10 issue. So pressing submit should then dispay ' 15'.

    That's what I have so far, the questions and answers are in Dutch.

    Hoe ga jij naar school?</strong></p>
          <form id="form1" name="form1" method="post" action="">
            <p>
              <label>
    <input name="question1" type="radio" id="question1_0" value="0" />
    Lopend/Met de fiets</label>
              <br />
              <label>
                <input type="radio" name="question1" value="5" id="question1_1" />
                Met het openbaar vervoer</label>
              <br />
              <label>
                <input type="radio" name="question1" value="10" id="question1_2" />
                Met de auto</label>
              <br />
            </p>
        </form>      
        <p><strong>Hoe vaak reis je met het openbaar vervoer?</strong></p>
        <form id="form2" name="form2" method="post" action="">
          <p>
            <label>
              <input type="radio" name="question2" value="0" id="question2_0" />
              Nooit</label>
            <br />
            <label>
              <input type="radio" name="question2" value="2" id="question2_1" />
              Slechts een paar keer per maan</label>
            <br />
            <label>
              <input type="radio" name="question2" value="5" id="question2_2" />
              Wekelijks</label>
            <br />
            <label>
              <input type="radio" name="question2" value="10" id="question2_3" />
              Dagelijks</label>
            <br />
          </p>
          </form>    
        <form id="form3" name="form3" method="post" action="">
              <label>
                <input type="submit" name="Bekijk de uitslag!" id="Bekijk de uitslag!" value="Bekijk de uitslag!" />
              </label>
            
    


    PS: I have an addon for Dreamweaver called "Form Calculator", created by KaosWeaver, but I don't really know how it works...

    Sorry about that. I was looking at him in Live View mode. To stop the value of disappear, change the onsubmit for this event handler:

    onsubmit="getScore(this);return false"
    
  • Set the line report radio group when it is clicked on a link column.

    Can Hi anyone help?

    I have a sql report with a group on the left radio record selector, it is used on click to fill out some additional fields in the page. I also have a column of link on the right side of the report that is used to display another page in popup. What I want is to synchronize the group radio selector when the link is clicked (i.e. Select and click on the current online radio group when the link column is selected).

    Page layout

    RG1 link pencil icon line details
    RG2 link pencil icon line details
    RG3 link pencil icon line details

    additional field 1
    additional field 2

    Report of the attributes - link URL column.
    JAVASCRIPT: modalWin2 ('f? p = & APP_ID.: #SHOW #: & SESSION.: SAVE_STATUS: no);



    I guess I can call another function of javascript in the URL from the link above, and somehow, I get the number of the line of the selected link. I think that if I can get that I can use the code below, where n is the row number of the selected link.

    JavaScript: -.

    var l_check = $x_FormItems ($x('EVENT_HIST1'), 'radio');
    checked l_check [n] = true;
    var l_click is l_check [n] ravishing ();.

    Thanks, Pete

    Pete:

    One way to resolve your condition is as below

    Modify the report query to be something similar to

    select
    apex_item.radiogroup(40,empno,null,null,'id=rg_'||rownum) rad,
    ename,
    '' link_column
    from emp
    

    And the JS function fx as

    function fx(emp,rgId) {
    $x(rgId).checked=true;     // checks radio on this row
    modalWin2('f?p=&APP_ID.:' + emp + ':&SESSION.::::SAVE_STATUS:N'); // popup page call
    }
    

    CITY

  • How Radio group change of field of text using JavaScript?

    I am trying to let radio group changes the value of a text field by adding a prefix 't' or remove it from the text written in a database field.
    P23_TYPE is the Group of radio buttons.
    P_23_PROJECT_ID is the text field I want to change.

    I write this JavaScript function in the HTML header

    function set_project_id
    *{*
    String proj_id = $x('P23_PROJECT_ID').value;

    If ($x('P23_TYPE_0').checked)
    *{*
    If (proj_id [0] == 't')
    *{*
    PROJ_ID = proj_id.substring (1);
    * $x('P23_PROJECT_ID') .value = proj_id; *
    *}*
    *};*

    If ($x('P23_TYPE_1').checked)
    *{*
    If (proj_id [0]! = 't')
    *{*
    * $x('P23_PROJECT_ID') .value = ' you .concat (proj_id); *
    *}*
    *}*
    *}*

    and I add the following to the HTML form element attributes

    onclick = "set_project_id ()" "

    but when I run the page, it does nothing.
    What Miss me to achieve this change in dynamic text when I select a group of radio element?

    Hello

    I found still some bugs I know to make mistakes

    As I tried to say, use Firefox and Firebug. Firebug console, you can clearly see the javascript errors.

    You can try this code I've tried difficult

    
    

    BR, Jari

  • Is it possible to display the dynamic value in the ToolTip? I tried: this.assist.toolTip.value = this.rawValue; for a text field 'property MouseEnter', but it does not display the current raw value. It displays a previous raw value of the field... Guilty

    Is it possible to display the dynamic value in the ToolTip?

    I tried:

    this.assist.toolTip.value = this.rawValue; for a text field on 'ownership' MouseEnter

    but it does not display the current raw value. It displays a previous raw value of the field...

    I wrote 'YYYY', but is not displaying on the first mouseEnter event

    Capture_1.JPG

    When I show event mouseEnter for the 2nd time it gives good value.

    Capture_2.JPG

    Now, I changed the "BBBB" value but the first mouseEnter event it displays the value previous i.e. "YYYY."

    Capture_3.JPG

    I found the solution. I wrote the script ("this.assist.toolTip.value = this.rawValue ;") on 'property MouseEnter' but the need to write the script to the "Output" of the field event. ")

    Thank you.

  • How to display only the total value in the upper part of the chart stacked

    Hi all

    I need to display only the total value at the top of the stacked chart in the report of obiee 11g. Can someone help me on this please.

    Thank you

    Hello

    Will be a little different approach suit you like the below a? Total for a day is displayed next to the attribute of the day. Here, the "daily amount" is also an attribute instead of a measure.

  • LOV query is not valid, a display and a return value is necessary, column n

    Hello

    I AM FACING
    LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, 
    the first FROM clause in the SQL statement must not belong to the in-line query.
    with two table, I create lov

    the tables are
    CREATE TABLE  "CRM_SALES_DEPARTMENT" 
       (     "DEPT_ID" NUMBER NOT NULL ENABLE, 
         "CUSTOMER_ID" NUMBER NOT NULL ENABLE, 
         "DEPT_CODE" VARCHAR2(50) NOT NULL ENABLE, 
          CONSTRAINT "CRM_SALES_DEPARTMENT_PK" PRIMARY KEY ("DEPT_ID") ENABLE
       )
    CREATE TABLE  "CRM_SALES_CUSTOMERS" 
       (     "ID" NUMBER, 
         "CUSTOMER_NAME" VARCHAR2(255), 
         "CUSTOMER_ADDRESS1" VARCHAR2(255), 
          PRIMARY KEY ("ID") ENABLE
       )
    I USE QUARY
    select (SELECT CS.CUSTOMER_NAME FROM CRM_SALES_CUSTOMERS CS WHERE CS.ID=SD.CUSTOMER_ID) AD D, SD.CUSTOMER_ID R  
    from CRM_SALES_DEPARTMENT SD where SD.DEPT_CODE=:P16_MARKET 
    But who show me LOV query is not valid, a display and a return value is needed, the column names must be
    different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online.

    How to solve this problem.

    Thank you

    Published by: 805629 on January 10, 2011 03:46

    Published by: 805629 on January 10, 2011 03:58

    Published by: 805629 on January 10, 2011 03:59

    ¿AD?
    Select (SELECTION of CS. CLIENT_NAME CS CRM_SALES_CUSTOMERS WHERE CS.ID = SD. CUSTOMER_ID) AD D, SD. CUSTOMER_ID R
    CRM_SALES_DEPARTMENT SD where SD DEPT_CODE =: P16_MARKET

    But the correct way is a join outher

    select CS.CUSTOMER_NAME D, SD.CUSTOMER_ID R
    from CRM_SALES_CUSTOMERS CS,
            CRM_SALES_DEPARTMENT SD
    where SD.DEPT_CODE=:P16_MARKET
    And CS.ID(+)=SD.CUSTOMER_ID
    
  • How to group these values by month?

    Hello

    I have a nice SQL statement that returns from day to day, the values of a device.
    WITH S1 AS
      (SELECT DATE1,
        ROUND(AVG(VALEUR),2) Debit
         FROM EVV_E032
        WHERE DATE1 BETWEEN TO_DATE('01012006000000', 'DDMMYYYYHH24MISS') AND TO_DATE('31122006235959', 'DDMMYYYYHH24MISS')
      AND CLEF_VAR =
        (SELECT CLEF_VAR FROM SITE_DEBIT_RIVIERE WHERE SITE = 'E032'
        )
     GROUP BY date1
      )
     SELECT NULL LINK    ,
      TO_CHAR(n, 'DD.MM'),
      NVL(ROUND(AVG(Debit),2), 0) "Débit"
       FROM
      (SELECT TRUNC(TRUNC(to_date(2006,'YYYY'),'year'), 'DD')-1 + level n,
        rownum jours
         FROM dual CONNECT BY level<=366
      ) days
    LEFT JOIN s1
         ON days.n = TRUNC(date1,'DD')
    GROUP BY n
    ORDER BY n
    Sample values:
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('10/02/2006 09:49:59','DD/MM/YYYY HH24:MI:SS') 1,63);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('21/02/2006 10:35:12','DD/MM/YYYY HH24:MI:SS') 1,68);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('21/02/2006 11:30:30','DD/MM/YYYY HH24:MI:SS') 0);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('23/02/2006 14:02:02','DD/MM/YYYY HH24:MI:SS') 0);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('23/02/2006 16:22:34','DD/MM/YYYY HH24:MI:SS') 0);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('30/04/2006 18:09:08','DD/MM/YYYY HH24:MI:SS') 1,72);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('20/05/2006 11:57:02','DD/MM/YYYY HH24:MI:SS') 1,72);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('07/06/2006 15:11:58','DD/MM/YYYY HH24:MI:SS') 1,79);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('08/06/2006 20:00:26','DD/MM/YYYY HH24:MI:SS') 1,82);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('19/06/2006 09:42:32','DD/MM/YYYY HH24:MI:SS') 1,72);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('20/06/2006 04:30:00','DD/MM/YYYY HH24:MI:SS') 1,82);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('20/06/2006 10:39:01','DD/MM/YYYY HH24:MI:SS') 1,72);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('24/06/2006 19:34:50','DD/MM/YYYY HH24:MI:SS') 1,82);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('26/06/2006 14:37:26','DD/MM/YYYY HH24:MI:SS') 1,88);
    The output are grouped values from day to day. I would like to tehse group monthly values, but couldn't figure out how to do. Even if I'm not a newbie to newbie on SQL, copy the following code will much too much for me. I know that some of you guys can handle that. I tried but not sew succeed. Could you help me?

    Best regards, Christian.
    select add_months(to_date('01/01/2006', 'dd/mm/yyyy'), level - 1) n,
           rownum
    from   dual
    connect by level <= 12;
    
    N             ROWNUM
    --------- ----------
    01-JAN-06          1
    01-FEB-06          2
    01-MAR-06          3
    01-APR-06          4
    01-MAY-06          5
    01-JUN-06          6
    01-JUL-06          7
    01-AUG-06          8
    01-SEP-06          9
    01-OCT-06         10
    01-NOV-06         11
    01-DEC-06         12
    
  • How to group the values according to the weeks of the year?

    Hello

    I have a table with dates and values (I'm simplifying the need for this question)

    I want to group the values (and adding the) according to the 52 weeks of the year. I mean week of consolidation for the week.
    Here the date of each weeks generated during a year, it gives every Monday of each week of the year:
    Select trunc (trunc (sysdate, 'year'), 'iw') +(rownum*7)-7 n of object where rownum < = 53

    What I want to do is to summarize the values in my table and group together them in every week, in that respect. The date of these weeks are generated by the above query.

    For example all values fall into the 1st week of the year will be grouped into this date, all values fall in the 2nd wek will be grouped in this date and so on. If no value is found for a week, then a value of 0 is generated in iorder have a 52 weeks-lines. It's basically a kind of select with "date between... and...". "and group values and that affect the number of the wee, they are relevant.

    Examples of Monday, June 30, 2008, 07/07/2008, 07/14/2008

    Example of values and dates in my table:

    Date value
    30/06/08 9
    07/01/08 9
    07/02/08 9
    07/03/08 9
    07/03/08 9
    07/04/08 6
    07/04/08 6
    07/04/08 9
    07/07/08 9
    07/08/08 9
    29/07/08 9
    29/07/08 6
    30/07/08 9
    07/31/08 9
    07/31/08 9
    07/31/08 9
    08/01/08 9
    08/04/08 5.5
    08/04/08 9
    08/07/08 9
    08/07/08 9
    08/08/08 9
    14/08/08 9
    14/08/08 9
    18/08/08 9
    22/08/08 9
    22/08/08 9
    25/08/08 9
    25/08/08 9
    26/08/08 9
    29/08/08 9
    29/08/08 9
    09/01/08 9
    09/01/08 9
    09/04/08 9
    09/04/08 9
    09/05/08 9
    09/05/08 9
    09/05/08 9
    09/05/08 9
    17/09/08 9

    Result should be something like this:

    Number of the week Date value
    47/1 12/31/2008
    94/2 07/12/2008
    2008-01-14 3, 23
    and so on...
    .....
    73/52 12/22/2008
    60/53 29/12/2008

    I hope I am clear. Thank you for your kind replies.

    Something like that, maybe:

    select trunc(trunc(sysdate,'year'),'iw') +((level-1)*7)  n
    from dual connect by level<=53
    

    (I changed it to sysdate so that the next years will take care of them!)

  • 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

  • FRM-40212: invalid value for &lt; "the radio group name" &gt;

    Hello
    I have a control unit with a radio under a radio RG_ACTION group button, a text element called "Comments" and a view comments"" button.

    I have another block of data base with fileds - approver, comments, date

    now that the record is currently selected in the block of data, that "View comment" button on its click event displays that the value in the deposited the database block comment in the text box control block comments.
    and I'm a go_item ("control_block.comments");

    until all of this is fine.
    Now when I click on database block to select a record I get a message saying: -.

    FRM-40212: invalid value for RG_ACTION field

    Once this message is still other things do not work as expected... as some buttons do not work, etc.

    I tried to debug a lot, but I could not find. Also google a lot but could not get relevant help.
    I hope someone can help me with that.

    Thank you.

    Could you please suggest one solution more other than the fake radio button.

    Sorry, I don't know another solution.

    because I will not be able to support the need for dummy radio button which remains invisible to the approver of design

    I don't understand this. This means that it is better to keep a pure, but the design works do not, but to have a "clean" enough workaround solution that gets the job of the application?

Maybe you are looking for