FormatTrigger on line is not working in Oracle Reports

Hi there,
I am using Oracle Reports 6i and trying to format code as follows :
I have three sections of data say a,b,c.
1) If there is no data returned in Section b and c, then I need to print a line just after section a ends.
2) If there is no data in section c but section a and b have data, then line should not appear after section a, but after section b
3) If all sections are having data , then line should appear after section c.
Format trigger for after section A
function B_2FormatTrigger return boolean is
begin
declare
ret_val boolean;
begin
ret_val := false;
if :CS_MATERIAL_TERMS = 0 and :cf_mh_count = 0 then
   ret_val := true;
end if;
return ret_val;
end;
end;
format trigger after section B
function B_4FormatTrigger return boolean is
begin
declare
ret_val boolean;
begin
ret_val := false;
if :CS_MATERIAL_TERMS = 0  and :cf_mh_count <> 0 then
   ret_val := true;
end if;
return ret_val;
end;
end;
format trigger after section C
function B_9FormatTrigger return boolean is
begin
  return (TRUE);
end;
:CS_MATERIAL_TERMS = is the summary column which defines data in section C
:cf_mh_count= is the formula column which defines the data in section B
current issue is that.. in some cases the line is appearing after section A, though section B has data
Please help...
Thanks.

Hi Hari,
hope all deadline related work is present in QA, say if you using Factory calendar, is the factory calendar present in QA also.
try refreshing buffer using SWU_OBUF.
Hope it helps.
Aditya

Similar Messages

  • Sum function do not work in oracle reports enhanced spreadsheet format

    we are using oracle reports 10.1.2.3 in our oracle application server 10gr2 and we are creating enhanced spreed sheet.And the report opens in MS excel fine.But we can not apply any formula like VALUE,SUM,AVG on that report after opening it into excel.First we thought that it may be because of the comma in the number filed.we removed that comma from the filed but t still gives the error "Error in value"

    Hi,
    I hope you already solved this problem, I had the same issue after spending an hour I found the workaround, this is just for the guys who experience the same issue. Try to format your number columns either at database level(not via Report builder property palette) with TO_CHAR(...) OR use this Format Mask at Report level to format your numbers -NNNGNNNGNN0D000(negative sign must be there to avoid space in output Excel).
    Hope it helps,
    Regards,
    Syed Khawar

  • Utl_file.fgetattr not working in Oracle Reports

    Hi there,
    I try to use the utl_file.fgetattr function in an Oracle Report program unit as below, but it returns that the file does not exist. However executing it in TOAD or SQL Developer it return that the file exists.
    utl_file.fgetattr('directory', 'filename.ext', v_exists, v_length, v_blocksize);
    IF v_exists THEN
    srw.message(100, 'The file exists.');
    ELSE
    srw.message(100, 'The file does not exist.');
    END IF;
    What could be the problem?
    Thanks in advance!
    Edited by: user13428604 on 2012.02.13. 9:26

    You have to use utl_file inside the database. So, move your code to a stored procedure and call that procedure from Reports.

  • Runtime.exec()  in Java not working in Oracle 10 Application Server

    Hi ,
    I am trying to call a .exe file which is in the Web Application folder .
    I am Using Process p = Runtime.exec("path to .exe file ")
    This code is working fine when used with JBOSS , but not working with Oracle Application server .
    Please tell me whether i need to do any chnages to make it work
    Thanks in advance .

    I ran a quick test with your code, I just had to make some small changes, and things work for me...
    I'm testing with JDeveloper 10g 10.1.3.2.0 ...
    The only thing I wonder is DBUser DBPass DBHost, those are not the actual values, correct?, neither they are environment variables?...
    In the server hosting your OAS, you should try running the whole CMD line from the start/run dialog ... make sure it works in that server ...
    Here is the code used in my test:
    In JSP:
      <%@ page import="runexepkg.*" %>
      <% 
      String msg = "";
      try
      RunEXE p = new RunEXE();
      msg = p.main1();
      catch(Throwable t)
         System.out.println("Exception Raised");
         t.printStackTrace();
      %>
      <%= msg %>In Java Class:
    package runexepkg;
    import java.sql.*;
    public class RunEXE
        String ss="";
        public String main1()
        try
            Runtime rt=Runtime.getRuntime();
            Process p = rt.exec("CMD /C start C:\\oraappserver\\j2ee\\WebGis\\applications\\PowerGis\\web\\WEB-INF\\classes\\GisProject\\cust_data_1.exe DBUser DBPass DBHost");
            System.out.println("Command has been executed");
            Class.forName("oracle.jdbc.driver.OracleDriver");
            Connection con = DriverManager.getConnection("jdbc:oracle:thin:@DBHost:DBPort:orcl","DBUser","DBPass");
            System.out.println("Test Connection ========== "+con);
            Statement st = con.createStatement();
            ResultSet rs = st.executeQuery("SELECT SYSDATE FROM DUAL");
            if(rs.next())
                ss="Command has been executed - Database has been accessed";
            else
                ss="Command has been executed - Database was not accessed";
        catch(Throwable t)
            System.out.println("Exception raised, command has NOT been executed");
            ss="Exception raised, command has NOT been executed";
            t.printStackTrace();
        return ss;
    }Edited by: Rodolfo Ferrari on Jul 23, 2009 10:40 PM

  • What will you do if any SQL is not working.in oracle 10g...apps 11.5.10.2

    What will you do if any SQL is not working. in oracle 10g....apps 11.5.10.2

    928714 wrote:
    yes sir.If you help me in answering my questions i wll be very thankful to you sir.
    tnx,I haven't a clue.
    As you have been advised in many of your posts, go study the documentation for whichever specific topic you are interested in.
    For me to answer your questions, I would need to go get that documentation.
    Then I would need to read that documentation.
    Then I would need to write a forum post that interprets what I think I learned from that documentation.
    It is so very much faster if YOU go do that instead of posting to a forum and expecting others to do it. You will remember what you study for a lot longer time if you teach yourself.

  • Table_From_Block Build-in Package is not working in Oracle 10G

    Hi
    Table_From_Block Build-in Package is not working in Oracle 10G
    Kindly advice..

    user648759 wrote:
    Hi
    Table_From_Block Build-in Package is not working in Oracle 10G
    Kindly advice..Provide a little more information. Forms version OS version, more information about your problem and question.
    --and explain what on earth Table_From_Block* mean's--
    Tony
    PS: TABLE_FORM_BLOCK is a built-in for internal use, usually auto generated by forms. For a moment I didn't get what that meant, need more coffee.
    Edited by: Tony Garabedian on Aug 29, 2008 12:39 PM

  • Select * from tab is not working in oracle 10g

    select * from tab is not working in oracle 10g. But at the same time,
    select * from <<table>> is working.
    Please advise me.

    This works for me in 10.2.0.2
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from tab;
    TNAME                          TABTYPE            CLUSTERID
    LOAN_DETAIL                    TABLE
    PLAN_TABLE                     TABLE
    ...

  • Line-in not working with microphone?

    Line-in not working with microphone.
    I have Mac Mini Intel 1.83 GHz with 10.4.8
    I have tried plugging 3 microphones into the line-input on the back, also on my wife's Mac Mini (same model, os), but I cannot get to record into the Mac.
    I've been into System Prefs and set input to Line In and slid the Input Volume to high, but nothing.
    I know the Microphones work because if I plug them into a Griffin USB/mini jack adaptor and do it that way by selecting iMic USB audio system from the Input in System Prefs all works fine.
    But I need to use the mic with the Line-In.
    Any ideas why this is not working?

    The line input on the mini requires a 'line-level' signal, so the only microphones that work are ones that have an amplified output. Standard mics don't generate enough voltage to drive the mini's amplifiers.
    That's the reason the mics work with the Griffin device (it has an amplifier) but not the mini directly.

  • Triggers not working in Oracle 9iAS

    The form triggers are not working in oracle 9i AS.
    My Application server has Linux operating system with oracle form/report server installed. I am able to upload the form
    in the client machine (using Internet Explorer Win98 OS). Also i can feed in the data but none of my triggers are working (WHEN BUTTON PRESSED and other validation triggers).
    Can anyone suggest what to do pls.
    Tnks in advance
    Rgds
    Manoj Philip
    [email protected]

    Well we've tested on Linux and the trigger do work - I remember two other postings on this forumn from prople with the same problem:
    Re: SQL Developer Necessities
    Re: About  EXPLAIN PLAN table
    In one case the problem was not re-compiling using f90genm.sh, in the other it was something to do with the Machine setup but I don't know what the final resolution was.
    The only other thing is to make sure that you are on a certified linux release for using with iAS e.g. Redhat Server 2.1 and Suse Enterprise server 7 and Untited Linux
    You can check the current certifications on Metalink.oracle.com

  • Share  calculation  Not working in the report

    Iam surprised not to ge the simple share calculation not working at my report.
    I have a dimension and corresponding values ( measures) .I made a Total at the end of the report. and I want to calcualte share of Total to each corresponding value.
    how to do this, any thougts,...
    I have used calculated memebers for this, But I wan to make the percentage of the total ( which is calculated inside Tool itself)
    Please help....

    Prassad,
    Not totally sure what you are trying to achieve but there a couple of possible solutions:
    1) Total = total of all dimension members. Assuming you only have three dimension members then you should have a fourth member called ALL_DIMS or something similar. In the Share calculation template you need to specify the Total level as the basis for your share calc. This will generate the following result:
                             Revenue  % Share
    - All Members     600         100%
         A                  100           17%
         B                  200           33%
         C                  300           50%2) The total you are referring to is in fact a sub total and is the result of adding together only the results for A + B + C, i.e. you have hundreds of dimension members but you specifically want to see a total for just these three members. To do this create a new custom aggregate call "My Total" and add together the dimension members A + B + C - Custom Aggs are a new feature to Discoverer OLAP (Checkout Mark Rittman's excellent blog article for more information on this feature: http://www.rittmanmead.com/2006/11/13/checking-out-the-new-discoverer-101220-features/)
    Then in the Share calculation wizard set the basis for your index using the last option in the list "Specific Dimension Member" and select your new custom aggregate member.
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • LOVs not working in Webi Report for SAP BO 4.1 SP 2 Patch 3

    Hello ,
    I have developed reports and universes in SAP BO 4.0 SP 5 and i have migrated those reports to higher version of BO which is 4.1 SP2 Patch 3.
    My universe is working fine with LOVs but when i run the webi report , the LOVs arent working.
    have anyone facing the same issue. any idea why the LOVs arent working on higher version.?

    Hi Victor,
    The List of values we will assign in universe in order to get filtered data works on universe query panel
    but the same objects when i am using in report(webi report) , the List of values are not working .i.e
    they are not getting displayed in webi report.
    for ex: i have country object having country names as LOVs and state objects having state names as LOVs . Now when i select Country value , the LOVs of state objects should get filtered and shows only states which belongs to country .
    the above logic is not working in webi report , i am only able to select country and when i go for state, the state names do not get filtered.
    please let me know why this is happening in the SP2 patch 3 version and its working fine for SP2  , but the chrome issue gets solved after applying patch 3 and not if we only upgrade to SP2.
    the webi reports are not working in chrome browser if we using SAP B04.1 SP2 and lower version
    but the LOVs are not working in SAP BO 4.1 SP 2 patch 1, 2,3.
    kindly help me with the issue

  • Trying to get a refund on an app that do not work, but the report a problem button is grey out

    Hi
    I'm trying to get a refund on an app that do not work, but the report a problem button is gray out & Apple wants £20.00 for support
    where do I go from here
    Thanks

    To report a problem less than 90 days:
    http://reportaproblem.apple.com
    Sign in with the AppleID and Password used for the purchase.
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    http://support.apple.com/kb/HT1933
    To report a problem greater than 90 days:
    http://www.apple.com/support/itunes/store

  • Security option is not working for PDF Report

    security option is not working for PDF Report , e.g password , bug??

    what version of SQL Developer are you using?

  • Oracle 11g XE not working with oracle BI publisher 10g after enabling ACL

    Hello,
    I previously work with oracle 10gXE and Oracle BI publisher 10g and it work fine. now i install oracle 11g XE and try to configure it with oracle Bi Publlisher, it show this error
    "ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1324 ORA-12570: TNS:packet reader failure" after runing the ACL package to neable network service.
    on the database.
    Please can any body tell be why this is not working. Tanx.

    You'll need to add the apex engine owner to the ACL (Access Control List). Depending on your version of apex the user name varies. i.e. 4.0 is APEX_040000
    See Joel's blog for info about the ACL and APEX.
    [http://joelkallman.blogspot.com/2010/10/application-express-network-acls-and.html]

  • Xml parser procedur which worked in oracle 8.1.7 not working in oracle 9ir2

    hi all,
    THE BELOW PROCEDURE TO PARSE A XML WEB PAGE AND RETRIEVE THE DATA INTO TABLE IS WORKING WELL IN ORACLE 8.1.7 , BUT WHEN WE UPGRADED TO oRACLE 9I RELEASE 2 ,,ITS NOT WORKING AND GIVING THESE ERRORS,,
    13:44:56 Error: ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
    ORA-06512: at "SYS.XMLNODECOVER", line 0
    ORA-06512: at "SYS.XSLPROCESSOR", line 500
    ORA-06512: at "XXCNA.XRATESDLOAD", line 37
    ORA-06512: at line 2
    CAN ANYONE GIVE A TIP?
    REGARDS,
    VIJAY
    CREATE OR REPLACE PACKAGE BODY XRATESDLOAD AS
    PROCEDURE XRATESDLOADP
    IS
    --DECLARE THE REQUIRED XML PARSER, DOM DOCUMENT,NODES AND NODELLISTS
    v_parser xmlparser.Parser;
    v_doc xmldom.DOMDocument;
    v_nl xmldom.DOMNodeList;
    v_n xmldom.DOMNode;
    --CREATE A PL/SQL TYPE TABLE
    TYPE tab_type IS TABLE OF CNA_XRATES_TEXT%ROWTYPE;
         t_tab tab_type := tab_type();
    BEGIN
    -- Create a parser.
    v_parser := xmlparser.newParser;
    -- Parse the document and create a new DOM document.
    xmlparser.parse(v_parser, 'http://www.xe.com/dfs/datafeed2.cgi?cnaeuropeholdingsltd');
    v_doc := xmlparser.getDocument(v_parser);
    -- Free resources associated with the Parser now it is no longer needed.
    xmlparser.freeParser(v_parser);
    -- Get a list of all the CURRENCY nodes in the document using the XPATH syntax.
    v_nl := xslprocessor.selectNodes(xmldom.makeNode(v_doc),'/xe-datafeed/currency');
    dbms_output.put_line( 'Currency rates processed on '||to_char(sysdate));
    --DELETE THE RECORDS IN THE CNA_XRATES_TEXT
    delete from CNA_XRATES_TEXT;
    dbms_output.put_line( 'Previous records of CNA_XRATES_TEXT table deleted '||to_char(sysdate));
    -- Loop through the list and create a new record in a tble collection
    -- for each CURRENCY record.
    FOR cur_emp IN 0 .. xmldom.getLength(v_nl) - 1 LOOP
    v_n := xmldom.item(v_nl, cur_emp);
    t_tab.extend;
    -- Use XPATH syntax to assign values to he elements of the collection.
    t_tab(t_tab.last).CURRENCY_SYMBOL := xslprocessor.valueOf(v_n,'csymbol');
    --t_tab(t_tab.last).CURRENCY_NAME     := xslprocessor.valueOf(v_n,'cname');
    t_tab(t_tab.last).CURRENCY_RATE := xslprocessor.valueOf(v_n,'crate');
         --t_tab(t_tab.last).CURRENCY_DATE       := xslprocessor.valueOf(v_n, sysdate);
    END LOOP;
    -- Insert data into the real CNA_XRATES_TEXT table from the table collection.
    -- Form better performance multiple collections should be used to allow
    -- bulk binding using the FORALL construct but this would make the code
    -- too long-winded for this example.
    FOR cur_emp IN t_tab.first .. t_tab.last LOOP
    INSERT INTO CNA_XRATES_TEXT
    (CURRENCY_SYMBOL,
    CURRENCY_RATE,
         CURRENCY_DATE)
    VALUES
    (t_tab(cur_emp).CURRENCY_SYMBOL,
    t_tab(cur_emp).CURRENCY_RATE,
         to_char(sysdate));
    END LOOP;
    dbms_output.put_line( 'Currency rates inserted into CNA_XRATES_TEXT table on '||to_char(sysdate));
    COMMIT;
    -- Free any resources associated with the document now it
    -- is no longer needed.
    xmldom.freeDocument(v_doc);
    END XRATESDLOADP;
    END XRATESDLOAD;
    /

    Unlike Oracle 7.x, versions 8 and above now internalize the trigger you are looking for within the database itself. So you can no longer have the kind of control over this process as you would have done previously, however the performance has increased according to Oracle.
    It is possible to remove these triggers in an emergency as follows:
    -- if tab$.trigflag != 0 - then Oracle internal replication triggers are enabled
    select * from tab$ where trigflag != 0;
    -- to remove Oracle internal replication triggers if replication is not working
    -- and needs to be removed in an emergency to allow writing to the tables
    -- also do this as sys user
    run catrepr
    -- also do this as sys user
    update tab$ set trigflag=0 where trigflag !=0;
    commit;
    shutdown immediate;
    startup
    However this removes all of the triggers - which is not what you want to do in your situation.
    You may find some additional helpful commands in the repdoc.txt file on my website:
    http://www.dotcomsolutionsinc.net/products/repgen/repgen_example_repdoc1.html
    And here is a list of replication setup scripts which could be helpful as well:
    http://www.dotcomsolutionsinc.net/products/repgen/repgen_files.html
    What is expecially important (as I am sure you know) is the setup of conflict resolution, which I do a little bit differently than I have seen documented elsewhere in order to avoid ORA-1403 errors.
    David Simpson
    www.dotcomsolutionsinc.net
    (Oracle Replication Consulting & Tools)

Maybe you are looking for

  • Microsoft TechNet Wiki SharePoint Guru - Winners for November!!

    The results for November's TechNet Guru competition have been posted! Sorry for the delay copying over to the forums, busy times indeed! http://blogs.technet.com/b/wikininjas/archive/2013/12/16/technet-guru-awards-november-2013.aspx Congratulations t

  • Too long time for editing BEx

    Deal all I have a problem with BEx. Whenever I edit BEx Query Designer for creating or modifing Query, it takes time too long. For instance, when I restrict value in Row or Columns, it need too much time. Is there Tcode for checking this problem? Or

  • No audio for RealPlayer 11 in Mac OS 10.6

    I just upgraded to 10.6 and my previously working RealPlayer 11 doesn't have audio. I went through the RealPlayer website and ran the tests and followed all of their advice: make sure audio on in preferences, mute is off, throw out old application an

  • Sycn/Async Bridge?

    Hi Experts, Can anyone explain me the importance of Sync/Async bridge and in which type of scenarios it is mostly used.....plz suggest any web blog which explains in detail abt Sync/Async bridge......... Cheers Faisal Points will b rewarded for usefu

  • Is hotfix KB2275950 still valid for win7 sp1 64bit?

    Hi All: We tried to install Windows6.1-KB2275950-x64.msu on my win7 desktop (win7 sp1 64bit) to fix some DCOM/TLS issue, We followed the instruction as below: To use one of the hotfixes in this package, you must create a registry subkey. To do this,