Static list from table depending on user type

All i have a table where i define users and their roles, and i want to setup a static list that would display something like the following, but i want to filter depending on the users role
so if the user is lets say part of dev then i want them to see
So my table contains
pending,completed,work, accepeted, approved
pending,completed,work
And if they are part of business then to see
accepeted, approved, pending.
And in my select list i am doing the following select * from mytable.

Hi Ben,
to my knowledge it's not possible to change or restrict a static list on the fly.
Why don't you create a table for your static values? Than you are able to restrict the select list. And you even get a useful description when you use your table somewhere else and want to know in which status it is.
Patrick
Check out my APEX-blog: http://inside-apex.blogspot.com

Similar Messages

  • TYPE OR TABLE DEPENDENCY OF OBJECT TYPE (ORA-2303)

    제품 : SQL*PLUS
    작성날짜 : 2004-05-20
    ==================================================
    TYPE OR TABLE DEPENDENCY OF OBJECT TYPE (ORA-2303)
    ==================================================
    PURPOSE
    Type이나 table의 dependency가 있는 type을 drop하거나 replace하고자
    하면 ORA-02303 error가 난다. 이 error의 원인을 알아보도록 한다.
    Explanation
    Object의 attribute나 method를 수정하기 위해서는 object type을 drop하고 재생성
    해야 한다. Type이나 table의 dependency가 있는 type을 drop하거나 replace하고자
    하면 ORA-02303 error가 난다. Object type은 type (nested table 또는 VARRAY)
    또는 object table로써 구체적으로 표현된다. 만약 data의 보존이 필요하다면
    temporary table에 manual하게 옮겨놓아야 한다.
    SQL Reference guide에 의하면 DROP TYPE FORCE 옵션은 recommend하지 않는다.
    왜냐하면 이 옵션을 쓰게 되면 복구가 불가능하고 dependency가 있던 table들은
    access하지 못하는 결과를 초래한다.
    Example
    아래의 query 1, 2, 3은 dependency을 확인하는 query문이다.
    1. Find nested tables
    select owner, parent_table_name, parent_table_column
    from dba_nested_tables
    where (table_type_owner, table_type_name) in
    (select owner, type_name
    from dba_coll_types
    where elem_type_owner = '<typeOwner>'
    and elem_type_name = '<typeName>');
    2. Find VARRAYs
    select owner, parent_table_name, parent_table_column
    from dba_varrays
    where (type_owner, type_name) in
    (select owner, type_name
    from dba_coll_types
    where elem_type_owner = '<typeOwner>'
    and elem_type_name = '<typeName');
    3. Find object tables
    select owner, table_name
    from dba_object_tables
    where table_type_owner = '<typeOwner>'
    and table_type = '<typeName>'
    and nested = 'NO';
    Example ) Logon as Scott
    /* Create an user defined object type */
    SQL> create type object_type as object (
    col1 number,
    col2 varchar2(20))
    Type created.
    /* Create nested table type */
    SQL> create type object_ntable as table of object_type
    Type created.
    /* Create varray type*/
    SQL> create type object_varray as varray(5) of object_type
    Type created.
    /* Create parent table with nested table and varray */
    SQL> create table master (
    col1 number primary key,
    col2_list object_ntable,
    col3_list object_varray)
    nested table col2_list store as master_col2
    Table created.
    /* Create object table */
    SQL> create table object_table of object_type (col1 primary key)
    object id primary key;
    Table created.
    ORA-2303 results if attempt to drop type with dependencies
    SQL> drop type object_type;
    drop type object_type
    ERROR at line 1:
    ORA-02303: cannot drop or replace a type with type or table dependents
    위의 queery 1,2,3을 이용하여 object type dependency을 확인한다.
    -- Find nested tables utilizing object type
    SQL> select owner, parent_table_name, parent_table_column
    from dba_nested_tables
    where (table_type_owner, table_type_name) in
    (select owner, type_name
    from dba_coll_types
    where elem_type_owner = 'SCOTT'
    and elem_type_name = 'OBJECT_TYPE');
    OWNER PARENT_TABLE_NAME PARENT_TABLE_COLUMN
    SCOTT MASTER COL2_LIST
    -- Find VARRAYs utilizing object type
    SQL> select owner, parent_table_name, parent_table_column
    from dba_varrays
    where (type_owner, type_name) in
    (select owner, type_name
    from dba_coll_types
    where elem_type_owner = 'SCOTT'
    and elem_type_name = 'OBJECT_TYPE');
    OWNER PARENT_TABLE_NAME PARENT_TABLE_COLUMN
    SCOTT MASTER COL3_LIST
    -- Find object tables
    SQL> select owner, table_name
    from dba_object_tables
    where table_type_owner = 'SCOTT'
    and table_type = 'OBJECT_TYPE'
    and nested = 'NO';
    OWNER TABLE_NAME
    SCOTT OBJECT_TABLE
    참고)
    bulletin : 11576 처럼 utility을 이용하는 방법이 있다.
    우리는 여기서 주의하여야 할 것은 script $ORACLE_HOME/rdbms/admin/utldtree.sql
    을 내가 보고자 하는 user에서 돌려야 한다는 것이다.
    $sqlplus scott/tiger
    SQL> @$ORACLE_HOME/rdbms/admin/utldtree.sql
    SQL> exec deptree_fill('TYPE','SCOTT','OBJECT_TYPE');
    PL/SQL procedure successfully completed.
    SQL> select * from ideptree;
    DEPENDENCIES
    TYPE SCOTT.OBJECT_TYPE
    TYPE SCOTT.OBJECT_NTABLE
    TABLE SCOTT.MASTER
    TYPE SCOTT.OBJECT_VARRAY
    TABLE SCOTT.MASTER
    TABLE SCOTT.MASTER_COL2
    TABLE SCOTT.OBJECT_TABLE
    Reference Documents
    Korean bulletin : 11576
    <Note:69661.1>

    Hi Carsten,
    Thanks for the sharp hint. It works.
    However, when I create a table using the schema, it gives me this error:
    varray DOC."LISTOFASSIGNEDNUMBER"."ASSIGNEDNUMBER"
    ERROR at line 14:
    ORA-02337: not an object type column
    Here is the script:
    CREATE TABLE CUSTOMMANIFEST (
    ID NUMBER PRIMARY KEY,
    DOC sys.XMLTYPE
    xmltype column doc
    XMLSCHEMA "http://www.abc.com/cm.xsd"
    element "CustomManifest"
    varray DOC."LISTOFMANIFESTPORTINFO"."MANIFESTPORTINFO"
    store as table MANIFESTPORTINFO_TABLE
    (primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    organization index overflow
    varray DOC."LISTOFASSIGNEDNUMBER"."ASSIGNEDNUMBER"
    store as table ASSIGNEDNUMBER_TABLE
    (primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    organization index overflow
    LISTOFASSIGNEDNUMBER itself is complexType and not sure where is the error....
    You may note there are more than two hierachy/levels...
    Thanks.

  • Which table store the user type attribute details on 4.5b version

    Hi,
      I am hunting for the table which store the user type attribute.To simply the problem when i create user in the 4.5b system using su01 tcode & when you select user type from logon data say you select Dialog or BDC or Background and CPIC type now where this information is store in the table, what i got from system is User type (A=online, C=CPIC, D=BDC, O=ODC) but on UI it is showing as Dialog or BDC etc. which is confusing me.
      so can anyone tell the table which store detail info about say A = Dialog or D = BDC user type.
    thanks,
    John.

    Hi John,
    These are the Fixed values allowed to this Domain. No value table is maintained but they maintain the Fixed values in the Value Range Tab of the Domain.
    Go to SE11--> Domain Name ---> Display --> Select Tab strip Value Range, where you can see the fixed values for this Domain.
    Satya

  • View list of tables created by user

    How can I see a list of tables that I, as a user, have created in Oracle9i (assuming that I am just a user and not an administrator)?
    Thanks,
    Pattie

    'select table_name from user_tables' will give you list of all the tables you own.
    'select object_name,object_type from user_objects' will show you all objects (tables,indexes,views,synonyms,procedures,triggers etc) that you own.

  • How to fetch assets from tables depending on periods submitted in query ?

    Hello,
    Module : Fixed Assets
    We are trying to fetch the assets for a report depending on the periods['From Period' & 'To Period'] given to SQL query,but we are not getting count of assets as expected.
    And so the count isn't matching with 'CIP Details Report' which is a seeded oracle report.Here is the query that we tried,
    SELECT   fadd.asset_id, fadd.asset_number,
             fak.segment1 || '.' || fak.segment2 asset_key, fadd.tag_number,
             fadd.description asset_description,
             fadd.attribute_category_code asset_category,
             fb.date_placed_in_service, gp.start_date, gp.end_date
        FROM fa_additions fadd,
             fa_asset_keywords fak,
             fa_books_v fb,
             gl_periods gp,
             fa_deprn_periods fdp,
             fa_asset_history fah,
             fa_transaction_headers fth
       WHERE fadd.asset_key_ccid = fak.code_combination_id
         AND fadd.asset_id = fb.asset_id
         AND fah.asset_id = fadd.asset_id
         AND fth.asset_id = fah.asset_id
         AND fth.transaction_header_id = fah.transaction_header_id_in
         AND fah.asset_type = 'CIP'
         AND fdp.book_type_code = fb.book_type_code
         AND fdp.period_name = gp.period_name
         AND fdp.book_type_code = :p_book_type_code            --'KV US CORP BOOK'
         AND fdp.period_counter =
                (SELECT MAX (fdp.period_counter)
                   FROM fa_deprn_periods fdp
                  WHERE 1 = 1
                    AND fdp.calendar_period_open_date BETWEEN (SELECT start_date
                                                                 FROM gl_periods
                                                                WHERE period_name =
                                                                        :p_period_from) = -- 'JUL-12-F13'
                                                          AND (SELECT start_date
                                                                 FROM gl_periods
                                                                WHERE period_name =
                                                                        :p_period_to)) -- 'DEC-12-F13'
         AND fth.transaction_date_entered
                BETWEEN (SELECT calendar_period_open_date   
                           FROM fa_deprn_periods                      --gl_periods
                          WHERE period_name = :p_period_from           -- 'JUL-12-F13'
                            AND book_type_code = :p_book_type_code)   --'KV US CORP BOOK'
                    AND (SELECT calendar_period_close_date    
                           FROM fa_deprn_periods                      --gl_periods
                          WHERE period_name = :p_period_to              -- 'DEC-12-F13'
                            AND book_type_code = :p_book_type_code)
    GROUP BY fadd.asset_id,
             fadd.asset_number,
             fak.segment1 || '.' || fak.segment2,
             fadd.tag_number,
             fadd.description,
             fadd.attribute_category_code,
             fb.date_placed_in_service,
             fb.deprn_method_code,
             fb.life_in_months,
             gp.start_date,
             gp.end_date
    ORDER BY 1
    The query returns the assets which have the 'transaction date entered' between the periods submitted.
    But what about the assets who's 'Beginning Year Balance' is not zero [in the periods submitted in the query], those assets should also get displayed in the report.[and seeded report 'CIP Detail Report' shows assets who's 'Beginning Year Balance' is not zero along with  the assets which have the transaction date entered between the periods submitted]
    Any inputs / help / suggestions on this ?
    Thanks !

    Hi vijaya,
    no simple select statement solution so far.
    As BSEG is a huge table you should try to get the full key values into another internal table first.
    SAP avoids direct selections from BSEG.
    Pleas consider the use of one of the secondary index tables first:
          BSAD : Accounting: Secondary Index for Customers (Cleared Items)
          BSAK : Accounting: Secondary Index for Vendors (Cleared Items)
          BSAS : Accounting: Secondary Index for G/L Accounts (Cleared Item
          BSEC : One-Time Account Data Document Segment
          BSEG : Accounting Document Segment
          BSID : Accounting: Secondary Index for Customers
          BSIK : Accounting: Secondary Index for Vendors
          BSIS : Accounting: Secondary Index for G/L Accounts
    you may include
          BKPF : Accounting Document Header
    for restrictions about time and document type.
    The last step is a FOR ALL ENTRIES selection from BSEG providing the full key values.
    Although you may have even more selects, the overall performance will be much better.
    Regards,
    Clemens

  • SQL2008R2 Reporting Services: Subscribing Report to multiple email list from table

    Hi,
    I need to subscribe one report from SSRS to different set of people. EMail list is dynamic and will come from a database table.
    Could somebody help us please.

    Hi AjayKumar_MIND,
    According to your description, you want to configure subscription for the report to send it to different sets of people. If that is the case, we can achieve your goal by using Data-driven Subscription.
    Reporting Services provides data-driven subscriptions so that you can customize the distribution of a report based on dynamic subscriber data. Data-driven subscriptions use query results to determine the recipients of the subscription, delivery settings,
    and report parameter values. At run time, the report server runs a query to get values used for subscription settings. We can use the Create Data-driven Subscription pages to define the query and assign query values to subscription settings. For detail information,
    please refer to the following steps:
      1. Open Report Manager, and locate the report for which you want to create a data-driven subscription.
      2. Hover over the report, and click the drop-down arrow.
      3. In the drop-down menu, click Manage. This opens the General properties page for the report.
      4. Select the Subscriptions tab, and then click New Data-driven Subscription.
      5. Select the delivery extension and data source for the subscription.
      6. Specify a query that retrieves subscriber data like below:
    CREATE TABLE Name (
    Group varchar(20),
    Country varchar(20),
    Type varchar(20),
    Email_to varchar(50)
    INSERT INTO Name values
    ('Group1', ’Country1’, ’Type1’, '[email protected]'),
    ('Group2', ’Country2’, ‘Type2’, '[email protected]'),
    ('Group3',’Country3’, ’Type3’, '[email protected]');
      7. Specify delivery extension options like below:
      8. Specify report parameters for the subscription like below:
      9. Specify when the subscription is processed, then click Finish to save the configuration.
    For more information about Data-driven Subscription, please refer to the following documents:
    http://msbimentalist.wordpress.com/2013/08/26/how-to-create-data-driven-subscription-in-ssrs/
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Re-clarify--Urgent -- Can Apex create a dynamic menu list from table?

    Hi All,
    I am asked to investigate the possibility of using APEX to create a table data driven drop down menu, which means the menu list is dynimically generated from what is in the table. Eg. if there are 3 rows in the table, then the application will generate 3 list, if I add a row, then user will see 4 lists next time when the page is refreshed.
    Such menu list will need to be a home page, which means it is the first page to be called in the URL. If such function needs to be implemented in PL/SQL procedure, can the procedure be called in Apex's URL?
    The deadline is tomorrow and I have spent quite a bit of time but still have not had any clue. Could any one have such experience to point me a way to focus on please? Many thanks.
    Jennifer

    Hi All,
    I am asked to investigate the possibility of using APEX to create a table data driven drop down menu, which means the menu list is dynimically generated from what is in the table. Eg. if there are 3 rows in the table, then the application will generate 3 list, if I add a row, then user will see 4 lists next time when the page is refreshed.
    Such menu list will need to be a home page, which means it is the first page to be called in the URL. If such function needs to be implemented in PL/SQL procedure, can the procedure be called in Apex's URL?
    The deadline is tomorrow and I have spent quite a bit of time but still have not had any clue. Could any one have such experience to point me a way to focus on please? Many thanks.
    Jennifer

  • Trying to access server remotely. Have Static IP from ISP but if I type that address into browser I get router login page. How do I get RDP

    Hi Guys, Please help.  I am trying to run remote desktop from internet.  I have just been given a static IP address from my ISP and when I type it into browser I get router login page.  I want to be able to use Remote Desktop.  I can
    use RDP on the LAN and works great but not from external (internet).  I don't know how to get static IP address to open windows login page or RDP to connect when I put IP address into RDP..  I have Windows 2003 server running. 

    Check your router for free ports. You may use http port number "80" to port forward the request to your server. In your firewall settings, create a new rule to allow incoming http request. Before that enable NAT in your router for LAN and assign
    a static IP address for the server machine. It would make port forwarding easier.

  • Adding images to rows in a table depending on file type

    Hello,
    Within Visual Composer we have a table which lists documents and contains information about the document type
    i.e. description = 'This is a Word Document', file type = 'application/msword'
    then I have uploaded the images (icons) for the different file types, created a 'Document Type' column (of type image) in the table and assigned the correct boolean statements to determine which icons are shown
    e.g. BOOL(IF(@MIMETYPE == 'application/msword', true, false))
    This is the exact steps explained in the how to: How To… Integrate BI Document Store and SAP Analytics Applications
    But just does not work? It will not display the icons even though the file type (MIMETYPE) is displayed and is correct.
    Any help much appreciated!

    Seem to have fixed the problem.
    By adding a filter before the table view it seems to allow a slight delay which allows the file types to load and the IF statements run correctly and display the correct images for the various file types.
    Still seems that there is a slight Visual Composer Issue there? (but now with a work-around)

  • Select data from table depending on date range

    i have first table with following data, This is calender for a year
    I have 2nd table , user created period from 1st table
    I want to select acctstartdate from 1st tale which are not within 2nd table period.
    I want to select acctstartdate as jan to aug only. I dont want to select acctstartdate for sept and oct-dec.
    Same with acctenddate. I want to select Jan-aug only
    How to do this ??
    h2007

    Do you mean this?
    SELECT *
    FROM Table1 t1
    WHERE NOT EXISTS (SELECT 1
    FROM Table2
    WHERE ACCTYRID = t1.ACCTYRID
    AND ACCTYR = t1.ACCTYR
    AND (t1.ACCTSTARTDATE BETWEEN ACCTSTARTDATE AND ACCTENDDATE
    OR t1.ACCTENDDATE BETWEEN ACCTSTARTDATE AND ACCTENDDATE
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Getting list of tables the user has access to across different schemas.

    Hi,
    I have to get the list of tables that an User has access to. I tried the below code. It takes a very long time. Is there any way in which I can specify the user name and get all the tables that he has access to? I know that we can use dbMetadata.getTables api. But this returns the list of tables under the said schema. But I want the list of tables that the user has access including tables in other schema.
    In the below code, I am trying to get the tables for which USER_MICHAEL has access to.
    DatabaseMetaData dbMetadata = connection.getMetaData(); String userName = null; dbrs = dbMetadata.getTables(null,userName , "%", new String[] { "TABLE" }); dbrs=dbMetadata.getTablePrivileges("",userName,"%"); while (dbrs.next()) { String tableName = dbrs.getString("TABLE_NAME"); String schema = dbrs.getString("TABLE_SCHEM"); String privilege = dbrs.getString("PRIVILEGE"); String grantee = dbrs.getString("GRANTEE"); if(grantee!=null && grantee.equals("USER_MICHAEL")){       System.out.println("Schema---"+schema+" Table---"+tableName+"  Privilege----"+privilege+"  grantee---- "+grantee); } }

    That would be database dependent.
    Some engines have some system tables that together may be used to extract such information, others may not make it available at all outside closed APIs.

  • Special Grant to use "Select * from Table(cast..."??

    Hi,
    I've recently created the types and function to use the Table(Cast(funtion) as type)). It works fine, and gives me the correct result. I've granted execute on the types and on the function to a role that is enabled for a user, but when the user tries to use the "select * from table(cast(function) as type))", he gets a "ORA-01031: Insufficient Privileges" error message. Is there any other grant that must be given to the role, so that the user can execute the select?
    Thanks in advance!
    Daniel

    Hi Kamal,
    I'm not sure what anonymous PL/SQL block means. When I (or the user) try to run the select, I enter all the information, i.e., the owners for the type and function: "select * from table(cast(a.my_function(my_argument) as a.my_type))". I'm trying to use SQLPlus at this time, and I have Oracle 8i.
    I didn't to explicitly grant execute to the user because that would go against some rules I have to follow... I'll se if I give it a try though!
    Thanks!

  • How to get only current exception message from tables

    Hi
    In my sceanario , I want to have the list of Current MRP exception messages list from table
    I understand that MRP detailed lists, including all exception messages, are stored in transparent table MDKP and cluster table MDTC.
    I can tell ABAPer to write a report for me , to read the data from these tables , but I guess these tables contain old exception message also , which are not currently appearing in MRP list
    How to get only current exception message
    Rgds,
    sandeep

    Sandeep,
    MDTC contains only data from the most recent MRP run.  So, all messages you see are those which are currently valid.
    The messages might have first appeared during a previous run, but they still need to be addressed.
    Before you invest a lot of time and effort into writing and debugging a custom report, you should probably try to use the standard SAP functionality found in MD06.  On the Processing indicator tab, you can select "Only with new exceptions".  Here you can tag a material/plant as 'processed', and thereafter, the exceptions that existed there before you tagged the part will not be re-displayed.
    Best Regards,
    DB49

  • User Type in Shared Services

    All,
    I am on 9.3.1
    Until now I have users only to planning app.
    Now most of the above users need access to a native essbase app (with out planning).
    In SharedServices, Under projects->AnalyticServer->AnalytciServer, only users are listed (no groups) and their "User Type" is planning.
    Now I have to change them to "Planning, Essbase" for each user.
    I didn't find "User Type" in corresponding section in the export of CSSImportExport utility.
    have lots of users , Is there any way to automate?
    Thanks
    Krishna

    Make sure the users/groups have the essbase role of server access
    Then in shared services right click the essbase server and select "assign access control", select users/groups then you should be able to define the type of access essbase/planning.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • SCADA appliction - different user type

    Hello,
    I have a task to apply changes in my control Panel of SCADA application to be different depending on user type that has logged in.
    3 types:  worker, technician, manager.
    How to apply a password  recognition functionality?
    Some of the functionalities of SCADA panel should be editable by only a technician but all should be seen by others.
    Thanks,
    Best

    Hello,
    as mentioned above, there are some examples already available on this forum:
    http://forums.ni.com/t5/LabVIEW/how-to-create-logi​n-and-password-for-my-application/td-p/787166/high​...
    The changes to you front panel, like hiding/showing controls, you will need to implement manually.
    Mateusz Stokłosa
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Bridge will not Open a File in Photoshop

    Yesterday my Bridge stopped opening files. I have to go to the file folder once I know the file name and open it the old fashioned way. Anyone know if there is a secret code to get it to open files again? This morning I went to the downloads and down

  • JOIN의 종류와 이해

    제품 : ORACLE SERVER 작성날짜 : 2002-04-08 PURPOSE Join의 종류와 이의 사용 방법을 이해한다. EXPLANATION (1) 개요 Join 은 크게 - outer join - semi join - anti join 이 있으며, 이에 대해 하나씩 다루어 보기로 한다. (2)Anti Join - 1. 전체적 설명 anti-join 은 join 의 반대의 logic 을 갖는다. 이를 실행하면 왼쪽과 오른쪽이 match

  • PB gets HOT while asleep

    Hi all, I'm sure this question has been asked before, so please forgive me ahead of time if this is a repeat. I've been doing some searching around the web on this, and I was able to find plenty of people asking questions about this, but never any so

  • Generation of DDL similar to Oracle Designer (Data Modeler 3.0 EA1.)

    Hi, Will the production version of SQL Data Modeler allow the creation of separate DDL files similar to that which Oracle Designer does? For example, I can create a sequence number generator in Data Modeler (DM) and then make a call to that in an Obj

  • Can ISave a photo that was sent via iMessage

    I have several photos that were sent to me in the Message App. Can I save any of the photos to my Camera Roll in the photo App?  I selected a photo and received options of COPY & MORE.  NEITHER PROVIDED A SAVE option