Model report - how to reference COLNUM in the condition of neck model?

Hello

I have a query with 4 columns. based on this query I would like to make a report with a layout of the line that looks like this:

| the value of Column1 |
----------------------------------------------------------------
| value of Column2 | value of Column3 | Column4 value |

I created a report model, four column templates: one for column 1, one for the following columns and one for the column of weary of the report.

My problem is that when I reference * #COLNUM #* as mod(#COLNUM#,4) = 1 in the column template condition fields, then I get *'ORA-06550: line 1, column 34: PLS-00103: encountered the symbol "#" when expecting one of the following numbers: () - +... "*

Reference COLNUM not allowed in the column template Condition field?

Tamas

Published by: Tamas Szecsy July 16, 2011 23:33

Tamas Szecsy wrote:
I have a query with 4 columns. based on this query I would like to make a report with a layout of the line that looks like this:

{noformat} | the value of Column1 | {noformat}
{noformat}----------------------------------------------------------------{noformat}
{noformat} | value of Column2 | value of Column3 | Column4 value | {noformat}

I created a report model, four column templates: one for column 1, one for the following columns and one for the column of weary of the report.

To do this, you create a named column (model line), not the generic columns (column model).

Front of the lines

Model of line 1

After the lines

#1#
#2# #3# #4#

No condition.

What about table headers?

My problem is that when I reference * #COLNUM #* as mod(#COLNUM#,4) = 1 in the column template condition fields, then I get *'ORA-06550: line 1, column 34: PLS-00103: encountered the symbol "#" when expecting one of the following numbers: () - +... "*

Reference COLNUM not allowed in the column template Condition field?

I do not suspect. Only #ROWNUM # is mentioned in the online help for column/line template Expressions. #COLNUM # is indicated only in the column/row templates themselves.

(Always post sample layouts using \

...\

or {noformat}... tags {noformat} to keep in shape/stop Jive to transform into something else.)

Tags: Database

Similar Questions

  • How to reference the value of the elements in a generic report

    Hello

    I created a generic report. The source is a PL/SQL-function returning a query stored in a package of pattern analysis, using the apex_item package. I put the values of p_item_id according to p_idx and rownum. In the browser, I can see the unique (id = '... ('') elements. The report works well.

    A column is an analytic function and indicates for each row of the same value. The column is hidden. According to this value, I want to show or hide the buttons.

    How can I get the value of this column. Apex_application.g_fxx do not work. Apex_application.g_fxx. COUNT = 0 for all possible columns.

    So, how can I refer to the value in the report.


    Any suggestions?
    Thank you

    Hello

    The site seems very strange. First of all, I discovered the columns, which scored not displayed at the top are not displayed in the Web site.

    Do you mean to say that apex_item.hidden elements are not in the form "Information Form"? It would be certainly weird

    Kings of eight columns, which are displayed in the form of display_and_save are not double in the Web Developer in normal view. ???

    There will be as many occurrences of a "apex_item" on the ground because it is a lines on your report.

    What other columns f31, f33... f40?

    Yes, why is it no information is show for these? :)

    Try creating a tabular form on a new page. Use a simple query that uses apex_item.text and apex_item.hidden. You are able to get the page to work properly?

    CITY

  • How to reference the substitution model in State of PL/SQL string

    Hello - I need display conditionally an article based on the value of #TITLE #. I'm trying a function body pl/sql expression returning a Boolean

    DECLARE
    PAGE_TYPE VARCHAR2 (1000);
    BEGIN
    PAGE_TYPE: = lower (substr (:TITLE,instr(:TITLE,'Query')));

    If (page_type = "query") then
    Return TRUE;
    on the other
    return FALSE;.
    end if;
    END;

    There are no errors, but the condition is not met, whereas it should be.

    I tried to adjust some elements of the application to the value of #TITLE # and I'm obviously not reference properly. they are all null:
    : Test_value: = & TITLE. ;
    : TEST_VALUE2: =: TITLE;
    : TEST_VALUE3: = V ('TITLE');

    Help?

    Thank you
    Carol

    Hello

    Your can use the page title attribute in the metadata as...

    SELECT page_title
    INTO my_var
    FROM apex_application_pages
    WHERE application_id = :APP_ID
    AND   page_id = :APP_PAGE_ID
    

    ???

    See you soon

    Ben

  • How to reference the link column in the detail view

    I have a pretty simple question that turns everyone strain. I created a simple report and defined a column of link to point to a page of edition to the line items. So far, everything is great and works as expected.

    Now I use the detail view to replace the standard HTML code for each LINE of my report. I can access all the #COLUMN_NAME #s to fill my own HTML for each ROW with the values of the report.

    How can I reference the column link in my view detail? What is the # to #SUBSTITUTION_STRING it? How can I find out about all available alternative channels?

    Thank you

    Jan

    That's the problem with the detail view, it is difficult to add conditional fields without the ugly SQL.

    Another alternative is the named report model, but it shares the same problem

    APEX reports: layout custom with a column named (model line)

  • How to create and process the Iinteractive report with the records selected in 4.1

    Hello

    I want to have an interactive report that will have a check box that can be selected for processing batch in front of each line. Is it possible to do?
    If there is, please provide a method to deal with these cases, i.e. for each selected record, create a new record on another table and update the record as well as the Treaty.

    Thank you

    Published by: yannisr on July 13, 2012 05:58

    To do this, you must consult the documentation for the APEX for two things

    Create a checkboxes using APEX_ITEM API

    How to reference these boxes in a process to send

  • How to reference the value of a < af:inputText > to the level of the view in a java class

    How to reference the value of a < af:inputText > to the level of the view in a java class to level model? Thank you!

    Hello!
    1: you must close this topic and open another... :))) and game question calls for a response (if my answer is correct: set my answer - correct answer)...

    2nd: for example in your java class in view level:

    links BindingContainer private;

    public BindingContainer {} getBindings()
    If (this.bindings == null) {}
    FacesContext fc = FacesContext.getCurrentInstance ();
    This.Bindings =
    (BindingContainer) fc.getApplication () .evaluateExpressionGet (CF,
    "#{bindings}."
    BindingContainer.class);
    }
    Return this.bindings;
    }

    Public Sub UseSetMyParam()
    {
    Fcab FacesCtrlActionBinding = (FacesCtrlActionBinding) getBindings () .getControlBinding ("setMyParam");
    fcab.doIt ();
    }

  • How do you turn off the coast of photographic reports (live).

    How do you turn off the coast of photographic reports (live)

    Hello always56,

    Thanks for this info and choosing the communities Support from Apple. I know how important setting in the camera options soft photo is for you!

    Looks like you want to disable Live Photo when shooting. Live Photo is enabled by default. To turn on or turn off, tap on the Live Photos, and when this icon is yellow, pictures Live is on. Here is additional information that will help to understand further.

    Take pictures and videos - iPhone

    See you soon!

  • FF 16.0.2 - my report of Trusteer is missing from the address bar, how do I get it back?

    I've recently updated Fire Fox to 16.0.2 and now the Trusteer report icon on the address bar is missing. I checked my console Trusteer report and it is said that the address bar icon is visible. I want to know how to get it back.

    Hello xqxrocky,

    We are aware of this problem and it has been fixed in report 1205.15 version that you can download directly from here: https://trusteer.exavault.com/share/view/kyf-eojioddc-15igp6l

    If you need help, we will be happy to help-here or through our team of free technical support 24/7 at http://www.trusteer.com/support/en/report-problem

    Kind regards
    Alex Man,
    Technical support Trusteer

  • Displaying several curves on a graphical 2d in reports how can I force a curve to be at the forefront?

    Displaying several curves on a graphical 2d in reports how can I force a curve to be at the forefront? I have two signals, and I want to show a bunk on top of the other. This time Diadem will be only graphic it the other way around. I tried to delete the curves and add them in different orders, change the order that they are in the list of the curve, changing their order in the data, right-click on the curve portal and selecting "move to forground" (this only moves the complete 2D graphic object in the foreground). IM using the Diadem 12.0 base.

    Hello Joe,

    I found what causes your curves draw in the wrong "order".

    You are using two value axes and DIAdem still attracts before Y2 Y1 data, regardless of the order of the curves in the "Curve and definition of the axis" dialog box.

    I enclose your layout with a little modification, I changed the order Y1 and Y2 axis (I swapped whose data is displayed on the value axis) and I get the following result:

    Once I looked at your page layout, it appeared, why the order of curves does not reflect the order in which curves were drawn. I didn't - so I just learn something new here as well.

    I hope that this answer to your question, do not hesitate to ask if there is anything else I can help you.

    Otmar

  • [ADF, JDev12.1.3] master / detail af:tables the link is handled by ExecuteWithParams: how to create a master report / detail in a loop on the lines?

    Hallo,

    I have a page with 2 legs and they both contains an af:table created by dragging an instance of VO in the user interface.

    The 1st tab uses a master VO while the 2nd uses a VO detail.

    Between 2 your, there is not a link of VO master / detail.

    Opening Details tab I update the secondary table by calling the method ExecuteWithParams of the detail VO instance (in a managed bean).

    I would now like to generate a report that loop on the master table and that, for each line of master:

    • He writes in the report;
    • loops of registration of details (which are based on the master record) and also writes the report.


    Could you kindly suggest me which is the best way to achieve that through a code to write in a managed bean?

    Here I am interested how do to loop through the data, not in how to write the report.

    Thank you

    Federico

    Yes it will affect the selected line. If you want to ignore try using this code

        DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("DepartmentsView1Iterator");
        ViewObject vo = iter.getViewObject();
        for (int i = 0; i < vo.getEstimatedRowCount(); i++)
        {
          Row r = vo.getRowAtRangeIndex(i);
          System.out.println("DeptId= " + r.getAttribute("DepartmentId"));
        }
    
  • How can I get the classic report value when I click on the record?

    Hi all

    I have a simple classic report and I want to get the empno when I click on record. For example, when I click on record 1, and I'll go '7369', if I click on the 3 card, and I'll go '7521'. How can I do this? Please help, thanks!

    Hi jane.kuang,

    Jane.Kuang wrote:

    Thank you very much!!! Your message is useful for me. But this javascript has something wrong. When I click on the first time, the empno appears only once, but when I click on the other record, empno appear twice, and I click on the third time, it appears three times... I'm new to JS, I don't know how to fix it. Thank you!

    Use instead the dynamic action to that effect.

    Here are the steps:

    • Change your region classic report-> section 'Attributes'-> 'ID' static-> give an id say myempregion static
    • Create a dynamic action with the following attributes:

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector:

    #myempregion table.uReportStandard tbody tr
    

    Action: Run the JavaScript Code

    Code:

    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text();
    alert(empno);
    $('#P21_X').val(empno);
    

    Items concerned: keep it unselected

    • Change once created, your dynamic action-> go to section 'Advanced'-> set 'Extended event', 'dynamic'.

    This will fix the following in the code of the Para:

    • The jQuery Selector used by Para to trigger the click event is bad. This will fix the multiple alerts.
    • Para code won't work on loading the page, but if there are many rows in the table and pagination for the report is in place, and then when you paginate your report, it will not work. But it will work with dynamic action 'Scope of the event' the 'Dynamic' value even when you paginate the report.
    • Finally, most of the dynamic interactions page must be converted to dynamic actions, this will help the maintainability of the code, instead of stacking the javascript in your page.

    Kind regards

    Kiran

  • How report us suspicious books, etc. on the oracle certification?


    How report us suspicious books, etc. on the oracle certification?

    For example, go to www.amazon.com and enter the following "marathon of the Oracle.

    Look at books, etc. "by M.

    user6862024 wrote:

    How report us suspicious books, etc. on the oracle certification?

    For example, go to www.amazon.com and enter the following "marathon of the Oracle.

    Look at books, etc. "by M.

    Well seen.

    Certainly on amazon.co.uk there was a bunch of braindump kindle publications in February.  It was a link to a url in one of them and certguard.com said braindump site.  In general only unpublished reputable publishers on amazon... now here can be a risk people scan a few pages/PDF of the copyright and area to make a quick profit.

    https://blogs.Oracle.com/certification/entry/cheating_part_7_what_can_you_a indicates that you can send an email [email protected] (they will not respond normally, but I know they'll take advice.

    You can also get the same email Global FAQ... search "fraud".

    (I am a bit careless in reports but only noticed amazon navigation at Easter... and I was distracted and busy... and who says fraud ocp are already probably already aware.)

  • How do reference a value in the ATTR5 column from a mapping FDMEE Script?

    OK, I think I thought about it:

    In Jython his:

    fdmRow.getString ("ATTR5")

    Post edited by: Robb Salzmann - figured it out.  I thought I want to leave here in case someone else had the same question.  Still available for other answers and suggestions :) points

    Hello

    There are a few points not specified in your question:

    * How to reference the ATTR5 column in the strRecord mapping FDMEE Import Script argument?

    -There are no FDMEE mapping import Scripts. You have FDMEE mapping of Scripts and Scripts to import FDMEE. They are different types of scripts

    -strRecord is used in the Import Script. Is the 2nd parameter of the import script works... def funcname (param1, param2):

    -ATTR5 is a column in table TDATASEG. It is accessible in the FDMEE mapping using fdmRow.getString("ATTR5") or simply ATTR5 scripts if you use #SQL mappings

    If it was your original question, or you have any other problem?

    Concerning

  • How to know all of the standard reports available under EBS R12

    Hi all

    How to know all of the standard reports available under EBS R12?

    Is there a SQL seeking standardized reports (finance, HR, OM.. etc) available under EBS R12?

    If you have advice or a solution, please update your comments freely.


    Kind regards

    Hi all

    I see notes 561585.1 and found the SQL

    Concerning

  • How to display IR report Actions... Download the menu automatically

    When I go to the page of an interactive report I want to automatically display the Actions... Options at the top of the download page. How can I do this?

    If this is not possible, how do I put a CSV file | Link to print on the report as a classic report?

    Thanks in advance

    PaulP

    Hey,.

    You can add a dynamic action, which triggers the loading of the page and executes the following javascript: gReport.dialog2 ('SHOW_DOWNLOAD');

    Thank you

Maybe you are looking for