Manually creating a tabular presentation

I'm trying to create an apex manually in form of table 5.

I created a region and made in the form of arrays of type

in the source, I gave the SQL with apex_item

But no html content are the components of apex_item get returned. I see html in the user interface

How can I fix? Help, please

Thank you

Hello

I guess that your column type is set to "plain text". By default, who type the special escape characters. Change the attribute "Special escape characters" (security) on No to escape no HTML tags.

Concerning

Patrick

Member of the APEX development team

Tags: Database

Similar Questions

  • Manually created the tabular forms and Firefox 4 problem

    I have a tabular presentation created with pl/sql dynamic content using the apex_item Toolbox areas. A collection of the apex is used to maintain the State of the tabular data entered. It is an application originally created at the APEX 1.5 and improved over the years to 3.2. Never a problem with the application so far. I've recreated the question on the site of apex.oracle.com here:


    http://Apex.Oracle.com/pls/Apex/f?p=28213

    Run the application in Internet Explorer (I use 8), then run it in Firefox 4. Enter a quantity in the first element, then the next and previous then several times. See the problem? The problem doesn't occur in FF 3.6 or Chrome either. I have not tried Safari as my mac at home and I'm at the office.


    Here's the code for areas of pl/sql and the update of the collection (after submitting). Page 2 is just a selection of the collection report. I spent a day trying to solve this problem. Any help will be appreciated. Redesign without pl/sql dynamic regions is not an option at this time.

    Dave




    Report region 1: (there is no collection)

    declare
    Other1 varchar2 (2000) value default null;
    other_char varchar2 (32000) value default null;


    Start


    HTP.p ("< table border ="1 "width =" 100% "> '");
    HTP.tablerowopen;
    HTP.p ('< th > Description < /th > < th > price < /th > < th > quantity < /th >');
    HTP.tablerowclose;

    for rec in (SELECT id, description, to_char(price,'$9,999.99') price
    FROM foodbev_items by id) loop

    Select apex_item.hidden(1,rec.id) in the double other_char;
    HTP.p (other_char);

    Select apex_item.hidden(3,rec.description) in the double other_char;
    HTP.p (other_char);



    HTP.tablerowopen;
    HTP. TableData (Rec.Description);
    HTP. TableData (Rec.Price, 'right');












    -quantity here
    Select apex_item.text(6,null,5)
    in double other1;
    HTP. (Other1) TableData;




    HTP.p ("< tablerowclose >" ");

    end loop;


    HTP.p ("< /table >" ");


    end;


    Report region 2: (collection exists)


    declare
    Other1 varchar2 (2000) value default null;
    other_char varchar2 (32000) value default null;


    Start



    HTP.p ("< table border ="1 "width =" 100% "> '");
    HTP.tablerowopen;
    HTP.p ('< th > Description < /th > < th > price < /th > < th > quantity < /th >');
    HTP.tablerowclose;

    -collection BREAKFAST_SELECTION
    --
    -1 is item_id, 3 is description 6 is Qty.
    --

    for rec (item_id SELECT a.c001, description, price, a.c006 entered_qty to_char(b.price,'$9,999.99') a.c003
    Htmldb_collections a, foodbev_items b where a.c001 = to_char (b.id) and a.collection_name = 'BREAKFAST_SELECTION"to order by b.id) loop

    Select apex_item.hidden(1,rec.item_id) in the double other_char;
    HTP.p (other_char);



    Select apex_item.hidden(3,rec.description) in the double other_char;
    HTP.p (other_char);





    HTP.tablerowopen;
    HTP. TableData (Rec.Description);
    HTP. TableData (Rec.Price, 'right');













    -quantity here
    Select apex_item.text(6,rec.entered_qty,5,5)
    in double other1;
    HTP. (Other1) TableData;



    HTP.p ("< tablerowclose >" ");

    end loop;


    HTP.p ("< /table >" ");





    end;


    Collection update:

    declare
    la_cks wwv_flow_global.vc_arr2;
    other_char varchar2 (2000) value default null;
    other_char1 varchar2 (2000) value default null;

    Start

    htmldb_collection.create_or_truncate_collection ('BREAKFAST_SELECTION');

    because me in 1... htmldb_application.g_f01. Count
    loop

    --
    -1 item_id, 2 is digital price, 3 is description, 6 Qty
    --
    --
    () htmldb_collection.add_member
    p_collection_name = > 'BREAKFAST_SELECTION ',.
    p_c001 = > htmldb_application.g_f01 (i),
    p_c003 = > htmldb_application.g_f03 (i),
    p_c006 = > htmldb_application.g_f06 (i)
    );



    end loop;


    end;

    don't know if this is the problem or not, but

    ...
    htp.tabledata(other1);
    
    htp.p('');
    
    end loop;
    
    htp.p('');
    ...
    

    should be

    ...
    htp.tabledata(other1);
    
    htp.tablerowclose;
    
    end loop;
    
    htp.p('');
    ..
    

    Thank you

    Janet Tyson

  • Manually process a tabular presentation

    Hello

    I have a tabular layout with 2 editable fields. 1 is set in the 'SELECT' clause using apex_item.checkbox (2, moduleid) the other column is a text field, all others are a checkbox show fields.

    The problem is that when I process the report, only the boxes that have been selected are populated in the g_f02 table while my text field g_f01 table has entries for each text field displayed in State of he, regardless if they have a value or are null (Note: notes this field is optional, not mandatory if a check box is selected). So when I try to use the index of the check box I do not receive the corresponding notes the value of the element. for example, my report page size is 10, I check the 3 boxes and enter 3 sets of notes, g_f02 has 3 entrances, while g_f01 has 10 entries, with a mix of values and NULL values.

    My question is how can I capture null values for the table cehckbox to esnure g_f02 I can treat the two tables correctly?
            FORALL i IN INDICES OF APEX_APPLICATION.G_F02
              INSERT INTO time_user_profile_units
              ( profile_id
              , user_id
              , unit_id
              , notes
              ) VALUES
              ( l_profile_id
              , p_user_id
              , APEX_APPLICATION.G_F02(i)
              , APEX_APPLICATION.G_F01(i)
              );
    Thank you

    Matt

    I think that I addressed this at the bottom of the thread here...

    Re: Problem with APEX_APPLICATION. G_F02 (i)...

    Is that what you're looking for?

    See you soon

    Ben

  • Pass values to a tabular presentation from a Popup window

    Hi All-

    I could use your help with a problem I encounter.

    I created a tabular presentation (simple selection of the five fields in a table). One of the fields must call a popup window that will be used to return multiple values in the form of tables. I can't use a contextual list in this case, because it only returns a single value. I can get it works without problem on page elements.

    How can I go on the field reference record current in the form of my popup window?

    Here is my request on apex.com:
    Here is the sample application:
    http://Apex.Oracle.com/pls/Apex/f?p=15071:4

    Workspace: XENAKIS
    ID: MATHEW. [email protected]
    PWD: matt2011

    Your help would be greatly appreciated!

    Hello

    You can pass the names of items in a table for the popup and use some JavaScript to assign values to these elements by using something like

    opener.document.getElementById(vItemId).value
    

    * where vItemId can be a variable in the page Popup with the name of the element where the value should be returned.

    --
    Lavenu
    MaxApex accommodation
    http://www.maxapex.com

  • How to use a Select list on a second primary key column in a tabular presentation?

    Hello

    I created a tabular presentation located on the details page of the user (form), that allows to manage roles for this user.

    The shape of table contains 3 elements:
    -> a checkbox
    -> user (PK) column is hidden, and its default value is generated by a function pl/sql (to submit the time), which refers to the element to username.
    -> the role of the column is displayed as a named select list LOV: add you a line, choose a role, submit, etc..

    But my ROLES table (not created by me...) contains 2 columns: USER and GRANTED_ROLE.
    The USER is the primary key, but a user can have multiple roles (= one line per role).
    GRANTED_ROLE is the second primary key, so that we can differentiate between one line of another.

    At the moment my tabular form has only one primary key (USER), so the GRANTED_ROLE can display as a list select.
    But, for this reason, in my opinion, remove the button do not work: all the lines of the user have the same key, so when I select a few lines to remove these, all lines in the form of tables are deleted.

    I don't know how my button Delete could recognize the subkey to remove only selected rows...
    Or maybe I should use a different type of region?

    Thanks for your help!
    Fanny

    In the process of ApplyMRD, try to specify the 'secondary key' column in the section "Source: Multi line Update and Delete"to the second column key in tabular form.»

    I have not tested this with your situation, but worth it.

  • Tabular presentation, problem adding a line

    I created a tabular presentation shows 4 fields apart from a hidden ID and the PK, when I press 'Add Row' and enter new details and then submit, the record gets in the base, but the screen refreshes with a new empty row, how do I avoid this, what is the cause?

    Thank you

    Hello

    Change the page, check that the Page process of "Add a LINE" is conditional that only fires when add a LINE button is clicked.

    Kind regards
    Shijesh

  • Problem with BLOB in a tabular presentation manual

    Hi all

    I created a manual tabular presentation. One of the elements is a BLOB type and shown as file browse on the form.

    I'm going to show a download link when the blob column is not null.

    I searched the forum and tried many ways, but nothing has worked so far. The form is available at apex.oracle.com.

    Here are the credentials to connect:

    Workspace: bobforum

    User: forum

    Password: abc123

    Application: 39196

    Page: 1

    http://Apex.Oracle.com/pls/Apex/f?p=39196:1

    I would be grateful if someone can help on this please.

    Thank you

    Zkay

    Hello

    Check your sample now.

    It should work, when inserting blob column files

    Kind regards
    Jari

  • Check all the items of the box manually created tabular form

    Hi all

    A manual generated in form for users to enter data more effectively, we need to create several columns are by using the checkboxes as:

    apex_item. CheckBox (10, empno, decode (jobtype, 'P', 'CHECKED', null)) jobtype

    Is there a way I can add a checkbox in the column header when the user clicks the header of each checkbox in the column even is will be checked? I found this blog of Carl,

    http://carlback.blogspot.com/2007/09/mini-check-all-HOWTO.html

    very useful to know but unfortunately none of our box columns are in the first column.

    Thank you very much for your time and your help.

    Best regards
    Pete

    Replace f01 f10 and add onClick = "checkAll (this)" your master check box in the header. " This is taken directly from the generated apex tabular presentation.

    
               function checkAll(masterCheckbox) {
                    if (masterCheckbox.checked) {
                        for (var i = 0; i.checked==false) {document.wwv_flow.f01[i].checked=true;highlight_row(document.wwv_flow.f01[i],i);}}} else {rowsNotChecked=0;for (var i = 0; i
    
  • Is it possible to create an edit on a tabular presentation on Apex option?

    Is it possible to create an edit as on an interactive report option.  photo report2.png , But on a tabular presentation  photo apextabform.gif I want to make a link to a form for a selection of special line, which will have also one tabular presentation for another table.

    found the way to do even when trying to do something else. pretty lucky.

  • What should I do for default values when a new line is created in a tabular presentation?

    Hello all-

    I have a tabular presentation that requires a few columns to be entered by the user when he or she creates a new line, but other fields in the column can just default to certain values.  How to set these values by default so that the user doesn't have to be bothered with enter no data except those which MUST be entered?

    An example:

    Form1

    CITY OF COUNTRIES IN THE REGION

    APAC JAPAN TOKYO

    SIDNEY AUSTRALIA, APAC

    APAC KOREA-SEOUL

    REGION is almost always APAC, then I want that by default.  The user can always adjust if necessary, but I want to put it to the user, only to save having to enter a value.  When the user clicks on the button to add a line, that I want to load this value immediately and leave the two empty fields so the user can enter what they want.

    Thank you!

    John

    Hello

    Go change this column.

    Under attributes of tabular form, you will find options to set the default value

    Kind regards
    Jari

  • Manually created tabular - conditionally hide a checkbox control in MSIE

    Hi all!

    I think that the main culprit here is MS Internet Explorer, but... let explain me what I'm trying to do.

    Work environment:
    -Express 4.1.0.00.32 application
    -Oracle Oracle 10.2.0.3.0 on MS Windows Server 2003
    -Windows 7 Enterprise edition (my PC)
    -12.00, 14.0.1, Internet Explorer 8.0.7600 Firefox opera


    There is a tabular presentation that is based on a hierarchical query result. Users are supposed to look at the stuff and check whether or not they have passed validation. To do this, there is a checkbox in this tabular form which users to check (or not).

    What I want to do is to hide a checkbox for "topic" records recognized by LEVEL, so - if the level! = 5 then do not display the check box.

    Here's a test case (this table simulates a hierarchical query results; LVL is the virtual LEVEL):
    create table test_tf
      (id      number,
       lvl     number,              -- level
       sifra   varchar2(10),
       naziv   varchar2(30),
       cb_nedo number(1)            -- checkbox
      );
    
    insert into test_tf 
      select 1 id, 3 lvl, '1.1'     sifra, 'Heading 1 title' naziv, 0 cb_nedo from dual union
      select 2 id, 4 lvl, '1.1.1'   sifra, 'Heading 2 title' naziv, 0 cb_nedo from dual union
      select 3 id, 5 lvl, '1.1.1.1' sifra, 'Normal 1' naziv       , 0 cb_nedo from dual union
      select 4 id, 5 lvl, '1.1.1.2' sifra, 'Normal 2' naziv       , 1 cb_nedo from dual;
    A tabular presentation is created by a wizard - type page is a classic report. SQL is (pay attention to the APEX_ITEM. CHECKBOX2)
    select
      apex_item.text(1, id, 2)     t_id,
      apex_item.text(2, lvl, 2)    t_lvl,
      apex_item.text(3, sifra, 4)  t_sifra,
      apex_item.text(4, naziv, 13) t_naziv,
      --
      apex_item.checkbox2(5, 
                          cb_nedo, 
                          case when lvl != 5 then 'hidden="hidden"'
                               else case when cb_nedo = 1 then 'checked="checked"'
                                    end
                          end
                         )     t_cb_nedo
    from (select id,
                 lvl,
                 sifra,
                 naziv,
                 cb_nedo
          from test_tf
         )
    order by id
    The attributes of the columns are changed so that their ' display as ' property is set to "Standard report column. Finally, run the page.

    Here's the result (a screenshot [url http://ch-slike.com/images/2012/08/01/XKnM3.png]; I don't know how to integrate it in this post so please, take a look if possible).

    As you can see (I hope), Opera and Firefox work properly, while Internet Explorer shows the boxes in the position to record levels.

    Interestingly,
    case when lvl != 5 then 'disabled="disabled"'
    that disables these boxes, but I just can't hide.

    Someone knows how to fix this? Unfortunately, IE is a 'must '...

    Kind regards

    LF

    P.S. No problem if you know another option that would conditionally don't hide an element (checkbox in this case); I have searched a lot, makes the work and then - Jinx, IE refuses to cooperate!

    Small-foot wrote:

    What I want to do is to hide a checkbox for "topic" records recognized by LEVEL, so - if the level! = 5 then do not display the check box.

    When you say 'hide', what you mean exactly? That should not be visible? That she shouldn't have/present value? Both?

    If you don't want the box/value at all, simply move the case outside:

    case when lvl != 5
    then
      null
    else
      apex_item.checkbox2(5, cb_nedo)
    end t_cb_nedo
    

    P.S. No problem if you know another option that would conditionally don't hide an element (checkbox in this case); I have searched a lot, makes the work and then - Jinx, IE refuses to cooperate!

    Where did you find the hidden attribute? What prompted you to use it?

  • Best approach to call a javascript function in a tabular presentation

    Hi all

    I have a manual tabular presentation. In this form, I have a javascript function that disables hiredate column. The function is called on the deptno column change.

    So, if I select the "Research" Department and hire date field is disabled for the selected line.

    I need to run this function also executed automatically on page load. So, it checks if all rows with deptno as search and disable hiredate field for these lines.

    Please let know us the best approach to achieve this goal, which does not affect the performance that the page has 2000 lines.

    function test2 (pThis) {}

    var v_item_value = pThis.value;

    var v_hiredate_item = $(pThis).closest('tr').find ('td [headers = HIREDATE] input [name = f05]');

    var v_hiredate_button = $(pThis).closest('tr').find ('td [headers = HIREDATE] button "");

    var currIndex = $('select[name="'+pThis.name+'"]').index (pThis);

    var currRow = currIndex + 1;

    If (v_item_value == '20') {}

    v_hiredate_item.prop ('readOnly', true);

    v_hiredate_button.prop ("disabled", true);

    document.getElementById("f08_"+[currRow]).disabled = true;

    }

    else {}

    v_hiredate_item.prop ('readOnly', false);

    v_hiredate_button.prop ("disabled", false);

    document.getElementById("f08_"+[currRow]).disabled = false;

    }

    }

    Thank you

    Zkay

    Try this:

    Suppose that the deptno column name is "f08".

    execute a javascript script that triggers the loading of the page

    $("[name=f08]').change ();

  • Tabular presentation - column to turn it off (with picture) based on another value of the column

    Hi all

    I haven't worked much on tabular forms and JS. I'm looking for help in this regard.

    I'm working on a tabular presentation. with several editable fields... I need to disable a column (just for this single line), which contains an image, based on a field of LOV (static) list) (Y/N). The image column must be disabled if the value is N.

    My SQL for the report is something like this: (will keep things simple)

    Select

    emp_id,

    emp_name,

    static_list,

    (case when STATIC_LIST = "Y" THEN ' < a title = "Edit SAMPLE TBL" href = "f?) p = & APP_ID.:10: & APP_SESSION.:NO:P10_EMP_ID, P10_EMP_NAME :'|| EMP_ID | «, » || EMP_NAME | "" "> < img src =" "#IMAGE_PREFIX #SAMPLE.gif" border = '0' (> < /a > ' other ' ' end) as disable_col, "

    dept_name

    of sample_table

    I scoured the topics in this forum. Most of them were made using the table ID f_001, f_002.

    I tried to follow the same path by inspecting the item but the disable_col does not have any ID.  Let's say, f_003 is for the static list and f_004 is assigned to dept_name.

    I tried dynamic actions, but it did not work. Read in a topic that dynamic action does not work on tables. So I chose this approach. Is there a simpler way to solve this?

    need your help on how to proceed with this scenario. Thank you in advance.

    Versions: Apex: 4.2, DB: 11 g

    Thank you

    Daniel

    Hi Daniel_A,

    Daniel_A wrote:

    I did my job in Page 4.

    If the IS_VALID column is select as 'Yes' then the column hyper must be enabled, allowing the user to click on it. If she chose the 'no', then the column Hyper must be disabled for this line.

    The initial question about toggle the hyperlink is resolved. Check your App-> Page 4 35160.

    This is done with the help of two dynamic actions:

    • DA first loading of the Page / after updating of region "tabular":

    Event: After refresh

    Selection type: region

    Region: The other 'tabular '.

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $( 'select[name="f08"]' ).each(function() {
      if ( $(this).val() === "N" ) {
        $(this).closest("tr").find('td[headers="HYPER"]').find("a").addClass("apex_disabled").unbind("click");
      }
    });
    

    Items concerned: no item affected

    • Second DA on the evolution of the selection list:

    Event: change

    Selection type: jQuery Selector

    jQuery Selector: select [name = "f08"]

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    var el = this.triggeringElement;
    if ( el.value === "N" ) {
        $(el).closest("tr").find('td[headers="HYPER"]').find("a").addClass("apex_disabled").unbind("click");
    } else {
        $(el).closest("tr").find('td[headers="HYPER"]').find("a").removeClass("apex_disabled").bind("click");
    }
    

    Items concerned: no item affected

    NOTE: as the original question/topic related to toggle the image link in the column, for the problem with the Page 5, please create a new thread with the details.

    Kind regards

    Kiran

  • Tabular presentation - PK_DISPLAY with name

    Hi all

    Request Express 4.2.4.00.08

    I have setup an example on apex.oracle.com.

    Workspace: BRENTDEMO

    user: demo

    PW:demo

    On page 2, I have a dynamic action

     jQuery.each($('input[name="f03"]'), function() {
         alert('Name = ' + $(this).val());
         var deptno =$(this).closest('tr').children('td[headers="DEPTNO_DISPLAY"]').find('input[name="f02"]').val()
         alert('deptno = ' + deptno);
    
     })
    

    If you use firebug on the page, the DEPTNO_DISPLAY column has no name/id associated so obviously that this action will not warn the correct value.  How I would go about assigning an id/name of the DEPTNO_DISPLAY column to retrieve the value.  I want to get this value it is because I have a how to remove custom that needs the PK ID.  (Not in this application example).

    I tried to make the column DEPTNO_DISPLAY a text field (changing names in dynamic action).  However, it gives an error message of "current version of the data in the database has changed since the user initiated the update process. version of current line identifier = "6FC404C2EDDB998C91CD7473B6DDA6A5" line application version identifier = "D3B1B18D31905688985A3EA6D5F82FB2" (line 1).

    On page 3, I tried to adjust the sql query to read

    select 
    "DEPTNO",
    "DEPTNO" DEPTNO_DISPLAY,
    "DNAME",
    "LOC",
    apex_item.text(10,deptno) as deptno_with_name
    from "#OWNER#"."DEPT"
    
    

    With dynamic Action

     jQuery.each($('input[name="f03"]'), function() {
         alert('Name = ' + $(this).val());
         var deptno =$(this).closest('tr').children('td[headers="DEPTNO_WITH_NAME"]').find('input[name="f10"]').val()
         alert('deptno = ' + deptno);
    
     });
    

    This allows all work fine, except when a validation fails on the page.  If you set Dname null and try to send the page, the following error message is displayed in the form of tables:

    error report:

    ORA-01403: no data found

    ORA-06510: PL/SQL: not supported by the user-defined exception

    Now, if you are populating Dname with what either, and you're trying to send the page again, you receive the following error message:

    Current version of the data in the database has changed since the user initiated the update process. version of current line identifier = "A884FA378C851786DDFE3A33709CB23C" line application version identifier = "6FC404C2EDDB998C91CD7473B6DDA6A5" (line 2)

    I tried searching forums and I believe that page 3 does not work because the mixture of apex_items and a Query (updateable report) "SQL" does not work.  Please correct me if that's wrong.

    Does anyone have a solution on how I can retrieve the value of DEPTNO? Is the best solution to use a tabular presentation manual?  If more information is needed, please let me know.

    Thank you

    Brett

    What about just using the text() td value?

    The javascript code for your dynamic action reads as as follows, and the alert shows what is desired:

     jQuery.each($('input[name="f03"]'), function() {
         alert('Name = ' + $(this).val());
         var deptno =$(this).closest('tr').children('td[headers="DEPTNO_DISPLAY"]').text();
         alert('deptno = ' + deptno);
    
     });
    
  • Look for the lines selected on a tabular presentation

    Hello guys and girls,

    I have a small problem trying to understand if/how I can check by pressing the "submit" button if there where no records selected in my tabular presentation.

    To explain better: I have a selection list in which the user select an employee. On this choice, a tabular presentation appears with the own products for this employee.

    The user must check at least one of the lines to go further.

    If the user does not select all and always press the "submit" button you should see an error message saying: "there are no selected product."

    What I was doing until now (stupid I suppose) was to create a Boolean as validation:

    DECLARE

    vRow directory;

    BEGIN

    BECAUSE me in 1... apex_application.g_f01. COUNTY

    LOOP

    vRow: = apex_application.g_f01 (i);

    If vRow is NULL then

    Returns false;

    on the other

    Returns true;

    end if;

    END LOOP;

    END;

    But does not work. If I have no active records it will say nothing and let me go. If I check something even record.

    Help, please.

    There must be something that I have no idea about.

    Thank you very much.

    Gabriel

    Checkboxes only support values for the lines. For example, a loop on the table will always return true since vRow will never be NULL. In addition, a table with a number equal = 0 will not be locked during all, again don't generate no errors.

    No loop, just check apex_application.g_f01. COUNTY. If it is 0, no checkboxes have been verified.

Maybe you are looking for