Making a tab invisible

Hi
We've a requirement to make some tabs in our web dynpro application invisible to all users and some visible only to admins.
We can't find any useful BAdIs for it.
Any solutions ?
Thanks
Pushpraj

Hi,
Make no. of context attributes of type wdui_visibility and bind with visibility property of tab.
By default set it as 02 so that it will be visible to every one. Bind only that tabs which You dont want to display on the condition.
And based on the user You  can make it invisible by setting it 01.
I hope it helps.
Regards,
Rohit

Similar Messages

  • Making tabs invisible in FPM_OIF_COMPONENT does not work

    we have a requirement to hide some FPM tabs (main views) in the ESS talent profile iView.
    after making those tabs invisible in the FPM component configuration they still show up as visible. Any idea why?
    more precisely, we are making FPM tabs (main views) invisible In component configuration HRTMC_EP_OIF of component FPM_OIF_COMPONENT.
    Regards,
    Tiberiu

    Hi,
    I assume here that at design time you make them via the configuration invisible. At runtime if you see the tabs then i suspect that there are some Dynamic programming involved or other variants exists that you haven't changed yet.
    Go back to the application configuration and test it from there and if it is still not working then use the Debugger to see what happens and why your configuration is not working.

  • Make Tab Invisible or Inactive

    I'm developing in LabWindows/CVI 2013.
    I have a tab control on a panel with 3 tabs.  The 3rd tab is "Future Features".
    Presently I have the tab set to "Initially dimmed".
    When the panel is displayed you can still see the tab and click on it and see all the controls on that tab.  (you can't operate them and that's good)
    I'd rather have it not accessible at all.
    Is there any way to make the tab invisible?
    Or make it so when you click the tab, it doesn't switch to that tab?
    I don't want the operator to see the "work in progress" on that tab.
    Kirk
    Solved!
    Go to Solution.

    To hide a tab page you can use SetTabPageAttribute with attribute ATTR_VISIBLE. There is no built-in way to make a tab page visible but not selectable, but you can set a calback for the tab control and trap EVENT_ACTIVE_TAB_CHANGE to return to another page when the unwanted one is selected, but the operator will briefly see the "forbidden" one.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • On ME21N / ME22N / ME23N  PUT SOME TAB INVISIBLE.

    Hi,
    I need put the text tab on this transactions me21n me22n and me23n INVISIBLE for some users, how can i do this?
    tks.
    Carlos Siqueira.

    We had a requirement for hiding the tab Spec2000 in item detail.
    The code in the enhancement implementation AD_S2K_SUB_LMEGUIU08 in function module MEGUI_BUILD_PO_ITEM_PLUGIN was commented out to remove the extra tab as the structure that is linked to this tab was MEPO1339.
    May be the same works for you for the other tab.

  • Making the fields invisible or etc. at the item overview screen

    At the header data of the sales documents, there exist incoterms and payment terms. I want to make those invisible at the item overview screen (under Billing Document tab). I just want those data root from the header data, not from the item data. I don't want to enter data (about payment terms or incoterms) on the item overview screen.

    Thank you for your consideration but can you please explain step by step.
    Also to be more clear; the incoterm datas of the sales document's items come from the customer master data. Person can change or enter data about incoterms although there may exist different incoterm data at the header. That's why I want to hide or make unchangeable the incoterm field at the billing document tab of item data.
    Thanks in advance.

  • Make tabs invisible in BP (business partner master creation)

    Hi,
    How do I disable tabs which are not necessary in BP transaction code?
    I want only few tabs which are relevant and make all other invisible.
    Your inputs are appreciated.
    Regards
    Komal

    Hi,
    ...in the IMG: Field selection for BP.
    Rg
    Lorenz

  • How to resize JDialog after making some fields invisible?

    Hi,
    I have many fields in a JDialog box. And I am making some of them invisible (based on some logic).
    Even though I am using invisible, the dialog size is not resized automatically.
    I can see so much space and it is not good.
    Is there any way so that I can resize this dialog?
    Regards,
    Praveen

    Praveen_Kumar_Jayaram_1985 wrote:
    But I am not using any layout manager. It is free design. Is there any way to achieve my requirement without using layout manager?But this is what layout managers are made for. Why not use the correct tool for the job? Also, please do not cross-post questions in multiple forums. This will frustrate anyone who tries to help you only to find out later that the same answer was given hours ago in a cross-posted thread. For this reason, many volunteers here and at the other sites refuse to help repeat offenders.

  • Conditionally making a field invisible.....

    XMLP Gurus,
    Some of the values in a column has dots(.). Conditionally i have to make it invisible.
    I tried replacing null value for a dot using decode function, but in this case the other column values are shifting themselves up by taking place of null values thus losing sync with other columns.
    After the decode statement i want the null value to remain null in sync with the other columns instead of replacing the null value with a value below it (shifting up)
    Thanks in advance.

    Hi venkat,
    Thanks for the reply.
    Originally the problem persisted with the null values in the column and it is getting shrinked when the statement goes to the second page.
    This template is already created and I need to modify it. There are six different columns in the template and each column has its own for each and END for each (similar grouping for all say G_XYZ).
    Say in the 5th column if the first row in the second page(continuation from first page) is null then it is shiftng itself up losing sync with the other columns.
    To over come this I used decode in the 5th column field. I replaced the null value with a dot. It is working fine now(shrinking problem is nailed) but the users dont like the dot in place of null value.
    I tried to make the dot invisble using:
    <?if:AMOUNT_DUE=''?><xsl:attribute xdofo:ctx="block" name="background-color">white</xsl:attribute><?end if?>
    But it is throwing error: " XML-22047: (Error) Invalid instantiation of 'Attribute' in 'Element' context." .
    It does not like ctx="block" and if I replace block with line or inline, it is working as expected.
    The solution I am looking for now is to avoid shrinking of null values at first place. If not then substitute this null with some value that is invisible (say invisible dot) and avoid shrinking.
    Any help is highly appreciated.
    Thanks.......

  • Making the request invisible in CUP 5.3

    Hello Everyone,
    we are using GRC 5.3 on SP 8.1 , We would like to make the Request type field unavilable in Request access Screen
    I cannot make invisble in End user Personlization  coz as Visiblie field (to be ste to YES or NO is greyed out) I presume as this was used in several  requests processed
    the request type is being used in intiators and CAD's .
    Any thoughts how to make this invisible form the request screen , any imput would be much appreciated
    Regards

    thanks you guys Julius , simona nd venky
    I cannot make it defualt quite yet because the fields are greyed out ! but howeer the issue is fixed in SP9
    Request reason and Request type in End user personalization shows as "NO" in field mandatory but when click on change, it shows "YES" in the mandatory field
    I will apply SP9  and hopefully i make it to default .
    thanks & Regards

  • Making the Tab key not work in the JTextArea

    In my view I have a JTextArea along with a bunch of JTextFields and JComboBoxes. The user is usually going to tab out of a field in order to go to the next field. What's happening is when the user tries to tab out of the JTextArea, the cursor just moves by a tab length within the JTextArea instead of going to the next field. And if the JextArea has some text in it and if the user tabs into the JTextArea, the whole text gets selected and on hitting the next tab, it gets wiped out.
    I am trying to make the JTextArea not respond to the tab by writing the following code. Keymap keyMap = JTextComponent.getKeymap(JTextComponent.DEFAULT_KEYMAP);
    KeyStroke tabKey = KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0, false);
    keyMap.removeKeyStrokeBinding(tabKey);
    jTextArea1.setKeymap(keyMap);But it's still not working. Can anybody tell what's wrong with that code. Or is there any other way to do it? Any help/hints appreciated.
    Thanks.

    >
    If you're using jdk1.4, those other solutions won't
    work because the focus subsystem has changed radically
    (see
    http://java.sun.com/j2se/1.4/docs/api/java/awt/doc-file
    /FocusSpec.html). The upshot is that you have to
    specifically register the keystrokes that you want to
    use for focus traversal. In your case, you have to
    re-register the Tab and Shift-Tab keys, and
    they don't seem to have provided a simple way to do
    that. Here's what I come up with:Set forwardTraversalKeys = new TreeSet();
    forwardTraversalKeys.add(KeyStroke.getKeyStroke(
    KeyEvent.VK_TAB));
    forwardTraversalKeys.add(KeyStroke.getKeyStroke(
    KeyEvent.VK_TAB, InputEvent.CTRL_MASK));
    textArea.setFocusTraversalKeys(
    KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
    forwardTraversalKeys);
    Set backwardTraversalKeys = new TreeSet();
    backwardTraversalKeys.add(KeyStroke.getKeyStroke(
    KeyEvent.VK_TAB, InputEvent.SHIFT_MASK));
    backwardTraversalKeys.add(KeyStroke.getKeyStroke(
    KeyEvent.VK_TAB, InputEvent.SHIFT_MASK |
    K | InputEvent.CTRL_MASK));
    textArea.setFocusTraversalKeys(
    KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,
    backwardTraversalKeys);Or, you can just press CTRL+TAB instead of TAB when
    you get to the JTextArea :).=====================================
    i used the above thing but i am getting exceptions classcast exception n method not found (forwardTraversalKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB));)keystroke.get keyStroke(int)???? where i am going wrong as it will be quite helpful for me am using jdk1.4.1_02
    thnaks

  • JFrame.pack() causes problems with jtabbedpane(making new tabs)and resizing

    I have a JFrame with a JTabbedPane inside of it. Inside of each tab I put a JPanel with a JTextArea in it. When I create a new tab, I do something like textArea.requestFocusInWindow();
    However, this will not work unless I do a frame.pack() right after I created the new tab and right before that line of code.
    This in turn causes another problem. If I resize the jframe and then create a new tab, the window will snap back to the size it had before creating the tab. I assume this has to do with the pack() function, however nothing else I try will make the cursor blink in the JTextArea.
    Is there a solution to this...either something to make the cursor blink or something other than the pack function to update the JFrame?
    Thank you

    This posting should help you out:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=581478

  • Making a button invisible with ActionSctript 3?

    I have one button instance that stretches across many frames, and I would like to make it invisible in some of the frames and visible in others. How do I do this with ActionScript 3?
    thanks

    Couldn't wait, eh!... kidding... btnName.visible = true;  btnName.visible = false;

  • Making a tab default in tabstrip

    Hi,I have an urgent requirement.
    In a tabstrip of five tabs, how to make 3rd tab default.
    I mean to say,if i am executing a program having such tabstrip then selection screen should open with fields defined in subscreen of third tab.

    This is the code i have written..but its not working:
    *& Report  ZEXAMPLE
    REPORT  ZEXAMPLE
            NO STANDARD PAGE HEADING.
    TABLES:sscrfields.
    *   Selection screen
    *Selection screen for vendor1 and vendor2.
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK tab_block FOR 16 LINES,
                        TAB (23) button1 USER-COMMAND push1,      "#EC NEEDED
                        TAB (23) button2 USER-COMMAND push2       "#EC NEEDED
                        " etc
                        DEFAULT SCREEN 1001,
                        END OF BLOCK tab_block.
      SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.
        SELECTION-SCREEN END OF SCREEN 1001.
        SELECTION-SCREEN BEGIN OF SCREEN 1002 AS SUBSCREEN.
        SELECTION-SCREEN END OF SCREEN 1002.
      " etc.
      INITIALIZATION.
        button1 = text-bu1.
        button2 = text-bu2.
        " etc.
        tab_block-prog = sy-repid.
        tab_block-dynnr = 1002.
        tab_block-activetab = 'BUTTON2'.
        " etc.
        AT SELECTION-SCREEN.
          CASE sscrfields-ucomm.
            WHEN 'PUSH1'.
              tab_block-dynnr = 1001.
              tab_block-activetab = 'TAB2'.
    ENDCASE.         " etc.

  • Making a component invisible...

    Hi,
    I'm trying to make a component in my movie invisible using
    the instance._visible = false ActionScript command. It's a button
    that was converted to a symbol from a series of filled rectangles
    and ovals. It will not go invisible although I can use the same
    script on a simple, independent text-box and it works fine. Am I
    missing something?
    Thanks in advance - Jim.

    Thanks for responding. It's working. But I still have some
    minor questions.
    1) When I put the code within the onMotionFinished function,
    it doesn't work. But when I place it at the very beginning (before
    the tweening), it works. Why is this?
    2) Also, what is the difference between using:
    this._visible = false; versus
    this.red_mc.triggerBox_red_btn._visible = false; or just
    red_mc.triggerBox_red_btn._visible = false;? The latter 2 do
    not work. Why is this?
    thanks you very much for your help.
    Here's the modified snippet with the new code:

  • Making a control invisible at runtime

    Hello,
    I wnat to write a control that is invisible at runtime - like the history component.
    How can a control recognize if it is in a design- or a runtimeenvironment?
    Regards,
    Nico

    Hi Nico,
    This is in the SDK release notes, you create a helper function like this in your component:
    * Returns true if this SWF is running in Xcelsius at design time, false if not.
    public static function isInCanvas():Boolean
         // TODO: remove this function when this gets exposed in the Xcelsius 2008 Component SDK API.
         var globalStyle:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global");
         if (Boolean(globalStyle.getStyle("inCanvas")) == true)
              return true;
         return false;
    Then you can use isInCanvas() to find out if the component is in Xcelsius at design-time or not.
    So in your case in the constructor you could do something like this:
    visible = ! isInCanvas();
    Regards
    Matt

Maybe you are looking for

  • Moving music from Windows Media to iTunes

    All of my music is located in my Windows Media Player and I want to have all of it iTunes. Is there anyway to send music from the Media Player to iTunes?

  • How do I manually recreate the site definition (.ste) for an existing site?

    My iMac hard drive recently failed and had to be replaced. Though I had backed up my web site files, I don't have a backup of the site's Site Management (*.ste) file. Thus, I'm unable to manage this site in Dreamweaver (reinstalled on the new hard dr

  • Web Services and Internal Tables.

    Hi. In the next days I will need to create a program to consume a Web Service that is going to return data like an internal table, I mean... Field1a | Field2a | Field3a Field1b | Field2b | Field3b Field1c | Field2c | Field3c Do you have any ABAP exam

  • I ordered a Gold Iphone 6 Plus 128 GB, when should I get it?

    Like, when i ordered it, it said i'd recieve it on October 21st, But now it says the 28th. Are these dates like tentative? like whats the likelihood that they'll change? It suck waiting 2 months for a phone!!!!!

  • Can anyone please help with the 2.3 update in UK?

    Can anyone please help?  I have an unbranded x10 in the UK.  PC companion constantly tells me my phone software is up to date (with android 2.1) so I cannot upgrade to 2.3.  I've tried all the tips on the SE support page like deleting the database co