Hiding Buttons in report

I have a page based on Report and have following requirement to enhance.
i need to add a button at the end of the record but not for each record.
below is my query
select username, nvl(flag,'N') createRoleFlag, null emailid
from users_table
html display should look like this
username , email , createRole, buttonLabel
user1 , null, Y , display button
user2, null, N , display blank field
etc
I need to display button only if createRoleFlag = Y otherwise the button should not be displayed
When I click the individual buttons on each record, a popup page should appear for creating roles.
Is this possible. I tried many ways but I could not figure out a solution

Yes it's possible.
You can use DECODE in your Query
DECODE(createRole,
                'Y','<a href="INSERT_A_JAVASCRIPT_POPUP_HERE;"><img src="#WORKSPACE_IMAGES#INSERT_AN_IMAGE_HERE"></a>',
                'N',' ') as buttonLabelreplace the INSERT_A_JAVASCRIPT_POPUP_HERE with some JS function that suits your needs, just search for "javascript popup window" there are a lot of examples.
Edited by: Chris on 16.09.2010 00:48
Edited by: Chris on 16.09.2010 00:48

Similar Messages

  • Print Button on Report

    Dear All;
    Can I place a button on report, and whenwver I will prees it then it will send automatically print of this report on bydefault printer, without out open printer information. Thx.

    please go to the reports forum

  • Disabling Print button on report

    Can sm1 help me how 2 disbale print button on report
    tia

    Hassan,
    I am not sure if this is possible. Can you ask this question in the Reports forum here on OTN.
    Frank

  • Error 500 -Internal Server Error when I click on browse catelog button on Reports and Analytics in Fusion

    Hi
    I am unable to access Reports and Analytics . It throws a Error 500 -Internal Server Error when I click on browse catelog button on Reports and Analytics in Fusion
    I have all the required roles and also BIADMINISTRATOR ACCESS still I am unable to login to Reports and Analytics. I have cleared the cache also.
    My collegue who has the same roles is able to access it.
    Regards
    Avinash

    I created the showModule.xhtml in the web.view.module\src\main\resources folder and test the application and Now I'm getting the error in both deployment ways.
    a) Local deployment: Same result
    Error 500--Internal Server Error
    com.sun.faces.context.FacesFileNotFoundException: /showModule.xhtml Not Found in ExternalContext as a Resource
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:232)
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:273)
    b) Remote server:
    Error 500--Internal Server Error
    com.sun.faces.context.FacesFileNotFoundException: /showModule.xhtml Not Found in ExternalContext as a Resource
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:232)
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:273)
    Please check the below screenshots for the mappings captured in the properties window.
    http://imageshack.us/photo/my-images/5/srwebviewmodule.png/
    http://imageshack.us/photo/my-images/811/eclipseexplorer.png/
    http://imageshack.us/photo/my-images/521/cdiandrichfacesear.png/
    http://imageshack.us/photo/my-images/90/cdiandrichfaces.png/
    Thanks,
    Vijaya

  • Add a button in report selection screen

    Hi Experts,
         I want to add a userdefined button in report selection screen....so far i have written code like this,...
    TABLES : sscrfields.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-010.
    PARAMETERS: P_ID LIKE ZBAPITABLE-ID,
                P_NM LIKE ZBAPITABLE-NAME.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-020.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (11) TEXT-001 FOR FIELD R1.
    PARAMETERS: R1 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (10) TEXT-002 FOR FIELD R1.
    PARAMETERS: R2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (10) TEXT-003 FOR FIELD R1.
    PARAMETERS: R3 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (10) TEXT-004 FOR FIELD R1.
    PARAMETERS: R4 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN: FUNCTION KEY 1.
    MOVE 'SAVE' TO sscrfields-functxt_01.
    If i use code like this button was added in application tool bar
    but in my selection screen i have  two blocks ....in first block i have input fields, and in second there is set of radio buttons...Just below that i want to put one button ....how it is possible...
    can anyone plz help me?
    Regards,
    veena.

    Here's th docu link:
    [Pushbuttons on the Selection Screen|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/frameset.htm]
    Regards,
    Clemens

  • Button in report

    I tried to create a button on report to display the picture of the current emp record .But i couldn't make ...can someone tell me the correct steps i have to follow ?
    Thanks in advance

    Hi,
    Which Reports Version you are using? From Reports 9i onwards, buttons are not supported.
    regards,
    Senthil

  • Sub Total Button in Report Painter Output

    Hi,
    I am working on the Balance Sheet Report in the Report Painter and i am trying to display the sub totaling display in the output.
    In this i had defined the row which is based on the range of Account Number and it has the series i.e. 100000,30000,200000 etc..
    Is it possible to display the output sub total on the basis of the Account Number Series which is mentioned above. As in a ALV Report we have the sub total button  in report output.
    If it is,then please provide me guidelines for it ......
    Edited by: ricx .s on Jul 29, 2009 6:47 AM

    Hi,
    Try this code,
    it working,
    Data :  X_SORT      TYPE SLIS_SORTINFO_ALV,
    IT_SORT     TYPE SLIS_T_SORTINFO_ALV,
    X_SORT-SPOS = 1.                                " Field number of ALV on which u want to sort
      X_SORT-FIELDNAME = 'SEGMENT' .     " field name
      X_SORT-TABNAME = 'IT_ALV1'(001).  "table name same as ur alv table name
      X_SORT-UP = 'X'.                                   " put up as 'X'
      X_SORT-SUBTOT = 'X'.                      " Sub total allowed
      APPEND X_SORT TO IT_SORT.          "append
      CLEAR X_SORT.                                "clear x_SORT
    "in ALV_GRID_DISPLAY pass the it sort in it_SORT
    IT_SORT                 =   IT_SORT
    Thanks
    Arun Kayal

  • Test Report button on report queries

    Does anyone know the code/javascript/url behind the test report button on report queries component?
    We are having DSN problems using the print url given on the report query. The URL works for some of our developers and not for others.
    The test report button on the report query appears to work for everyone but I do not know what is behind the "Test Report" button. If I could recreate the test report button on our page this would be GREAT!
    Can anyone help?
    Thanks,
    Frank

    Please see here: {thread:id=2307009}
    and here: http://www.oracle.com/technetwork/developer-tools/apex/freq-solved-faq-101785.html - Issue 10.
    Please let us know if this helped or if it's something completely different.
    Regards,
    Howard
    Edited by: Howard (... in Training) on Apr 5, 2013 1:18 PM

  • ADDING RADIO BUTTONS IN REPORT NEAR MISS (EHSM-NWBC)

    Hi Experts,
    I am new to this EHSM Enhancements , I have a requirement to add 3 radio buttons in Report Near Miss ( EHSM-NWBC ), I am not understanding this BOPF firm Enhancement .So please provided me the required information .
    Thanks & Regards.
    Bhushan K.   

    Hi Bhushan,
    If you want to add 3 radio buttons, then first of all you have to append one field in EHHSSS_INC_BASIC_INFO_ALL_D structure with Fixed Domain values.
    Then you need to enhance EHHSS_INC_REC_NRM_QAF_V3_BSCI component Configuration.
    In that Configuration you need to add field with display type Radio Button Group, with column count 3.
    Kindly refer the following snap for the same.
    Thanks and regards,
    Chetan P. Patil

  • Enhancement request: Buttons in report regions

    Buttons in Report regions (usually) operate upon the data shown in the report using form input elements like checkboxes, radiobuttons, etc.
    When the report returns no rows, the buttons look silly in an empty report region. Clicking them might also do some harm depending on what the after-submit processes do.
    IMHO it seems like a worthwhile enhancement for Apex to automatically suppress the rendering of the buttons if the report returns no data (it could piggyback upon the 'No Data Found' message under Report Attributes).
    Thanks

    Or maybe conditionally? I can think of a case where I get no data back and I want to do something with those buttons, such as "create a new record". I often use form input elements there as filters, so it's possible for our users to come up with a combination of filters that comes back with "no data found" and they need a way (mmmmmm, buttons) to reset the filters and get back to something meaningful.
    But the ability to condition the buttons (and other stuff) based on whether or not the report returns data? That could be useful, especially for the situation you describe where clicking them might do harm. The ability to disable the buttons on "no data found" (while still displaying them) could also be nice. That way I could display the buttons and keep the same layout, but they wouldn't be clickable.

  • Tamplate based button in  Report Column

    Hi there,
    Is there any way to put tamplate based button into report column. I have a "sliding doors" css button in my theme's CSS file and I would like to use in in the report column.
    Thanks

    Yes, I can set "Strip HTML to No" but how would I use my button template. I did create a button template under Apex and modifying theme css file, right now I would like to use this button in my report colum, basically this button will delete uploaded files from the table.
    I took this idea to reate my button template: http://woork.blogspot.com/2008/06/beautiful-css-buttons-with-icon-set.html

  • How to disable "View Report" button in reporting services

    Is anyone know how to disable "View Report" button in reporting services, I know can do custom code in report properties, what is the code? I have tried something like this ***button1.enable=false, but it can not success.
    Appreciate if anyone can reply me, thanks.

    Hi,
    The message box don't work on the web because it is of windowform box. Based on your further description, you might want to do the date parameter validation. If so, there is common way to do this:(assume the date parameter value inputed can't be less than 2007)
    1) Intert a textbox and input the message used to show the end users if they input a invalidated date value for the parameter, and then set the textbox's hidden property to =iif(Year(Parameters!myPrameter.value) < 2007,false, true)
    2) Insert a Rectangle control below the textbox created in step 1, and put all report items in it and set the Rectangle's hidden property to =IIF(Year(Parameters!myParameter.value)<2007,true,false)
    After these, if the end users input the date value can meet the project requirement, the report will show the data the end users want, otherwise, the end users will see the error textbox to tell them the parameter value is incorrect.
    Hope this help,
    thanks,
    Jerry

  • Button on Report

    Hi,
    using apex 4.1.
    I am using this link to make link as a button on report using FORUM given below and created this link as 'APPROVE'
    Button in reportI want when i click on link 'APPROVE' . Header id column value should pass as a request into :P63_HEADER_ID item and javascript:apex.submit('APPROVE'); should also work
    How i can pass both things at same time in URL ON report column.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 7, 2013 9:18 PM

    Hi,
    You can use this as the target URL (assuming HEADER_ID is the your column name and you are running Apex 4.x):
    javascript:apex.submit({request:'APPROVE',set:{'P63_HEADER_ID':'#HEADER_ID#'}});Thanks,
    Rohit

  • Buttons hiding buttons on indesign

    Hi hope you can help. I'm using indesign CS5 and have a problem with pop up buttons being hidden by other buttons. The page design is a 7 column grid with around 10 buttons underneath each column that act as hyperlinks and trigger other show/hide buttons that give a brief summary of the info at the destination of the hyperlink. So in total there is about 140 buttons - 70 shown all the time and 70 pop ups. To help me manage the design I set up the pop up buttons in 7 separate layers as they overlay the buttons in the 7 column grid. When I export to PDF the pop up buttons appear but are partially hidden by the other buttons. Strangely this is only happening for a proportion with some appearing as they should and in the button tool bar review option they all appear fine. It also worked fine on initial exports and the problem only started when I rearranged the tab order.
    Any any help would be much appreciated!
    James

    Hello,
    I do not think that the BASIS can help you in deleting/hiding buttons from the UI. Generally, the buttons are stored in the GT_BUTTON/GT_BUTTONS attribute of the overview view/viewset controller. In some cases it may be hard coded inside the htm page as well in the form of HTML tags.
    We'd definitely need to do some programming to achieve the functionality you are looking for, Also remember it is different for different views. You need to find out the view that has the buttons.
    Do a F2 on your UI screen to find out the details of the screen.
    Regards
    Prasenjit

  • Hiding buttons based up on business role; Is possible by the BASIS?

    Hi Experts,
    I have done one enhancement for hiding the buttons according to Business role using coding but it was not possible for all the desired buttons since I couldnu2019t find out relevant internal tables for the buttons.
    Now we are planning to do the same activity by the BASIS help.
    Are Hiding buttons based up on user or business role can be possible by the BASIS activity like authorization object to handle the drop downs based up on roles .
    If possible please suggest me the way out to resolve the issue using any kind of BASIS activity.
    Thanks
    Chand

    Hello,
    I do not think that the BASIS can help you in deleting/hiding buttons from the UI. Generally, the buttons are stored in the GT_BUTTON/GT_BUTTONS attribute of the overview view/viewset controller. In some cases it may be hard coded inside the htm page as well in the form of HTML tags.
    We'd definitely need to do some programming to achieve the functionality you are looking for, Also remember it is different for different views. You need to find out the view that has the buttons.
    Do a F2 on your UI screen to find out the details of the screen.
    Regards
    Prasenjit

Maybe you are looking for