Tabular form template

Hi all,
I'm looking for a special template on tabular forms.
It should provide different form elements only for a row that is in edit mode or in input mode.
The other rows should be display_only_html.
has someone done this before?
thanks
franz

Hi all,
I'm looking for a special template on tabular forms.
It should provide different form elements only for a row that is in edit mode or in input mode.
The other rows should be display_only_html.
has someone done this before?
thanks
franz

Similar Messages

  • ORA-06502 on "Help Text" region when changing pages on a tabular form

    Hello everybody,
    We are developing an application on Apex 4.1.0.00.32. This application have some pages with tabular forms and these pages uses a page zero as template. In this page zero, we have added two sidebar regions: a list region to navigate on the application and a help text to describe how to use our application.
    The problem occurs when the tabular split the records into pages (since it has more records that it can show on a single page). When the user clicks to change to another page, Apex raises an ORA-06502: PL/SQL: numeric or value error as described below:
    Erro ao renderizar a região "Ajuda". ORA-06502: PL/SQL: erro: erro de conversão de caractere em número numérico ou de valor
    Informações Técnicas (visível somente para desenvolvedores)
    is_internal_error: true
    apex_error_code: APEX.REGION.UNHANDLED_ERROR
    ora_sqlcode: -6502
    ora_sqlerrm: ORA-06502: PL/SQL: erro: erro de conversão de caractere em número numérico ou de valor
    component.type: APEX_APPLICATION_PAGE_REGIONS
    component.id: 2
    component.name: Ajuda
    error_backtrace:
    ORA-06512: em "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 3654
    ORA-06512: em "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 4204
    Obs: Our database is in Brazilian Portuguese, so I guess it will be hard for some people to understand the first two lines! :)
    We have tried to change the pagination style of the tabular form and change the region model of the help text but the problem still happens.
    Does anyone an ideia about what this may be?
    Thanks in advance!

    I am getting the exact same message, to the line number, also in APEX 4.1.0.0.32.
    Occurs when changing pages in a classic report, Standard region template, select list pagination, when selecting a different pagination set.
    In English:
    Error during rendering of region "Matched Participants Help & Hints".
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Technical Info (only visible for developers)
    is_internal_error: true
    apex_error_code: APEX.REGION.UNHANDLED_ERROR
    ora_sqlcode: -6502
    ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    component.type: APEX_APPLICATION_PAGE_REGIONS
    component.id: 2
    component.name: <strong>Matched Participants</strong> Help & Hints
    error_backtrace:
    ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 3654
    ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 4204
    There are no conditions on the region, and no date string within the Help text. Some HTML <strong> tags, that's it.
    The Help region renders fine the first time.
    The Debug info does not help any:
    3.798360.00062Computation point: After Box Body4
    0
    3.798990.00081Processes - point: AFTER_BOX_BODY4
    0
    3.799790.00068Region: <strong>Matched Participants</strong> Help & Hints4
    0
    3.800470.00213Region rendered dynamically because request was not null4
    0
    3.802590.00096Add error onto error stack4
    0
    3.803550.00084...Error data:4
    0
    3.804400.00084......message: Error during rendering of region "<strong>Matched Participants</strong> Help & Hints".4
    0
    3.805240.00084......additional_info: ORA-06502: PL/SQL: numeric or value error: character to number conversion error4
    0
    3.806080.00081......display_location: ON_ERROR_PAGE4
    0
    3.806890.00081......is_internal_error: true4
    0
    3.807700.00084......apex_error_code: APEX.REGION.UNHANDLED_ERROR4
    0
    3.808540.00082......ora_sqlcode: -65024
    0
    3.809350.00234......ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error: character to number conversion error4
    0
    3.811700.00082......error_backtrace: ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 3654 ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 4204 4
    0
    3.812510.00081......component.type: APEX_APPLICATION_PAGE_REGIONS4
    0
    3.813310.00110......component.id: 24
    0
    3.814420.00099......component.name: <strong>Matched Participants</strong> Help & Hints4
    0
    3.815400.00076...Show Error on Error Page4
    0
    3.816160.00344......Performing rollback4
    0
    3.819610.00225Processes - point: AFTER_ERROR_HEADER4
    0
    3.821850.00268Processes - point: BEFORE_ERROR_FOOTER4
    0
    3.82453-End Page Rendering
    Any thoughts on where to poke around for this one?
    Thanks - Karen

  • Column value substitution in tabular form element attributes

    We started to discuss this at Re: Tabular form with Ajax
    I also mentioned this at Re: how to make only some rows editable in html db.
    but thought that this deserves its own thread.
    In Doug's sample Sudoku application in that thread, he uses #COLUMN# substitution in the Form Element Attributes and it works fine, but in my example page at http://htmldb.oracle.com/pls/otn/f?p=24317:219 I used the same technique and no matter what I do, the #COLUMN# substitution is not expanded by the Apex engine.
    This is driving me nuts, any ideas why it works in one application but not in another?
    Thanks

    Hm, you might be right.
    I copied your row template and modified it at http://htmldb.oracle.com/pls/otn/f?p=24317:219
    The styling looks terrible, not sure why, the template is simply
    <tr>
    <td class="t10data">#EMPNO_DISPLAY#</td>
    <td class="t10data">#ENAME#</td>
    <td class="t10data">#JOB#</td>
    <td class="t10data">#MGR#</td>
    <td class="t10data">#HIREDATE#</td>
    <td class="t10data">#SAL#</td>
    <td class="t10data">#COMM#</td>
    <td class="t10data">#DEPTNO#</td>
    </tr>I had a lot of trouble getting this to work because the wizard generated tabular form appends 2 hidden fields containing the PK and the row-checksum to the last (editable?) field on each row. If the last editable field has #COL# substitution, it expands the substitution and forgets to close the INPUT tag thus causing malformed HTML (I think this is a bug in the rendering engine).
    The readonly condition is sal>1000 which now works. The SAL>1000 fields are now readonly.
    But now the update process is broken. If I enter a number in the first blank SAL field (empno=3641) and click Submit, I get no errors but the change is not saved. Wonder why.
    Hopefully, Scott (Spadafore) will take mercy on our amateurish experiments and give us some definitive answers soon!
    Thanks.

  • Color in textboxes or around textboxes in tabular form

    I've got a tabular form with 12 columns of textboxes. Some of these columns are logically related so I'd like to sort of group them together a bit (the ones that are related). I was thinking about using a background color in the cells so that for example column 1-3 will have one color visible around the textbox that is displayed in the cell and column 4-5 would have another...
    I've tried setting CSS STYLE under COLUMN FORMATTING to 'background-color:#CC9999;'
    But that only seems to work if the cell contains text and then only the background immediately behind the text is colored, not the background of the entire cell (i think).
    Is it that the textboxes take up the entire cell so that no color is visible?
    If so, I'd appreciate suggestions for simple solutions... color in the textboxes? Some kind of frame around a few columns???
    Thanx
    Andreas

    I'd suggest creating a [custom named column template|http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/themes.htm#BABFFGGJ] for the tabular form report, with logically related columns assigned to [column groups|http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#h-11.2.4]. When the containing table is [marked up|http://joeclark.org/book/sashay/serialization/Chapter10.html#h5-2695] in this way CSS can be used to apply colour and some other properties to the column groups/columns. It also keeps the page weight down as classes or styles don't have to be applied to every table cell.
    >
    But that only seems to work if the cell contains text and then only the background immediately behind the text is colored, not the background of the entire cell (i think).
    Is it that the textboxes take up the entire cell so that no color is visible?
    >
    This is a longstanding shortcoming of APEX, in that "Column Formatting" is nothing of the kind: these properties are applied to a &lt;span&gt; wrapped round the content rather than to the containing element (most obvious when that element is a table cell).

  • Problem regarding insert and Display BLOB Image in Tabular form

    I am trying to display and insert image in manual tabular form In Oracle APEX. but the image i uploaded was not inserted in wwv_flow_files table and in update button process i got "no data Found" Error...pls someone help me.... some part of code is bellow... SQL CODE IN REPORT REGION OF TABULAR FORM :- {
    SELECT '#ROWNUM#' "SNO",
    +' <img height="30" width="50" src="#WORKSPACE_IMAGES#'||F.FILE_NAME||'" alt="'||S.stud_fname||'" title="'||S.stud_fname||'" border="1"/>'AS "IMAGES", --- for display image from my table which is loaded through wwv_flow_files+
    APEX_ITEM.CHECKBOX(01,s.stud_id) "DELETE",https:
    s.stud_id|| apex_item.hidden(02,s.stud_id) "STUD ID",
    +.......+
    +.......+
    union all -- for inserting row
    SELECT '#ROWNUM#' "SNO",
    +'<input type="file" name="F17" size="5">'AS "IMAGES", -- for display image+
    APEX_ITEM.CHECKBOX(01,NULL) "DELETE",
    null|| apex_item.hidden(02,null) "STUD ID", }
    When i click on UPDATE BUTTON then following PROCESS CODE IS run :
    FOR i IN 1..APEX_APPLICATION.G_F02.COUNT LOOP
    IF APEX_APPLICATION.G_F02(i)IS NOT NULL THEN
    UPDATE STUDENT SET stud_fname=APEX_APPLICATION.G_F04(i),
    stud_addr =APEX_APPLICATION.G_F05(i), ......
    ELSE
    insert into FILE_ATMNT(ATMNT_KEY, ATMNT_NAME, FILE_NAME, MIME_TYPE, ATMNT_SIZE, CNTNT_TYPE, ATMNT_CNTNT, AUDIT_CRT_DATE ) SELECT id, name, filename, mime_type, doc_size,content_type, blob_content, SYSDATE FROM wwv_flow_files WHERE name = APEX_APPLICATION.G_F17(i);
    SELECT id into upload_ref from wwv_flow_files where name =APEX_APPLICATION.G_F17(i);
    ........ ( code for student insert Record )
    FILE_ATMNT is my attachment table in my workspace which updated through wwv_flow_files. My problem is that when i was click on update button image is not loaded into "wwv_flow_files" table so i didnt get image name bcz of $ name =APEX_APPLICATION.G_F17(i);$ this. so its show me no data found error.... Pls help me

    Mahesh wrote:
    Hi...i am mahesh...Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already).
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    The best way to get help is to reproduce and share the problem on apex.oracle.com.
    All code should be posted wrapped in tags<tt>\...\</tt> tags to preserve formatting and prevent it being interpreted by the forum software.
    I am trying to display and insert image in manual tabular form In Oracle APEX. but the image i uploaded was not inserted in wwv_flow_files table and in update button process i got "no data Found" Error...pls someone help me.... some part of code is bellow... CODE IN  REPORT REGION OF TABULAR FORM :-
    SELECT '#ROWNUM#' "SNO",
    '<img height="30" width="50" src="#WORKSPACE_IMAGES#'||F.FILE_NAME||'" alt="'||S.stud_fname||'" title="'||S.stud_fname||'" border="1"/>'AS "IMAGES", --- for display image from my table which is loaded through wwv_flow_files
    APEX_ITEM.CHECKBOX(01,s.stud_id) "DELETE",https://forums.oracle.com/forums/post!default.jspa?forumID=137#
    s.stud_id|| apex_item.hidden(02,s.stud_id) "STUD ID",
    ....... (some code).
    union all -- for inserting row
    SELECT '#ROWNUM#' "SNO",
    '<input type="file" name="F17" size="5">'AS "IMAGES", -- for display image
    APEX_ITEM.CHECKBOX(01,NULL) "DELETE",
    null|| apex_item.hidden(02,null) "STUD ID",
    ....... (some code )
    When i click on UPDATE BUTTON  then following PROCESS CODE IS run :
    FOR i IN 1..APEX_APPLICATION.G_F02.COUNT LOOP
    IF APEX_APPLICATION.G_F02(i)IS NOT NULL THEN
    UPDATE STUDENT SET stud_fname=APEX_APPLICATION.G_F04(i),
    stud_addr =APEX_APPLICATION.G_F05(i), ..... ( some field of table)..
    ELSE
    insert into FILE_ATMNT(ATMNT_KEY, ATMNT_NAME, FILE_NAME, MIME_TYPE, ATMNT_SIZE, CNTNT_TYPE, ATMNT_CNTNT, AUDIT_CRT_DATE ) SELECT id, name, filename, mime_type, doc_size,content_type, blob_content, SYSDATE FROM wwv_flow_files WHERE name = APEX_APPLICATION.G_F17(i);
    SELECT id into upload_ref from wwv_flow_files where name =APEX_APPLICATION.G_F17(i);
    ........ ( code for insert command )
    FILE_ATMNT is my attachment table in my workspace which updated through wwv_flow_files. My problem is that when i was click on update button image is not loaded into "wwv_flow_files" table so i didnt get image name bcz of $ name =APEX_APPLICATION.G_F17(i);$  this.  so its show me no data found error.... Pls help me
    Before considering anything else, why bother with all this extra complexity? Why not use the standard form and report pattern?

  • Checkbox in Tabular Form

    Hi,
    I am fairly new to APEX and need some help please.
    I am nrunning Apex 4.1 on 11g database.
    I have a tabular formrunning off the rowid which needs to show a checkbox for several columns which contain Y or N.
    When I set the field type to simple checkbox, none of the checkboxes are ticked for any columns with a Y.
    Can someone please tell me what I need to do to get a simple checkbox on a tab form to work without too much effort?
    I can use a select list OK, but really just want a tickbox to reflect the Y or N in the column (ticked, unticked).
    I have tried using the apex_item.checkbox() in the query, but that doesn't seem to work.
    Example of select statement:-
    select
    "ROWID",
    "DEPARTMENT_REFERENCE_U",
    "NAME",
    "AUTHORITY_FLAG", -- tickbox
    "AUTHORITY_NAME_CODE",
    "DEFAULT_VALUE", -- tickbox
    "ROADS", -- tickbox
    "ANSWER_SET", -- tickbox
    from ....
    I tried apex_item.checkbox(1, rowid, decode(roads,'Y', 'checked','unchecked')) "ROADCHECK", but just get missing right parantheses
    If someone can give me some pointers I would be really grateful.
    Thanks,
    Carl.

    Hi,
    Thanks for the info.
    The whole SQL statement for the tabular form now reads:-
    select apex_item.checkbox(1, rowid, decode(roads,'Y', 'checked',null)) "ROADCHECK",
    "ROWID",
    "DEPARTMENT_REFERENCE_U",
    "NAME",
    "AUTHORITY_FLAG",
    "AUTHORITY_NAME_CODE",
    "DEFAULT_VALUE",
    "ROADS",
    "ANSWER_SET"
    from ....
    ... And returns error of missing right paranthesis. As soon as I take out the apex_item, the query runs.
    I don't really want to use apex_item if I don't have to (or any other complex coding to make things work) and have been instructed to let Apex do all the work through its automatic functionality (probably for anyone else picking it up in the future. I am in the process of evaluating Apex so we can change over from Oracle Forms). All I want is for the checkboxes to be ticked if the column contains Y. Historically, the columns will contain Y or N, but it seems in Apex/HTML the unticked default is null, which we can live with. I have tried the 'checkboxes the easy way' as in URL earlier in this thread and it seems OK, but don't really want to have to go down that road, just for a tickbox, especially on this form where I need 4 of them.
    In my tabular column attributes for the column I want as a tick box I have:-
    Display As Simple Checkbox, render form field without template, LOV = STATIC:;Y (the Named LOV drop down box is greyed out and disbaled).
    When I run the form, all tickboxes for this column are displayed as unticked, where as in the database they are all Y.
    Is there something obvious that I have done wrong/need to do?
    Regards,
    Carl

  • Insert in Tabular form does not work after the upgrade to APEX 4.0

    Hi all,
    Thx in advance for looking into the issue.
    We are running into following issue when we upgraded APEX 3.2 to APEX 4.02
    1) The Tabular form insert does not work.
    2) We are fatching the value of the Global variable APEX_APPLICATION.g_XXXX in a procedure and we get null for this value after submit for new row to be inserted.
    The tabular form was working fine in APEX 3.2.
    The Update and Delete works just fine.
    Any help in this regard is highly appreciated.
    Thx and regards,
    Mahesh

    Here is my workaround to get the ADDROW/SUBMIT working again if you have a legacy Tabular Form:
    1     PAGE ATTRIBUTES               
              JAVASCRIPT          
              FUNCTION AND GLOBAL VARIABLE DECLARATION          
                   var htmldb_delete_message='"DELETE_CONFIRM_MSG"';     
    2     DELETE BUTTON               
              ACTION WHEN BUTTON CLICKED          
              URL Target          change to
                   javascript:apex.confirm(htmldb_delete_message,'MULTI_ROW_DELETE');     
    3     ADDROW BUTTON               
              ACTION WHEN BUTTON CLICKED          
              Action           
                   redirect to URL     
              URL Target          
                   javascript:addRow();     
    4     PROCESS               
              APPLYMRU (activitated by button ADDROW)          
              CONDITION          
                   never or delete     
    5     PROCESS               
              ADDROWS          
              CONDITION          
                   never or delete     
    6     CHANGE PAGE TEMPLATE to e.g. THEME 13 One Level Tabs.               
    7     IF YOU WANT ADD FUNCTIONALITY TO GOTO BOTTOM OF PAGE AFTER ADDROW               
         1. In the page footer put <a name="bottom_of_page"></a>                
         2. Amend the action when the "ADD" button is clicked to scroll down to the new region by doing the following:               
         - edit "ADD" button               
         - Go to "Action when button Clicked" section               
         - Amend "URL Target" from               
         javascript:addRow();                
         to               
         javascript:addRow();window.location='#bottom_of_page' ;               
    regards
    PaulP

  • How to put borders in the tabular form report

    Hi,
    I need to put borders in the tabular form report in the apex UI .I mean in the by default no boundary comes so I need vertical lines in the column .
    So how to do that.
    Thanks in advance.
    Edited by: Vivek on May 22, 2012 8:25 PM

    Edit the report page > Report Attributes > Change the report template for different look and feel
    You can also customize the report template or even create your own template
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ui_templt.htm#HTMDB25707

  • Setting breaks in tabular forms

    Has anyone had any luck with setting breaks in tabular forms. It seems so straight forward, yet it does not work for me.
    I have a report with the first column called tail_number followed by many other fields.
    I set the break formatting to
    Breaks = First Column
    Display the text on report breaks... = Total: #SUM_COLUMN_HEADER#
    For Repeat Heading Breaks: <b>Details for Tail: #COLUMN_VALUE#<b/>
    This all came straight from the book Pro Oracle Application Express.
    Any ideas?
    Sandra

    Hi Sandra,
    I created a report against 'select tailnumber, serialnumber, itemnumber from aircraftitems'
    I am showing all columns and have a sum on itemnumber.
    Using theme Red and region template Reports Region (maybe some templates are temperamental on this)
    In Break Formatting...
    Display this text when printing report sums = null
    Breaks = First Column
    Display this text on report breaks...= Total: #SUM_COLUMN_HEADER#
    When displaying a break row...= null
    When displaying a break column...=null
    When displaying a break row...= null
    Identify how you would like your breaks = Repeat Headings on Break
    For repeat headings breaks use...= Details for Tail: #COLUMN_VALUE#
    And this worked as expected for the break and summary row.
    Break Test     
    Details for Tail: N148FJ
    AIRCRAFTSERIALNUMBER     ITEMNUMBER
    074     9
    074     5
    074     2
    074     3
    074     4
    074     5
    Total: TAILNUMBER     28

  • Apex, Tabular forms and Nested Tables := Headache

    Hi All,
    I'm constructing an Apex aplication for Performance Reviewing staff and I have need of nested tables within each line item for ongoing comments during the year, the headings of which are drawn from another table, based on a template for which ones are to be used at any given time.
    I'd like to be able to use a tabular form to draw out the history of comments at any given time and modify them however I'm at a complete loss as to how to get this working with a tabular form in Apex. If anyone could point me at some good documentation on the subject or even suggest a better method to get this done I'd be very grateful.
    Thanks!

    Hi,
    Take a look at this article:
    http://www.oracle-base.com/articles/misc/ObjectViewsAndNestedTables.php
    First, create a view as described on your nested and other table(s), with 'Instead Of' triggers handling the DML. Next create the tabular form based on the view. You'll find many posts in the forum regarding building a tablular form based on a view.
    Paul Brookes.

  • Adding a dummy row in the tabular form

    Hi
    'm an ApEX newbie.
    I'm in need to add a dummy row in between a tabular form to make it more appealing at the user end.
    A representation of my Tabular Form having 3 columns (i.e Sr No & Skill is of display only format and Remarks column is of text area) is depicted below:      
    Sr No Skill Remarks
    1     Java Language     
    2     Oracle Database     
    3     Oracle DBA     
    4     Oracle Pl Sql     
    5     Communication     
    6     Analytical Thinking
    7     Logical Thinking
    8     Attitude     Remarks
    9     Leadership Qualities     
    10     Business Understanding
    i need to add a dummy row (which will act as display only) between Sr No 5 & Sr No 6 as "General Evaluation". As shown below...
    Sr No Skill Remarks
    1     Java Language     
    2     Oracle Database     
    3     Oracle DBA     
    4     Oracle Pl Sql     
    5     Communication     
    "General Evaluation"
    6     Analytical Thinking
    7     Logical Thinking
    8     Attitude     Remarks
    9     Leadership Qualities     
    10     Business Understanding
    It would be of great help if any of you could help me out with this (with an detailed answer)
    Thanks in advance :)
    'm using ApEX 4.1

    901720 wrote:
    Hi
    'm an ApEX newbie.Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and ensure you have updated with your profile with a real handle instead of "901720".
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    (In particular it is essential to make it clear whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form) and if so, whether the tabular form is declarative&mdash;using only report attributes and a wizard generated MRU process&mdash;or manual&mdash;using <tt>apex_item</tt> calls in the query and custom processing&mdash;or some hybrid approach.)
    I'm in need to add a dummy row in between a tabular form to make it more appealing at the user end.
    A representation of my Tabular Form having 3 columns (i.e Sr No & Skill is of display only format and Remarks column is of text area) is depicted below:      
    Sr No Skill Remarks
    1     Java Language     
    2     Oracle Database     
    3     Oracle DBA     
    4     Oracle Pl Sql     
    5     Communication     
    6     Analytical Thinking
    7     Logical Thinking
    8     Attitude     Remarks
    9     Leadership Qualities     
    10     Business Understanding
    i need to add a dummy row (which will act as display only) between Sr No 5 & Sr No 6 as "General Evaluation". As shown below...
    Sr No Skill Remarks
    1     Java Language     
    2     Oracle Database     
    3     Oracle DBA     
    4     Oracle Pl Sql     
    5     Communication     
    "General Evaluation"
    6     Analytical Thinking
    7     Logical Thinking
    8     Attitude     Remarks
    9     Leadership Qualities     
    10     Business UnderstandingIt's not clear from the above what the required layout is: please see the information in the FAQ about posting code/formatted output.
    It would be of great help if any of you could help me out with this (with an detailed answer)With APEX we're fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues. We can then see exactly what you're really talking about.

  • Apex 4 tabular form performance

    Hey all apex experts,
    Having some issues w/ tabular form performance.
    Posted below are the results from a debug run recently, I know it is a little tricky to read, was the simplest way I could find to get online.
    To highlight the problems, it appears that page is running rather well, with the exception of the line...
    *20110609090107.671238     0.38075     15.40215     rows loop: 15 row(s)*
    You can see that this record is consuming over 15 seconds of page load, or 97% of the time.
    So I need to find out what is consuming so much time, but "rows loop: 15 row(s)" tells me near to nothing.
    The query that is behind the tabular form I am not worried about at all, as it easily runs in sub second through any direct db querying method.
    The query does contain 8 apex_item calls...
    - 2 apex_item.hidden
    - 1 apex_item.select_list_from_lov
    - 1 apex_item.date_popup2
    - 3 apex_item.text
    - 1 apex_item.checkbox
    I am worried that the performance has to do with the rendering of these items, but I clearly need some assistance.
    Any pointers on how to pinpoint the bottleneck?
    I am currently running Apex 4.0.1.00.03 on Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit.
    Thanks in advance,
    Hayden
         Elapsed     Execution     Message     Level
    20110609090107.3     0.03996     0.04966     S H O W: application="109" page="19" workspace="" request="" session="640319082941758"     3
    20110609090107.3     0.0895     0.00258     Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us     3
    20110609090107.3     0.09203     0.00106     alter session set nls_language="AMERICAN"     3
    20110609090107.3     0.09306     0.00067     alter session set nls_territory="AMERICA"     3
    20110609090107.3     0.09371     0.00104     NLS: CSV charset=WE8MSWIN1252     3
    20110609090107.3     0.09476     0.00067     ...NLS: Set Decimal separator="."     3
    20110609090107.3     0.09542     0.00091     ...NLS: Set NLS Group separator=","     3
    20110609090107.3     0.09633     0.0009     ...NLS: Set g_nls_date_format="DD-MON-RR"     3
    20110609090107.3     0.09723     0.00089     ...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"     3
    20110609090107.3     0.09811     0.00292     ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"     3
    20110609090107.3     0.10109     0.00134     ...Setting session time_zone to -05:00     3
    20110609090107.3     0.10241     0.00283     NLS: Language=en-us     3
    20110609090107.3     0.10528     0.00874     Application 109, Authentication: CUSTOM2, Page Template: 1427152175619667347     3
    20110609090107.4     0.11401     0.00149     ...Session ID 640319082941758 can be used     3
    20110609090107.4     0.11547     0.00178     ...Application session: 640319082941758, user=HAYDEN     3
    20110609090107.4     0.11724     0.00141     ...Determine if user "HAYDEN" workspace "2120413559142026" can develop application "109" in workspace "2120413559142026"     3
    20110609090107.4     0.11864     0.00282     ...Check for session expiration:     3
    20110609090107.4     0.12151     0.00281     Session: Fetch session header information     3
    20110609090107.4     0.12431     0.00123     ...fetch session state from database     3
    20110609090107.4     0.12552     0.00147     fetch items     3
    20110609090107.4     0.12699     0.00137     ...fetched 22 session state items     3
    20110609090107.4     0.12836     0.00221     Branch point: Before Header     3
    20110609090107.4     0.13057     0.00743     Fetch application meta data     3
    20110609090107.4     0.13804     0.00183     ...metadata, fetch computations     3
    20110609090107.4     0.13985     0.00178     ...metadata, fetch buttons     3
    20110609090107.4     0.14162     0.00088     Computation point: Before Header     3
    20110609090107.4     0.14247     0.00243     Authorization Check: "58293300185431144" User: "HAYDEN" Component: "COMPUTATION"     3
    20110609090107.4     0.14494     0.00087     Post Authorization Check     3
    20110609090107.4     0.14578     0.00062     ...Perform computation of item: F109_WARNINGS, type=STATIC_ASSIGNMENT     3
    20110609090107.4     0.14637     0.00274     ...Performing static computation     3
    20110609090107.4     0.14917     0.0009     ...Session State: Saved Item "F109_WARNINGS" New Value="<div>hello world</div>"     3
    20110609090107.4     0.15002     0.00068     Processing point: Before Header     3
    20110609090107.4     0.15068     0.00095     Authorization Check: "58293300185431144" User: "HAYDEN" Component: "PROCESS"     3
    20110609090107.4     0.15165     0.00095     Post Authorization Check     3
    20110609090107.4     0.15259     0.00406     "...Process ""find_errors"": PLSQL (BEFORE_HEADER) begin
    :f109_warnings := null;
    end;"     3
    20110609090107.4     0.15672     0.00103     ...Session State: Saved Item "F109_WARNINGS" New Value=""     3
    20110609090107.4     0.1577     0.00149     ...metadata, fetch item type settings     3
    20110609090107.4     0.15921     0.01143     ...metadata, fetch items     3
    20110609090107.4     0.17067     0.0066     Show page template header     3
    20110609090107.4     0.17726     0.00112     Computation point: After Header     3
    20110609090107.4     0.17835     0.00213     Processing point: After Header     3
    20110609090107.4     0.18047     0.00243     Authorization Check: "20690503835253927" User: "HAYDEN" Component: "tab"     3
    20110609090107.4     0.18294     0.00104     Post Authorization Check     3
    20110609090107.4     0.18393     0.00091     Authorization Check: "58293300185431144" User: "HAYDEN" Component: "tab"     3
    20110609090107.4     0.18484     0.00259     Post Authorization Check     3
    20110609090107.4     0.18745     0.00102     Region: &amp;nbsp;     3
    20110609090107.4     0.18844     0.00103     Authorization Check: "58293300185431144" User: "HAYDEN" Component: ""     3
    20110609090107.4     0.18948     0.03112     Post Authorization Check     3
    20110609090107.5     0.22067     0.00122     Region: &amp;nbsp;     3
    20110609090107.5     0.22183     0.00241     Authorization Check: "5394611084668332" User: "HAYDEN" Component: ""     3
    20110609090107.5     0.22427     0.00526     Post Authorization Check     3
    20110609090107.5     0.22952     0.00809     Region: Breadcrumb     3
    20110609090107.5     0.23763     0.00119     Computation point: Before Box Body     3
    20110609090107.5     0.23877     0.00105     Processing point: Before Box Body     3
    20110609090107.5     0.2398     0.00302     Item: P19_ID_LIST NATIVE_HIDDEN     3
    20110609090107.5     0.24285     0.00219     Item: P19_APPROVAL_ID NATIVE_HIDDEN     3
    20110609090107.5     0.24504     0.00539     Region: Edit Time     3
    20110609090107.5     0.25047     0.00467     Item: P19_CHANGED_IDS NATIVE_HIDDEN     3
    20110609090107.5     0.25514     0.00688     show report     3
    20110609090107.5     0.26205     0.00114     determine column headings     3
    20110609090107.5     0.26313     0.00324     activate sort     3
    20110609090107.5     0.26639     0.00315     parse query as: APP_SEC     3
    20110609090107.5     0.26953     0.00747     binding: ":APP_USER"="APP_USER" value="HAYDEN"     3
    20110609090107.5     0.27713     0.10094     binding: ":F109_ID_LIST"="F109_ID_LIST" value="219159198076799389604724962683469530452~219159198076801807456364191941818942804"     3
    20110609090107.6     0.37804     0.00271     print column headings      3
    20110609090107.6     0.38075     15.40215     rows loop: 15 row(s)      3
    20110609090123.0     15.78287     0.00322     pagination     3
    20110609090123.0     15.78602     0.00112     Computation point: After Box Body     3
    20110609090123.0     15.7871     0.00181     Processing point: After Box Body     3
    20110609090123.0     15.78891     0.0008     Computation point: Before Footer     3
    20110609090123.0     15.78969     0.00065     Processing point: Before Footer     3
    20110609090123.0     15.79033     0.00617     Show page tempate footer     3
    20110609090123.0     15.79657     0.00105     Computation point: After Footer     3
    20110609090123.0     15.79757     0.00082     Processing point: After Footer     3
    20110609090123.0     15.79837     0.01089     Log Activity:     3
    20110609090123.0     15.80941     0.00126     v$sesstat.statistic# = 436: execute count=0     3
    20110609090123.1     15.81056     -     End Show Page     3

    I had something like that. In my case it is a "pl/sql function retuning query" that is the source of the report region.
    Check in the database if the query is running slow when Apex is running the query, not when your are running the query. The binding may be different than what you expect.

  • Highlight Row on Tabular Form

    I would like to be able to highlight a row of data on a tabular form based on a certain data column. I have found many posts on here that reference standard reports but is there a way to highlight an entire row of data based on some criteria for a tabular form?
    Thanks!

    Hi all.
    I do everything like it is described in this thread, but it doesn't works! Please, help me to find out the reason.
    So, I have tabular form. I have copied Report Template called "Standard" and renamed it.
    Then I modified it by adding Column Template 2:
    <td bgColor=886666 #ALIGNMENT# headers="#COLUMN_HEADER_NAME#" class="data">#COLUMN_VALUE#</td>
    In Column Template 2 condition I have chosen 'Used Based on PL/SQL expression'.
    Column Template 2 Expression is:
    '#CNT1#' = '1'
    (CNT1 is the name of data column).
    Column Template 1 I leaved as it was in standard template.
    Template of report is : 'Reports region'
    Report template is : 'Template_that_I_modified_from_standard'
    When I run the page, I see all the rows, but no highlighting insead of the condition is true for several rows.
    Please, help me.
    Regards,
    Kseniya.

  • JQuery error on tabular form

    I try to check/uncheck all checkboxes in one column in a manual tabular form when one clicks at the checkbox in the column header. I am doing it with the jQuery:
    function handleCheckboxes(obj, fldName){
    $("[name=" + fldName + "]:checkbox").attr('checked', obj.checked);
    At my APEX workspace it works : http://apex.oracle.com/pls/otn/f?p=33365:1
    However, in a real application, the checkbox in the first row of data gets checked/unchecked, but not the others. I get the following error in the jquery_min.js:
    uncaught exception: String contains an invalid character (NS_ERROR_DOM_INVALID_CHARACTER_ERR).
    ret=jQuery.merge(ret,elem);});return ret...etInterval||array.call)ret[0]=array;else
    I have reduced my tabular form to only one column containing only checkboxes - the result is the same.
    Maybe someone has an idea what this error stems from and, better how to get rid of this problem?
    P.S. I can do the same thing without jQuery, but I am planning to use this tool for other APEX/AJAX tasks so I would like to get it right in the beginning.
    APEX: v 3.1.2.00.02
    jQuery: v.1.2.6
    Igor

    Problem solved.
    When I took away the reference to json.js library (http://www.json.org) from page template, jQuery began to work OK.
    In the meantime, there was a new version of the library on their site, json2.js (19.11.2008) and this new version does not seem to conflict with jQuery library.

  • Collapsed Tabular Form Heading when "No data found".

    The ' Collapsed Tabular Form Heading when "No data found" ' problem (speculated to be bug 9893564) is discussed here: {message:id=4419231}. Warning link is out of date. I'm still seeing it in APEX 4.2.
    I support Kelly's comments "looks like something is broken" and "Now this header (which is sized smaller before data is retrieved) comes between the search items and the help message and looks clumsy.".{message:id=9185914}.
    Any suggestion to get around it when no data is found?
    1) Is there a way to hide the header when there is no data? Or,
    2) Is there a way to adjust the width of the columns if the header must display? I'd like them to be about what they are when data is displayed. I know those lengths but not how to affect the header width for a tabular report with no data.
    Example:
    WS APEX_EXAMPLES_01
    demo
    demo
    Appl 78329 Tabular Form - page 1. (I forced query not to find any data for demo purposes.)
    Thanks,
    Howard

    Howard (... in Training) wrote:
    Paul --
    Great! So many new techniques here -- new to me. Generally, I much prefer positive logic as well. But this solution seems to have more pieces than the other.There is method in that.
    Firstly, with Aljaz's approach you can see a flicker as the tabular form is actually rendered and then hidden when the script in the footer is eventually run. This will be more apparent with a longer or more complicated page where it takes longer to reach the script and more content needs to be adjusted following removal of the form. Reversing the logic and hiding the form using CSS in the page header prevents this as the form elements are initially created as hidden nodes in the DOM before any of the page is rendered.
    More important is that this approach applies the principles of the separation of concerns and unobtrusive JavaScript. At some point when developing in APEX you're going to find yourself seriously losing your cool in a situation where you know the app is executing some JavaScript, but you can't find where that script is defined (maybe you've already been there). Look at the page 2 definition using the tree view: where's the JavaScript that is going to run? Now look at page 1: ah, there are a couple of dynamic actions...
    APEX now includes a lot of containers specifically for JavaScript: File URLs, Function and Global Variable Declaration and Execute when Page Loads in page templates and page headers, and declarative and custom Execute JS Code Dynamic Actions. These provide for good separation of concerns: we should use these locations for JS code, and avoid the exasperation of hunting through templates, page/region headers/footers, page 0 regions, pre-/post-element text or wherever to find the script we can see in the page source or JS debugger.
    Aljaz's solution also depends on detecting the presence of the No Data Found message with class <tt>nodatafound</tt>, and on modifying the Add Row button.
    What if someone changes the class of the No Data Found message in the report attributes? The Exists... condition on the dynamic action performs this check in a more direct way (although it's not ideal: DRY is violated by having both 2 copies and 2 executions of the report SQL; nor is it reusable on other form regions).
    Modifying the Add Row button JavaScript directly is intrusive. Like footers and templates, it's another non-obvious location for JS customisation. By using a dynamic action to bind another click handler to the button we're making the modification more obvious, and more importantly we don't have to modify what it's already doing&mdash;or in this instance, even care what that is (in other circumstances we might need to change the order or propagation of events, or suppress the original behaviour).
    As for reusability, my original solution didn't really consider this (as it wasn't mentioned in the OP). Since the subject has been raised, and in accordance with my comments above, I'd approach it in a different way.
    As discussed, I suggest not squirrelling JavaScript away in region templates. I'd create a reusable report template for tabular forms rather than a region one. A <tt>class</tt> defined on the report container there will provide a more direct selector for hide/show behaviour. I'd stick to initially hiding this report via CSS, and use dynamic actions defined on the global page to conditionally show it on page load and bind show behaviour to the Add Row button click. To make these DAs reusable I'd remove the Exists... condition from the first one and replace it with a JS condition that checks to see if the tabular form report contains any visible data rows (the class on the report template will help there as well). Binding the show behaviour to the Add Row button would use the <tt>onclick</tt> attribute as a selector (rather than an ID selector that requires an intrusive edit of the button) so that all Add Row buttons would be affected: <tt>$('button[onclick^="apex.widget.tabular.addRow"]')</tt>.
    And about the style code:
    #report_tabular-form,
    #report_tabular-form .report-standard {
    min-width: 90%;
    } That is an improvement. I had read about it but not considered it for this. I tried the technique used to adjust column width on other reports but when I use "div," it makes the data in that column display only. I really want to adjust the width of the individual column header. Is there a way to do that?I'm not really clear what you're asking here. (Use "div"? Where? How?)
    To control the width of individual report column headers, use the following CSS:
    th#COLUMN_ALIAS {
      width: 10em;
    }Where <tt>COLUMN_ALIAS</tt> is the alias of the column in the query: APEX uses this as the HTML <tt>id</tt> attribute for the column table header element. (Note that <tt>id</tt> attributes must be unique within a document, so it the same column appears in multiple reports/forms, ensure each column alias is unique.)

Maybe you are looking for

  • IPhone 3Gs Voice Control does not work

    Purchased IPhone 3Gs 32g beside having no service were I live (AT&T is building a cell tower about a mile from my house) my Voice control only works about 1% of the time. For the Ipod I usually get some kind of error message "like listing not found"

  • HT4527 My iPhone will not show up as a device in iTunes on my PC. what do I do?

    My iPhone will not show up as a device in iTunes on my PC. What do I do?

  • Ejb wl5.1 client talking to ejb wl6.1 server?

    I have a session ejb running in wl 5.1 that must act as a client of a wl6.1 ejb (wl 6.1 running on another host). Since the RMI layer is incompatible between 5.1 and 6.1 I must jump through some hoops to get this to work. I've considered packaging th

  • HP6310 won't respond to power button, camera light flashes

    After turning my HP6310 off by unlugging the power cord, I can't get it to turn back on properly. I plugged the power cord back in and the display lights up blank and the camera light in the front lower left flashes. The power button does not light u

  • Photoshop CS5 missing features???

    OK I downloaded the trial of CS5 and installed it.  The install went fine.  But when I try to open some of my Canon RAW files some strange things I notice. I opened an old Canon 400D RAW file and it opened fine in Adobe camera RAW.  But none of the n