Standard view element visibility change

hi experts,
In a standard component, i need to change the toolbar button visibility property at runtime,
i have written code in post-exit of doint method,but changes are not repflecting in the portal sceen. in the button properties visibility is selected directly.
i have created attribute in the context and changed the value to abap_false.but how to bind this attribute to the button visibility propert. when i directly tried to bind, as this is standard, it is not allowing me to change. when i use replace property attribute..it is showing error that method is protected, so it cannot be used. please advice.
regards,
suneetha

Hi
In post exit of doinit method you can change the binding of visible property by using attribute you have created
Method is BIND_VISIBLE.
Alternatively instead of post exit of init try your code of setting visible property to false in post exit of domodifyview.
Hope this helps
Regards
Manas Dua

Similar Messages

  • How to change the view element visibility Dynamically?

    Hi,
    Can any one please suggest that how can I make one of the viewUIElements from the view, visible on the whole screen? Basically i want to make the data in the table, available for printing. I want when user clicks on the print button, he should see only the data in the table on the whole screen and some icons, nothing else. Again when he clicks one back button icon on the screen, he should return to the previous view.
    Thanks and Regards,
    Smriti

    <b>Hi smriti Behl
    I Think you can get something from the below explanation
    Create one UI Element For example "Visible" and make the type as
    com.sap.ide.webdynpro.uielementdefinitions.Visibility
    Now bind this Context Value with the UI Elements ie UI elements which you want to make Not Visible When you click Print Button. You can write the Following Code inside the print button
    wdContext.currentContextElement().setVisible(WDVisibility.NONE);
    When you want to make the UI Elements Visble When Click Back Button Write Following code In side Back Buuton Method
    wdContext.currentContextElement().setVisiblity(WDVisibility.VISIBLE);
    May i Know Your Problem Solved ..............
    Regards
    Chandran S</b>

  • Create a new button in a sap-standard-view WD4A

    In webdynpro for ABAP
    I have changed the text on an existing button in a sap-standard-view using configuration (change application configuration/go to component configurator/implicit configuration and then on the view-component change the text) it works perfect.....
    my next step is to create a new button beside the old one with a new text on it, I created a new button by using "enhance view" (I copied the existing button) the new button appears (so far so good) but when I go into the configuration to change the text on the new button (using configuration the same way I did when I changed the text on the existing button) I  cant find my new button in the view-component list....why can't I find it there so I can change the text?
    Can anyone help me this one?

    I don't believe that the Configuration tool picks up Enhancement Objects because of the way they are linked to the original component at Runtime. Why set the text using configuration?  You can control the text within the enhancement object.  Do you want different texts based upon multiple configurations?

  • Need changes in standard data element

    Hi gurus,
    I want to change in one of SAP standard data element for adding search help into it.
    for this fields there is no user exit or any enhancement is present.
    I have taken access key from our basis guy after putting access key i am unable to change the data element i mean access key is correct but i am unable to edit data element.
    so can anybody tell me how can i change in this data element.
    note : I have access key.
    Regards
    Ankit

    Hi,
    What data element you are about to change, you should take extra care before changing standard data elements as it may be used in many places.
    Do a Where-Used list to determine nothing else will be affected because of this change.
    Regards
    Karthik D

  • Changing size of standard data element.

    Hello here,
    I need some clarification.
    I have standard data element TIDNR - Technical identification number (Used in PM tables).
    It has Data Type - CHAR and Length  25.
    Is it possible to increase his length to 35?
    Maybe, it is possible to create new data element ZTIDNR and make reference to TIDNR?
    Or easily is to add some user field to equipment time segment?
    Thank You in advance.
    Edited by: andriy.hulyk on Nov 1, 2011 3:23 PM
    Edited by: andriy.hulyk on Nov 1, 2011 3:24 PM

    Hi andriy,
    always be careful.
    Check what the where-used-list says: It's not only the use in programs and database tables, all input/output fields are also affected and must be changed manually (which is a modification).
    You may create an own translation table: If i.e. you allow only 96 characters as defined ind [CDC display code|http://en.wikipedia.org/wiki/CDC_display_code] , this can be reduced to 8 characters in 6 bytes or 33 chars in the original data element. Some bit&byte operations required for the conversion. If you define your own code with, say only A-Z, 0-9 and space and some more you can reduce to 5 bits having 8 characters in 5 bytes and so forth.
    If you are on unicode with 2 bytes per char, possibilties are even more...
    Yes, it's kind of a challenge - but at least an idea.
    Regards,
    Clemens

  • FM for standard WBS element change - CJ92

    Hi all,
    Is there any function module to make changes in standars WBS element/proj.def tocde- CJ92.
    If any knows, please provide me the same.
    Thanks much!
    Chandra.
    Edited by: Sekhar on Apr 7, 2010 1:10 PM

    Thanks... Is this work for standard WBS elements ?

  • How to find out which context attributes are mapped to view elements

    Hi All,
    We have a custom WD application ( on ECC 6.0 - SAP Basis 70 ) where we have a context node whose 70 attributes are displayed over 2 seperate views.
    When a user enters the view,  we want to inform him which data was changed. 
    I have written a general method which takes the context node, grabs its attributes and compares values ... messages are generated via the message manager and context element/attributes are linked so that the input elements become red.
    Everything works fine but the only problem is that I do not know which attributes are visible on which view so the user is getting the changes of view 2 on view 1 and vice versa ( if the context is only mapped on 1 view then there is no issue ofcourse ).
    The call is currenlty executed at the views inbound plug ... I also checked the view methods themselves like modify view but nothing seems to lead me to a potential solution ...
    I have looked through almost all API classes available but I cannot find any way to obtain information about the linking of view elements with context elements/attributes during runtime ... And I don't want to 'hardcode' a list of context attributes per view ....
    Has anyone done something similar ?
    Thanks,
    Steven

    Hi All,
    We have a custom WD application ( on ECC 6.0 - SAP Basis 70 ) where we have a context node whose 70 attributes are displayed over 2 seperate views.
    When a user enters the view,  we want to inform him which data was changed. 
    I have written a general method which takes the context node, grabs its attributes and compares values ... messages are generated via the message manager and context element/attributes are linked so that the input elements become red.
    Everything works fine but the only problem is that I do not know which attributes are visible on which view so the user is getting the changes of view 2 on view 1 and vice versa ( if the context is only mapped on 1 view then there is no issue ofcourse ).
    The call is currenlty executed at the views inbound plug ... I also checked the view methods themselves like modify view but nothing seems to lead me to a potential solution ...
    I have looked through almost all API classes available but I cannot find any way to obtain information about the linking of view elements with context elements/attributes during runtime ... And I don't want to 'hardcode' a list of context attributes per view ....
    Has anyone done something similar ?
    Thanks,
    Steven

  • View Element with ID _CFG_GROUP_36_CAPTION in View V_PREVIEW Already Exists

    Dear All,
    In EHP5 'Personal profile' Service, I was trying to modify the detailed screen of Address Information for Great Britain through FPM configurator. On the default detailed screen for this country, there was one group called 'Communication' . I wanted to hide that group. I thought I can achieve this by modifying attribute of this group. There were two attributes 'sequence Index' and 'Column' which decides position of specific group on detailed screen. I made value against these attributes as 0. But after doing these changes I am not able to see the preview of this detailed screen. It is throwing following runtime error:
    View Element with ID CFGGROUP_36_CAPTION in View V_PREVIEW Already Exists.
    How to revert the changes made in the attribute of this group.
    Regards,
    Swapnali

    check these steps
    1. Customizing the Fields in Overview Screens
    http://help.sap.com/erp2005_ehp_05/helpdata/en/77/804c18e1844944b7f8baf5
    3159be78/content.htm
    2. Configuration of Personal Profile Services
    http://help.sap.com/erp2005_ehp_05/helpdata/en/3a/fe6eac579d4a9ead651d77
    9a2dbd23/content.htm
    3. Personal Profile application Documentation
    http://help.sap.com/erp2005_ehp_05/helpdata/en/14/60cd56b1514ae5aa811d2a
    a4a59de3/content.htm
    In EhP5 ESS Personal Profile application, in order to change the
    Address overview page fields, you need to adapt the Address component
    configuration HRESS_CC_PER_OVR_ADDRESS_XX.
    Note: In EhP5, ESS screens are based on Floor Plan Manager for
    WebDynpro ABAP Generic UI Building Block concept. To configure
    overview page fields we no longer use 'Determine Fields for Business
    Card on Area Page' View instead of that we adapt the FPM configurations.
    In the standard delivery in the Overview Page, always international
    Address is displayed and in the edit screen based on the country
    selection (Foreign Address scenario), corresponding country screens
    are displayed.
    Note: We always show international address screen in overview page in
    order to support Foreign Address scenario.
    If you want to chanage the fields in the Address overview page fields
    then adapt the Address component configuration

  • Web Dynpro Enhancement : Rename text of the View Elements

    Hello All,
    I want to enhance standard web Dynpro component. I need to rename text of some of view element.Ex.- label. I searched on SDN but I can able to find only following two things.
    1. We can able to remove the view element in enhancement implementation.
    2. We can add Post/Pre methods to the view methods.
    But I am not able to find the "How to rename the text of the view element?"
    Ex.: I have one label. Text for that label before enchantment is 'ABC' . when enhancement implementation is active, it should be 'PQR'.
    Any pointers?
    Thanks in Advance,
    Prashant Jagdale

    If you just need to rename the text of labels then you don't need the enhancement framework for that.  Using either adminstrative personalization or component configuration you can override the SAP delivered label text with your own without changing the underlying Web Dynpro component.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b170d256293c5ce10000000a421937/frameset.htm

  • Unable to open "compose mail/settings/contacts" in standard view in 2 out of 3 Gmail accounts

    Unable to open "compose mail/settings/contacts" in standard view in 2 out of 3 Gmail accounts. When "compose new mail" is selected "loading...." appears at the top then the page is frozen. ie you can't select inbox etc. Changing from standard to basic h/ml then clears the Loading... and gmail can be used (without spellcheck etc).
    This might not be Mozilla, but I can access these accounts in standard view on another computer.

    Your Gmail account may well be an IMAP account, just like the iCloud mail account. In which case it will work in just the same way as iCloud mail, except that you will have to set it up manually on each device, where as iCloud mail adds the account itself when you log into iCloud.
    Whilst it works the same as iCloud mail it isn't iCloud that syncs it for you.

  • How to create a new view by copying from standard view in IC webclient?

    Hello, expert,
    I need to enhance a sap standard component (BP_Factsheet), inside it I need to create a new view by copying from an existing standard view (Acitivities). However when I try to make a copy, I was asked for destination BSP application, I entered the Z-Application which I used when defining enhancement for the component. After the copy, I don't see the new view.
    Then I tried the destination BP_factsheet, instead of the z-application, then after the copy, I can see the new view. However since it's in SAP application, it seems like it's a MOD, not enhancemnet, and inside the new view, the classes (for context, context nodes, etc.) are not in custom namespace (not starting with Z).
    So please let me know how can I make a copy of sap standar view in custom namespace.
    Thanks in advance.
    Jayson

    When copying you can put any BSP name..normally the practice is to prefix the standard name with a Z.
    Secondly when you want to make changes to the individual classes and methods you need to right click and say enhance. Then the AZ class names etc would be generated. The view should appear in the component wherein you copied the original view from.
    I hope this helps.
    The cookbook should have details on this. Otherwise also its quite intuitive.
    Award points if it helps.
    Thanks.

  • Modify "standard view" settings for an ALV in a WD4A view

    Hi fellow developers
    I have placed an ALV on  WD4A view.
    In the WDMODIFYVIEW I try to manipulate the ALV settings but somehow the settings of the "standard view" overrule my commands.
    The settings of the "standard view" are not modifiable from within the function.
    Is there a possbility to change the settings of this "standard view" that is being used for this ALV?
    Kind regards
    Wouter Heuvelmans
    Pyramid Applied Solution

    Execute your application in administration mode, afterwards you can change the settings using settings link of the ALV and save the same as part of "Standard View". If you want settings only for a user then ask user create a view of there own and set the same as default view.
    Even if you maniuplate ALV Layout settings ( other then Initial settings set during ALV call ) the same will be overruled by the default view set in the ALV i.e. Initial settings. 
    Regards
    Rohit Chowdhary

  • Deleting entries from a Standard View

    Hi,
         How do I delete duplicate entries from an Standard View in an Abap Code?
    Thanks,
    Pravs

    Then it becomes complicated. Are you trying to delete the duplicates from a view? Then look at your view definition and see if you can avoid duplicates by changing its selection criteria. Also take note of Rob's comment.
    If you are trying to delete from a database table as opposed to a view, then I don't know how you achieved the feat of having duplicate entries as any duplicate inserts with same key fields would have resulted in dump. Can you please clarify?

  • How to create new Standard views in BPEL worklist

    Hi all,
    we want to use the BPEL Sample Worklist and customize it. Among others we want to modify the existing standard views (like "High Priority Tasks" etc.) and add new ones.
    According to a tech note ("http://www.oracle.com/technology/products/ias/bpel/htdocs/orabpel_standardviewtechnote.html", actually the only one we found!) on the Oracle Tech Network we modified the XML file (StandardTaskViews.xml) that defines the original standard views.
    That xml file is located in the bpm-services.jar file under $[oracle.home]/bpel/system/services/lib.
    But when restarting the server all standard views disappeared, even after replacing the changed jar file with the original one!?
    So how can we create new standard views!?
    Regards
    Jan

    Ok, thanks.
    But what happens if a new user is created after you have set the VIEWOWNER column to all users!? This user won't have that view!? Or is there a chance to set the VIEWOWNER column to something like "ALLUSERS"!?
    In our understanding this is exactly what Standard views represent: A view that is available to all users. So it would be very handy if one could easily define new standard views instead of creating a custom view and make it available to all (currently existing) users...
    Regards
    Jan

  • After upgrading to firefox 7, gmail will only load in basic not standard view, how do I fix this?

    gmail will only load in basic. after I installed firefox 7. I dont have problems with my yahoo account, but gmail says my browser is too slow. I have enabled the gmail cookies, but can only get standard view if I use google chrome as my browser. This means I can copy and paste articles that I need. How do I fix this - it has been going on for weeks and gmail don't answer

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

Maybe you are looking for

  • How do i get music on my ipod through home share

    How do i get music on my ipod thorugh home share?

  • Photoshop CC 2014 crashing when I try to open or save

    I am experiencing a crash in Windows 8.1 using the cc2014 Photoshop Update too. The crash occurs whenever I try to open or save. I have tried the solutions that worked for some with previous versions including: removing the preference files uninstall

  • Limit, filter, or sort images in the Faces pool?

    Hi.  How can I limit, filter, or sort the images Aperture presents when "Confirm Faces" is clicked in Faces view of a named Face? I would like to either: . Limit the universe of presented images with unnamed faces to those from specific Projects; or

  • Error message: the resource type must not be null.

    Hi, I have working on Integrating Oracle E-Business Suite Release 12 with Oracle Access Manager 11gR1 PS2 (11.1.1.7.0) using Oracle E-Business Suite AccessGate. I am getting this error when I am Register the WebGate Agent with Oracle Access Manager.

  • PXI 4461 simultaneously read and generate

    I am using PXI 4461 card, which has 2 inputs and 2 outputs. I have a sequence, which will be loaded for multi UUT testing at the same time. I am trying to use AI0, AI1 to read the signals, which are generated by UUTs at the same time. One UUT can mea