LinkedLists --- returning the next object in the list

Hi,
My project is a college where i can input students using a linked list. In one of my classes 'StudentLinkedList' i have to return the next student in the list (where the current object is input into the method as a parameter).
So far i have
// Returns the next student object in the list
        public Student getNext(Student before) {
             Student before =
        }As you can see i have Student before as the parameter but i don't exactly know what i should assign that too. I don't want it to be the first object in the list or the last object in the list, it could be any student. Do you get me?
Another example of a method in my class which works is returning the first student object in the list...
// Returns the first Student object in the list
        public Student getFirstStudent() {
             if(size() > 0) {
             return list.getStudent();
             } else
                  System.out.println("There are no students in the college");
                  return null;
        }Thanks alot

Capsud wrote:
Ive gone on to put this in
// Returns the next student object in the list
        public Student getNext(Student before) {
             studentNode node = new StudentNode(); {
                  StudentNode before = node.getStudent();
             return node.getNext();
        }am i on the right track?I don't think so. Why are you overwriting "before" before you're using it? Don't you think that because it's included as a parameter, it's probably important?
Ah, I see, they're different types. Use a different variable name for before #2, call it beforeNode or something.
Anyway, this should be fairly simple if you break it down into steps:
1) Iterate through your list until you find a "node" such that node.getStudent().equals(before);
2) Return node.getNext().getStudent() (of course checking for null values along the way)

Similar Messages

  • How to search for the email with attachments in iphone which should return the list of mails with attachments?

    Hi am new to iphone programming,in the app i want the emails which are having the attachments to show when we search for particular email sent by others in a list which should return the content of the attachment.can any one help me to solve this thanks in advance.

    If you received character strings' variable value such as '56,34',
    then you can get it as follows.
    where regexp_instr( '56,34' , '(^|,)('||t.catid||')(,|$)') >= 1
    Ex)
    with
    test_param as
    (select '56' param from dual union all
    select '34' from dual union all
    select '56,34' from dual union all
    select '5,344' from dual
    ,test_data as
    (select 5 catid from dual union all
    select 3 from dual union all
    select 56 from dual union all
    select 34 from dual union all
    select 566 from dual union all
    select 344 from dual
    /* End of Data */
    select p.param, t.catid
    from test_data t, test_param p
    where regexp_instr( p.param, '(^|,)('||t.catid||')(,|$)') >= 1
    PARAM      CATID
    56            56
    34            34
    56,34         56
    56,34         34
    5,344          5
    5,344        344

  • How to get the list of SAP Servers defined in xMII?

    Hi,
    We have a requirement to get the list of SAP Servers defined in xMII and show them in a html dropdown field? We know that we could achieve this by using a custom action block.
    Is there any way to get this list of SAP servers without using custom action block?
    Thanks,
    Sara

    Thanks, Udayan.
    I am actually looking for a Query Template which can return the list of SAP Servers.
    Thanks,
    Sara

  • How to get the list of tables?

    How can I get the list of tables in database using SQL/PLSQL?
    Thank you.

    It depends what Data Dictionary views you have access to.
    SELECT table_name
    FROM user_tables
    will tell you all the tables in your schema.
    SELECT table_name
    FROM all_tables
    WHERE owner = 'XXX'
    will tell you all the tables that you have some kind of access to. You may be able to get similar information from
    SELECT table_name
    FROM dba_tables
    WHERE owner = 'XXX'
    Leave out the WHERE clause if you're not interested in restricting by owner
    You may need to get your DBA to grant access to ALL_TABLES and DBA_TABLES.
    Define these as (parameterised) Cursors if you want to do this work in PL/SQL. Return the results into a PL/SQL table (of xxx_tables.table_name%ROWTYPE) if you want return the list as a parameter. Bulk Collect the results into the PL/SQL table if you're using Oracle 8i.

  • Problem in returning the object + reflection + hashMap + list

    Hi All,
    i am very new to java forums...
    i'm sorry to disturb you all.. i don't exaclty know how to raise a question in forums..
    Here my query is ::::
    i have xlsReader file,which will read the data from the xls file.
    after reading it,i am adding the contents of the xls sheet in to a Arraylist.
    then i've put the list contents in to an object array,
    then i'm invoking the getter and setter method of the javabean class.
    and i'm returning object,but object contains only the last data of the list,instead of whole contents in that object.
    the code is here,where am returnung the object.
    kindly do reply...
    Thanks in advance...:)
    public static Object setDynamicValue ( Method setter2, List columnData, Object obj2 , Method getter2 )
    Object val2=null;
    try {
    for ( int i = 0 ; i < columnData.size() ; i++ ) {
    Object obj[] =( Object [] )columnData.get(i);
    for ( int j = 0; j < obj.length; j++) {
    // System.out.println("column Data:pppp: :"+obj[j].toString());
    setter2.invoke(obj2, new Object[] {obj[j].toString() });
    val2 = getter2.invoke(obj2, new Object[0]);
    //System.out.println("output:::"+val2.toString());
    // return val2;
    System.out.println("#########################");
    }catch (IllegalAccessException e) {
    System.out.println("IllegalAccessException came :::"+e);
    } catch (IllegalArgumentException e) {
    // TODO Auto-generated catch block
    System.out.println("IllegalArgumentException came :::"+e);
    e.printStackTrace();
    } catch (InvocationTargetException e) {
    System.out.println("InvocationTargetException came :::"+e);
    // TODO Auto-generated catch block
    e.printStackTrace();
    return val2;
    here,we are returning the object val2 , but its printing only the last data of the list
    Object o1 = setDynamicValue ( setter2, columnName ,columnData, obj2,getter2 );
    System.out.println("lastvalue of the list :"+o1);
    thanks...
    plz reply..

    You are getting only the last data of the list because you does not have any mechanism to hold other values.
    Check inf your code your the following code in the inner for loop (loop with index j)
    val2 = getter2.invoke(obj2, new Object[0]);
    Even if you are capturing some value into val2, it gets replaced next time the body of for loop runs. This way you are getting only the last data.
    If you want to capture all values use arraylist. Keep adding all values to arraylist and return it. While printing iterate over arraylist and print values.
    This is not a problem related to reflection or hashMap. Just the logic you have written is incorrect.

  • Iterate through List and return (the names) of all the classes

    Hi,
    I've got a List and want to see what kind of classes are in this List.
    List list = getList();
    Iterator it = list.iterator();
    while (it.hasNext()) {
         Object ob = it.next(); // get the next item. Is this the right approach for my problem?
            // Her I want to check the Object what classses it holds,
            // assuming that this is the right approach for my problem
    }Thanks
    Jonny

    Hi,
    that's what I did:
    List list = getList();
    Iterator it = list.iterator();
    while (it.hasNext()) {
         Object ob = it.next(); // get the next item. Is this the right approach for my problem?
             Class cLass = ob.getClass();
             System.out.println("\t" + cLass.getName());
    }This returned java.lang.Object as mentioned.
    Question:
    - Can an Object hold several types of classes? If so, how can I iterate them?
    Mabe this makes things a little clearer:
    Why am asking this? I'm returning a List from a (Hibernate)-query. I can access one Class without problems. Another class that should be returned, I can't access. Thats why I want to know what I'm dealing with.
    Thanks
    Jonny

  • Difficulty in updating the list object values

    I have created a list with Objects(MyVertex). I am trying to update the list based on the condition . Instead it adds duplicate values. The simple logic is (if the object is already in the list )only update the values or add to the list (Object) Please help me how can I correct my code.
    public static void updateResult(MyVertex c)
              Iterator it2=result.iterator();
              while(it2.hasNext())
                   //System.out.println( "Result to be added : "+c.getName());
                   j=(MyVertex)it2.next();
                   if(j.getName().equals(c.getName()))
                        j.setWeight(c.getWeight());
                        break;
                   //System.out.println( "Result item name : "+j.getName());
              result.add(c);
         }Thanks a lot .

    Thank you all for your immediate reply. It has solved half of my problem.Now It is not adding all "c" ,but it still not updating the value if the matching found.
    public static void updateResult(MyVertex c)
              Iterator it2=result.iterator();
              while(it2.hasNext())
                   //System.out.println( "Result to be added : "+c.getName());
                   j=(MyVertex)it2.next();
                   if(j.getName().equals(c.getName()))
                        j.setWeight(c.getWeight());
                        flag=true;
                        return;
                   //System.out.println( "Result item name : "+j.getName());
              if(!flag)
              {result.add(c);}
         }

  • WMIService not returning virtual machines in the list after performing a Hyper-V VM export/import

    Hello,
    Win 8.1, VBscript
    After moving 3 servers to a new PC, my scripts don't work because WMIService is not returning the virtual machines in the list from the query.  The following query shows the problem:
    Option Explicit
    WScript.Echo "vmStatus"
    Dim WMIService
    Dim VMList
    Dim VM
    'Get instance of 'virtualization' WMI service on the local computer
    Set WMIService = GetObject("winmgmts:\\.\root\virtualization\v2")
    'Get all the MSVM_ComputerSystem object
    Set VMList = WMIService.ExecQuery("SELECT * FROM Msvm_ComputerSystem")
    WScript.echo "count "
    WScript.echo VMList.count
    For Each VM In VMList
    WScript.Echo "========================================"
    WScript.Echo "VM Caption: " & VM.Caption
    WScript.Echo "VM Name: " & VM.ElementName
    WScript.Echo "VM GUID: " & VM.Name
    WScript.Echo "VM State: " & VM.EnabledState
    Next
    This is the output:
    vmStatus
    count
    1
    ========================================
    VM Caption: Hosting Computer System
    VM Name: WBCDEVIDEPC2
    VM GUID: WBCDEVIDEPC2
    VM State: 2
    On the previous machine there would be 4 machines in the list, the host plus 3 VM's.
    Any ideas why this might be happening?  Clearly winmgmt is running or the host machine wouldn't have been returned.  I've compared as many things as I can with the previous PC (also win 8.1) and can't find any differences.  I'm assuming
    there is some basic thing about the new PC that isn't setup correctly, but I can't figure it out.
    The VM's that were moved to the new hosting machine are in fact working correctly.  There's a domain controller, a TFS server and a build machine.  The domain is functioning and clients can reach the TFS just fine.
    Thanks.
    Best Regards,
    Alan

    Hi jrv,
    Got it, you're right, it's intuitive - and cool.  Thanks for talking me into it.  It'll take time to get good, but I don't need to be good right now.
    While I was searching around (just before you last post), I found this
    site and as you say, it seems pretty straightforward.
    So when I type get-vm in my powershell, I get nothing back.  That's why I was a little slow on the uptake, I thought I was doing something wrong.
    My vm's are working just fine.  The domain is up, TFS is working, but my vm's are simply not being reported through get-vm.
    Where should I turn next?
    Best Regards,
    Alan

  • Recursion:returning the largest value in a linked list

    import java.io.*;
    import java.util.*;
    class Node{
         int num;
         Node next;
         Node(int n){
              num = n;
              next = null;
    class RecursivePrint{
         public static void main(String[] args){
              Node np, last;
              Node top = null;
              last = null;
              for(int i = 1; i <11; i++){
                   np = new Node(i);
                   if(top==null)top = np;
                        else
                   last.next = np;
                   last = np;
              int x =Largest(top);
             System.out.println("large is "+ x);
         }//end main
         public static int Largest(Node top){
              int large = 0;
              if(top==null){
                   return 0;
                   while(top!=null){
               if(top.num > large){
                   large = top.num;
                   //top = top.next;
              Largest(top.next);     
         }//while
         return large;
    }//end class
    I am trying to return the largest value in a linked list (10) in this case.  when I do it withour recurrsion it works ok, but when I try it with recurrsion it dies.  The logic seems ok to me, cannot figure why it dies.

    chetah wrote:
    public static int Largest(Node top){
              int large = 0;
              if(top==null){
                   return 0;
              if(top.num > large){
                   large = top.num;
                   //top = top.next;
                   Largest(top.next);
         return large;
    Initially I had the above, it return only 1 that was the reason for puting the loop.You don't seem to understand recursion or variable scope.
    int large = 0;large is a different variable inside each instance of the method.
    So when you get back up to the value 1 from the recursive calls its just comparing 1 to 0
    Here's a solution...
         public static int Largest(Node top){
              if(top.next != null){
                   if(Largest(top.next) > top.num)
                        return Largest(top.next);}
              return top.num;
         }

  • I have now transfered my files of ripped CD's to my iTunes library three times. On each occassion, the conversion seems to occur fine, the files play, but when I close my computer and return the next day, iTunes says it cannot locate any of those files.

    I have now transfered my files of ripped CD's to my iTunes library three times Since upgrading to iTunes 11 and Windows 8. On each occassion, the conversion seems to occur fine, the files play, but when I close my computer and return the next day, iTunes says it cannot locate any of those files. Three times. Beginning to lose my temper. Advice? Suggestions? Could the fact that my original library is located on a network drive have anything to do with it? Thanks for your help, all.

    Repair security permissions
    Right-click on your main iTunes folder and click Properties, then go to the Security tab and click Advanced. If necessary grant your account and system full control to this folder, subfolders and files, then tick the option to replace permissions on child objects which will repair permissions throughout the library. This is the XP dialog but Windows 7/8 shouldn't be too different.
    Repeat for the media folder if it isn't a subfolder of the iTunes folder.
    tt2

  • Why after I add a object to a list, the whole list changes?

    I tried to call the add method of ClientList from a jsp webpage,
    by looking at the log file, i found that for the 2nd time insert an Object into clientlist (say
    client 1 is: IPAddress= 167.30.22.33
    client 2 is IPAddress=167.30.22.44), what i get from the system log is that I have two
    167.30.22.44 in the list, the first one is gone,
    after I add the third item, the list just contains three identical third item, the former two are gone,
    What 's wrong with my code? From the system log, I know that the parameters passed to the method clientlist.add are correct.
    thank you.
    My code is like this :
    public class ClientList {
    ArrayList<Client> listitems = null;
    int numberOfItems = 0;
    public ClientList()
              items = new HashMap<String, ClientListItem>();
              listitems = new ArrayList<Client>();
    public synchronized void add(
    Client cl) {
    if (items.containsKey(cl.getIPAddress())) {
                   ClientListItem clitem = (ClientListItem)items.get(cl.getIPAddress());
                   clitem.incrementQuantity();
    } else {
                   System.out.println("clist.add called: " + cl.getIPAddress() + "\n");
                   ClientListItem newItem = new ClientListItem(cl);
                   items.put(cl.getIPAddress(), newItem);
                   listitems.add(cl);
                   for (Iterator i = listitems.iterator(); i.hasNext(); )
                        Client clt = (Client)(i.next());
                        System.out.println("after adding : " + clt.getIPAddress() + "\n");
    }

    I'm willing to bet that what is happening here goes as follows:
    // Step 1:  Create a client 1 object
    // Step 2:  Call add with this client object creating a string key with a client value
    // Step 3:  redefine the data in the first client object with the data for the second
                 // In this step you probably did not create anew client object, but simply
                 // changed the data in the original
    // Step 4:  Call add with the "redefined" client object comparing the string key with
                 // some data from the client, determining it is not in the list adding it againWhat the above does (if this is the way you are doing it) simply places the same client
    object into the hash twice with two different keys. And in step 3, by changing the original object,
    you also changed the object already in the hash, because as already said, they are the same object.
    Edit: And nevermind, jverd already said this. ;-)

  • Returning the next day?

    Hi, i hope somebody can help me, I'm new to Java and I'm stuck with some work that I am doing. I don't want an answer, just a hint as to where to get started.
    I have created a class called Date, which uses switch statements to return a string of the date, when integer values are entered. I need to define a method public Date nextDay() to compute the next day, but I have no idea how to even start.
    Here's the code in my original class, I need to emphasise that I do not want an answer, but a suggestion as to how to get started, I don't really understand what is meant by I need to have a return value of type Date because I do not really understand how this type would be represented.
    package dates;
    public class Date {
           Constructs a date with a given year, month, and day
           of the calendar.
           @param year a year between 94 and 07
           @param month a month between 1 and 12
           @param day a day between 1 and 31
        private int day, month, year;
        public Date(int d, int m, int y)
            day = d;
            month = m;
            year = y;
        public void setDay(int d)
            day = d;
           Returns the day of this date
           @return the day
        public String getDay()
            String sDay = "day";
            switch (day) {
                case 1: case 21: case 31:
                    sDay = day+ "st"; break;
                case 2: case 22:
                    sDay =day + "nd"; break;
                case 3: case 23:
                    sDay = day+"rd"; break;
                case  4: case  5: case  6: case  7: case  8: case  9: case 10: case 11: case 12:
                case 14: case 15: case 16: case 17: case 18: case 19: case 20:
                case 24: case 25: case 26: case 27: case 28: case 29: case 30:
                    sDay =day+ "th"; break;
                default: System.out.println("Please enter a valid date");
            return sDay;
        public void setMonth(int m)
            month = m;
           Returns the month of this date
           @return the month
        public String getMonth ()
            String sMonth = "";
            switch (month) {
                case 1: sMonth = "January"; break;
                case 2: sMonth = "February"; break;
                case 3: sMonth = "March"; break;
                case 4: sMonth = "April"; break;
                case 5: sMonth = "May"; break;
                case 6: sMonth = "June"; break;
                case 7: sMonth = "July"; break;
                case 8: sMonth = "August"; break;
                case 9: sMonth = "September"; break;
                case 10: sMonth = "October"; break;
                case 11: sMonth = "November"; break;
                case 12: sMonth = "December"; break;
                default: System.out.println("Please enter a valid month");
            return sMonth;
        public void setYear(int y)
            year = y;
           Returns the year of this date
           @return the year
        public int getYear ()
            int sYear = year;
            switch (year) {
                case 90: sYear = 1990; break;
                case 91: sYear = 1991; break;
                case 92: sYear = 1992; break;
                case 93: sYear = 1993; break;
                case 94: sYear = 1994; break;
                case 95: sYear = 1995; break;
                case 96: sYear = 1996; break;
                case 97: sYear = 1997; break;
                case 98: sYear = 1998; break;
                case 99: sYear = 1999; break;
                case 00: sYear = 2000; break;
                case 01: sYear = 2001; break;
                case 02: sYear = 2002; break;
                case 03: sYear = 2003; break;
                case 04: sYear = 2004; break;
                case 05: sYear = 2005; break;
                case 06: sYear = 2006; break;
                case 07: sYear = 2007; break;
                default: System.out.println("Please enter a valid year");
            return sYear;
        public String toString()
            return getDay()+" "+getMonth()+" "+getYear();
    }

    Well I'm sure that any basic java tutorial that included the words "object" and "create" would be able to help you, but I showed you above how to create a Date. See reply #2.
    The general syntax for creating a new Object has two parts. First, you must declare a reference to the object:
    Object myObject;Then you must instantiate a new object:
    myObject = new Object();  //this must match a valid constructor for your type (in your case Date) You can of course do this in one line:
    Object myObject = new Object();And for you, you want to use a subclass of Object, named Date (which is what you've called your class)
    public Date returnNewDate() { //just a SAMPLE method returning a new Date object
    Date date = new Date(10,12,2007);
    return date;
    }

  • Save tree the lists of which is class' object

    Hi, my question :
    how can i save tree the lists of which is class' object?
    i save tree with the help of ObjectOutputStream class, but when i read tree object from file i have leaf without name(clean leaf)
    how read and save tree in file for normal with it?
    Code of my function for save tree:
    import javax.swing.JTree;
    import java.io.*;
    import java.util.*;
    public class SaveTree {
        public SaveTree(){
        public void saveTree(JTree tree){
            try{
            ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream("tree.info"));
            out.writeObject(tree);
            out.close();
            catch(Exception e){
                e.printStackTrace();
        public JTree loadTree(){
            JTree tree = new JTree();
            try{
                ObjectInputStream in = new ObjectInputStream(new FileInputStream("tree.info"));
                tree = (JTree)in.readObject();
                in.close();
            catch(Exception e){
                e.printStackTrace();
            return tree;
    }the code where i create new node as class' object
    public void actionPerformed(ActionEvent e) {
            String command = e.getActionCommand();
            if (ADD_COMMAND.equals(command)) {
                //Add button clicked
                book = new DefaultMutableTreeNode(new BookInfo
                (name.getText(),
                "file:///"+ System.getProperty("user.dir") + "/" + ID.getText() + ".html", Integer.parseInt(ID.getText())));           
                treePanel.addObject(book);
                name.setText("");
                ID.setText("");
    }my class BookInfo
    public class BookInfo {
            public String bookName;
            public String bookURL;
            private int bookID;
            public BookInfo(String book, String filename, int ID) {
                bookID = ID;
                bookName = book;
                bookURL = filename;
                System.out.println(bookURL);
                if (bookURL == null) {
                    System.err.println("Couldn't find file: "
                                       + filename);
            public String toString() {
                return bookName;
            public int getID(){
                return bookID;
            public void setID(int ID){
                bookID = ID;
        }thanks for attention ! :)

    Jos, thanks for answer :)
    Erm, get the TreeModel from the JTree, serialize it and later deserialize it and set it as the TreeModel for your JTree again?
    kind regards,
    JosHm, i save treeModel the same way, but when i (de)serialize treeModel from file i get clean tree
    my function to save treeModel
    class Save{
    public Save(){}
    public DefaultTreeModel loadModel(DefaultTreeModel model){
            try{
                ObjectInputStream in = new ObjectInputStream(new FileInputStream("tree.info"));
                model = (DefaultTreeModel)in.readObject();
                in.close();
            catch(Exception e){
                e.printStackTrace();
            return model;
            public DefaultTreeModel saveModel(DefaultTreeModel model){
            try{
                ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream("tree.info"));
                out.writeObject(model);
                out.close();
            catch(Exception e){
                e.printStackTrace();
            //return model;
    }and here i init tree with treeModel
    Save save = new Save();
    DefaultMutableTreeNode root = new DefaultMutableTreeNode(myObject);
    DefaultTreeModel model = new DefaultTreeModel(root);
    JTree tree = new JTree(save.saveModel(model));
    JPanel panel  = new JPanel();
    panel.add(new JScrollPane(tree));
    this.add(panel);Edited by: Tmrs on May 18, 2008 6:00 AM

  • Sometimes my email headers get crossed with bodies of other emails (next in the list), so how do I stop this from happening?

    We use Thunderbird with the email header list (Inbox, etc) in an upper pane, and the body of the highlighted email in a separate lower viewer pane.
    We compact files whenever asked by the software.
    In a long list of emails, I click on one header (at the top of the list) to view it in the pane below. Once in a while, the headers get mixed up and do not preview the proper email in the viewer pane.
    I will highlight and view an email, and then delete it. When this glitch occurs, the body of the deleted email appears in the lower pane when I click on the next email header in the upper pane list. The viewer pane should be showing me the new body of the just-highlighted email, but instead it shows the deleted body of the previously-viewed email. Once that new header is clicked, and the wrong body appears in the viewer pane, the proper email body disappears forever. I have to call my customer to have them resend.
    If I click on other emails further down the list, the same body (of the deleted email) continues to show up each time, and all the correct bodies of all the clicked headers are gone. So, phone calls have to happen to ask all the affected emails to be resent. (So, we have learned to stop as soon as we see it happen the first time.)
    The only way we have found to fix this is to close Thunderbird, and then reboot the computer. When Thunderbird is re-opened, the problem goes away. But any lost email bodies are permanently gone.
    We can't seem to find any strange set of events that make this happen. It appears random, and varied. Sometimes every week, sometimes not for months.
    This happens on 2 computers. One is a 2 year old PC (Compaq), and one is a 3 year old HP Probook laptop. Both currently using Thunderbird 24.5.0. Both run Windows 7. Both have lots of memory. Both are very stable machines with very few problems. Seems to be more prevalent on the Compaq desktop than the HP Probook.
    Please help.
    Thanks in advance.

    Do you organise your email into separate folders, or do you just let it accumulate in the Inbox?
    I would strongly advise you not to let it sit in the Inbox.
    When you see this happening, try right-click on the affected folder, select '''Properties''' then '''Repair Folder'''.
    Large folders (actually, a folder in Thunderbird is stored as a file, so it is sensitive to file size limits set by the underlying file system) can be problematic. This is one reason not to let messages collect in one folder. I use Thunderbird's Archive folders so that accumulated mails over several years can happily coexist because they are effectively stored in many small folders. No single mail store folder then exceeds the 2GB or 4GB sizes that have been known to stress the OS. I appreciate that current builds of Thunderbird and a modern 64-bit OS should be able to cope, but practically I find it slows down when given huge files, so I err towards a pragmatic solution; a large number of not very big files.
    Archives are searchable, and a Saved Search folder can give you a virtual composite folder allowing access to the entire Archive.

  • How to get the List of Database Objects (Table/View) for a given APEX Page.

    Hi,
    I have an application and that consist of pages like page1,2,3,.....
    *1.* I want a report which can give me the list of all the Pages1,2,3,....
    I am using the following query to acheive this.... THIS IS FINE..
    select a.workspace, a.owner, a.application_name, b.page_id, b.page_name
      from apex_applications a,
           apex_application_pages b
    where a.workspace = b.workspace
       and a.application_id = b.application_id*2. Now, I want for each individual page*, the list all the database objects (tables/views), which that page is using.
    I am using ALL_DEPENDENCIES , but I am not getting the result.
    So, want to know if there any view/table, where I can get the Application Pages & there database object list...
    Thanks,
    Deepak

    Hari,
    Thanks for the response.
    The view APEX_APPLICATION_PAGE_DB_ITEMS will only give me the table name related to any Page Items defined to that page..It will not give me all the database objects..
    suppose we have a Page, having a report based on multiple tables and there is no Page items defined on that page, we will not have any value in this ....DB_ITEMS table. same thing if we have define some PL|SQL(using some table/view) in a Process, that will not be populated in .....DB_ITEMS table. I want some thing like all the database objects (table/views/function/procedure/.....) for a particular Page ID.
    Thanks,
    Deepak

Maybe you are looking for

  • I want to make my macbook pro quicker

    My macbook pro had been slow for a couple of years now. And it has just got a whole lot worse. I downloaded an app, which I thought was something else. It has now attached itslef to Google Chrome and is sending my contact sspam aswell as opening hund

  • Accessing a file in Imported Archive from Adapter module

    Hi, I am designing a module for File/FTP and Mail adapters. Is it possible to retrieve data from a CSV or TXT file uploaded in the Imported Archive from the Java code in the module? If this is possible, do I use the same approach as accessing the CSV

  • To find the field in the work area and pass to some field

    Hi all, My Requirement is something like this . i have 2 records in my internal table and i the value which i require may be anywhere in that internal table . Eg.                  NODE     NODEDESC    PSPHI        PARENT      CHILD     ZLEFT       ZR

  • IPhone 4 unable to install new apps or updates

    everything in "Waiting" state. Tried signing out of App Store and back in. Tried various accounts. Restarted. Shut down all apps. On the latest iOS. Tried 3G and Wi-Fi. Deleted stuck "Waiting" installs and tried one-by-one. 8.5GB free space on phone.

  • HT5957 I can't update to IOS 7.0.2 on my IPad 4th Gen

    Can't upgrade to IOS 7.0.2 on my IPad 4th Gen because the default prompt in software updates is for 7.0 !  Does anyone know how to force a 7.0.2 update? I certainly don't want to struggle with the original pre-fixes 7.0 version ... Txs. PT