How to hide the buttons based on some conditions

Dear all
Good morning
i have three pages
when ever user directly go to third page i want to hide the button "backtofirstpage"//button name
when user go to third page via first page i mean first page i want to visible the button "backtofirstpage"/button name
what is the procedure
at least hiding is not posible at least disable/enable
Regards
Sreekanth

Hi,
In the if condtion read the value of parameter [[You need to send it from first page]] and get it in process Request Method of controller of third Page and based upon it set the render property of that button & in the else condition set the render property to false.
You need to create a PVO & also create a Boolean attribute.
Set the render property in Property window like ${oa.xxPVO1.setRender} -- ${oa.viewInstanceName.viewAttributeName}.
Read more in dev guide & search through the forums.
Thanks
--Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How can hide the buttons based on condition

    Dear all
    I have to hide the button based on condition
    When I open the third page directly I want to hide that button
    When I open the third page via first and second page I need to visible that button
    I pass spell parameter from first to second and second to third
    In third page I get the value using pagecontext
    I write the code in third page co
    If I go directly third page it is null
    If I go to third page via first the value is Y
    If(“Y”.equals(pmode))
    OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
    If(!btn=null)
    btn.setrendered(true);
    else
    btn.setrendered(false);
    but the button is not hiding
    Regards
    Sreekanth

    Hi Srikanth,
    I have modified ur method:
    OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
    If(btn !=null)
         If(“Y”.equals(pmode))
         btn.setrendered(true);
         else
              btn.setrendered(false);
    Thanks,
    'Kumar
    Edited by: Kumar Kovela on Aug 3, 2009 5:53 AM

  • How to dynamically add/remove a button from the ribbon based on some condition? (Ribbon XML)

    Hi,
    I have a ribbon (done using ribbon XML) with menu options. I need to remove few buttons from the menu dynamically based on some condition. Also, I want to change the label of another button. How to achieve this programmatically? (C#)
    Thanks in advance.
    Thanks Prasad

    Hello Prasad,
    Use callbacks for populating Ribbon controls such as menu, dropDown, gallery and etc. Then you can use the
    Invalidate or
    InvalidateControl methods of the
    IRibbonUI interface to get your callbacks invoked when required. Thus, you will be able to delete the required item(s).
    You will find the following articles in MSDN helpful:
    Chapter 11: Creating Dynamic Ribbon Customizations (1 of 2)
    Chapter 11: Creating Dynamic Ribbon Customizations (2 of 2)
    To change the label of your controls at runtime you need to use the getLabel callback and call the Invalidate or InvalidateControl methods of the IRibbonUI interface. The following series of articles describe the Fluent UI in depth:
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

  • How to hide the button flyout which is present in a listview?

    Hi,
    I am developing a windows store app.
    In my app I have created a listview , this listview contains some buttons also , for these buttons I have added flyouts , These flyouts contains close button .
    My problem is when I click on close button I want to hide the flyout .
    How to do this ?
    any help..
    thanks.....
    Suresh.M

    Flyout.Hide is what you want to call.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • How to hide the button in ESS service PZ01?

    Hi ESS experts,
    In the 'Who's Who' service, when we got a person after search, there is a button 'Org Structure Chart' for the person. Since we didn't setting up the chart, it won't show anything. Do you know where can I hide this button? I haven't found it in the IMG 'Who's Who' configuration.
    Thanks a lot.
    Best regards,
    Johnson

    Hello Om,
    Thanks for the reply. Actually we don't ant to give the personalise option to the users therefore don't want to use the CTRLSHIFTRight Mouse Click for hiding buttons..
    if there is some personalize option valid for the entire portal ,then we can go for it.
    Looking forward to your reply.

  • Display the particular column in the page Based on some condition.

    Hi,
    I am using J developer 11g Release 2, I have one page contains form which give the details of a user,in that form i have column called Password,that password column needs to display only when i go for adding a new user,while editing the details of the user the column needs to be disappear.
    Can you help me on this?
    Thanks in advance,
    Suganya.
    Edited by: Suganya on Feb 24, 2012 4:02 AM

    You mean you only want to see the password field if you add a new user, and after the user is stored you won't display the field again?
    Do you use the same page (or fragment) to add or edit the user? Or do you use different pages (or fragments) for this purpose?
    Anyway if you can somehow distinguish between add and edit you can use the visible property of the field (or column) and set it to true or false via an EL.
    Timo

  • Hide the Button Next / Previous in Main Steps on GAF.

    Hello Friends,
    I have to develop one application using GAF.
    In this applicaion there is no INITIAL Screen.
    application directly start with Main Step but Application doesn't have Button Next and Previous like standard GAF application.?
    How to Hide the Button Next / Previous and change the name of Button?

    Hello Julia,
    You are absolutely correct.
    But the thing is, first screen of my application only have the button 'Start' and also roadmap is displayed.
    But in standard GAF application,
    if i configured my window as Inital Screen then button Start will come, but raod map will not come.
    if i configured my window as Main Step then Road Map will come with Button 'Previous; and 'Next'. but Button Start will not come.
    either I can add the Button 'Start' in Main Step or change the name of Button 'Next' to 'Start'.
    But button 'Previous' nothing make sense, so i have to hide this button.
    my 'Start' button will act as Button 'Next'.
    but how can i hide the button 'Previous' and change the name of button 'Next'.
    could you please suggest me shall i develop this application using GAF or simply use the Roadmap UI element in my web dynpro abap application?
    Thanks
    Edited by: Chandraprakash Sulakhe on Apr 6, 2009 11:34 AM
    Edited by: Chandraprakash Sulakhe on Apr 6, 2009 11:42 AM

  • Display an exception based on some condition

    HI..
    how to run a exception based on some condition i.e
    i want to highlight the sales(key figure) which r less than the  average sales..
    where sales and average sales r keyfigures...

    Hi!
    welcome to SDN.
    create a calculated key figure which will be 1 if the sales is less then the average sales.
    create exception based on this calculated key figure.
    with regard
    ashwin
    <i>PS n: Assigning point to the helpful answers is the way of saying thanks in SDN.  you can assign points by clicking on the appropriate radio button displayed next to the answers for your question. yellow for 2, green for 6 points(2)and blue for 10 points and to close the question and marked as problem solved. closing the threads which has a solution will help the members to deal with open issues with out wasting time on problems which has a solution and also to the people who encounter the same porblem in future. This is just to give you information as you are a new user.</i>

  • Display Image(which set as behind text)   based on some condition.

    hi all
    I have developed a xml report and in that rtf am displaying a static image (which is set as behin text).
    But i need to display the image based on some condition
    for example i have a field as ORG_ID
    if org_id=87 then image should display for that purpose am planning to use <?if:ORG_ID=87?> condition but where to place this condition for the image.
    kindly help me
    thanks for all in advance.

    that too not working because
    on image am displaying some other fields.
    see i think you didn't get my point.
    in my out put page am displaying item details ,quantity,and cost and customer details just like invoice copy .
    behind this data am displaying my company logo which will capture whole page size..
    if i place the image in table then fields will be automatically in table so i cant restrict image in this way.
    Kindly suggest any other way that works only for image which is behind text. i mean condition should be applicable only for image and leaving all other fileds in rtf.
    or
    help on this how to set a dynamic image as behind the text.
    Edited by: maddy on Nov 28, 2012 7:32 AM
    Edited by: maddy on Nov 28, 2012 7:35 AM

  • How to hide the "EXIT" button on the ESS Personal inf. iViews

    Hello,
        We are using SAP ECC 6.0 + SAP EP 7.0 + ESS 1.0 (latest Releases).
        In the ESS iViews (Java WD) for Personal information (Adresse, Bank, Family, etc. there is the Button "Exit"..
      Does any have any Idea where and how to hide this "Exit" Button in the iView/Java-WD?
    Many Thanks,
    Nazih

    Hi Chris,
      thanks for your reply.
      If you mean to hide the button using the iView/WD Personalisation by rightclick on the iView in PCD and then Review, well yes i know this and i have tried this already before and we were able to hide some not required input fields in the Webdynpro, but we were not able to find and to hide the "EXIT" Button using the personalisation..!!?? you know why?
    Why to hide the Exit button, i will tell you why, in the iView for maintainig the ESS Personal Information -> e.g. Adresse --> Edit Adresse View (Roadmap view No. 2) --> when User click on the Exit Button --> This will open new browser Window with ESS... ---> This second Browser Window (Pop up) would confuse the User, since he already have an opened window, so the Customer mean why open new window, since the user can simply click the Button Back and so his data are also saved..
    How can we manage to control the behaviour of the Button, so the iView is closed safety without that new Pop-up windows are opened...
    Many Thanks,
    Nazih

  • How to hide the Print and Export button in analytics report or tasks pane

    Hi Experts,
    In BIEE 11g,
    How to hide the Print and Export button in analytics report or tasks pane ?
    For example:
    In console,I have created one userA which is belong to BIConsumer GROUP , when I make use of the highest user 'weblogic' to create one simple report, then the userA will login the analytivs to view this report (not dashboard), it will show the print and export as below.So customers do not want to give him the privilege for printing and exporting.
    In addtion, go to catalog->tasks(left corner), it will also show the print and export button. So how to hide or not access these button?
    Note: Maybe it can use the policy for consumer role for implementing this requirement, but I do not know how to modify the policy. Are you facing the problem? Thanks.

    Hi,
    1. Create seperate folder for Reports & Dashobard.
    2. For BI_Consumer (userA) set the catalog permission to view Dashboard Folder only and remove permission on the Report Folder (you can give traverse permission but don't give Open permision).
    3. By this user won't be able to open or run any reports in that folder and the only way he can see the reports is through Dashboard and on dashboard the export and print buttone can be removed very easily.
    Mark helpful if it helps.
    Regards,
    Kashi
    Edited by: K N Yadav on 24 May, 2013 1:51 AM

  • STMS: how to hide the Import All Requests button in the import queue view?

    Hi All,
    I'd like to know how to hide the "Import all requests" button in the import queue view.
    Thanks a lot for your answers.
    G.

    Hi,
    about hiding i have a doubt but u can inactivate by following procedure,
    As referred in a thread:
    On the domain controller, in STMS>overview>systems>(double click the one you want to change)>Select Transport Tool tab and click on change. Add Import_single_only value 1, import_single_strategy value 1 and no_import_all value 1. Save distribute and activate.
    or
    Refer to OSS NOTE 194000.
    Thanks & regards.

  • How can we disable/Hide the buttons at items tab in header level Gen tab?

    Hi,
    How can i disable/Hide the buttons(Delete,insert...) in item details of general tab of Order Header?
    I am not able to do it with screen varients.
    Please let me know your views.
    Points will be given.
    Thanks,
    Adi.

    Hi,
    How can i disable/Hide the buttons(Delete,insert...) in item details of general tab of Order Header?
    I am not able to do it with screen varients.
    Please let me know your views.
    Points will be given.
    Thanks,
    Adi.

  • How to hide 'layout button' on ALV toolbar

    Hi,
    I have an ALV and it has standard toolbar, now i want to hide 'Layout button' from the toolbar based on specific condition e.g when flag = 1.
    How to do that.
    Thanks,

    If you are using the REUSE function, you can use the "EXCLUDING" parameter, and pass the FCODE for "Change Layout" to this table.  This will remove the icon from the toolbar.  Here is an example.
    REPORT rich_0001 .
    * Global ALV Data Declarations
    TYPE-POOLS: slis.
    * Internal Tables
    DATA: BEGIN OF ialv OCCURS 0,
          test1(10) TYPE c,
          test2(10) TYPE c,
          END OF ialv.
    DATA: xfc TYPE slis_fieldcat_alv.
    DATA: ifc  TYPE slis_t_fieldcat_alv.
    DATA: iexcluding TYPE  slis_t_extab.
    DATA: xexcluding LIKE LINE OF iexcluding.
    PARAMETERS: p_hide TYPE c DEFAULT 'X'.
    START-OF-SELECTION.
      REFRESH iexcluding.
    * If the user wants to hide the change layout icon, then add to IEXCUDING
      IF p_hide = 'X'.
        xexcluding-fcode = '&OL0'.
        APPEND xexcluding TO iexcluding.
      ENDIF.
      REFRESH ifc.
      xfc-reptext_ddic = 'Test1'.
      xfc-fieldname    = 'TEST1'.
      xfc-outputlen    = '10'.
      APPEND xfc TO ifc.
      xfc-reptext_ddic = 'Test2'.
      xfc-fieldname    = 'TEST2'.
      xfc-outputlen    = '10'.
      APPEND xfc TO ifc.
    * Call ABAP List Viewer (ALV)
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          it_excluding = iexcluding
          it_fieldcat  = ifc
        TABLES
          t_outtab     = ialv.
    Regards,
    Rich Heilman

  • How to hide the pricing conditions specified in pricing procedure of sd.

    dear friends,
    my situation is to hide the conditions specified in the pricing procedure. so that it is not viewed by the some users.can you please tell me how to hide the conditions. so some of the persons, who are having authorization to see the conditions , will be able to see the pricing conditions.
    can you please suggest me how to do this.
    regards,
    g.v.shivakkumar

    Authorisation  issues viz. Role Impementations
    Hide Condition Records Line Item & Header Wise from all the transactions QK / So /  P.I. / Enquiry / Invoice etc. for specific user grps. - in CRETATE / AMEND / DISPLAY / REPORTS all
    Only Display the fields
    regards,
    g.v.shivakkumar

Maybe you are looking for