Listing Views based on a given Table

With a query how to list the names of views that are based on a given table.

SELECT NAME,  REFERENCED_NAME FROM ALL_DEPENDENCIES
WHERE TYPE = 'VIEW'
   AND REFERENCED_NAME = 'table_name'
[/CODE]

Similar Messages

  • Is it possible to filter list view based on current user logged in

    Hi,
    Is it possible to filter the list view results based on the current user logged in. I have a scenario wherein i want to show only those list items to the user which contains his/her name under the column Approver (a list column).
    So if i login to the page, then only those requests should show up which has my name as the Approver, and so on.
    Is it possible please ?
    Thank you.

    Hi Prajk, you could use audience targeting for this. An alternative would be to create a view and add a filter so that "Approver" is equal to [Me]
    cameron rautmann

  • List View Filter - I want to create List View based on a specific user

    I want to create a List View Filter based on specified user ID. I dont want to specify the [Me] for filtering the view based in current logged in User.
    I want the view to be based on specific user ID for Ex: "AD\JohnDoe"
    Thanks
    Nate

    The People/Group Picker field has several options for how the name is displayed. For example you can set it to be the friendly name or the account name. When you create your View Filter, make sure that you are using the same format as the field's display
    type.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • View based on PL/SQL table?

    I'd like to create a view based on a PL/SQL memory table (records of %rowtype). Has anyone done this? The idea is, based on the where clause (or lack of one), the view definition containts call to a stored procedure that builds the rows to be returned. Ideas?
    Tom-

    Pipelined function - based example:
    SQL> create or replace package my_pkg
      2  is
      3   type nested_tab_type is table of emp%rowtype;
      4   nt_instance nested_tab_type := nested_tab_type();
      5   function get_nt_instance return nested_tab_type pipelined;
      6  end;
      7  /
    Package created.
    SQL> create or replace package body my_pkg
      2  is
      3   function get_nt_instance return nested_tab_type pipelined
      4   is
      5   begin
      6    for j in 1..nt_instance.count loop
      7     pipe row(nt_instance(j));
      8    end loop;
      9    return;
    10   end;
    11  end;
    12  /
    Package body created.
    SQL> create or replace view nt_view as
      2  select ename,sal from table(my_pkg.get_nt_instance)
      3  /
    View created.
    SQL> begin
      2   select * bulk collect into my_pkg.nt_instance
      3   from emp
      4   where deptno = 10;
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL> select * from nt_view;
    ENAME             SAL
    CLARK            2450
    KING             5000
    MILLER           1300
    SQL> begin
      2   my_pkg.nt_instance.delete;
      3   select * bulk collect into my_pkg.nt_instance
      4   from emp
      5   where deptno = 20;
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SQL> select * from nt_view;
    ENAME             SAL
    SMITH            1000
    JONES            2975
    SCOTT            3000
    ADAMS            1100
    FORD             3000Object -based example:
    SQL> create or replace type emp_obj is object (ename varchar2(10), sal number(7,2));
      2  /
    Type created.
    SQL> create or replace type emp_obj_t is table of emp_obj;
      2  /
    Type created.
    SQL> create or replace package my_pkg
      2  is
      3   emp_t_instance emp_obj_t := emp_obj_t();
      4   function get_emp_t_instance return emp_obj_t;
      5  end;
      6  /
    Package created.
    SQL> create or replace package body my_pkg
      2  is
      3   function get_emp_t_instance return emp_obj_t
      4   is
      5   begin
      6    return emp_t_instance;
      7   end;
      8  end;
      9  /
    Package body created.
    SQL> create or replace view nt_view as
      2  select ename,sal from table(my_pkg.get_emp_t_instance)
      3  /
    View created.
    SQL> begin
      2   select emp_obj(ename,sal) bulk collect into my_pkg.emp_t_instance
      3   from emp
      4   where deptno = 10;
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL> select * from nt_view;
    ENAME             SAL
    CLARK            2450
    KING             5000
    MILLER           1300
    SQL> begin
      2   my_pkg.emp_t_instance.delete;
      3   select emp_obj(ename,sal) bulk collect into my_pkg.emp_t_instance
      4   from emp
      5   where deptno = 20;
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SQL> select * from nt_view;
    ENAME             SAL
    SMITH            1000
    JONES            2975
    SCOTT            3000
    ADAMS            1100
    FORD             3000Rgds.

  • Filter List ViewA based on List ViewB selected row?

    Hello,
    I am trying to find out if it is possible to transfer the ID of a selected row in one view of a list, and use that to filter a second view of the same list.
    Supposedly, this can be done if this page is any proof:
    http://msdn.microsoft.com/en-us/library/dd585662(v=office.11).aspx.
    But I haven't been able to find any informative tutorials or walkthroughs other than webpart connectors on the same page.

    Just connect the two web parts together and have the first web part send the ID to the second.  Take a look at the following walkthrough.  Its for 2007 but should still work essentially the same.
    https://www.nothingbutsharepoint.com/sites/eusp/pages/sharepoint-filtering-with-web-part-connections.aspx
    To do this using two separate pages you need to do it using SharePoint Designer.  I haven't tried it lately and am not sure its still possible since the Design view as removed.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Filter List View Based on Condition

    HI All,
    I have SharePoint List with dropdown column name "Link Level" and it's holding values "Access" "Rejected" .
    And I had created view with name "Access" and had set the filter scetion options as below.But I don't find any result,Can any me help me what's the right way to filter the view only with "Access" list item value
    "Link Level"->
    equals to ->
    =[Access] 
    Thanks,
    Quality Communication Provides
    Quality Work.
    MSA

    Hi,
    According to your description, my understand is that you want to filter list items by “Access” but it displayed nothing.
    Did you set the “Access” view as below figure?
    Please cancel the filter in the “Access” view (choose none in filter field) and test whether it displays list items.
    Please check whether there is any other configuration in the “Access” view.
    Thanks,

  • Create Materialized View  based on another database table using db link?

    SQL> SELECT sysdate
    2 FROM dual@CBRLINK ;
    SYSDATE
    21-NOV-12
    SQL> CREATE MATERIALIZED VIEW USERCBR.V_T24_COUNTRY1
    2 REFRESH COMPLETE
    3 START WITH SYSDATE NEXT SYSDATE + (5/24)
    4 AS
    5 SELECT sysdate
    6 FROM dual@CBRLINK ;
    CREATE MATERIALIZED VIEW USERCBR.V_T24_COUNTRY1
    ERROR at line 1:
    ORA-04052: error occurred when looking up remote object SYS.DUAL@CBRLINK
    ORA-00600: internal error code, arguments: [ORA-00600: internal error code,
    arguments: [qksfroFXTStatsLoc() - unknown KQFOPT type!], [0], [], [], [], [],
    ORA-02063: preceding line from CBRLINK

    It works for me:orcl>
    orcl> CREATE MATERIALIZED VIEW scott.V_T24_COUNTRY1
      2  REFRESH COMPLETE
      3  START WITH SYSDATE NEXT SYSDATE + (5/24)
      4  AS
      5  SELECT sysdate
      6  FROM dual@l1 ;
    Materialized view created.
    orcl> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for 32-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    orcl>so there is no problem with the code. HTH.

  • Update a field in view, based on change in one of it's tables.

    Hi,
    I have created a Maintenance view based on three DB tables.
    My requirement is if i change data in one the database tables the view should get automatically updated with the new data.
    Could anyone please soleve my issue, points are definite.
    Thanks and regards,
    raghavendra goutham p.

    Hi,
       any changes to the database field value will
       automatically gets reflected in view .
       please check it.
    Regards
    Amole

  • Query on ABAP List Viewer and Table Control?

    Hi all,
    I was trying to solve the exercises in these areas....but was unable to do as some of the concepts were not clear to me as I'm new to this field.
    So Can any one help me out in giving me the Notes or attachments on the ABAP List Viewer(A.L.V.) and Table Control.
    My ID: [email protected]
    Waiting for a reply...
    A New Entrant in ABAP.
    Message was edited by:
            saikumar b

    Hi saikumar,
    I just start to work with Abap too. All links i Know:
    http://www.erpgenie.com/abap/controls/alvgrid.htm
    http://www.abapfans.hpg.ig.com.br/links.htm
    http://abap4.tripod.com/index..html
    http://paginas.terra.com.br/educacao/abap/
    http://www.sdn.sap.com/
    http://www.sap-img.com/
    http://www.planetsap.com/Tips_and_Tricks.htm
    http://www.abap4.com.br/
    http://www.erpgenie.com/sap/abap/index.htm
    Good lucky

  • List view component not being ordered

    I am using the list view component to represent my table data. for creating a new row, i use a popup which has a separate taskflow in which i create a new row. Now i need to refresh the list view component after this new row is created. I am doing that using contextual events. I just re execute the query of the vo based on which the list view component is made. But in order to get the in memory rows, i set the view objects query mode to scan view rows as well as entity based rows. This however makes the vo query's order by clause to not work. I am not sure why but the list view data is no longer ordered.
    Also if anyone has any idea how to refresh the entire list view component, that is load data again, it would be of great help.
    Thanks in advance,
    Jithesh

    Hey,
    I'm new at this so i'm going to try to help (although it problably won't work or do what you want).
    You said you want to refresh the entire list view component, well, normally i have my views/data controls connected to a binding variable in my bean class and if i want to update something (lets say a selection) i use this code:
            AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
            adfFacesContext.addPartialTarget(dimFactSales);
    dimFactSales = variable binded to one of my views.
    Hope that helps,
    Frederico.

  • Table View in View-based Application

    Hi.
    I want to use an UITableView in a View-based Application.
    All examples I found are for Navigation-based Applications.
    I Found only one example for View-based Applications, but it create all components himself without the Interface-Builder.
    I search an example with Interface-Builder.
    My main problem is, when i create a view with Interface-Builder, the controller class does not inherit from UITableViewController.

    GrinderFX wrote:
    I want to use an UITableView in a View-based Application.
    Hi, and welcome to the Dev Forum!
    Firstly, I would point out that you don't need to use UITableViewController to control a table view. The table view controller is just more convenient. So for example, you could simply drag a table view from the library in IB and drop it onto your view. Then you could hook up the table view's dataSource and delegate outlets to the File's Owner. Then you would add the data source and delegate protocols to the @interface of your UIViewController subclass and add the required data source and delegate methods to the @implementation.
    I mention the above because building your table view that way is very instructive. If you want to learn more about table views in general I would recommend Chapter 8 of +Beginning iPhone Development: Exploring the iPhone SDK by Mark and LaMarche+, which includes 3 table view projects that don't involve a navigation controller.
    My main problem is, when i create a view with Interface-Builder, the controller class does not inherit from UITableViewController.
    Returning to your specific question, IB allows you to change the class of an object. Here are the steps to use the View-Based Application template as you described (In the following I'm using Grinder as the name of the project; e.g. the app delegate class is named GrinderAppDelegate, and the view controller subclass is named GrinderViewController):
    1) _Change parent of view controller subclass in your code_
    In GrinderViewController.h, you only need to change the superclass from UIViewController to UITableViewController:
    @interface GrinderViewController : UITableViewController {
    However it will be easier later on if you make new files from the UITableViewController file template:
    a) Ctrl-click on GVC.h and GVC.m in the Groups & Files tree; select Delete->Also Move to Trash;
    b) Ctrl-click on Classes; select Add->New File->iPhone OS->Cocoa Touch Classes;
    c) Select UITableViewController subclass from the right center panel and click Next;
    d) File Name: GrinderViewController.m; check Also create GrinderViewController.h;
    e) Make sure the name for these new files is exactly the same as the ones you deleted; if you make a mistake here, delete the new files and start over, because that name must be the same in several other files;
    f) Click Finish; the replacement files should now appear under Classes.
    2) _Change the view controller class in IB_
    a) Double click on MainWindow.xib under Resources in the Groups & Files tree;
    b) Make sure the MainWindow.xib window is open by selecting Window->Document from the IB menu;
    c) Locate the View Mode switch, upper-left, in the xib window, and select the Center position;
    d) The xib window should now be displaying two columns with small icons on the left;
    e) Select the Grinder View Controller icon;
    f) Select Edit-Delete to delete that icon;
    g) Select Tools->Library from the menu, and expand Controllers in the Library Panel;
    h) Drag a Table View Controller to the xib window and drop it right under the app delegate icon;
    i) Select Tools->Identity Inspector from the menu to open the Grinder View Controller Identity Panel (the new Table View Controller should still be selected in the xib window);
    j) Under Class Identity, select Grinder View Controller from the list; tab out of the Class field to be sure the selection is recorded;
    k) Ctrl-Click on Grinder App Delegate and connect the view controller outlet (ctrl-drag) to Grinder View Controller;
    l) Expand GVC in the xib window and delete the Table View icon (since we want it in the other xib file);
    m) Reselect the GVC icon and open the Grinder View Controller Attributes panel;
    n) Under View Controller, select GrinderViewController from the NIB Name list;
    o) In the Table View Controller IB Editor window, select GrinderViewController.nib to open the other xib file;
    p) Make sure the GrinderViewController.xib window is open in small icon mode as in steps b-d above;
    q) The class of the File's Owner should be GrinderViewController;
    r) Delete the View icon;
    s) Drag a Table View from the Library to where the View icon was;
    t) Ctrl-click on File's Owner and connect (ctrl-drag) it's view outlet to the Table View;
    u) Ctrl-click on Table View: connect both the dataSource and delegate outlets to File's Owner;
    v) File->Save both xib files.
    3) _Make some rows in the table view and test_
    a) Open GrinderViewController.m in Xcode;
    b) Add the commented lines (be sure to use the correct line for your target OS);
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 20; // <-- change to more than zero
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
    cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
    // Configure the cell
    // add this line for OS 2.x
    cell.text = [NSString stringWithFormat:@"Row %d", indexPath.row];
    // add this line for OS 3.0
    // cell.textLabel.text = [NSString stringWithFormat:@"Row %d", indexPath.row];
    return cell;
    c) Build and Go.
    I should add that the procedure might be a little easier if you start with the Window-Based Application Template. But the above is good practice in editing xib files.
    Hope that's helpful!
    - Ray

  • Want to update data in a view based on multiple tables

    Hi
    I am facing a problem i want to update data in tables using a view. As that view is based on multiple tables so i am unable to update data. i came to know we can update table from view only if view is based on single table. so if anyone knows any alternative please let me know.
    Thanx
    Devinder

    Devinder,
    The table can be updated through a view based on multiple tables, if and only if the table is a "key preserved" table. Rather than explaining myself, i avoided the burden of typing by finding the material in Oracle Docs and pasting it for you :-)
    If you want a join view to be updatable, all of the following conditions must be
    true:
    1. The DML statement must affect only one table underlying the join.
    2. For an INSERT statement, the view must not be created WITH CHECK
    OPTION, and all columns into which values are inserted must come from a
    key-preserved table. A key-preserved table in one for which every primary
    key or unique key value in the base table is also unique in the join view.
    3. For an UPDATE statement, all columns updated must be extracted from a
    key-preserved table. If the view was created WITH CHECK OPTION, join
    columns and columns taken from tables that are referenced more than once
    in the view must be shielded from UPDATE.
    4. For a DELETE statement, the join can have one and only one key-preserved
    table. That table can appear more than once in the join, unless the view was
    created WITH CHECK OPTION.
    HTH
    Naveen

  • List view of PDF Table of Contents missing

    In iBooks, PDF files can have two types of Table of Contents, thumbnail view and list view. My problem is some of my PDF files lack the list view of the table of contents.
    I'm under the impression that the list view TOC in iBooks is created from the bookmarks that exist in the PDF file before importing into iBooks. I've been successful in adding new subheadings in the TOC by modifying the bookmarks in the PDF file before installing to iBooks, so I'll be surprised if that's not the case.
    I have two files that have bookmarks in the original PDF file, but when I import into iBooks, there is no option for a list view of the TOC, only the thumbnail view. Can anyone offer any help as to why a PDF file with bookmarks won't show a list view TOC when imported into iBooks?
    While we're at it, when you tap on the TOC button in a PDF file in iBooks, it always takes me to the thumbnails view. I would prefer it default to the list view. Is there any way to do that?
    Thanks.

    There may be more user-friendly ways of doing this, but here's one way:
    Open Terminal (in the Utilities folder).
    Use "cd" to change directory to the folder you want to print
    eg cd /Users/myuser/Documents
    Use "ls" to list the contents to a file
    ls -al > filelist.txt
    You can then open the filelist.txt file from Finder in TextEdit and print it.
    Matt

  • Creating View based on Current and previous data from same table

    I am trying to create a view based on a table called “my_companies”. The table has following columns: “company_id”, “start_date”, “product_type_code”, “partner_id”
    The main purpose of this view is to obtain previous company_id’s associated with a particular “partner_id“and “product_type_code”. So basically, I’m looking to create an extra column, say “prev_company_id” in the view along with all the other columns. The “previous” data can be obtained depending on the “start_date”. I’m not able to write a query successfully to do this.
    Can anyone help? Thanks in advance.

    Hi,
    Whenver you have a question, it helps to post:
    (1) The version of Oracle (and any other relevant software) you're using
    (2) A little sample data (just enough to show what the problem is) from all the relevant tables
    (3) The results you want from that data
    (4) Your best attempt so far
    Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
    Formatted tabular output is okay for (3). Type before and after the tabular text, to preserve spacing.  The sample results should include any special cases that you foresee, such as one company having many previous companies, or vice-versa.
    It sounds like might need a +self-join+, where you have two copies of the same table, as if the current companies were in one table and the previous companies were in another, even though they are all actually in the same table.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Strange behaviour of view based on several tables join with union all

    Dear fellows we r facing a strange problem we have a view based on several tables joined by union all ,when we issue an ordered query on date,rows returned are unusually different than they should be .
    Is oracle has some special behaviour for view based on union all ?
    I m using oracle 8.1.6 on windows 2000
    Kashif Sohail

    Did you ever solve this problem? I have two select statements based on 4 tables and 3 views using about 5 more tables. When I execute each select individually I get exactly what is expected. When I UNION ALL both selects together, I get "no rows returned", however when I UNION them I get exactly what is expected. I should get the same answer for both UNION ALL and UNION. The two select statements are identical, except for one column where I changed the constant to be different. Any thoughts?

Maybe you are looking for