How to handle format trigger in bi publisher report

Hi all,
anyone have idea how to handle format trigger in bi publisher report....
also if someone will illustrate the how exactly we use the triggers in bi publisher reports.
regards
Ratnesh

Hi,
there's no direct support for the format triggers out of Oracle Reports. Therefore they are mentioned in the log file and in the created layout after conversion the objects with format triggers are colored red to show, that there you had to do some additional work.
Currently you had to built the logic of format triggers in BI Publisher new. Hve a look in the User Guide, there are some examples for if or choose statements.
regards
Rainer

Similar Messages

  • How to Handle Junk Characters in BI Publisher Report?

    Hi Team,
    I have Created a column in obiee analytics report which has logic as '1/0'. After creating this column I am not getting result for this column(blank).
    When Extracted the report into XML file,I am not able to see value for that column as well. This is what I need too.
    But issue is, For my layout(below is sample example of my layout) It is not displaying the value as is in Analytics report in BIP Report. In Anlytics report I am getting Blank.In BIP it is giving the Junk Characters. Ex: SG&A row.
    I need to replace this Junk characters with space.This is my requirement.
    (p) Fuel
    0
    0
    0
    0
    0
    0
    0
    0
    0
    (q) Other Variable
    1,543
    1,325
    218
    4,123
    3,976
    147
    4,123
    3,976
    147
    Total Cost Of Goods Sold (Excl. S/L)
    28,944
    30,239
    -1,295
    87,252
    89,408
    -2,156
    87,252
    89,408
    -2,156
    (r) Straightline Expense
    1,679
    1,976
    -297
    4,501
    5,929
    -1,428
    4,501
    5,929
    -1,428
    Total Cost Of Goods Sold
    30,622
    32,215
    -1,593
    91,753
    95,337
    -3,584
    91,753
    95,337
    -3,584
    Gross Profit (Excl. S/L)
    -133,526
    -130,796
    -2,730
    -397,999
    -392,800
    -5,991
    -397,999
    -392,800
    -5,199
    SG&A









    (s) Payroll & Related
    4,515
    6,158
    -1,643
    14,910
    18,521
    -3,611
    14,910
    18,521
    -3,611
    here is the XML code for SG&A record:
    - <G_1> 
    <COLUMN0>MAR-2013</COLUMN0> 
    <COLUMN12>SG&A</COLUMN12> 
    </G_1>
      Can you please help me in achieving this.
      Thank You in Advance,
      KK.

    Hi,
    there's no direct support for the format triggers out of Oracle Reports. Therefore they are mentioned in the log file and in the created layout after conversion the objects with format triggers are colored red to show, that there you had to do some additional work.
    Currently you had to built the logic of format triggers in BI Publisher new. Hve a look in the User Guide, there are some examples for if or choose statements.
    regards
    Rainer

  • How to display username in RTF BI publisher report?

    Please advice how to display username in RTF BI publisher report?
    May be this can be done via hidden parameter of BIP report which default value will be set up with macro like {$username$} (or smth like)?
    Thanks in advance!

    Thanks. That worked. I was trying to get it as part of a multi-table query, aliasing dual. But that doesn't work in SQL Plus either so I guess I can't do that.
    I was trying
    select o.*, d.:xdo_user_name
    from oblix_audit_events o, dual d
    Before that I was trying
    select
    :xdo_user_name as USER_ID,
    :xdo_user_roles as USER_ROLES,
    :xdo_user_report_oracle_lang as REPORT_LANGUAGE,
    :xdo_user_report_locale as REPORT_LOCALE,
    :xdo_user_ui_oracle_lang as UI_LANGUAGE,
    :xdo_user_ui_locale as UI_LOCALE
    from dual
    but I must have fat fingered something because that works now too. Thanks.
    So if I need to do this in it's own query and I'm using an RTF template, how do I make that work?
    If I have to do it with it's own

  • How to handle the trigger sequence

    I really do not have any idea for this question.
    the trigger need to implement:      
    An employee can not work on more than 2 projects supervised by any given department.
    DEPARTMENT (dname, dnumber, mgrssn, mgrstartdate) KEY: dnumber.
    PROJECT (pname, pnumber, plocation, dnum)      KEY: pnumber.
    CREATE TABLE WORKS_ON
    ( ESSN VARCHAR2(9) NOT NULL,
      PNO NUMBER NOT NULL,
      HOURS NUMBER(3,1) NOT NULL,
    PRIMARY KEY (ESSN, PNO));
    DESC WORKS_ON;
    INSERT INTO WORKS_ON VALUES
    ('123456789',1,32.5);
    INSERT INTO WORKS_ON VALUES
    ('123456789',2 ,7.5);
    INSERT INTO WORKS_ON VALUES
    ('666884444',3 ,40.0);
    INSERT INTO WORKS_ON VALUES
    ('453453453',1 ,20.0);
    INSERT INTO WORKS_ON VALUES
    ('453453453',2,20.0);
    CREATE TABLE PROJECT
    (PNAME VARCHAR2(15) NOT NULL,
    PNUMBER NUMBER NOT NULL,
    PLOCATION VARCHAR2(15),
    DNUM NUMBER NOT NULL,
    PRIMARY KEY (PNUMBER), UNIQUE(PNAME));
    DESC PROJECT;
    INSERT INTO PROJECT VALUES(
    'ProjectX',1, 'Bellaire',5);
    INSERT INTO PROJECT VALUES(
    'ProjectY',2, 'Sugarland',5);
    INSERT INTO PROJECT VALUES(
    'ProjectZ',3,'Houston',5);
    INSERT INTO PROJECT VALUES(
    'Computerization',10,'Stafford',4);i create package and two trigger like following in order to avoid mutating table.
    PACKAGE                     "HW4AIDB" AS
    TYPE EmploadY IS RECORD(
         Empessn varchar2(9),
         Empprojectcount number,
         Empdepartcount number
    TYPE EmploadarrayY is table of EmploadY
                          index by BINARY_INTEGER;
    Empload EmploadarrayY;
    Emploadsize number;
    END;
    create or replace
    TRIGGER TPROJECTA AFTER INSERT OR UPDATE OR DELETE ON WORKS_ON
    DECLARE
    i number:=0;
    BEGIN
      HW4AIDB.Emploadsize :=0;
      for m in (select w.essn empessn,
      count(w.pno) empprojectcount, count(distinct p.dnum) empdepartcount
      from works_on w, project p
      where w.pno=p.pnumber
      group by w.essn)loop
      i :=i+1;
      HW4AIDB.Empload(i).Empessn := m.empessn;
      HW4AIDB.Empload(i).Empprojectcount := m.empprojectcount;
      HW4AIDB.Empload(i).Empdepartcount := m.empdepartcount;
      dbms_output.PUT_LINE('TPROJECTA '||' '||m.empessn||' '||m.empprojectcount||
                           ' '||m.empdepartcount);
      end loop;
      HW4AIDB.Emploadsize :=i;
      dbms_output.PUT_LINE('==================================');
    END;TRIGGER TSALARYB BEFORE INSERT OR UPDATE OR DELETE ON EMPLOYEE
    FOR EACH ROW
    DECLARE
    w HW4AID.EmploadX;
    i number;
    mypos number;
    BEGIN
    mypos :=-1;
    for i in 1..HW4AID.Emploadsize loop
    if(:new.ssn = HW4AID.Empload(i).Empssn) then
    w.Empmgrsalary := HW4AID.Empload(i).Empmgrsalary;
    w.Empsalary := HW4AID.Empload(i).Empsalary;
    mypos :=i;
    exit;
    end if;
    end loop;
    i :=mypos;
    dbms_output.put_line('NEW '||:new.ssn||'-'||:new.salary);
    if updating then
    dbms_output.put_line('updating......');
    if(:new.salary > w.Empmgrsalary) then
    raise_application_error(-20005,'the salary is higher than that of department manager');
    end if;
    dbms_output.PUT_LINE('update done');
    end if;
    END;
    i defined two trigger for AFTER, trigger run orders are acorrding to. before statement level, before row-level, after row level and after statement level.
    so my trigger actually can not implement requirement. how to handle it. now i try to use this rule: select w.essn, w.pno,p.pnumber, p.dnum from works_on w, project p where w.pno=p.pnumber; in statement level trigger. howerver in row-level trigger i can not get value i need(p.dnum i can not get its count). if you guy have any other ideas, pls give me some advise. my brain is really run out of.
    Thanks for your help!!!

    I would recommend creating a package/procedure that is the only way to insert a user into the works_on table. Then inside this procedure you need to serialize access to the works_on table by using a select for update. Then you can count the number of projects and ensure that the new works on is valid.
    If you try to use triggers then due to Oracle's mutli-versioning, if two users insert the same data at the same time, the data integrity will be violated.
    You will obviously have an employee table. I have created one here as follows:
    create table employee (essn varchar2(9) primary key);
    insert into employee values ('999999999');
    Then you can use this table to serialize access to the works_on table by issuing a select for update against it. If you don't do this then two users executing the procedure at the same time will violate the constraint. It is important that you understand this and try it out with multiple sessions so that you understand it.
    create or replace procedure insert_works_on
    (p_essn varchar2, p_pno number, p_hours number)
    as
    l_essn varchar2(9);
    l_count number;
    begin
    select essn
    into l_essn
    from employee
    where essn = p_essn
    for update;
    select count(*)
    into l_count
    from works_on w
    join project p on p.pnumber = w.pno
    where w.essn = p_essn
    and p.dnum = (select dnum
    from project
    where pnumber = p_pno);
    if l_count < 2
    then
    insert into works_on values (p_essn, p_pno, p_hours);
    else
    dbms_output.put_line('Employee works on more than 1 project for dept');
    end if;
    end;
    Then you can try it out:
    begin
    insert_works_on('999999999',1, 10);
    end;
    commit;
    begin
    insert_works_on('999999999',2, 20);
    end;
    commit;
    begin
    insert_works_on('999999999',3, 30);
    end;
    commit;
    The first two will succeed and the last will fail. Try it out in multiple session as well to ensure it works for a multi-user scenario.

  • Dynamic layout formatting in Oracle BI Publisher reports

    We are creating a planning report in BI Publisher, where in we have a requirement of dynamic formatting based on the month we are running the report. In the report we have different months as columns which displays the values for different KPIs (displayed in the rows).. Now, we need the current month data be highlighted down the column for all KPIs. This means that if it is April, April would be highlighted for all KPIs. Next month when we are currently in May, April would no longer be highlighted and May would be highlighted for all KPIs.. How can we achieve this via BI Publisher? Any help regarding this is really appreciated.

    Hi;
    When we are runnng BI Publisher reports, in the output of reports all the time if any Hypahan symbol comes then it automatically converting into question mark.You got hit this when you are printing?
    Regard
    Helios

  • How to handle no_data_found in Page/Regions/Body/Report

    Hi,
    I am new to APEX. I have a report in a the Region area of a Page. The Region Source allows me to enter only SELECT statement, no BEGIN/EXCEPTION/END are allowed. How can I handle a no_data_found exception in a report?
    Many thanks.

    Thanks for the solution. I tried it, and got with an error:ORA-06550: line 19, column 5: PLS-00372: In a procedure, RETURN statement cannot contain an expression ORA-06550: line 19, column 5: PL/SQL: Statement ignored ORA-06550: line 21, column 5: PLS-00372: In a procedure, RETURN statement cannot contain an expression ORA-06550: line 21, column 5: PL/SQL: Statement ignored
    It looks like I am missing something.>
    Post your code here in &#123;code&#125; tags.
    My guess is you are not escaping single quotes or are not concatenating your Page Item
    It should be something like ...
    s1 vahracr2(4000) := 'select ..., ''A'' ,... from... where PID = '|| DBMS_ASSERT.ENQUOTE_LITERAL(:P1_CMDCODE);Note the quoting around A to escape the apostrophe and the use of concat.
    Cheers,
    Edited by: Prabodh on Aug 22, 2012 8:46 PM

  • How to include HTML link in BI Publisher Report?

    Hi,
    I am trying to include an HTML link in a BI Publisher report. But I get the HTML Code, not the link.
    I have put this in the Data Set SQL Query:
    select id_constancia, rfc, apellido_paterno, apellido_materno, nombre, e_mail_empleado,
    'a href="http://dbxserver.dbxprts.com:7778/pls/apex/f?p=134:1:::NO::P1_ID_CONSTANCIA:'||ID_CONSTANCIA||'">CITA</a ' as liga_cita
    from geiq_constancias
    where entregada = '0' and sust_rh = '0'
    And I have included the field LIGA_CITA in the rtf template,
    But I get this in the HTML output:
    =======
    Please clic on the link below to log into the system:
    a href="http://dbxserver.dbxprts.com:7778/pls/apex/f?p=134:1:::NO::P1_ID_CONSTANCIA:1183">CITA</a
    =========
    (I removed the beginning and ending '<''>' to prevent the text to be shown as a link)
    I have put the property "Make HTML output accessible" to TRUE in the report configuration, but nothing changes.
    Does anyone know how to make this work?
    Thanks.
    Francisco

    Hi Francisco,
    Note:
    your xml should only have
    <URL>http://dbxserver.dbxprts.com:7778/pls/apex/f?p=134:1:::NO::P1_ID_CONSTANCIA:1183</URL>
    Show me your sample XML , i can help you.
    What is your expected output ? PDF or HTML ?
    here it is.
    option1:
    If the XML data includes an element that contains a hyperlink , then you can use that element to create dynamic hyperlinks at runtime.
    a. insert hyperlink from word menu
    b. In the Type the file or Web page name field of the Insert Hyperlink dialog box, enter the following syntax:
    c. {ELEMENT_NAME_WHICH_HAS_URL_LINK}
    where ELEMENT_NAME_WHICH_HAS_URL_LINK is the xml data element name
    option2:
    create a form field, you can add it
    <fo:basic-link external-destination="http://www.google..com">
    <fo:inline text-decoration="underline">google Link</fo:inline>
    </fo:basic-link>
    or
    <fo:basic-link external-destination="{ELEMENT_NAME}">
    <fo:inline text-decoration="underline">google Link</fo:inline>
    </fo:basic-link>
    or
    <fo:basic-link>
    <xsl:attribute name="external-destination"><xsl:value-of select="ELEMENT_URL"/>
    </xsl:attribute>
           <xsl:value-of select="LINK_NAME"/>
    </fo:basic-link>

  • Hiding an image in format trigger hides the entire report

    Hello
    am newbee for Oracle 6i development.
    We have existing report, I want to hide a image based on some conditions.
    I have added the bleow mentioned cde in 'format trigger" of image object
    When the condition is met the entire report is getting hidden, noting shows up on screen. when below condition is not met I am able to see the report.
    Need help to resolve this issue. thanks in advance.
    FUNCTION B_LOGOFormatTrigger RETURN BOOLEAN IS
    L_import_ind order.import_ind%TYPE;
    L_po_type order.po_type%TYPE;
    L_start_date DATE;
    BEGIN
    SELECT import_ind, po_type INTO L_import_ind, L_po_type
    FROM order
    WHERE order_no = :ORDER_NUMBER;
    SELECT to_date(param_value, 'DD-MON-YY') INTO L_start_date
    FROM param_detail
    WHERE program_code = 'print';
    IF (L_import_ind = 'Y' AND :ENTRY_DATE >= L_start_date AND (L_po_type = 2 OR L_po_type = 3))
    THEN
    return (FALSE);
    ELSE
    return (TRUE);
    END IF;
    END;

    user8880704 wrote:
    Hello
    am newbee for Oracle 6i development.
    We have existing report, I want to hide a image based on some conditions.
    I have added the bleow mentioned cde in 'format trigger" of image object
    When the condition is met the entire report is getting hidden, noting shows up on screen. when below condition is not met I am able to see the report.
    Need help to resolve this issue. thanks in advance.
    FUNCTION B_LOGOFormatTrigger RETURN BOOLEAN IS
    L_import_ind order.import_ind%TYPE;
    L_po_type order.po_type%TYPE;
    L_start_date DATE;
    BEGIN
    SELECT import_ind, po_type INTO L_import_ind, L_po_type
    FROM order
    WHERE order_no = :ORDER_NUMBER;
    SELECT to_date(param_value, 'DD-MON-YY') INTO L_start_date
    FROM param_detail
    WHERE program_code = 'print';
    IF (L_import_ind = 'Y' AND :ENTRY_DATE >= L_start_date AND (L_po_type = 2 OR L_po_type = 3))
    THEN
    return (FALSE);
    ELSE
    return (TRUE);
    END IF;
    END;In general,
    At Layout view, select the image field and press F11 and write your code.
    But if the item is the only item in the repeating frame, you may get error or wrong data.
    Hope this helps
    *+Mark correct/helpful to help others to get right answer(s).+*

  • How to avoid blank page in xml publisher report

    hi,
    i have a xml report, it shows 7 rows in one page. the question is: if there are just 7 rows , when previews with pdf, it will generate 2 pages, the first page shows 7 rows, and the second page is blank.
    anyone can help?
    you can get the rar file that contains the .rtf and then .xml file at this site: [http://www.4shared.com/file/azhdqCp_/DELIVERY.html]

    I am running a report in xml publisher. The output of the report prints 2
    pages, one page with correct report output and other page is a blank page
    with header details.
    I want to avoid this blank page. Is there something wrong? Please help to fix this issue!Is the issue with this specific XML Publisher report only?
    Do you have all the patches in (Overview of Available Patches for Oracle XML Publisher embedded in the Oracle E-Business Suite [ID 1138602.1]) applied? -- Search for "blank page".
    Thanks,
    Hussein

  • How to insert serial Number in BI Publisher Report

    Hi All,
        I want to insert serial numbers in BI Publisher report.
    For Example:
       SNO
         1
         2
         3
         4
    I tried below code in XML file...but i confused where i need to add these code in XML file
    <?xdoxslt:set_variable($_XDOCTX, 'var', 0)?>
    <?xdoxslt:set_variable($_XDOCTX,'var', xdoxslt:get_variable($_XDOCTX,'var‘)+1)?>
    <?xdoxslt:get_variable($_XDOCTX, 'var')?>
    Can anybody explain detail steps........
    Regards,
    Nagaraju M

    Use <?position()?> in your RTF template when you display your records..
    I believe if you search for posts on this forum, you will find several threads with similar requirement.
    Thanks,
    Bipuser

  • How to develop a query in BI Publisher Report

    Hi Experts,
    I am new to BI Publisher. Could somebody help me how to prepare a query.
    Thanks.

    What version of BI Publisher are you using?
    The best way to get started is to look through the Report Designers Guide here for 10.1.3.4: http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187.pdf
    For 11g: http://download.oracle.com/docs/cd/E21764_01/bi.1111/e13881.pdf
    Take a look at the tutorials: http://st-curriculum.oracle.com/obe/fmw/bi/bip/bip11g/gettingstarted/gettingstarted.htm
    and this page for lots of relevant information: http://www.oracle.com/technetwork/middleware/bi-publisher/overview/index.html
    Hope that helps. Assign points if helpful
    Thanks,
    Bipuser

  • How to handle multiple reports with single hyperlink parameter

    Please suggest in my drill down report
    i have two reports linked with one hyperlink
    parameter, how to handle this?
    please suggest for popup window with sample solution.
    for example
    report A--->B--->Chosse Report c or D
    based on parameter hyperlink at report B.
    Thanks in advance
    Raj

    Yes U R correct, that
    I'm using srw.set_hyperlink in plsql format trigger
    to open other reports , now the problem is
    how to carry over the hyperlink parameter to popup window
    and allow user to choose any reports based on the
    parameter value.
    for example
    report A (Sales person summmary report)
    |
    | (choose sales person drilled to orders report B)
    |
    B (report has the hyperlink on order no)
    |
    |
    C,D,E (many reports based on order no
    customer,order details,pending items
    to be shipped)
    Now how to handle the situation from b to c,d,e
    I suggest use hyperlink at B to open popup to show
    reports C,D,E with the order no has parameter.
    please suggest for javascript to open popup window
    for reports c,d,e.
    Thanks
    Raj

  • How to select multiple values from the parameters in BI Publisher report

    How to select multiple values from the parameter drop down in BI Publisher, and how to handle this mulitple values from the report sql...

    Hi kishore,
    I have used all the steps as you mentioned in your previous reply....including checking Mulitple Selection Check Box..
    Iam able to get the results when I am selecting one value..
    and also I am able to handle multiple values the in the query by using IN :Parameter, but seems when we select more than one value from the parameter drop down i think the Bi Publisher is sending the values in concatenated form something ilke
    ex: "'ACCOUNT','HR','SALES'" ,and when trying to display the parameters values in the output, its throwing the error as 'missing right paranthesis' ....on the whole do you have any solution which would handle
    1.Single selection.
    2.Multiple selection.
    3.'ALL' Values.
    4.Separating the concatenated string into individual strings and dispaly them on the output of the report..etc..in case of Mulitple selection.
    Ex:
    Concatenated String from BI Publisher:"'ACCOUNT','HR','SALES'"
    Expected Output on the report:ACCOUNT,HR,SALES
    reply to this would be much appreciated....
    thanks,
    manoj

  • How to format popup info in web reports

    Hi Forum,
    maybe it's quite easy, but I've no idea if or how I can format the popups
    in web-reports, that come up if you hover a graph.
    The current output is e.g.:
    1/4 Figure-description category value
    Is there a way to format the upcomming popup like the formatting you can do for series with $abs and $label?
    Thanks in advance for any idea.
    Regards,
    Tobias

    There is no standard way to do it.
    You can manually use javascripting to create custom hover boxes.
    You will have to understand the way HTML generates (it has flat image and AREA maps which isolate the areas of flag image w/ coordinates). Then enhance the AREA maps to override the standard hover boxes.
    If you know javascript very well then you can use even available javascript frameworks to get highly customizable hover boxes. But it will involve considerable effort.
    Abhijeet

  • Format a col in alv report

    How I can format a col in alv report. Suppose the col is like MSEG-menge and the value is 432,199.789 and I want to format it like '#####.##'. So it will display 432,199.79 in report.
    Is there any wayout?

    1) you can go to su3 transaction(System->User Profile->Own data) and define your format for Decimal notation in Defaults tab.
    2)
    for that particular column set the edit mask parameter in the field catalog.
    Regards,
    ravi

Maybe you are looking for

  • JVM problem during Oracle8i installation on Redhat Linux 9

    Hi there, I was trying to install Oracle8i Release 2 (8.1.6) for Linux on P4-1.7Ghz pc running Redhat Linux9. I created a new user and gave appropriate piviliges also.When i gave the ./runInstaller command it gave me the error as follows.. ./runInsta

  • PS and LR old timer

    I have been using Photoshop and Lightroom for years, purchasing upgrades. If I join CC do I have to pay the same as someone new to PS and Lightroom?

  • Spry Horizontal Menu not showing up in IE

    I created a spry drop down menu (horizontal) with Dreamweaver CS5. It displays great in all browsers, except for Internet Explorer, where the menu is not visible at all. http://www.monicagraphicdesign.com/Bill/spiritual.html I read on other threads a

  • How can i tell if i have been deleted by a contact?

    If I deleted a person out of my contacts and they have an Iphone 4S, can they tell I've deleted them?

  • How can we print optic mark on BI Publisher report

    Hi We have a requirement to print optic mark on BI Publisher report which will print on the first page. The optic mark will appear on the right border of the report. Please let me know if any of u had worked on such requirements. Thanks Edited by: us