How to Print Enable Disable Conditionaly

Dear Friend
i want to disable and enable my Print Option on conditions (Condition define in my below Report code) in classic Report.
So to print invoice i have used code in report.bUt here my Invoice no does not hit and invoice not print.
   CASE
              WHEN NVL(VID.CONTROLSUM, 0) = NVL(VID.SUM, 0)
              THEN
                 '<a href=http://abc.xyz.org:1534/reports/rwservlet?SERVER=rep_oraapps_ora10gias+REPORT=REP_OPR_667.RDF+DESTYPE=CACHE+DESFORMAT=PDF+USERID=TEST/TEST@ABC+P_SBU_CODE=0002+P_INVOICE_NO=INVOICE_NO>Print</a>'
WHEN NVL (VID.CONTROLSUM, 0) <> NVL (VID.SUM, 0)
              THEN
                 'PRINT'
           END
              AS the_PRINT, My View Code (VW_INVOICE_DTL_REPORT)
SELECT   am.INVOICE_NO,
              am.INVOICE_NO AS invoice,
           am.INVOICE_TYPE,
           am.INVOICE_DATE,
           am.CONSULTANT_NAME,       
DECODE (am.INVOICE_TYPE,
                   'I', (NVL (SUM (al.AMOUNT), 0)),
                   (NVL (SUM (al.AMOUNT), 0)))
              AS SUM,
              NVL (am.inv_dtl_amt, 0) AS CONTROLSUM,
           CASE
              WHEN NVL (am.inv_dtl_amt, 0) <> NVL (SUM (al.AMOUNT), 0)
              THEN
                 'RED'
           END
              the_sum, 
           Inv_in_apps (Am.Invoice_no) AS apps_FLG
    FROM   AR_INVOICE_MAS am,
            AR_INVOICE_DTL al
   WHERE       am.invoice_no = al.invoice_no(+)
GROUP BY   am.ID,
           am.invoice_no,
           am.INVOICE_TYPE,
           am.INVOICE_DATE,
           am.inv_dtl_amtMy Report Code where i have user Print Option
select
VID.*
              CASE
              WHEN NVL(VID.CONTROLSUM, 0) = NVL(VID.SUM, 0)
              THEN
                 '<a href=http://abc.xyz.org:1534/reports/rwservlet?SERVER=rep_oraapps_ora10gias+REPORT=REP_OPR_667.RDF+DESTYPE=CACHE+DESFORMAT=PDF+USERID=TEST/TEST@ABC+P_SBU_CODE=0002+P_INVOICE_NO=INVOICE_NO>Print</a>'
WHEN NVL (VID.CONTROLSUM, 0) <> NVL (VID.SUM, 0)
              THEN
                 'PRINT'
           END
              AS the_PRINT,
CASE VID.APPS_FLG
              WHEN  'N'
              THEN
                 '<a href="f?p=&APP_ID.:5:&SESSION.:MODIFY:&DEBUG.:5:P5_SBU_CODE,P5_INVOICE_NO:
                 || VID.SBU_CODE
                 || ','
                 || VID.INVOICE_NO
                 || ':"><img src="#IMAGE_PREFIX#edit.gif" alt="Edit"></a>'
              WHEN 'Y'
              THEN
                 '<img src="#IMAGE_PREFIX#edit.gif" alt="Invoice Transfered">'
           END
              AS the_Edit,
           CASE VID.APPS_FLG
              WHEN 'Y'
              THEN
                 '<font color ="Gray"></b>Revenue</b></font>'
              ELSE
                 '<a href="f?p=&APP_ID.:41:&SESSION.:MODIFY:&DEBUG.:41:P41_sbu_code,P41_Invoice_no:'
                 || VID.SBU_CODE
                 || ','
                 || VID.INVOICE_NO
                 || ':">
<font color =GRAY><b>Revenue</b></font></a>'
           END
              AS Revenue
FROM VW_INVOICE_DTL_REPORT VID

Try searching under %ORACLE_HOME%/cgenf61/ a file named OFGMNUT.mmb, this is the closest version of it shipped with 10g I think. in previous versions it was shipped with different name and location.
Is the whole menu not visible?? or just the items??
Make sure the location is specified under the FORMS_PATH variable and set the Forms property "Menu Module" with the name of your own Menu.
Tony

Similar Messages

  • How do you Enable/Disable a user's ScreenSaver and set it's time

    How do you Enable/Disable a user's ScreenSaver and set it's "Start Screen Saver" time.
    I am writting an application in java which uses JNI and a screen saver to lock users out of the computer unless they enter the correct username and password.
    If they enter the correct password I need to Enable the ScreenSaver at a specific about of time (time can be changed remotely) so I can "log out" the user.
    I need to disable the screen saver after the screen saver runs so that it doesn't run while the java login program is running.
    I have this working already on Windows XP but can't find any way to program this on Mac OS X.
    Thank you for any help!

    http://forums.macosxhints.com/showthread.php?t=61525
    Disable
    defaults -currentHost write com.apple.screensaver idleTime 0
    Enable for 180 seconds
    defaults -currentHost write com.apple.screensaver idleTime 180

  • How do i enable/disable call waiting option in iphone5

    How to enable/disable call waiting option in iphone5. setting --> phone does not show up call waiting / call forwarding options

    I've gone through your message completely, if you do not have the Call Waiting option under Settings > iPhone it means your carrier does not let you access that feature on the phone. Contact them and see if they have dialing codes to turn it off and back on.

  • How can I enable, disable and re-enable restrictions on an ipod without loosign all the settings?

    I purchased an ipod touch for my 10 year old, primarily so she could use the calendar and timers and such for school (we homeschool) and al;so so we could start learning some social media and electronic literacy.
    I enabled all the restrictions on the thing (and set all the little settings how I wanted them) so she is essentially locked out of everything that I don't' want her to have access to yet.  Then, I realized that I needed to download some stuff, and re-configure some things, so I just disabled the restrictions.  When I went back to the restrictions to re-enable them, I found that ALL THE CHANGES I had made, dialing in what she should be able to access and not had been reset to the factory settings, and I had lost it all. 
    Do I really have to re-set-up the restrictions every time I enable or disable them?
    Also, does anyone have a work around for the family thing requiring a credit card.  We simply do not do credit cards in our family.   Do I have to set up her apple ID  and lie about her age, or is there some workaround for this?
    THanks

    try if this script works for you:
    iTunes Track CPR v1.3 
    This script attempts to locate the files of so-called "dead tracks"--iTunes tracks designated with (!)--that you assume are not actually missing but are still located in the iTunes Music folder in their "iTunes File Order" (Music -> Artist -> Album -> file.xxx)."

  • How can I enable/disable the transmission of a can frame? (filter etc...)

    Hello,
    I use the CAN
    Transmit-periodic.vi in LV 8.5, I want to enable or disable the
    transmission of a frame without stop the loop of my VI, does it exist
    in the frame api a vi which could stop, or mask the transmission of a
    frame?
    It's important I don't want to stop my VI that
    send my frame just filter a frame that I don't want send on my CAN
    bus...(I would command it with a boolean for example).
    Thank you.
    Bye.

    Hi there
    I'm not familiar with NI-CAN, but take a look at
    \vi.lib\Nican\nican.llb\ncAction.vi
    Can be found in the CAN\Frame API\Advanced palette.
    Start Transitions the CAN object from stopped (idle) state to started (running) state. If the CAN object is already started, this operation has no effect.
    Stop Stops the CAN Object. For example, if the CAN Object is configured to transmit data frames periodically, this action stops the periodic transmissions. This action will also clear all entries from the read queue.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Does anyone know how to enable/disable a dropdown menu in Forms at runtime?

    Is there a way how to disable/enable dropdown menu for menus that have multiple sub levels in Oracle Forms? I am trying to use the set_menu_item_property function but this takes 'menu.item' format for the first argument. I am trying to enable/disable a menu item in the form of 'menu.item.subitem' and was not able to do it using this function. If anyone knows a different function or method, please reply. I have shown an example below.
    Setup -> Software -> Front Page
    From the above example, I can enable/disable Software using set_menu_item_property function. But, how do I enable/disable the Front Page menu in Oracle forms at runtime?
    Thanks
    Edited by: user480347 on Aug 24, 2010 3:37 PM

    Yes you are on the right track. You need to pass then complete menu name to set_menu_item_property
    Immediate_parent menu.item_name e.g
    For example you have menu like this
    Id like
    A1    A10 > A1010
    Home > Input > Form 1
    A1    A10 > A1020
    Home > Input > Form 2 To disable Form 2 you must pass menu name as
    A10.A1020Hope it helps

  • Enabling disabling selectinputdate

    I am 10 g user..
    <af:selectInputDate id="occurred" disabled="#{item.disable}" value="#{item.occurredDate}" >
    <af:convertDateTime pattern="dd/MM/yyyy"/>
    </af:selectInputDate>
    I have that, when by javascript I do document.getElementById("occurred").disabled = false; ( note it was initially true in this case).
    the button that popups the date does not occur
    Another case:
    when I do document.getElementById("occurred").disabled =true;(initially it was false) the button that popups the date is still there, and the textbox is disabled but thru that popup box i am able to change the date time.
    How can I enable/disable selectinputdate??

    Hi,
    What is the condition using which you are enabling / disabling the inputdate? You can specify that as EL expression for the disabled property. Something like
    <af:selectInputDate id="occurred" disabled="#{<condition>?'true':'false'}" value="#{item.occurredDate}" >-Arun

  • Enable / Disable selection screen block

    Hi, could u pls tell me how do I enable/disable selection screen block written below based on radio button selected??
    Block to be enabled / disabled :
    *----APO Version and RFC destination block
    SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-013.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 01(20) text-e11.    "APO Planning Version
    SELECTION-SCREEN POSITION 29.
    SELECT-OPTIONS s_apover FOR w_version NO INTERVALS.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 01(20) text-e09.    "APO RFC Destination
    SELECTION-SCREEN POSITION 32.
    PARAMETERS  :  p_aporfc LIKE rfcdes-rfcdest.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b4.
    Radiobuttons :
    Material Type
    SELECTION-SCREEN BEGIN OF BLOCK ss04 WITH FRAME TITLE text-072       .
    PARAMETERS :
         Load only FERTs
           p_FERT  RADIOBUTTON GROUP styp DEFAULT  'X' USER-COMMAND rusr ,
         Load ROH/HALBs
           p_HALB  RADIOBUTTON GROUP styp                                .
    SELECTION-SCREEN END   OF BLOCK ss04                                 .
    Thanx in advance

    Hi
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: pa_file TYPE rlgrap-filename MODIF ID abc,
    pa_lifnr TYPE lfa1-lifnr MODIF ID abc,
    pa_vkorg TYPE vbak-vkorg MODIF ID abc.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: pa_kunnr TYPE vbak-kunnr MODIF ID def.
    SELECT-OPTIONS: s_lifnr FOR gs_lfa1-lifnr MODIF ID def,
    s_date FOR gs_lfa1-erdat MODIF ID def,
    s_augru FOR gs_vbak-augru MODIF ID def,
    s_vbeln FOR gs_vbak-vbeln MODIF ID def.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_upd RADIOBUTTON GROUP g1 USER-COMMAND uc01 DEFAULT 'X'."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-004 FOR FIELD pa_upd.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_rep RADIOBUTTON GROUP g1 ."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-005 FOR FIELD pa_rep.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b3.
    IF pa_rep EQ gc_x.
    LOOP AT SCREEN.
    IF screen-group1 = gc_abc.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_def.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_upd EQ gc_x.
    *For Reprocessing
    LOOP AT SCREEN.
    IF screen-group1 = gc_def.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_abc.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    CLEAR pa_upd.
    ENDLOOP.
    ENDIF.
    REPORT zrich_001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
                            user-command chk,
                p_rad2 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_datum1 FOR sy-datum MODIF ID d1,
                    s_datum2 FOR sy-datum MODIF ID d2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_rad1 = 'X'
          AND screen-group1 = 'D2'.
          screen-active = '0'.
        ENDIF.
        IF p_rad2 = 'X'
         AND screen-group1 = 'D1'.
          screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Regards
    Anji

  • Enable/disable an item in a multirecord block

    hello to all
    How is possible Enable/disable an item in a multirecord block?
    set_item_property change all instances of an item in a multi-record block
    SET_ITEM_INSTANCE_PROPERTY only affects the display
    thanks

    Hi,
    You cannot set the Enabled property in a multi-record block, instead you can change the INSERT_ALLOWED, UPDATE_ALLOWED properties. So that the user can't change the value in the item.
    Regards,
    Manu.
    If my response or the response of another was helpful, please mark it accordingly

  • How do I enable "Save As" and disable "Save"

    I have constructed a filable form in Adobe Acrobat Pro 8.1.  The idea is to have this form downloaded to the users computer and used weekly to track expenses and each week to print and save a copy.  The problem is that with save enabled it overwrites the original form and now the person must download another original.  My question is; How do I enable "Save As" to be used with filled out forms while disabling the "Save" function after data has been entered on the form?
    Thanks for any assistance,
    Pat

    OK Pat,
    In LC Designer you would create a button with the following JavaScript in the click event:
    app.execMenuItem("SaveAs");
    This will bring up the Save As dialogue window.
    This simplified solution will work; however if you want to be more specific in file name / path then you will run into security issues, which will require additional privileged script / certified solutions. There are some posts dealing with this:
    http://forums.adobe.com/message/1357119#1357119
    http://forums.adobe.com/message/1359267#1359267
    While the solution may not be ideal, it will at least prompt the user to "Save As" instead of "Save" and the user will just have to be responsible for making sure they rename the file.
    Good luck,
    N.

  • How do I enable my iTouch? I am trying to update the apps but when I click "Update All", a pop up "Your Apple ID has been disabled." How do I change it so I can enable my iTouch? Thanks.

    How do I enable my iPod? I am trying to update the apps but when I click "Update All", a pop up "Your Apple ID has been disabled." How do I change it so I can enable my iPod? My iPod is not locked (I know my password), but I just can't figure out how to enable it. Thanks.

    This may help:
    http://support.apple.com/kb/ts2446

  • How do I enable flash and java on firefox23 as I have the latest versions installed yet the plugin page shows "disabled" with no option to enable

    I have updated to Firefox 23 and it disabled my Java and Flash plugins. I then updated these to Flash 11.8.800.94 and Java to Version 7 Update 25. Now these are showing up on the plug in page but are showing "disabled" with no option to enable. How do I enable them to view content on the web.

    Thanks Philipp but i have already done that and the content started working...
    However, when i closed and restarted the browser it returned back to the same settings...
    I dont think that should happen, but anyway thank you for the solution. At least I can use it by resetting the values if need be
    Appreciate your help

  • My iPad 2 is disabled. I know the passcode and apple id. How do I enable it?

    My iPad 2 16Gb has been disabled because the wrong passcode was entered too many times. Since purchasing the iPad I never purchased anything from the Apple Store and after a couple years my passcode got misplaced.
    A friend of mine in the church where I attend tried to help me and went to iTunes, erased the iPad and downloaded the new software. When it was time to activate the iPad, it demanded my apple id and original passcode at the time of purchase.
    I searched and found it in my wallet but the last three characters were uncertain. The salesman used an "up-arrow r" for "R" and counted it as two characters; so the passcode only had 7 characters instead of 8. I thought the up-arrow was a "p" and it could have been capital or common. Then the "r" might have been a "k" because the way I wrote it. After many combinations, I ran out of tries and the iPad was disabled. Eventually I realized it was a "R" but too late.
    I visited the Apple Support in my country and they were unable to do anything about it even though I had the right apple id and passcode. The security questions were the problem.
    The first security question was my birth date and I was getting that wrong. Why, I don't know. How could I get that wrong. Not even my wife's birth date works. I began to question whether the salesman went through any security questions with us at all.
    How do I enable the iPad knowing my apple id and passcode at the time of purchase?

    You're facing Find My iPhone Activation Lock, and you will not be able to use you're iPad without knowing the Apple ID and Password used to originally activate it. If you don't remember your password, try: https://iforgot.apple.com/password/verify/appleid

  • HT1267 How do I enable my iPhone as it keeps saying ur apple ID is disabled and I can't update any apps

    How do I enable my iPhone as I can't do any updates as it keeps coming up " your apple ID is disabled"

    Goonercole wrote:
    Ok if my iTunes account is disabled how do I get it enabled please
    I told you in the first post:
    "If changing your password does not work, then contact itunes support."

  • How to use a radio button in enabling/disabling a text box in report progra

    Hi,
        Could any please let me know, how to use a radio button in enabling/disabling a text box in report program.

    *& Report  ZMR_RADIO_BUTTONS
    REPORT  ZMR_RADIO_BUTTONS.
    PARAMETERS : R1  RADIOBUTTON GROUP G1,
                 R2  RADIOBUTTON GROUP G1.
    PARAMETERS : A1 TYPE I,
                 A2 TYPE I.
    AT SELECTION-SCREEN OUTPUT.
    *initialization.
    IF R1 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 0.
    ENDIF.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 1.
    ENDIF.
    ENDLOOP.
    ENDIF.
    IF R2 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 1.
    ENDIF.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
        SCREEN-ACTIVE = 0.
    ENDIF.
    modify screen.
    ENDLOOP.
    ENDIF.
    START-OF-SELECTION.
    *IF R1 = 'X'.
    *LOOP AT SCREEN.
    IF SCREEN-NAME = 'A1'.
       SCREEN-INPUT = 0.
       SCREEN-ACTIVE = 1.
    ENDIF.
    *ENDLOOP.
    *ENDIF.
    *IF R2 = 'X'.
    *LOOP AT SCREEN.
    IF SCREEN-NAME = 'A2'.
       SCREEN-INPUT = 0.
       SCREEN-ACTIVE = 0.
    ENDIF.
    *ENDLOOP.
    *ENDIF.

Maybe you are looking for

  • Using the swing worker to populate the data in to jtablle

    Hello, i am developing my 1st application in java swings , i have developed it but when i run a module which fetchces the data from the mysql and display it in jtable my swing gui got blank for some initial time, i was thinking for some progress bar

  • JDBC insert single quote ???

    Hi, I want to insert a string which could contain a single quote ( ' ) into my database . But if this is the case, the regular insert command fails, since the single quote from the string collides with the ones from the command. What can I do???

  • Can't make "Back to my mac" work for me.

    Hello world I tried everything! Set routers on UPnP. Updated Firmware. Enabeld sharing. Logged out an in .Mac on all my Computers (same .Mac-account). Nothing! B2MM just won't work. Home mac doesn't show up on office mac and the other way round. I'll

  • Freezes, Hangs, No responce, No Audio

    What a pain in the neck CS5 prove to be.  NOTHING seems to work without some glitch to it. For now - let's talk about my problems on Premier only. I never had any issues with CS3 or any of the versions before that.  I've been an Premier client for mo

  • Multiple mail receivers?

    Hello, I need to send a file from the XI to numerous email receivers. I understand that I can put multiple email addresses separated by ";" into the "To:" field among the "Mail Attributes" of a Mail receiver adapter. But the receivers should not see