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

Similar Messages

  • 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

  • When I make a mis-stroke screen images balloon up to fill the entire screen. how can I return them to normal?

    I don't know what I do to make the image blow up. They don;t fill the entire screen, but fill up the normal-sized screen. This has happened on two sites. How can I get them back to normal.

    Is this on Android or on the desktop? On Android, try double-tapping to zoom back out. On the desktop, to reset zoom, try Ctrl+0 (that's a zero).

  • Row level trigger updating the entire table instead of affected rows

    I am using orace 8.1.7. My problem is I have a row level trigger that should fire only once ( and insert a row in my auditing table). But it is doing it for the entire table. This only happens when I have more than two columns in an Update clause. Has anyone run into this problem before. Any help would be highly appreciated.
    thanks,
    dinesh

    create or replace trigger contact_audit
    before update or delete on contact
    for each row
    declare
    v_audit_type char(1);
    v_audit_item varchar2(64) := 'CONTACT';
    v_acct_seqid number;
    Begin
    if inserting then
         v_audit_type := 'I';
    elsif updating then
    v_audit_type := 'U';
    elsif deleting then
    v_audit_type := 'D';
    end if;
    select acct_seqid into v_acct_seqid
    from account_contact
    where email = :old.contact_email;
    insert into audit_event ( id, audit_item, audit_type, audit_date, acct_seqid, col_1, col_2, col_3, col_4, col_5, col_6, col_7, col_8,
    col_9, col_10, col_11, col_12, col_13, col_14, col_15, col_16, col_17, col_18, col_19, col_20)
    values (audit_event_sq.nextval, v_audit_item, v_audit_type, sysdate, v_acct_seqid, :old.contact_email, :old.contact_type, :old.contact_last, :old.contact_first,
    :old.title, :old.address1, :old.address2, :old.address3, :old.city, :old.state, :old.zip_code5, :old.zip_code4, :old.zip_code_barcode, :old.country, :old.phone_no,
    :old.phone_ext, :old.receive_info_email_yn, :old.pwd_encrypted, :old.pwd_question, :old.pwd_answer);
    End;

  • How to hide the Main Report Viewer Tab in SAP CR for VS2010?

    Is there any option to hide that tab page? In designing progress, sometimes it's really annoying.
    Besides, the vertical line in report appears mistakes with a tiny over-length. How to deal with it?
    Looking forward to your answers. Thanks.

    Hi Jinu,
    1) Do some or all of those subreports span multiple pages?
    2) Do each of the Subreports start on a new page?
    If yes, for both, then here's what you need to do:
    1) Create a formula (@True) with this code:
    shared booleanvar SetStatus:= True
    2) Create another formula (@False) with this code:
    shared booleanvar SetStatus:= False
    Drag and drop the @True formula on the details sections for which you want the Page Footer to be suppressed.
    Similarly, drop the @False formula on the details sections for which you want the Page Footer to show up.
    Then, go to the Section Expert > Select Page Footer c > Click the formula button beside Suppress and use this code:
    shared booleanvar SetStatus;
    -Abhilash

  • Why's the SQL format different for the same report on different PCs?

    I have 2 PCs running the same version of Crystal Reports (11.0.0.1994) using an identically configured system DSN with the exact same driver. When I view the SQL that CR is using on PC 1, part of it looks like this:
    " FROM   {oj (("PUB"."LOQEstimate" "LOQEstimate1" LEFT OUTER JOIN "PUB"."LOQComponent" "LOQComponent1" ON ("LOQEstimate1"."Estimate-ID"="LOQComponent1"."Estimate-ID") AND"
    On PC 2 it looks like this:
    "FROM   "PUB"."LOQEstimate" "LOQEstimate1", "PUB"."LOQComponent" "LOQComponent1", "PUB"."CustContact" "CustContact1", "PUB"."LOQSegment" "LOQSegment1"
    WHERE"
    It's the exact same report. Can someone tell me why the SQL is different?
    TIA for the help.

    Thanks for the reply, Patrick. Here are the answers you requested:
    1. Verify you are indeed using the same driver, and they are of the same version
    The driver on both PCs is the Progress OpenEdge 10.1A driver. The file is pgoe1021.dll, version 05.10.0037.
    2. Verify if you have the same database client install on both computer.
    Both use prowin32.exe, v10.1.1.1326
    If everything is the same, then it might be a registry key, and in this case, can you provide the following information:
    1. What database are you connecting to? ( Oracle, DB2, ... )
    Progress OpenEdge 10 RDMS (/community [original link is broken])
    2. What is the version of the database?
    10.1A
    3. What is the version of the database client?
    v10.1.1.1326
    4. How are you connecting to your database? ( Native, ODBC, OLEDB,... )
    ODBC
    5. If you are connecting via ODBC, what is the name of the driver used and it's version?
    The driver is the Progress OpenEdge 10.1A driver. The file is pgoe1021.dll, version 05.10.0037.
    6. What is the SQL query syntax do you prefer? ( PC 1, or the one generated on PC 2 )
    The SQL generated on PC1 doesn't return any records. The SQL generated on PC2 does. Records are preferable ;o)

  • Hiding an article in Browser Mode of the DPS.

    I want to create a folio that has 1 long article reading horizontally. Currently you move left to right from article to article and if you want to explore more you have to move vertically inside an article. The cheat I was hoping to make was to create a 1 page TOC that would be an article and that would point to specific set that was hidden through the option of clicking the "advertisemnt" field, then make all of the pages except for the 1st page of each section an advertisment. I then realized that making an article an advertisment only hides the artcile in the TOC. Is there a work around for this?

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

  • Choosing proper image file format

    I was wondering if anyone else had ever experienced this connundrum: In my business documents (in Word) if I insert my logo in tif format, it looks great when the document is printed, but horrible in digital format; conversely, if I use .png the image looks fine on screen but slightly ragged when printed. Is there a universal format that looks good both ways, or would converting all my documents to Indesign be the best way to go? I date to go to all the trouble, but...

    > Yes, but .tif looks utterly mangled (in Word) onscreen...
    My point was that the "proper image file format" depends on the destination.
    Bob suggested wmf, which made me wonder why you're rasterizing your logo
    at all. Logos usually start life as vectors.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • Oracle depots in .iso image file format

    Hello All,
    Just curious to know why Oracle depots are not available in .iso image file format. With the advent CDROM emulators, it is much more easier to deal with .iso file than a .zip or .tgz in many OS platforms.
    Regards,
    Sushobhan

    The answer is as always ease of management compared to demand.
    I am guessing you are using Oracle on Windows as I think I would have more problems on a unix server dealing with an ISO file than I would with a tar or gzip file.
    John
    www.jhdba.wordpress.com

  • Can we hide the tables and columns from subject areas in the front end

    Hi,
    Is there any way to hide the tables and columns from the subject area in front end.I need to create a report with some tables which the user does not want to see.So after creating the reprot can I hide those tables and columns in the front end

    Hi,
    Your question is not that clear to me...do you want to hide the entire table/column that dont want to show up in the front end then you could do in Presneation Layer in the RPD by going Permissions in the property of that object.
    But if you want to hide the column in the report that can be visible in the subject Area: go to column properties -> Column fomat...thereis Hide option.
    Can you please elaborate your question...what exactly you are looking for...
    --SK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to hide the selection-screen Begin of Block

    Hi,
    I copied the standard program into my new 'Z' prog.
    But i dont need a selection-screen begin of block and end of block i.e. I have to hide the entire block from the output screen.
    I can delete the selction-screen block , but the field which is present inside the block is used in several places of program
    and i dont know the purpose of the fields.
    Can any one help me to hide the block.
    Thanks in advanced
    Regards,
    Darshana

    Hi
    Use keyword NO-DISPLAY with the select options or parameter which u want to hide in the selection screen.
    No need to comment statements Begin of block or end of block.
    SELECTION-SCREEN BEGIN OF BLOCK ss_01 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_month FOR isellist-month no-display .
    PARAMETERS: p_email LIKE somlreci1-receiver no-display.
    SELECTION-SCREEN END OF BLOCK ss_01.
    It will work this way.
    Thanks

  • Hide the column from ssrs report

    Hello,
    I am creating matrix report , I want to hide the column in which Data Field is null. I did tried by writing this expression
    =IIF(IsNothing((Fields!test_name.Value,
    "matrix1_category")),true,false)
    but problem with this expression is it hide the column on first page,It does not do it on rest of the pages, I have multiple pages grouped on one column and added page break on that group.
    Please give me some solution
    Column 1 -ChildGroup-> Column 2 -ChildGroup-> Coulmn 3  | Column 4 |
        |
    Data      |
    Added Page Break on Column 1 and Column 2
    Thank-you!

    Hi Piyush,
    If I understand correctly, you want to hide the entire column, when it has NULL value of the specify field. We can configure the Column Visibility.
    Please refer to the following steps:
    1. Right click the column, select Column Visibility option.
    2. Select “Show or hide based on an expression” with above expression.
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Wda How dynamic the show or hide the window

    Hello
    wda How dynamic the show and hide the window.
    thank you

    Hi Sarah,
    For any webdynpro queries , post it under Application server->Webdybnpro-ABAP OR JAVA forum.
    You can hide the entire group by binding a attribute to the visible property of the group.
    if lv_i_text is initial.
    * to set GROUP hidden
          lo_el_context->set_attribute(
            name =  `VIS_GRP`    " Attribute name in the context binded to visible property of the group.
            value =  'X' ).
    endif.
    I hope it solves your problem.
    Regards,
    Kiruba

  • How do I fit a background image to fill the entire page?

    Hi,
    could anyone please tell me how I use e.g. a jpeg image as a background image that fits the entire page without getting horizontal or vertical scroll bars?
    Thanks

    Hi Pziecina and Nancy O.,
    thank you so much for your mails. However, I'm still trying to figure this out.
    @ Pziecina...I studied the source code of your webpage and tried to insert parts of it into my own page in different variations. The solution to my problem must have something to do with CSS and img src height and width. All I get is a white page. I found out that an image size set in Photoshop apparently doesn't have any effect on whether the image fills the browser 100% or not.
    @ Nancy O. What I'm trying to do is to use one single image as background for a single page on the website, I'd like to construct. An image that opens up to the entire width of the screen...not just the browser. I imagine this with layers of transparent/solid color for text fields. I studied the website page, you suggested and a repeat action is not what I aim for. And I realize that maybe I'm thinking too much in Photoshop terms...thinking I can do similar actions in Dreamweaver.  I'm well aware of the whole thing being 'too much' in terms of design and usability but if you check out www.frauhaus.dk I think that works beautifully, although it doesn't open up to the entire screen. I'd like to see if that design concept will work for my own website or if it's going to be too confusing.
    And to both of you I really appreciate your time and input, thanks. Even though I'm still getting grey hairs as a beginner I keep thinking that there's got to be a solution to this.
    Best regards from MissRaspberryDream

  • How to Hide URL  of reports when run Report 10g.

    Hi ,
    When end user runs a report through a form then report output is displayed and following type of URL is also generated on address bar of browser: http://server:7778/reports/rwservlet/getjobid22243?server=rep_servername_appsrv
    Can we hide this URL so that the user cant change the JOB_ID and get access to other previous reports.
    Thanks & Regards,
    NL

    Put the following In the format trigger of the repeating frame:
    return :cs_cnt > 0;
    Here cs_cnt is the summary column counting details per master.

Maybe you are looking for

  • IPod Touch 4G DFU Mode Issues!!!

    Howdy I have recently been having issues with my iPod Touch 4G whilst trying to restore it in DFU Mode after dropping it. The issue first started when I had dropped it which left me crapping my pants worrying if it would turn on or not... sadly it di

  • Bindable XML not working consistently...

    Hi, I've started on an element for a game I'm developing, and I encountered a problem: JavaScript was not gonna get the job done, so I went for Flex. The element in question consists of boxes with items in. Kind of like a storage area. Each box is an

  • Free wmv converter for mac???

    does anyone know a free wmv converter for mac? I tried MPEG streamclip and wmv is the only format it won't convert the whole file for, it only does 10 secs and from what I know this isn't a demo.

  • Duplicate a schema in XE

    A co-worker is looking to duplicate our schema in XE. By duplicate, i mean a copy of the TABLEs, CONSTRAINTs, INDEXes, VIEWs, and SEQUENCEs, but not the data. This should only need to be done once. From:Oracle9i Enterprise Edition Release 9.2.0.8.0 T

  • JpegImagesToMovie - Unable to see movie

    Hi, I am new to JMF programming. I tried to create a movie file using a bunch of JPEGs. I have hard coded the command argument as w=320, h=480, f=1, out.mov. When I run out.mov it launches VLC player showing progress bar progressing but no picture /