Report Template -  NULL in Row Template Condition

I just found a workaround, but,
in a report template, in a Row Template # Condition, based on a PL/SQL expression, the condition always fails if/when #COLUMN_VALUE# was NULL.
I worked around this with a NVL in the query - but, is there a better way?
I want the column highlighted when the value is null - to point out where values need to be entered - i.e. when the record needs to be updated.
THanks - Karen

Ok, I have since found out that the setting to make a report template
available in the Based on > Visualization templates is in the
'package.xml' file for each report. The value that needs to be changed
is <IsQueryParameterized>0</IsQueryParameterized> and change the 0 to 1.
kmcooke1
kmcooke1's Profile: https://forums.netiq.com/member.php?userid=5806
View this thread: https://forums.netiq.com/showthread.php?t=49091

Similar Messages

  • Row Template Condition doesnt working

    Hi all,
    i have a self made "row template" for my report:
    "Before Rows":
    <table cellpadding="5" cellspacing="0" border="0" summary="">
    <tr>
    <th>ID</th>
    <th>ID_SHOW</th>
    <th>TITEL</th>
    <th>DOCUMENT</th>
    <th>status_external</th>
    <th>status_internal</th>
    <th>action</th>
    <th>tage_action</th>
    <th>crreated_on</th>
    <th>tage_anlage</th>
    <th>creator_name</th>
    <th>editor_hotline_display</th>
    <th>prio</th>
    <th>color</th>
    <th>erledigung_bis</th>
    <th>histo</th>
    <th>arbeitskorb</th>
    </tr>
    "Row Template 1"
    <tr class="#1#">
    <td >#2#</td>
    <td>#3#</td>
    <td style="background-color: yellow;">#4#</td>
    <td>#5#</td>
    <td>#6#</td>
    <td>#7#</td>
    <td>#8#</td>
    <td>#9#</td>
    <td>#10#</td>
    <td>#11#</td>
    <td>#12#</td>
    <td>#13#</td>
    <td>#14#</td>
    </tr>
    "Row Template 2"
    <tr class="#1#">
    <td>#2#</td>
    <td>#3#</td>
    <td>#4#</td>
    <td>#5#</td>
    <td>#6#</td>
    <td>#7#</td>
    <td>#8#</td>
    <td>#9#</td>
    <td>#10#</td>
    <td>#11#</td>
    <td>#12#</td>
    <td>#13#</td>
    <td>#14#</td>
    <td>#15#</td>
    <td>#16#</td>
    <td>#17#</td>
    <td>#18#</td>
    </tr>
    "Row Template 2 Condition" - use based on PL/SQL Expression
    '#DOCUMENT#' is null
    The "Row Template 1" is to be show only if Column "DOCUMENT" is not null, otherwise "Row Template 2" is to be show if Column "Document" is null. I have test various examples:
    '#4' is null, '#4#' is null and '#DOCUMENT#' is null. Without effect. Only "Row Template 1" is showing.
    Can anybody help me?

    Hi,
    null in conditions would return no value rather than 'null' - you can catch this by using an empty string - so:
    '#4#' = ''Andy

  • Bug?: Tabular Form function "addRow" can't handle multi-line Row Templates

    Hi all,
    i created a custom Report Template (Named Column Row Template) which creates 2 lines per Record (which in fact is 2 rows in a HTML table).
    In the APEX function initTabForm (apex_4_0.js) the sample row (f01_0000) is read and stored in gTabFormInitRow
    This is done by using a jQuery Selector like this: jQuery('#init_row_'+pRegionID) which returns only the first row of my multiline record.
    Is this behaviour intended or is it a bug? Or do i have to change my HTML structure?
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    Work: http://www.click-click.at
    Training: http://www.click-click.at/apex-4-0-workshops

    Hi Marc,
    thanks for the quick reply.
    I was afraid you would say it is intended behavior :-)
    A table per row has the disadvantage of loosing the automatic column width, i would have to set the column width to a fixed value to maintain a nice look.
    Well, thanks for the moment, i'll try to find a general solution and (if i succeed) get back to you.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    Work: http://www.click-click.at
    Training: http://www.click-click.at/apex-4-0-workshops

  • Report Row Template: Column condition

    In a classic report using a Generic Column template, one can use the Column Condition attribute to conditionally render the column.
    But when using a named column (row template), even though the Builder allows one to specify this condition, it doesn't appear to be used.
    So how would one implement conditional column display in these templates?
    Thanks

    Hi,
    That's actually easier. See: [http://apex.oracle.com/pls/otn/f?p=267:60]
    The SQL for both reports is:
    SELECT EMPNO, ENAME, NVL(SAL,0) SAL, NVL(COMM,0) COMM
    FROM EMP
    ORDER BY EMPNOThe SAL and COMM columns have been formatted using:
    999G999G999G999G990D00For the Row Template, the Row Template 1 setting contains an empty space (you have to have something in there otherwise Apex adds back in a default row containing five cells!). The condition for this is:
    TO_NUMBER('#COMM#','999G999G999G999G990D00') < 100The template will see the data as a string, so we use the same number format to convert that string back into a number and compare this to 100. If we didn't use formatting on the numbers and we are sure that every row contained a number (hence the use of NVL()), then you could use:
    #COMM# < 100Row Template 2 contains the format for the rows that need displaying:
    &lt;tr&gt;
    &lt;td class="t18Data"&gt;#1#&lt;/td&gt;
    &lt;td class="t18Data"&gt;#2#&lt;/td&gt;
    &lt;td class="t18Data" style="text-align:right"&gt;#3#&lt;/td&gt;
    &lt;td class="t18Data" style="text-align:right"&gt;#4#&lt;/td&gt;
    &lt;/tr&gt;and is unconditional.
    The only other settings on the Row Template are the Before Rows:
    &lt;table class="t18Standard" style="border-collapse:collapse; border:1px solid black;"&gt;
    &lt;tr&gt;
      &lt;th class="t18ReportHeader"&gt;Empno&lt;/th&gt;
      &lt;th class="t18ReportHeader"&gt;Ename&lt;/th&gt;
      &lt;th class="t18ReportHeader" style="text-align:right"&gt;Sal&lt;/th&gt;
      &lt;th class="t18ReportHeader" style="text-align:right"&gt;Comm&lt;/th&gt;
    &lt;/tr&gt;and After Rows:
    &lt;/table&gt;Of course, you will note that the record counters at the bottom still show the number of records in both reports - as the SQL still outputs the same data, this doesn't change.
    Andy

  • Conditional display in the row template!

    Hi,
    I created a report template and my report shows like this:
    col1 col2 col3 col4 col5
    a 4 5 6 7
    b 4 8 7 2
    Total 8 13 13 9
    I am able to display all the above, but the column name should be "Total" at the end of the report when i am displaying the totals. totals also coming from the database, so i am not calculating here.
    Shall i put any condition saying that if the col1 is null then col1 should display "Total".
    Please suggest.
    Thank you.

    manyam16 wrote:
    Actually I used the row template conditions to solve that. But I have added one more count in the database package, that column is coming into the report attributes, not showing in the report. any ideas?
    I am using like this #COL50#where are you using this? if you are using this in column conditions, it will not work
    thank you,

  • Custom report row template

    Few questions when using a custom report row template. Followup to the discussion Report Row Template: Column condition
    1. The row template allows full control how the entire row is rendered. I can see this being used when the report query returns a single row and we need to format it in a very specific way. But when the query returns multiple rows, how is the specified Row Template used? i.e the first row is "consumed" and rendered as per the template. If the same process is repeated for subsequent rows, how can we control whether successive rows are rendered across the page (left to right) or down the page (top to bottom)?
    2. When a custom row template is used to render a tabular form, the hidden columns (marked Edit=Y, Show=N on Report Attributes) are present in the markup even when they are not specified in the row template! i.e. the MRU process works. Of course, this is a good thing but I was curious to know what exactly controls this, what part of the report template controls where the hidden form elements are placed?
    3. Any number/date formatting specified declaratively on the Column Attributes page appears to be taken into account when column values are substituted in the template using #COL# notation. But all the other Column Attributes are ignored (alignment, sum, show, link, etc). Is there a way to use the Link attribute to declaratively specify the link so the value of the column #COL# as seen by the report template includes the A tag?
    Thanks

    Comments? Thanks

  • Conditional bg color in row template

    I created a new row template for my report but I get the following error when I include it in the report:
    "Error ERR-1025 Error processing PLSQL expression. #missing_patches# = '-'"
    In the row template itself, I used the following values ("missing_patches" is the conditional column in the report-query):
    Row Template 1 (PL/SQL Expression): <td>bgcolor="yellow" #COLUMN_VALUE#</td>
    Row Template 1 Expression: #missing_patches# = "-"
    Row Template 2 (PL/SQL Expression): <td>bgcolor="red" #COLUMN_VALUE#</td>
    Row Template 2 Expression: #missing_patches# <> "-"
    Anybody an idea what I am missing? Thank you.
    Thomas

    Well, bgcolor should be inside the <td> tag, but bgcolor is depricated in HTML 4.x. You should really be using classes or inline styles.
    Tyler

  • Report Row Template - header

    Hi
    I have made a custom "Report Row Template". I have write the "header" direct in the html code. Is that a problem if i want to translate the application? Is there a way how to use the headers from the apex?
    Best Regrads
    Jesper Vels

    Hello Jesper,
    OK, I can see now what you are trying to do. Unfortunately, the only similar example I'm familiar with - http://apex.oracle.com/pls/otn/f?p=11933:108 – Is also using hard coded text for the headings.
    I can show you how to get to these headings, and how to use them on your template, but I'm afraid this is not a generic solution, as I couldn't find an active substitution string for the column headers.
    As there isn't any variables to hold these column names, we need to define our own. You can do that using an application items or hidden page items. Let's say I defined three hidden items on my report page: P1_HD1, P1_HD2, P1_HD3. Each item will be defined with Source Type of SQL Query, and Source Use of "Only when …". The Source Value for the first item will be as follow:
    select  heading
    from  FLOWS_020200.APEX_APPLICATION_PAGE_RPT_COLS
    where  APPLICATION_ID=:APP_ID and
           PAGE_ID=:APP_PAGE_ID and
           DISPLAY_SEQUENCE = 1;The DISPLAY_SEQUENCE should change according to the sequence of the column.
    If you choose to use an application items, you'll need to use a before header computation on your report page, with the same query, to populate the application items.
    In order to use these items in the report template, we need to use the "&P1_HD1." notation. You can have something like this, for the first header in your report query:
    <tr><td>&P1_HD1.: </td><td>#1#</td>   . . .Hope this helps,
    Arie.

  • Report - row template or custom?  (pics!)

    Hi all. I have a report that is using a column report template (CURRENT).
    I would like to know what you think is the best way to change the report to look like the FUTURE picture (edited in mspaint). A row template? A custom template? A pl/sql procedure?
    CURRENT
    http://farm4.static.flickr.com/3097/2590550193_39bb7885eb_o.png
    FUTURE
    http://farm4.static.flickr.com/3043/2591385584_5d5365c0c0_o.png
    Thanks in advance for your ideas! ~Darby
    apex ver: 2.0 (don't ask!)
    db ver 10g

    OK I figured out how to create a page template, and I'm almost there! I'm pleasantly surprised at how close I am to the mockup I created earlier (FUTURE)
    STATUS
    http://farm4.static.flickr.com/3050/2591089881_55d5ca7ec3_o.png
    thanks to this example:
    http://apex.oracle.com/pls/otn/f?p=11933:9:2556840832082449::NO:::
    Now I need to figure out
    -- some formatting issues (weird borders)
    -- how to get titles while NOT getting subtotal AND total
    -- how to get total once and put it below the combined 3 regions.
    By the way this is a printer-friendly-based page, so no form load. I can not use a page with a form because we are using File\Send\Page byEmail (IE). When there is a form, Outlook shows the hidden fields.
    cool code to move a region to another spot on the page.  HELP-doesn't email
    ~Darby

  • Substitution String in Row Template order dependant

    Hi Folks,
    This questions is related to an earlier Complex Detail Report Layout: Can it be done? about building a complex row template (thanks for your help, Vikas!).<br><br>
    Having built the row template (Named Columns) and tested it in a separate application, I have been preparing to incorporate it into the target application. (Here's a screen shot of the work in progress.) I decided to see if I could use column aliases with the substitution strings and so added an alias to the query for the report.<br><br>
    Strange values appeared (like a "Y" for a Project Name) and initially I thought the aliases wouldn't work, so I backed the change out. However, it was now quite apparent that the substitution strings were not taking their values from the column names, as I expected. I was able to put the values in the correct place by modifying the order of the columns selected in the query.<br><br>
    Am I misunderstanding? Shouldn't the order of the columns in the select statement be irrelevant when named columns are used? <br><br>
    Since the order in the query is NOT the order displayed in the template, and I have nearly 30 fields, (many of which are dates, and I couldn't possible guess which is which if the substitution doesn't work properly), it seems important to understand how to ensure the proper values appear in the report.<br><br>
    Many thanks for your help,<br><br>
    Petie

    I take it back. This is whacked. Please take a look at the picture (http://tinypic.com/view/?pic=nygyu0)
    OK, I had a select statement:
    select ps.project_name, ps.project_manager,  ps.gts_dependant, ps.gxp_relevant from project_status ps, eprs_program p
    where
    ps.program_id = p.id and
    p.program_number = :P6_PROGRAM_NUMBERThis populated the fields #PROJECT_NAME#, #PROJECT_MANAGER#, etc. properly.
    I even switched the order around and put the ps.project_manager ahead of the ps.project_name and template still worked.
    I restored the order and checked again. All is good.
    I changed the query and added an alias like so:
    select ps.project_name as "PROJ_NAME", ps.project_manager,  ps.gts_dependant, ps.gxp_relevant from ...The report showed the substitution string "#PROJECT_NAME#" (as expected, because the column was now aliased.) So this is good.
    I went to the row template definition and changed the substitution string #PROJECT_NAME# to #PROJ_NAME# to match the query -- and the substitution strings broke again!
    The report template now behaves as described earlier; being position dependant. Now I suspect that this is a bug, and not something caused by my mucking around.
    I would greatly appreciate your thoughts on the matter and potential workaround. At this point, I will likely delete the region and try creating a new region. I would hate to loose the whole page, the top part was a lot of effort. <sigh>
    Thanks,
    Petie

  • Row template showing always additional empty row

    Hi everybody,
    When I used row templates with apex 3 it worked fine. With apex 4, I always get an empty row in addition to the ones I query.
    This behavior appears with firefox 3.6.7 as well as with ie 8. The standard report template "value attribute pairs" causes the same wrong behavior.
    I appreciate any hints.
    Robert

    Hi Dan
    Thank you very much for looking at my problem. I have created an example. Please have a look under:
    workspace: processlink
    userid: admin
    password: admin
    application no: 395
    Thank you
    Robert

  • How do you change categories in both transactions and budget report in the personal budget template in Numbers?

    How do you change categories in both transactions and budget report in the personal budget template in Numbers?
    I am working on both an iPad mini and a MacBook Air. 
    Whenever I change the category name in the budget report, it does not actually show up in the transactions tab when I am using the Personal Budget Template. 
    I have already tried copying and pasting a category in the budget report to add another row but it still does not show up in the transactions tab. 

    Hi golmeda,
    Check out this answer here:
    Using Numbers Personal Budget template I can't figure out how to change the categories in both tabs (budget and transact…
    If it is unclear let me know.
    quinn

  • Row templates overriding column format

    We're in the process of inserting row templates into existing reports, rather than have separate row definitions for each IS, etc. When the template is inserted, column formatting is lost. We're tried reestablishing the formatting, inheriting formatting from a non-template row, etc., but nothing seems to work. Any ideas would be greatly appreciated.

    Hi,
    I've the same problem.
    In Column Heading Template I've entered:
    <td class="t16ReportHeader" id="#COLUMN_HEADER#" #ALIGNMENT#>#COLUMN_HEADER#</td> and it's working fine.
    In Row template I've entered
    <tr #HIGHLIGHT_ROW#>
    <td headers="#COLUMN_HEADER#" class="t16data" #ALIGNMENT#>#1#</td>
    <td headers="#COLUMN_HEADER#" class="t16data" #ALIGNMENT#>#2#</td>
    <td headers="#COLUMN_HEADER#" class="t16data" #ALIGNMENT#>#3#</td>
    <td headers="#COLUMN_HEADER#" class="t16data" #ALIGNMENT#>#4#</td>
    <td headers="#COLUMN_HEADER#" class="t16data" #ALIGNMENT#>#5#</td>
    </tr>Neither #ALIGNMENT# nor #COLUMN_HEADER# nor #HIGHLIGHT_ROW# is recognized and 'tranlsated' to correct value, it's just written like it is to the HTML code.
    Are there any news how to solve the problem?
    (I'm using ApEx 3.0)
    Thanks
    chrissy

  • How can I modify column width in a spreadsheet report without using an Excel template

    I currently use the LabVIEW Report Generation toolkit in LabVIEW 2011SP1 to create simple spreadsheet reports that I can build/print without having Microsoft Office products installed.  I really like being able to do this, and it allows me to generate nice on-demand data reports - I'm also not tied to having Office installed on the system I'm using, so this works on just about any test fixture I can install the software on.  
    I recently have a requirement that I must have variable-length columns in my report.  I currently use the VI "Append Text Table to Report" in order to create a text table, but the column width requirement is that all columns must be equal width UNLESS I use an Excel Template file to define my column widths.  
    My questions are:
    Is it possible to create a text table and define per-column widths without using an Excel Template?  If so, how?  My report mainly has a lot of small numerical values for the columns, but some columns contain system names or status messages - I really hate the longer text blocks wrapping and taking up so much real-estate when if I could control the column widths I can get all my data on a single line.
    I'll admit I haven't tried this myself yet, but if I use an Excel Template will that require me to have Excel installed on the PC in order to print/generate reports?
    Is there a recommended way (with an example) of generating a text table in a report with or without using the "Append Text Table to Report" VI that allows me to have custom column widths that doesn't require me to manually build a custom print page?  If I do have to create a custom print page, what would be the most straightforward approach?
    Thanks!
    -Danny

    Sure, I'll provide a pared down example that demonstrates my use-case:
    I have a control to the VI that takes in a 2D array of strings representing the data I want printed in a table.  I am generating a standard report, adding a table to the report, and printing it.  The first VI is "New Report.vi", the second VI is "Append Table to Report.vi", and the third is "Print Report.vi", all found standard in the Report Generation palette.
    Note that the "Append Table to Report.vi" has an input parameter "Column Width" with a default value of (1).  This input parameter is a single input parameter, which defines the column widths of ALL the columns in my table - hence, with the VI the way it is, all my columns will be 1 inch wide.  
    I find myself needing to be able to define per-column widths, not just a single global column width parameter.  
    The only way I have found to do this is by using an Excel template file.  The "New Report.vi" takes in a "template" parameter, and if used, the report generation toolkit can be set to ignore the "Column Width" input parameter on the "Append Table to Report.vi" by setting the width value to -1.  Instead it will launch Excel, open the template file provided, build the table using the template, will close Excel, and will attach the generated table to the report.  However, I have a strict requirement that Microsoft Office NOT be required to be installed on the computer.  
    So, without using Excel, is there a way to generate a table in a report and define the width of each column individually?
    -Danny

  • Report Time zone in Excel Template

    Hi,
    How can we display the TimeZone that is set in the BI Publisher Preferences. Is there anyway to display this timezone in Excel Template.
    In RTF Template, 'm able to display it using ,
    <?format-date:xdoxslt:sysdate_as_xsdformat();’dd-Mon-yy hh:mi:ss’?>, so whenever I change the Report Time Zone in BI Publisher , the output of RTF Template gets affected correctly.
    But I have to do the same in Excel Template, Is there anyway to achieve this?
    Thanks in advance

    I found a way to display the parameter, but it shows the return value. Is there a way to show the display value as it is when submitting the report? For example i have a LoV as follows:
    select test as display_value, 10 as return_value from dual and it is attached to a parameter. Then i define that parameter in the XDO_METADATA and display it to another sheet - it will display the return_value(TEST) ... Anybody knows how to output the display_value?
    Thanks,
    Alexander.

Maybe you are looking for