Hide Tabs based on a table driven customer access

Hi,
I want some of the tabs to be hidden based on user profile that I've saved in a table... in the table I've identified user name (that I am comparing against the login user name) and in one of the columns I've identified if they should have access to the tab or not (by entering "Y" against the user names that should have access to the table)... Table looks something like this:
Table Name: Table_A
User_Name Tab_Access
ABC
BCD Y
XYZ Y
EFG
(note: based on the above table only users BCD and XYZ should see the tab for the rest it should be hidden)
To accomplish the above, I've put following PL/SQL code under "Conditional Tab Display"
APEX_UTIL.Get_First_Name(:APP_USER)||' '||APEX_UTIL.Get_Last_Name(:APP_USER) in (select User_Name from Table_A where Tab_Access = 'Y)
and set Tab Display Condition to PL/SQL expression
and got the following error message:
Invalid PL/SQL expression condition: ORA-06550: line 1, column 114: PLS-00405: sub query not allowed in this context ORA-06550: line 1, column 7: PL/SQL: Statement ignored
when I changed the above PL/SQL statement to something like this (it worked):
APEX_UTIL.Get_First_Name(:APP_USER)||' '||APEX_UTIL.Get_Last_Name(:APP_USER) in ('BCD', 'XYZ')
Please advice

Hi,
Try this for Conditional Tab Display:
Condition Type: Exists(SQL Query returns at least one row)
Expression 1:
select 1 from Table_A
where Tab_Access = 'Y' and
User_Name = APEX_UTIL.Get_First_Name(:APP_USER)||' '||APEX_UTIL.Get_Last_Name(:APP_USER)Update your forum profile with a real handle instead of "qwe12654".
Use [url http://wikis.sun.com/display/Forums/Forums+FAQ]formatting tags for code to indicate the code you are using.
Hope it helps!
Regards,
Kiran

Similar Messages

  • Table or Custom View

    Hello Gurus,
    I have requirement to extract data from a single ecc table which has got about 70 fields.
    Then i was told as a best practice i need to use a custom view based on that single table
    Question:
    What is difference for generic extractor is based on 1 table and Custom view on 1 table?
    Which is best way 1 table or View on 1 table?

    Hello Superuser007,
    We create generic extractors the same way on table(s) and view(s)/custom view(s). The concept of view will give us more future expandability to add more tables to the same view.
    - Venkat

  • Redirect on page load (table-driven rules)

    ADF 11gR1 PS1
    Hi all,
    On some pages, I need to redirect the user based on a table driven rules (eg page is active only between dates x and y, etc). Because there will be numerous pages with this functionality, as well as table driven configuration with regards to the rules (eg which page is affected, what dates are valid, what url should the user be redirected to), and since this can happen for both unbound and bound tasks, I'm not sure if using a router is the best way to do this.
    Per this thread
    Redirect in adfc
    I'd like to attempt to do this via a bean method called during page load. Here's what I can't figure out:
    1) Is there a way the bean method can figure out the calling page name?
    2) How to call the bean method on page load that would allow a redirect.
    Regarding #2, on the previously mentioned thread, someone mentioned a PhaseListener on RESTORE_VIEW, but I don't quite understand how do to that.
    Thanks.

    Hi,
    the after RESTORE_VIEW phase can be listened for in a PhaeListener you configure in the faces-config.xml file. This RESTORE_VIEW phase has accec to the FacesContext and thus to the ViewRoot, which provides information about the requested viewId. You can then change the ViewId of this ViewRoot based on your redirection needs.
    A router activity is the best practices here because the use case you describe is conditional navigation. So if you need to have the logic in a managed bean, then why don't you point the router case to this ?
    Frank

  • Show or hide ADF custom tab based on user's role

    Hi everyone,
    I have created a custom tab on the self-service interface (OIM 11.1.1.5) which contains two sub-tabs.  I would like to show or hide one of the sub-tabs based on the role of the currently logged in user.   Does anyone know of way to achieve this?
    Thank you very much!
    Paul

    Figured it out.  Here's how to do it:
    Scenario:
    You are working in OIM 11.1.1.x.   You create a custom tab on the self-service page.  This tab should only be visible to users with a certain role, say XYZ.
    Step 1:  Create a Boolean variable in the managed bean that will be true if the user has the role, false otherwise.
    Step 2:  Create a class called CurrentUser or something along those lines that will grab the logged in user's roles and test to see if he/she has the required role.  It should set a variable within the class to true or false.  Or you can skip creating a class and put this code in your managed bean constructor so that it runs as soon as the user goes looking for the tab.  The whole point of this, regardless of how you do it, is to end up with a Boolean variable that is set to true or false depending on the role requirements.
    Step 3:  In your .jsff file (the one with the tab you want to show/hide in it), find the tab and look for an attribute named "rendered."  This will likely be located in your <af:showDetailItem> tag under your <af:panelTabbed> tag.  This controls whether or not the tab is displayed.  So set the rendered value to the value of the boolean you created earlier, like this:
    rendered=#{somebeanname.yourbooleanvariablename}"
    Hence, when your variable is false, this tab will not be shown.  If it's true, they will see the tab.  That's all there is to it. :-)

  • Is it possible to hide Tabs by using Url in FPM_OIF

    Hi All.
    I am calling one Standard Application from my custom application.
    Standard Application has 8 tabs. There i want to hide some tabs by using URL.
    Is it possible to hide through url.?
    Regards,
    Jack.

    Issue Solved.
    Implemented Enhancement for Standard Component and Hiding tabs based on Custom URL Parameter.
    Regards
    Jack.

  • How to conditionally hide tabs in Webi

    We have got a requirement to hide the tabs in WEBI based on userlogins.
    Currently we have 2 tabs with 3 to 4 charts in each tab.
    Requirement:
    1. Conditionally hide the tabs based on user profile.
    2. Conditionally hide the charts based on data privileges.
    Is this possible in Webi or a work around?

    http://scn.sap.com/community/businessobjects-web-intelligence/blog/2013/05/28/customizing-the-web-intelligence-ui-in-bi-41
    Since BI 4.1 you can go to a group and "customize" the view for each group. but as far I know this cannot be controlled by a formule or condition, just check or not and it is related with the applications and not on a specific report.

  • Sql to tell report names based on view/table name

    Hello, we recently upgraded to release 12 and planning to implement sub ledger accounting and we are in the process of identifying our customizations written on top of distribution tables so that we can tweak them to go after SLA tables. Majority of our custom objects are discoverer reports. And most of these discoverer reports are based on custom folders which are based on custom views. By running a sql we were able to identify the names of all of our custom views which go after the distribution tables. Now we want to identify which of our discoverer reports are based on these views via custom folders of our custom business areas. Our custom folders might have been named exactly same as custom view or they may have different name and the folder may actually have a sql in which they are referring these custom views.
    Would it be possible for someone to provide a sql select statement which takes database table / view name and returns the name of discoverer workbooks referring this table/view? Thanks in advance for help.
    Regards,
    Anjan Avula.

    Nancy I claimed that problem is because of developing reports in plus based on some hits I found on internet. http://www.orafaq.com/forum/t/66265/0/
    And hits I found in metalink.
    Bug # 6665629
    However according to engineer with Oracle support it is a bug. The problem with updating that table is more related to workbooks that were created in older versions or upgraded to 10.1.2.2 but have not been opened and resaved. Bug 4901641 is present in 10.1.2.2 admin and it can result in Discoverer Admin not updating the EUL5_ELEM_XREFS. Admin version 10.1.2.3 is expected to resolve this with an easy workaround is to export the older workbooks and re-import them into your eul. The import process will update the EUL5_ELEM_XREFS table and will save customer from saving and opening every workbook.
    So, may be you have 10.1.2.3 in your environment and never experienced this issue or may be your reports were never upgraded from previous versions to 10.1.2.2. In our environment we have upgraded our reports to this version from previous versions and may be what oracle engineer told is true. I need to work with our admin to get this looked at and get it fixed.

  • Show/Hide tabs in a report using profiles

    Hi,
       There is a need to show hide/show tabs based on User Profile or any other method.
       There are 1. Summary  2. Detailed Tab in report.
       For data analysts client want to show Detailed tab so that Analysts can work on Analysis.  Managers shoud be able to see only Summary tab.
      This is required to reduce no of modificatiosn required for reprots. This helsp to avoid prolifiration of reports as well.
      Pleas help on techniques/ tools to get this requirement at the earliest.
    Regards,
    Nanda Kishore B

    Hi Nanda,
    I do not think this functionality is currently available in WebI.
    However you could break these report tabs into two different reports and using access privilges make these two reports available to the concerned team.
    You can log a request at https://ideas.sap.com to directly work with the product group to check if this exact functinality could be included or not.
    Hope this helps.
    Regards,
    Manpreet

  • Can Shuttles be based non-base  table ViewObjects with transient attributes

    Hello,
    Users have to select records from a data collection and a Shuttle looks most appropriate/nice for this purpose. We can introduce technical intersection tables in order to generate the Shuttles with JHeadstart 10g R3 if necessary, but there is no “functional” need to update any data in the database and therefore it would be practical if the ‘right’ side from a Shuttle can be based non-base table ViewObjects with transient attributes only. So, our interested is to know which records have been selected, i.e. moved to the right side from the Shuttle.
    Hope that my question is clear enough.
    Greetings,
    Michael

    Michael,
    This cannot be generated out-of-the-box.
    It is easiest to add the shuttle post-generation to your page, and then create a custom template to generate your custom shuttle into the page. I suggest you take a look at an example of a generated shuttle in a page, and the JHeadstart IntersectionShuttleBean class. You will see that the value property of <af:selectManyShuttle> points to the selectedKeys method in the JHeadstart Shuttle bean. In your case, you can create your own managed bean and bind the value property to your own method which will provide you access to the selected rows. The value property of the selectItem within the af:selectManyShuttle determines the property that is used to identify the selected row (which is the row key in case of Jhs-generated shuttles).
    Steven Davelaar,
    JHeadstart Team.

  • Calculation based on Internal Table Row ID

    Hi,
    I have internal table, i want to do some calculation based on Internal table Row ID, wich will create system automaticlly and this id will uniq. I want to use this id in my program.
    So how can i do this.
    Ranveer.

    hi,
    if u want to create this id automatically,use transaction SNRO,
    or u can create t through programming too.eg. suppose field is 'id' in table 'customer'.
    select * from from customer.
    itab-id = sy-dbcnt + 1.
    modify customer from itab.
    u can use this id in calculations too,

  • No Customization for Customer 2002missing in table CIN customer master

    HI,
    When Iam saving the excise invoice the error is  coming like..
    "No Customization for Customer 1004 missing in table CIN customer master".
    How i can do?
    regards,
    vas.v.s

    Hi Vas,
               Please check the Customer master record in Sales Area data at Billing Documents Tab ,Tax liable or not liable.
             and also check the Taxes in IMG --> Sales and distribution --> Basic Functions --> Taxes.
    Regards,
    Murali.

  • Hide column based on prompt

    Hi Gurus,
    Can i hide column based on Prompt value?
    My requirement is
    I have report is showing Daily/Weekly/Monthly data based on prompt value ( Prompt selected values are Daily/Weekly/Monthly)
    If user select daily then report will display data every day. if user select Weekly then report will display Every week data ( Week start from Monday).
    I have one more columns as Day name to display day of the week for daily report. its working fine.
    but i want hide day name column when i run report for weekly.
    How can i hide column based on Prompt value. is it possible in OBIEE 10.3
    really appreciated for your help

    Here's simpler approach. Use column selectors.
    1) The first column in your column selector will be where you put your Daily/Weekly/Monthly choices.
    2) In the second column, put your Day column. Add another column, doesn't matter what. I'll explain later. In the caption for this column, put in something like "Select to Hide Day column."
    3) Click "OK" and put your column selector in your Compound Layout.
    4) Now, select the other column in place of the Day column.
    5) Now go to the criteria tab. The "second choice" column should now be there in place of the original first column. Dummy out this column and click on the "Hide" checkbox in the column properties. Change the name to "No column."
    6) Now go back to Results. The user now has two choices for the Day column, either the original column (the Day column) or the "No column" choice. When the "No column" choice is selected, the column disappears from the report. Users can make the selection whenever they choose Weekly as their choice.

  • Table driven parllel processing in workflow

    Hi,
        Please tell me what is table driven parllel processing technique in workflow?
    Thanks in advance.
    Thanks& Regards,
    Rao N

    Hi, that's a difficult requirement.
    First advice post this on the workflow forum (=BPM) it's better suited there.
    Next advice:
    Try to make it easier for yourself, I don't think the business will ever be able to ha a 12 step approval case, most of the times it's 1, a lot of times 2 and in some cases 3 (is this correct with the business you're working in ?)
    In that case, you can simply dynamically fill the workflow containers holding the number of levels plus the approvers, based on the number of levels (multiple condition) you either execute subflow 1, 2 or 3.
    OR, you can somehow put all the logic in a loop.
    Kind regards, Rob Dielemans

  • One block based on two table when update/insert result in FRM-40654

    Hi,
    I ahve a multi line block based on two tables.
    Customers - AFCUSTOMER
    Maintenance - AFMAINT
    Some customers exist when maintenance doesnt so in my where clause i have
    AFCUSTOMER.CUSTID=AFMAINT.MAINT_CUSTID(+) AND AFCUSTOMER.CUSTBRANCHID=1 AND AFCUSTOMER.CUSTSTATUSID=2
    I have primary key set as the AFMAINT table primary key and have set DML data targetr name as AFMAINT.
    I am displaying customer name (from AFCUSTOMER) and type of payment (from AFMAINT) on screen and i want to change the type of payment which then uses pre update trigger to fil in the primary key of AFMAINT.
    Querying works fine and displays all records. But when i try to insert a record into the AFMAINT table by changing the type of payment list item i get FRM-40654 Record updated by another user. I have checked and block status is QUERY right before the list item is changed.
    Any ideas on where i am going wrong.

    But when i try to insert a record into the AFMAINT table by changing the type of payment list item i get FRM-40654 Record updated by another userWhen you start editing a record which is already stores in the database forms "rereads" the record from the database and check id all values in the database are the same as in the form. If there is some difference, forms assumes that someone else changed the record after you did the query.
    The main causes for that are:
    -Some database-trigger which changes the value of a column which is included in the form
    -numeric column with a higher precision in forms, than in the database
    -a block based on a view or "select from clause" which does not return the same values as inserted/updated through forms.
    I guess you run into the third issue. Check all the values in the forms-items after your dml and compare them to the values saved to the database, there will be some difference. If you find it, correct the error, if one, or re-read the data in the POST-UPDATE-trigger.

  • Table for Customer and vendor open balance on a key date

    Dear All,
    Can anyone please let me know Table for Customer and vendor open balance on a key date. We are developing one customized report.
    I have checked with the below table :
    Customer-KNC1, KNC3,BSID, BSAD
    Vendor-LFC1, LFC3, BSIK, BSAK.
    But these are not working properly for all customers and vedors. Also, in open items, there are items with clearing documents.
    Plesae let me know, how to go for it.
    Please suggest.

    Hi
    Use BSID and BSIK for open items
    And pass company code, year and from date and to date range in Posting date selection option
    Reg
    Vishnu

Maybe you are looking for