Resource intensive format trigger

Hi,
I am using the folwoing format trig on a repeating fram in reports 2.5:
numRows number(10);
begin
select count(ID) into numRows
from <your table>
where address = :address;
if (numRows > 1) then
srw.attr.mask := srw.FFCOLOR_ATTR + srw.FILLPATT_ATTR;
srw.attr.ffcolor := 'r75g75b0';
srw.attr.fillpatt := 'solid';
srw.set_attr(0, srw.attr);
end if;
end;
=================
The problem is it takes too long to run (the table holds 6500 recs.) If I was to change the formatted records to a simple underline, do you think that i cuold achieve a faster running report. At the moment it highlights selected records with a "bar".
thanx,
n.

Nicholas,
I think your problem is going to be more that you have a select at all in the format trigger. That's still a trip to the db and back everytime that object is formatted. I presume you're highlighting duplicate rows? I don't know your data model, but is it possible to do something like create a break group on your address and count the number of details, even if it's some kind of dummy detail? The format trigger could run off of the count. You could still display the address in the same repeating frame as the columns that would make up its details since it's at a lower frequency. You would have an extra repeating frame, but that's less overhead than an additional select executed for each instance of the repeating frame. If you can accomplish this in the data model, I think you'll find it runs faster than if you added an index.
Just my 2 cents!
Toby

Similar Messages

  • Format Trigger on Frames - SQL in data model

    I am working on a report that gets data from huge tables that could possibly have millions of records. I have about four different queries in my data model. Each of the queries is attributed to a Frame in my layout model. However depending on the input parameters to the report, I need to suppress some frames.
    I know we can simply conditionally set the format trigger (return FALSE) on the frame to turn of its display. But is there a way not to do the SQL query in the first place. In other words is there a way to accomplish this instead of having separate .rdf files. These are very I/O intensive queries and I don't want all the queries to run when the user chooses to see only on of the Frames (views). Remember that in my report each frame has its own query.
    Any ideas ? Thanks in advance.
    My email is : [email protected]

    I apoligize for the multiple postings of the same item. Each time I tried, I got a jsp error but it successfully posted the item. I realized that only after three tries.
    Thanks

  • Format Trigger not working in 10g Report.

    I have a report with two eclipses
    (*) Debit (*) Credit . Please note that the two asterics denotes eclipses.
    I have a format triggers on these eclipses based on the database item Debit_credit.
    IF :debit_credit = 'CREDIT' THEN
    RETURN FALSE;
    ELSE
    RETURN TRUE;
    End if;
    and vis-visa. However the format trigger is not working. Regardless of the value of
    debit_credit. I even created a frame around these eclipses and put my format trigger all to no avail. Please help.

    Create a boilerplate text in your repeating frame (get rid of the field :debit_credit from your layout, but leave it in your query). I created the boilerplate field B_1. My format trigger looks like:
    function B_1FormatTrigger return boolean is
    begin
      if upper(:debit_credit) = 'CREDIT' then
           srw.set_field(0, to_char('(*) CREDIT'));
       else srw.set_field(0, to_char('(*) DEBIT'));
      end if;
      return (TRUE);
    end;I hope I understood your question OK...I am not sure what an eclipses is?

  • Performance on Format Trigger

    Hi;
    Is anybody have experience with performance and stress testing with Format Trigger running report 6i on web environment? the output will in PDF (acrobat reader) bit mapped.
    Suppose there is 2 format triggers on 2 frames set in Margin Section. Inside frame 1 of the report which has a water mark sign say TEST if the report runs on TEST database and another frame with PROD sign which if is run against production database.
    If you have 10 pages that format trigger will run 10 times for each pages printed.
    Does it cause performance issue? How do you measure the performance for format trigger?
    Thanks for sharing.
    Shaun

    Help doesn't give info on performance. If it does please send me a copy to [email protected]
    how to do performance and stress testing for format trigger?
    Any idea on Format trigger performance on webserver?
    Thanks.

  • How to reset a count variable in a conditional format trigger

    I am using a conditional format trigger to eliminate sections of a report where there is no data. The trigger is automatically generated by reports (shown below). the condition is :com_count = '0' therefore no record, no display of section - if :com_count>0 then data present and display record.
    It works fine eliminating the sections - until actual data is found - and count is set to 1 and it displays the record. The problem is that once :com_count >0, then the section displays throughout the rest of the report whether there is actually data or not.
    It seems that :com_count needs to be reset to 0, but when I try to do that, it throws an error stating that :com_count is a read only variable.
    I am new to PL/SQL so can anyone suggest how I can reset the :com_count to 0 each time the trigger fires with :com_count = 1?
    Any help would be appreciated. Thanks,
    Glenn
    The conditional format trigger is:
    function M_G_COM_RANK_GRPFRFormatTrigge return boolean is
    begin
    -- Automatically Generated from Report Builder.
    if (:COM_COUNT = '0')
    then
    return (FALSE);
    end if;
    return (TRUE);
    end;
    The count
    It works perfectly

    wher is your COM_COUNT defined?
    If should be defined in the datamodel in the "mastergroup" of the "detailgroup" of which you want to count the records.
    If you do so, there is a property of the item "Reset at" ( which is by default set to "Report") and you then can change it to the name of the mastergroup. So every time a new record is "active" in the mstergroup, the count-item will be reset to 0.
    hope this helps

  • 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

  • Report format trigger not working

    Hi,
    I am using a format trigger on a column in my report as follows:
    function B_9FormatTrigger return boolean is
    begin
    if (:TEST > 30) then
    return (FALSE);
    else
    return (TRUE);
    end if;
    end;
    When testing in reports builder everything works fine, but when running the report from a form, the trigger is not executed.
    I am thinking this might have something to do with te reports runtime, but i don't know how to solve it.
    I am using Report Builder 9.0.4.0.33
    Edited by: user10085365 on 3-feb-2009 6:12

    so, did you try my suggestion to switch the condition?
    Or, is there maybe an old rep-file in your runtime-environment which doesn't include the format-trigger? Try to colorize a field and see if the correct reports-version is run.
    And I am a 100% shure the :TEST value is correct.
    So the field that should be hidden, stays displayedYes, but its unlikely that you hit a bug here (but not impossible), the chance in gendral is higher that there is some other reason for that. (in my case, 99.99% of the things which don't work are my own fault ;-) )

  • Format Trigger - do not display frame if multiple FIELDs are 0

    Hello,
    I am having trouble creating a format trigger to NOT display a frame if a multiple fields within the frame are 0.0
    The field is named F_number1, F_number2, F_number3
    The frame is called M_numberframe
    All 3 of the fields listed have to be 0.0 in order to not display the frame. If only one is 0 then they still all three need to show.
    Thanks!

    Hello
    The field is named F_number1, F_number2, F_number3These are actually field name's. You will have to write the source name in the format trigger.
    Let say F_NUMBER1 is having souce as my_field1, F_NUMBER2 = my_field2, F_NUMBER3 = my_field3 then
    Go to the frame's PL/SQL Editor by selecting and pressing F11 and write the as below...
    IF :my_field1=0 AND :my_field2=0 AND :my_field3=0 THEN
      RETURN FALSE;
    ELSE
      RETURN TRUE;
    END IF;-Ammad

  • How to use "&Total physical pages" in the format trigger?

    Hi all:
    How should I to use the system variable "&Physical page number" and "&Total physical pages" in the format
    trigger?
    I can not use these 2 variables in the format trigger directly or i will reveive an error message.
    Thank You!

    It may help you to know how I add JARs
    1. I open my Project (myProject)
    2. I Mount the JAR to the FileSystem (like mypackages.jar = which includes com.mus.de.myClass.java)
    3. I Mount the File to the FileSystem (like c:\..myfiles..\myProject)
    3.1 I add the File to my Project
    4. I select File | New -> Classes | Main
    4.1 I typed "import com.mus.de.myClass.java" to refer to this package.
    4.2 I called some of the public methods
    thats it
    Andreas

  • HOW TO USE field value in repeat_fram formate trigger

    i have a field on report layout. i want to use its value in formate trigger to filter the record in which that field value is zero.
    field is number type, getting stock of item. i want if stock of item is zero than it should not display, for this i use formate trigger of repeating frame.
    Thanks yash

    yash_08031983 wrote:
    i have a field on report layout. i want to use its value in formate trigger to filter the record in which that field value is zero.
    field is number type, getting stock of item. i want if stock of item is zero than it should not display, for this i use formate trigger of repeating frame.Hello, yash
    Format trigger is for change the formation of value. Like change the font, make it bold,italic, changes it's colour . Not for filtering.
    If you want to restrict your report not to show Zero(0) value of stock , you have to done it at SQL query. Like, if stock is a database filed you may write
    select .........,....
    from table
    where stock >0Hope this helps.
    If someone response is helpful or correct, please mark it accordingly.

  • Headstart/Designer 6i / Report Generation / Format Trigger / Repeating frames.....

    Good morning all!
    Product version...
    Headstart 6i
    Des.6i 6.5.52.5.0
    Des.tools 7.2.52.2.0
    Des.report generator 6.5.52.1.0
    Dev. report builder 6.0.8.14.2
    Any idea on how to generate from Designer, a format trigger on a report's repeating frames???
    Thank you,
    Michel

    You can customize report in Report Builder. The Report Builder can be run from Repository Reports menu (Run -> Report Builder).

  • Designer 6i / Report Generation / Format Trigger / Repeating frames.....

    Good morning all!
    Product version...
    Des.6i 6.5.52.5.0
    Des.tools 7.2.52.2.0
    Des.report generator 6.5.52.1.0
    Dev. report builder 6.0.8.14.2
    Any idea on how to generate from Designer, a format trigger on a report's repeating frames???
    Thank you,
    Michel

    You can customize report in Report Builder. The Report Builder can be run from Repository Reports menu (Run -> Report Builder).

  • How to access report placeholder in format trigger

    How can i access the report placeholder inside the format trigger. I am trying to access it like :F_AMOUNT as i am seeing it in the object navigator but it is giving me error that it is bad bind variable.

    Hi
    If I got your question properly, You need authorization for the accessing Client System. You can see the Reports at RSRT , RRMX may also lead to Query Analyser.
    Hope it helps

  • 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).+*

  • Can I italicize results using a format trigger?

    It seems like I should be able to based on the description of the format trigger use in the help section. If so, I imagine I use one of the srw functions but which? Basically, if the field being printed is less than a certain value, I want to print it italicized (no change if the field is greater than or equal to the value).

    I have been digging through both the online help, and my Oracle Reports Builder book but I haven't been able to find the proper syntax. The closest thing I found was on the Oracle website
    (http://www.oracle.com/technology/products/reports/10g/SOD_Reports.html)
    which has a table of attributes. According to the table, you should use srw.set_font_style(srw.italic_style).
    So my format trigger reads:
    function F_OFFER1FormatTrigger return boolean is
    begin
    IF :offer < '250' THEN
         srw.set_font_style(srw.italic_style);
    END IF;
    return (TRUE);
    end;
    This has not been successful so I'm clearly missing something about the syntax...

Maybe you are looking for

  • Can I add a sata dvd drive to foxconn mcp73m01h1

    Compaq sr5450f product kj383aa#aba,{Personal Information Removed}--motherboard foxconn  mcp73m01h1 has receiver for four (4) sata connections. I assume thta I can use one for an added hard drive --but can I also use one for a sata dvd rw drive?  The

  • Eliminate Scriptlets in form radio

    I have a web form working great for the past year using Scriptlets and Bean in Tomcat 6.0.20. Now I would like to eliminate the Scriptlets and use EL instead. Please advise how I can get the below radio input to work with EL in my JSP. All my attempt

  • Can't Login to Mac Pro

    My boyfriends Mac Pro won't allow him to login. We used the install disk and tried to reset the password but it says the password cannot be saved. Can some one help!

  • Restore Database to Windows

    Hi all, I have cold backup from Oracle 10.2.0.1 Solaris[tm] OE (64-bit) on Unix and now they have moved to oracle 10.2.0.4 on windows 2003 64 bit How can i restore full database from cold backup to windows server? Please guide I am totally new to Ora

  • Störendes Brummgeräusch in Adobe Audition CS 6

    Hallo zusammen, ich habe einen Kommentar aufgenommen, der jetzt in der Timeline von Audition als Wellenform dargestellt wird. Wenn ich jetzt verschiedene, nicht brauchbare Stellen herausschneiden möchte, in dem ich diese Stellen mit der linken Mausta