How to conditionally display a tab (or not) from APP_USER?

Hello

I want to put a condition on the display of a tab based on the value of APP_USER. There are two columns in the table and APP_USER must exist in one of these two columns so that the tab to display. If APP_USER is not in one of these 2 columns, the tab does not appear. These 2 columns are different management levels, and if the user is not a nursery, I don't want the tab to display.

Another requirement: APP_USER will be [email protected], but the values in the table are only firstname.lastname. So, I need to do an APP_USER rtrim to remove @email.com.

I tried several options, but can't seem to do things. Suggestions?

Hello

Create diagrams of the authorization and use for the tab.

You can see example how it works in a demonstrative application if you install in your workspace.
He sample that the tab is hidden if you do not have admin Admin user.

To install app demo:
Home > create an Application and select Demo Application

To get ending far try
SUBSTR (v ('APP_USER'), 1, instr (v ('APP_USER'), ' @')-1)

BR, Jari

Published by: jarola on January 13, 2010 01:26
typo

Tags: Database

Similar Questions

  • How to stop a site tabs does not happen at the start of Firefox?

    How to stop a site tabs does not happen at the start of Firefox?
    I inadvertently allowed Firefox to save tabs settings when I quit Firefox. Now, every time I start Firefox the tabs site continues to return. How can I cancel this site tabs to open when I run Firefox?

    See:

    • Tools > Options > general > startup: 'When Firefox starts': 'Show my home page' or 'display a blank page '.
    • Press F10, or press the Alt key to bring up the 'Menu Bar' temporarily if the menu bar is hidden.
    • Use "Firefox > Options" instead of "tools > Options" If the menu bar is hidden.
  • PCoIP - Display properties tab is not displayed

    Hello

    I'm testing View 4 and PCoIP Protocol.

    I have multiple monitors configured in the settings of the desktop in the view manager, checked the permissions and policies (Group and the view of the AD Manager). When I enter the properties to display the desktop virtual the settings tab is not displayed, so I can't allow multiple monitors. If I connect via RDP Protocol, I can access the desktop settings tab and configure multiple monitors.

    Virtual desktops are running Windows XP Pro SP3.

    Can anyone help?

    If multimon does not display settings tab will not remedy. This is an indication that your VM and or Desktop Pool is not properly configured for multi-monitor.

    View Manager.

    Change the Office pool or the person

    Since the Office / pool and the protocol settings settings changing your display 1

    Wait for the change to take effect in vSphere

    Change the office pool or new individual

    Since the Office / pool and the protocol settings settings change the display to the desired monitor and resolution setting

    Wait for the change to take effect in vSphere

    Vsphere can turn off virtual desktops and then their return on

    WP

  • How to conditionally display images based on the values of the variables

    I am building a demonstration Captivate containing a slide branching that allows the user to choose which way they want to view; Once they are done, they come back on this slide branching, and I want a check mark to display the button/path that they have already completed.

    I'm new to the use of variables and actionscript in Captivate, so I went the the documentation and the creation of variable is clear, as well as the use of conditional constructions, but I didn't know the instructions of scripts that look like they will allow me to display an image from the library when she is called in the conditional.

    Is this possible? If so, a pointer to an appropriate documentation or sample code would be greatly appreciated.

    Thank you

    Josh

    Hello

    When you insert images of the box, you click the Options tab and give the image a name that you may recognize. Then clear the Visible check box. This allows to keep hidden until you want to show it.

    However, note that even if all the image names are listed in the dialog box advanced Actions as being available for show, you will only be able to show an image if you run the fast Action of the blade where the image exists. So you will likely build a means by which you are setting up a variable to indicate that a section has been visited. Then create an action that is performed on slide enter to show the images based on the values of the variables.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • How do the display column that is not in the subject box.

    Hi all

    I have a requirement to report where I show a column that is not discipline.
    for example, obligation to report is like where I need the columns from 2 different subjects.
    1 in. and part 2 of the Bill.
    now, I have linked IN. details of invoice discipline, but one column is missing.
    Rite now I m capture this column related details report separate and I'm passing values to the main report.
    But what happens if I want to display this column in the main report.
    Please let me know your inputs...
    Thanks in advance...

    You can do it in 10g using the Advanced tab in the answers. Scroll to the part of the link that says, "against the two domains (multiple domains)."

    http://gerardnico.com/wiki/dat/OBIEE/multiple_subject_area

  • How can I display this tab

    I have a "current control" and a "control field" tab. I can't understand what greatness lies the "control field", tab regardless of my actions.

    I'm sure it is an ID10T error, but if someone could show me what it does and how to reverse the trend, it would be greatly appreciated.

    Somehow, the second tab got his 'Page Visible' property set to False.  I don't know how do it interactively, but you can view it programmatically by obtaining a reference to the second page by using the 'Pages' property, then write true 'Page Visible' property.

  • Boolean condition on a tab does not

    Hello!
    I have a tab that should only appear if a recording is in the database. I use a condition "PL/SQL function body returning a Boolean" by the following:

    DECLARE
    T1 varchar2 (20);
    BEGIN
    Select the GROUP in t1 from pl_department where userid =: APP_USER.
    If ((t1 = '-') OR (t1 is null) OR (t1 = ") or (t1 = '%' |)) ' %')) null then
    Returns false;
    on the other
    Returns true;
    end if;
    END;

    If no data is found in the database, I get an error at the top of my page "invalid function body condition: ORA-01403: no data found".
    As you can see I tried to check the 4 possible different values, but nothing works.
    Any ideas on what I can try?
    Thank you!
    T

    Published by: 73pixieGirl on December 16, 2008 06:34

    Hello

    You can better use the Exists condition (SQL query returns at least one row)
    You would put in the expression 1: select the GROUP from pl_department where userid =: APP_USER.

    The problem you are experiencing, it is that your code is entering the exception. If you really want to keep your code, you can adapt it as:
    DECLARE
    T1 varchar2 (20);
    BEGIN
    Select the GROUP in t1 from pl_department where userid =: APP_USER.
    If ((t1 = '-') OR (t1 is null) OR (t1 = ") or (t1 = '%' |)) ' %')) null then
    Returns false;
    on the other
    Returns true;
    end if;
    EXCEPTION WHEN NO_DATA_FOUND THEN return false;
    END;

    But I recommend you my first suggestion.

    Kind regards
    Dimitri
    ----------------------------------
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    AWARDS: Don't forget to mark correct or helpful messages on the forum

  • How can I reload subject tabs? Not only the current tab.

    When you read a blog, I'll open all the interesting conversations. If I'm away from the computer for a few hours, I want to refresh all tabs with one click - page-by-page by page. Thank you.

    This can be done by right-clicking on a tab and selecting "reload all tabs".

  • Conditionally display purge tabs

    I have a book with four sections, each section has its own tab purge. I made a new master page and the outside margins vertically into four equal text blocks, each with its own copy of the tab. Left outside the margin page reads from top to bottom, AB1, AB2, BC1 and BC2. The right page margin reads from bottom to top, AB1, AB2, BC1, BC2.

    bleedtabs.png

    Now, my usual method is fooled by this master 3 times and delete everything except a block of text for each page. But there already are five versions of this page master (before the tabs to bleed), so I try to avoid having 5 x 4 = 20 master pages. So I am trying to find a way to use text variables to disable tabs, I don't want (or to put on the tabs I * want).

    Impossible, right? Is the only way to do it just to make 4 master pages? Variables would be much smoother.

    In fact, it's very simple! A master page, 4 variables (one per section).

    IDML for you: Dropbox - FA-2129517_Test_Onglets - idml.zip

  • v.31: NoScript, initial home page are displayed correctly, but the tabs are not displayed correctly

    I'm under FF with NoScript, never "do not forget history," "Tell sites I don't want to be followed," not selected "Remember passwords for sites" and no Flash. My search engine is Duckduckgo. I use FF for private surfing. If I want to watch the video, I use IE11.

    V.30 with before, I could never see how to configure FF to view my homepage of duckduckgo.com , when I created a new tab. But this is only a minor annoyance because I just click on the Home button.

    Now with v.31, when I create a new tab I see nine rectangles where my story would be represented, if I had not turned off. At the top is a search box with Duckduckgo. However, when I try to use the search box, I see a message 'this page requires JavaScript. Download no - JS here. »

    What is the point of allowing my Duckduckgo home page to display properly when FF is displayed first, but the following tabs require is at the bottom right of the screen and select NoScript "temporarily allow all this page" or by clicking on the Home button? From my point of view, this is not an improvement, just something different to look at.

    I put my home page at https://duckduckgo.com/html/, in other words, the version that FF suggested, but nothing has changed.

    I don't need JavaScript enabled for the new integrated tab page, but it might be because I disabled the search suggestions.

    Here's how to set your new tab to DuckDuckGo page:

    (0) as the first step, copy the full URL in the address bar of the search page. This will stick you to step 3.

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste newtab and make a pause so that the list is filtered

    (3) double-click the preference browser.newtab.url and enter your favorite page:

    • (Default) page thumbnails = > subject: newtab
    • Blank tab = > subject: empty
    • Built-in Firefox homepage = > topic: welcome
    • Any other page = > full URL of the page - paste here

    Press Ctrl + t to open a new tab and check that it worked. Success?

  • How to get rid of a search not intentionally installed "tab" to update the new version of Java JRE?

    Since Oracle surprisingly quickly announced an update of Java JRE (7.11 update), Jan 14, available todag I install naturally. Despite being very careful with all unwanted program providers are trying to impose on the innocent user, I always have a f * ck * thing-same to tab search ng in my line of tabs. I don't want or need, and it occupies valuable space. The evil rats who created this stinky sh * t were very careful hide all the simple ways of removing - it is not (as far as I can see) are everywhere in my lists of Add-ons or extensions. I tried to watch: config, but I am totally inexperianced with this and do not dare to change: in fact, I can't find anything usable.

    Anyone who has a suggestion how to get rid of that junk qualified? My FF is the Swedish version, that's why I stuck with raw data in the troubleshooting information. If there is a possibility here to add a screenshot of the thing, I would have.

    The tab looks like the image below? If so, did you not as a Java Update. Have you downloaded the update of Java on the Java site or elsewhere? It was expected that some less honest people would provide false updates to Java. If it looks like the image below, follow these steps:

    1. With all browsers closed, in Control Panel > programs and features (or add / remove programs), if you see "Default tab" delete (you have no default tab 1.4.3 in the list of add-ons/prefs you have submitted with your question)
    2. Launch Firefox and check that 'Default tab' is not in the Add-ons > Extensions; If it is click on 'Remove' and then restart Firefox.
    3. You may need to set your homepage in Firefox, if a search page leading to 'Search results' or "My search results" is displayed at the start of Firefox - https://support.mozilla.org/en-US/kb/How%20to%20set%20the%20home%20page
    4. You may need to remove the 'search results' or "My search results" in your list of installed search engines in the top search bar on the right (click on the image to the left of the search bar, then choose "Manage search engines") - https://support.mozilla.org/en-US/kb/search-bar-easily-choose-your-search-engine#w_removing-a-search-engine
    5. You may need to reset your default search engine used for looking for location/URL bar by resetting the preference keyword. URL - https://support.mozilla.org/en-US/kb/search-web-address-bar#w_changing-the-internet-keyword-service
    6. You may need to reset a preference if 'Search results' or "My search results" appears as a search engine every time you open a new tab (follow steps 1 to 4 in the image below to determine which opens when you click to open a new tab; see Subject: config use above)- https://support.mozilla.org/en-US/kb/new-tab-page-show-hide-and-customize-top-sites#w_how-do-i-turn-the-new-tab-page-off
  • Anyone know how I can get lightroom to display my exposure compensation, not only other metadata

    Anyone know how I can get lightroom to display my exposure compensation, not only other metadata.

    It shows only the ISO standard, opening and shutter below the histogram.

    How can I show him also the exposure compensation?

    Hello

    Don't think you can get it to show under the histogram, but if you choose View-> Options to display (Ctrl + J) and then on the Loupe View TAB you can choose exposure correction on one of the lines to display superimposed on the image.

  • Admin tab is not displayed in Oracle BI Publisher

    I have Oracle BI Server and BI Publisher installed on a single windows server. I connect on BI Publisher as administrator account however the Admin tab is not displayed.

    How to solve this problem?

    I found a related post (http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10404/bi_pub_rns.htm#CCHJAGFA), but don't think that it applies in my environment because costume OBIEE comple is installed on the same windows server.

    Any idea, suggestion to solve this problem? If the local context is the problem as suggested in the link above, what really do I set it up properly. I'm lost here. anyone can point me in the right direction?

    Thank you
    Dhirendra

    Hello
    have you assigned to the administrator user role XMLP_ADMIN SPR file?

  • New tab does not display some sites, but nothing.

    When I open a new tab, it does not display the usual sites, but it shows just a white screen. Only the search bars and icons are displayed. It is not also a gear in the top right.

    Hi, try this: Type Subject: config in the address bar, press ENTER, accept the warning, scroll to browser.newtab.url and make sure that 'Value' is defined Subject: newtab (click right to change, if necessary, by taking care of not to change what anyone else).

    If this is not successful or if it changes, to try Firefox Safe Mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • How to restore the new tab button in the navigation menu when it is not available in the Customize?

    The new tab button disappeared from my navigation menu. None of the changes or upgrades have been made. While all subjects of support suggest going to customize the toolbar, the new tab button is gone either. There in the morning, disappeared in the evening without apparent reason. The + is at the end of the series of tabs, but not in the navigation toolbar and tab add + is NOT anywhere on a page it there is that a single label. I HIDE TAB BAR WITH ONE TAB 1.1 but have had for weeks, and the new tab button was always there. How to restore the button tab on the Navigation bar if it is not available in the choice to customize the toolbar?

    Don't you see the new tab button on the tab bar if you open the window customize?

    If you do not see an item on a toolbar in the toolbar palette and then click the button "Restore default" to restore the default toolbar configuration

    You can check the problems caused by a corrupt localstore.rdf file and try to delete this file.

Maybe you are looking for