ViewObject do not retrieve all rows programmatically

Hi all
I use Jdeveloper version 11.1.2.1.0
I consulted a VO inside a bean managed by the following code
     
private void getEmployeeRowCount(){  
 BindingContext bctx = BindingContext.getCurrent();
 DataControl myAMDataControl = bctx.findDataControl("MyAMDataControl");
 ApplicationModule service = (ApplicationModule)myAMDataControl.getDataProvider();
 ApplicationModule myAM = service.findApplicationModule("MyAM");
 ViewObject employeeVO = myAM.findViewObject("EmployeeVO");
 System.out.println(employeeVO.getRowCount());
 }
At first it prints the actual number of lines in the t
But if I call this function after the I accessed EmployeeVO during execution (specifically when I change any value in EmployeeVO), the employeeVO.getRowCount () function returns the value 1

what I am doing wrong?

Thank you
Puneet

After you clear the view criteria to get the actual number of lines.
Try

vo.applyviewCriteria(null);
vo.executeQuery();
sop(" " +vo.getRowCount());

Tags: Java

Similar Questions

  • Journal [disposal] do not return all rows in the process log

    Dear experts,

    We are using HFM 11.1.2.1 and currently faced with the question regarding journal [disposal]. During development, all [disposal] journals were created in Jan - Sep. Then we have included the level of process until the published and lock us all features in Jan - Sep.

    Then, we add 1 figure in the Sep data but not affected to the consolidation. So we open for seven entities only and put the update data and resolder again. Building successful, so relock us entities. FYI, the environment that we used for Jan - Sep was the development, and move us in production using LCM and copy request. When we update the data of seven minors, we were in Production. When we do the data of October, we realize that any newspaper [disposal] disappeared in the process log screen, we saw a few lines were created, like 7 rows (while all the disposal should have like 50 lines), but everything is empty. It's coming for October and apparently September got in the same way. But for Jan - August (data still lock and never been opened yet) are still intact, log [removal] is here.

    Is there someone at - he had the same experience like this before? Data are ok, so in the table HFM, all data of the elimination is there, but we do not see only the journal in the process Log menu or in the newspaper States.

    FYI, this is the version of HFM errors log, I found:

    11.1.2.1.102.3324

    11.1.2.1.103.13641965.3552

    11.1.2.1.103.3505

    11.1.2.103.3505

    In our application, we apply a Consolidation rules = Y and that we had created a rules file contains our calculation, translation, consolidation, and the eliminations.

    Grateful if you could give me more information on this issue.

    Thank you

    Anna

    Hi all

    FYI: I got an answer to my own question. Apparently there is a bug in this version. so, after making a patch up to 600 and then try to copy the apps and re - run the rules file. Everything is here, no missing journal more.

    Kind regards

    Anna

  • 2540 DeskJet not print all rows in the column

    I am satisfied with my new 2540 Deskjet, except on the simple Excel documents it prints only a portion of the lines even if the grid is checked. This never happened with my old dell printer.

    Hi CathB123,

    Welcome to the HP Forums!

    If printing works well in other programs, I recommend this site, print gridlines in a worksheet. I would also try using the HP print and Scan Doctor, in which case there may be a driver conflict.

    Otherwise, if it does not help, please contact Microsoft Office technical support. The Agency supports, as I am not familiar with Excel.

    Good luck!

  • How to define adf transient tables attribute val for all rows programmatically

    Hello
    I did drag the data control of database on the page and added a transient attribute Boolean visibleFlage (true / false). There is the button on which I want to put all the lines visibleFlage to true or false by programming. How iterate through the iterator in the table and set the attribute for all lines as a fake or a real one.

    Published by: 925410 on July 2, 2012 02:33

    Check this: http://docs.oracle.com/cd/E14571_01/web.1111/b31974/bcservices.htm#sm0203

  • UTL_FILE.put_line cannot insert all rows

    As shown in the code below, I have for loops with the entrails of IF ELSE statement. How am I suppose to retrieve all rows in my csv file as currently, the csv file has only the last line inserted in the file?

    for c7_rec in C7 loop
    
    FOR C8_REC IN C8(c7_rec.PASSPORTNO) LOOP
    if l_loop8 = 0 then
    CASE  SIGN(C8_REC.AMOUNT) -- check amount negative or positive. If negative need refund to customer else customer owe starhub
         WHEN -1 THEN
    l_negative:=1;
    l_amount_negative:= C8_REC.AMOUNT;
    DBMS_OUTPUT.PUT_LINE(l_amount_negative);
    ELSE
    l_positive:=1;
    l_amount_positive:= C8_REC.AMOUNT;
    DBMS_OUTPUT.PUT_LINE(l_amount_positive);
     END case;
     
     IF l_positive=1 AND l_negative=1 THEN
     IF l_amount_positive < abs(l_amount_negative) then
     DBMS_OUTPUT.PUT_LINE('Positive smaller than negative');
    --l_amount_total:= l_amount_positive+l_amount_negative;
        utl_file.put_line(l_file,c8_rec.CUSTOMER_ID || ' ' ||C8_REC.CUSTOMER_ID|| ' ' ||l_amount_positive|| ' ' ||c8_rec.ohstatus);  
     Elsif  l_amount_positive > abs(l_amount_negative) THEN
     DBMS_OUTPUT.PUT_LINE('Positive bigger than negative');
     ELSE
      DBMS_OUTPUT.PUT_LINE('Nothing to offset');
     END IF; 
    --DBMS_OUTPUT.PUT_LINE(c8_rec.CUSTOMER_ID || ' ' ||C8_REC.CUSTOMER_ID|| ' ' ||C8_REC.AMOUNT|| ' ' ||c8_rec.ohstatus);
     --|| ' ' ||i.cscurbalance);
    l_loop8:=1;
    
    elsIF l_positive=1 AND l_negative=0 THEN
    
    --l_amount_total:= l_amount_positive+l_amount_negative;
        utl_file.put_line(l_file,c8_rec.CUSTOMER_ID || ' ' ||C8_REC.CUSTOMER_ID|| ' ' ||l_amount_positive|| ' ' ||c8_rec.ohstatus);  
    l_loop8:=1;
     elsIF l_positive=0 AND l_negative=1 THEN
    
    --l_amount_total:= l_amount_positive+l_amount_negative;
        utl_file.put_line(l_file,c8_rec.CUSTOMER_ID || ' ' ||C8_REC.CUSTOMER_ID|| ' ' ||l_amount_negative|| ' ' ||c8_rec.ohstatus);  
    l_loop8:=1;
     END IF;
     --DBMS_OUTPUT.PUT_LINE(C11_REC.AMOUNT||' '||C11_REC.PASSPORTNO||' '||C11_REC.OHSTATUS);
     end if;
     END LOOP;
    
        
        l_positive:=0;
     l_negative:=0;
         END LOOP;
            
       utl_file.fclose( l_file );
    CREATE OR REPLACE Procedure p_lee_test As  Cursor C7 Is    Select Unique Passportno      From j_lee_test;
    
      Cursor C8(p_Passportno12 Varchar2) Is    Select Unique Passportno,           Customer_Id,           Case             When Min_Sign = Max_Sign Then              Sum(amt) Over(Partition By Passportno Order By Passportno)             Else              amt           End Amount,           Ohstatus      From (Select Passportno,                   Customer_Id,                   amt,                   Min(Sign(amt)) Over(Partition By Passportno Order By Passportno) Min_Sign,                   Max(Sign(amt)) Over(Partition By Passportno Order By Passportno) Max_Sign,                   Ohstatus              From j_lee_test             Where Passportno = p_Passportno12)     Order By 1;
    
      l_Loop7           Integer := 0;  l_Loop8           Integer := 0;  l_Positive        Integer := 0;  l_Negative        Integer := 0;  l_File            Utl_File.File_Type;  l_Date            Date := Sysdate;  l_Amount_Positive Float;  l_Amount_Negative Float;  l_Amount_Total    Float;
    
    Begin  /*l_File := Utl_File.Fopen('UTL_TMP_DIR',                           'ZERORISATION_' || To_Char(l_Date, 'YYYYMMDD') ||                           '.csv',                           'w');*/  l_file :=  Utl_File.Fopen('/export/orautil/loguser/utl',                           'ZERORISATION_' || To_Char(l_Date, 'YYYYMMDD') ||                           '.csv',                           'w');  For C7_Rec In C7 Loop
    
        For C8_Rec In C8(C7_Rec.Passportno) Loop     -- If l_Loop8 = 0 Then        Case Sign(C8_Rec.Amount) -- check amount negative or positive. If negative need refund to customer else customer owe starhub          When -1 Then            l_Negative        := 1;            l_Amount_Negative := C8_Rec.Amount;            Dbms_Output.Put_Line(l_Amount_Negative);          Else            l_Positive        := 1;            l_Amount_Positive := C8_Rec.Amount;            Dbms_Output.Put_Line(l_Amount_Positive);        End Case;
    
            If l_Positive = 1 And l_Negative = 1 Then          If l_Amount_Positive < Abs(l_Amount_Negative) Then            Dbms_Output.Put_Line('Positive smaller than negative');            --l_amount_total:= l_amount_positive+l_amount_negative;            Utl_File.Put_Line(l_File,                              C8_Rec.Customer_Id || ' ' ||                              C8_Rec.Customer_Id || ' ' ||                              l_Amount_Positive || ' ' || C8_Rec.Ohstatus);          Elsif l_Amount_Positive > Abs(l_Amount_Negative) Then            Dbms_Output.Put_Line('Positive bigger than negative');          Else            Dbms_Output.Put_Line('Nothing to offset');          End If;          --DBMS_OUTPUT.PUT_LINE(c8_rec.CUSTOMER_ID || ' ' ||C8_REC.CUSTOMER_ID|| ' ' ||C8_REC.AMOUNT|| ' ' ||c8_rec.ohstatus);          --|| ' ' ||i.cscurbalance);          l_Loop8 := 1;
    
            Elsif l_Positive = 1 And l_Negative = 0 Then
    
              --l_amount_total:= l_amount_positive+l_amount_negative;          Utl_File.Put_Line(l_File,                            C8_Rec.Customer_Id || ' ' || C8_Rec.Customer_Id || ' ' ||                            l_Amount_Positive || ' ' || C8_Rec.Ohstatus);          l_Loop8 := 1;        Elsif l_Positive = 0 And l_Negative = 1 Then
    
              --l_amount_total:= l_amount_positive+l_amount_negative;          Utl_File.Put_Line(l_File,                            C8_Rec.Customer_Id || ' ' || C8_Rec.Customer_Id || ' ' ||                            l_Amount_Negative || ' ' || C8_Rec.Ohstatus);          l_Loop8 := 1;        End If;        --DBMS_OUTPUT.PUT_LINE(C11_REC.AMOUNT||' '||C11_REC.PASSPORTNO||' '||C11_REC.OHSTATUS);    --  End If;    End Loop;
    
        l_Positive := 0;    l_Negative := 0;  End Loop;
    
      Utl_File.Fclose(l_File);
    
    End;
    
    47817 47817 -.13 CO117587 117587 -17.5 CO240012 240012 -43.9 CM47265 47265 -489.76 IN47265 47265 220.24 DP
    
    your l_Loop8 = 0 for first time, but for other times its always 1...
    
  • all rows in the table are not eligible for the specified partition

    SQL > Alter Table ABC
    Exchange 2 Partition P1 with Table XYZ;

    Modified table.

    SQL > Alter Table ABC
    Exchange 2 Partition P2 with Table XYZ;


    P2 Partition Exchange with XYZ Table
    *
    ERROR on line 2:
    ORA-14099: all rows in the table are not eligible for the specified partition

    The exchange partition works fine for the first time. However, if we try to swap the 2nd partition it gives the error.
    How to solve this error?
    How can I find the lines which are not qualified for a specific part. is there a query to find out the same thing?

    >
    Well, exchange of syntax and logic is not clearly as it should (IMHO). There is no element of syntax that tells Oracle we want to Exchange partition data in a table that is not partitioned or not partitioned into partition table data.
    >
    What? Not sure where you got that but maybe it was before you had first cup of coffee? ;)

    An "Exchange", it's just that; an Exchange. Partition data end up in the non-partitioned table and vice versa. It is meaningless and totally obsolete if "we want Exchange partition data in a table that is not partitioned or not partitioned into partition table data".
    >
    It was decided by Oracle not partitioned table control. If the non-partitioned table is empty, it means you want to Exchange data partition in a non-partitioned table. And if not partitioned table is not empty, it means you want to Exchange data in the table that is not partitioned into partition.
    >
    There is no decision to make. The segments are swapped. Oracle doesn't check, know or even care if one or the other or both segments are empty. 'Control' which is carried out (by default except if NO CONTROL is used) only consists of ensuring all the data in the segment intended for the partition belongs to this partition.

    It is what gives the example of John. This can NEVER work if table1 is empty unless p1 is empty at the beginning:
    1 Exchange p1 with table1
    2 Exchange p2 with table1

    As John explains, assuming that no other operations are trying to put the data from p1 P2 which is not possible if p1 actually contains data.

    You can save it for next April 1!

  • ADF Table retrieves all lines during the loading of the page

    Hello

    We have a requirement where we need run the query programmatically by giving the query column and its value.

    I used the code below in the AMimpl.java and calling this method during the click on the button Search my Search Page.

    I am able to get the features you want on the search page by clicking the search button.

    The question now is when the page initially loads, the table fetches all rows of the VO by default.

    Can you please let me know where I need to change so that the table will get no line on the initial load of the page?

    ' public void setVoParams (String columnName, String columnValue) {}

    ViewObject mapVO = this.getFusionSapMapping1 ();

    String whereClause = "MappingEO." + columnName + "" as: colValue ";"

    mapVO.setWhereClause (whereClause);

    mapVO.defineNamedWhereClauseParam ("colValue", null, null);

    mapVO.setNamedWhereClauseParam ("colValue", columnValue);

    mapVO.executeQuery ();

    }

    Hello

    You don't tell us your version of JDeveloper.

    An easier approach to implement your condition is to use the property refreshCondition of your iterator. Here is an example of how do: https://blogs.oracle.com/shay/entry/delay_method_execution_when_us

    Antonis

  • List of values do not fetch all records are read only 25 records of entry

    I have a vo... on which an attribute is to have a list of input values that came from other vo called peoplesearchvo...

    On the user interface, I get only 25 records in the list of input values... I tried several things but still did not work

    in the peoplesearchvo... Tuning part I gave all the rows in batches of 20, according to the needs... Mode... scroll and rangesize = 1

    On the user interface in the section of links to the properties of the iterator, it is rangesize - 25 and updating is the (delay) default mode.

    I did not change when even... I get only these 25 records failed to retrieve all records, even after I scroll down.

    Can you get it someone please let me know about it

    Thank you

    Yes, it is a bug in the ADF (fixed in 11.1.1.7.0).

    If you have oracle support account, see note: 1456824.1

    According to this note, you need to patch 13924897

    Dario

  • Table is not fetch all the data of the VO at a time?

    Hello world

    My version of Jdev is 11.1.2.3.0.
    I developed page ADF that has a single Table that should show all the data in the original Version at the same time.
    The table has vertical and horizontal scroll bars. And the VO has more than 900 documents.
    The question is, at the start when loading the page table shows 20-25 records then when I try to scroll down and then the data is going to look this day there ("retrieving data" message) by which its takes a long time to see the data because its extraction at the time where I scroll down.
    How can I avoid this?
    How will I be able to retrieve all data from VO (all 900 records) by which when I scroll data should not look at this time?

    And also increases the size of the table and is based on the data when I scroll down.
    How can I avoid this?
    How can we fix the size of the table regardless of the content?

    All suggestions will be really useful...


    Thank you.

    The message «Retrieving data...» "is issued by the client component of table rich user interface when it retrieves data of the server-side model component lines in its local buffer of lines. Even if the server-side model component has recovered all the rows from the database (e.g. VO has recovered all of the rows from the database in the cache of the VO), the client component of table UI does not download all of them locally, but it downloads as needed into portions whose size is controlled by the attribute 'fetchSize' of the table. By default, the 'fetchSize' attribute is set to the value of the property "rangeSize' of the corresponding mandatory ADF iterator (whose default value is 25). In this way, if you scroll to the bottom of the table of the UI after the 25th row, the table would download the next set of 25 lines of its components side server model (and it then displays the message "retrieving data... ('') and so on.

    If you want to avoid downloading frequent of the next rowset of the component side server model to the customer table component user interface, you can set attribute 'fetchSize' of the table to a more fixed, for example:

    
    

    In this way, only the client user interface table would download locally 1000 lines (if there are so many existing lines, of course) and it won't download more rows until you scroll the table after the 1000th line (when it would download a next series of 1000 lines).

    Be wise when the setting 'fetchSize' of the table to a large number, because more the 'fetchSize', greater would be the size of HTTP, the longer answer response would be and more memory at the customer level would be consumed for the customer table buffer. Note that-1 (for example "get all") is not a valid value for the attribute 'fetchSize '. If you set it to-1, it will default to 25.

    Dimitar

  • ADFDI-05577: could not retrieve the data table on the server.

    Dear all,

    My use case is, when I opened my excellent work book, I have this error message is out ' ADFDI-05577: could not retrieve the data table on the server line "and when I click on the button 'OK' of the error message I can recover all the data on the server. Please help me how to solve this error?


    Concerning
    KT

    Thanks much Sireesha Pinninti, John Stegeman, Arun.

    Yes, my problem is of subquery. I found a solution from this site.
    http://www.DBA-Oracle.com/t_ora_01427_single_row_subquery_returns_more_than_one_row.htm,
    http://srinisboulevard.blogspot.com/2010/04/ora-01427-single-row-subquery-returns.html
    http://StackOverflow.com/questions/3804850/erroneous-ora-01427-single-row-subquery-returns-more-than-one-row / / the answer is the last line

    Before change (error subquery)

    CheckingEO.BO,
    (SELECT ntr_no FROM test
    WHERE cs_no = CheckingEO.CS_NO) NTR_NO
    To archive the CheckingEO

    Edit it like this

    (SELECT ntr_no FROM test
    WHERE cs_no = CheckingEO.CS_NO and Rownum = 1) NTR_NO
    To archive the CheckingEO

    Concerning
    KT

    Published by: KT on 23 May 2012 15:35

    Published by: KT on 23 May 2012 15:48

  • Is there an automatic procedure to retrieve all the drivers on the Satellite U200?

    I have re-installed XP on my Satellite U200 and lost all drivers and settings. Is there an automatic procedure to retrieve all the? I'm a bit mazed by 52 varieties of the drivers available on the support web site.

    Thank you.

    Alexey.

    You are going to use the Toshiba Recovery CD or will allow you to install all the drivers manually.
    I guess the recovery with XP CD is not available for this laptop and therefore only the manually installation is possible

  • Insider source subscription. Could not retrieve the client certificate

    Hi all

    I created subscription source initiated between two Windows 2008 R2.

    The source (client) cannot connect to the server. Logs on the client:

    Send the request for operation to the destination machine enumeration and the server.corp.domain.com:5986 port

    Authenticate the user using the Client certificate mechanism

    User authentication failed. The credentials did not work.

    Has received the answer of the layer network; status: 401 (HTTP_STATUS_DENIED)

    WSMan enumeration operation failed, error code 5

    Opens a session on the server.

    Sending HTTP error to the client after a failure of transportation.
    The HTTP status code is 503
    The error code is 995

    Could not retrieve the client certificate

    Send the HTTP 401 response to the client and disconnect the connection after sending the answer

    The user authorization failed with error 5Authorizing the user

    Authentication using client certificate with the client.corp.domain.com object is successfully

    How to fix the error "unable to retrieve the client certificate?

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Trash do not empty all...

    Trash... do not empty it says you want to delete these items, I click Yes, then he said deleted 5 items (2,22 GB), but at the bottom it says ' of recycle bin found 0 items (0 bytes)

    Even thought there are 5 elements that's big 2 GB... the only way I can fix it it is restarting boring reeeally he envisions is a trash and should not have to restart.

    I had this problem once before, but then I discovered I had 2 virus spyware, deleted and has managed to recycle without problem... However, I don't have a virus because I scanned with avast and malwarebyte. Is there a way this can be fixed without me having to restart annoyingly just to be able to empty the bin.

    (no idea if I chose the right topic, interview seemed a good choice for recycling)

    Hi RazoRReD

     

    Method 1:
    You can perform a scan of the SFC (System File Checker). It lists all the issues and will also retrieve all files if necessary. Follow the steps below to p Ed a SFC Scan -.

    a. click Start, click programs, on Accessoriesprincipally made, right click guestand then click run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click Allow
    b. type the following command and press ENTER:
    sfc/scannow
    A message appears indicating that "the system scan will start. Be patient because the scan can take some time.
    c. If all files require a SFC replace will replace them. You may be asked to insert your Win7 DVD for this process to continue.
    d. If everything is correct you should, after the scan, see the following message "resource protection Windows not found any breach of integrity".
    e. once the scan is finished, close the command prompt window, restart the computer and check.

    Check the link below for further guidance on scan SFC - mentioned
    http://support.Microsoft.com/kb/929833

    Method 2:

    You can perform a clean boot and check. To perform the clean boot follow step 1 mentioned in the article below, and then try again check in the clean boot state -

    http://support.Microsoft.com/kb/929135

    If the problem is resolved check which service non-Microsoft is the source of the problem; referring to article and following the other steps.

     When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    a. Click Start, type msconfig.exe in the start search box and press ENTER.
    If you are prompted for an administrator password or for confirmation, type your password, or click on continue.

    b. on the general tab, click the Normal startup option and then click OK.

    c. When you are prompted to restart the computer, click on restart.

    Method 3:

    If the problem persists, you can check if you are facing the same question in the user account new or different administrator account.  You can create a new user account on your computer, and then check.

    Create a new user account-
    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

    If you are not faced with the same question in a new user account, you can view the link below and use the steps provided to fix a corrupted - user profile
    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

    I hope this helps.

  • Browse all rows with the pagination of the range

    Hello

    JDev 11.1.2.4

    I have a VO with paging range there 175000 rows. In this VO, I have an attribute transitional to check if a line has been selected by the user or not. In the user interface, I have a button that selects all lines (not only the one on the screen). I create a method in the VO I called managed bean:

    public Integer selectAll (Boolean selected) {}

    Integer selectedRowsCount = 0;

    RowSetIterator rsIterator = createRowSetIterator (null);

    rsIterator.reset ();

    While (rsIterator.hasNext ()) {}

    Line MyViewRowImpl = (MyViewRowImpl) rsIterator.next ();

    If (selected & &!) "{CAN". {(Equals (Row.getStatus ()))}

    row.setMark (selected);

    selectedRowsCount ++;

    } else {}

    row.setMark (selected);

    }

    }

    rsIterator.closeRowSetIterator ();

    Return selectedRowsCount;

    }

    I get the following exception

    oracle.jbo.InvalidOperException: Houston-25083: cannot create an iterator secondary to put place in MyView1 as the access mode is before or only range-paging

    at oracle.jbo.server.ViewRowSetImpl.createViewRowSetIterator(ViewRowSetImpl.java:1461)

    Is it possible to browse all rows with a paging range VO?

    Thank you

    Well, in addition to the solution given by Cvele_new_account I can tell you that it will be problematic. If you browse through all lines read you all the lines of a beach in memory, set the flag and must save the transitional attribute when you go to the next track. This will consume the time and space.

    You should think about how you can implement the use case (which did not disclose you) without iterate on the entire rowset. For example, you can die the selectAll flag in a bean and check if it is set before the page is displayed, and then logically define the checkbox via el.

    Timo

  • Optimal code to retrieve all the virtual machines in a ResourcePool

    Hi all

    What is optimum (fastest) encode during extraction of all virtual machines in a Resource Pool?

    I have this:

    $myVMs = get - vm | where {$_.} ResourcePool - eq "MYRP"}

    [1]

    Is this actually retrieve ALL virtual machines first and then filter on the second resource pool (in which case it would be 'slow')?

    I also have this:

    $myRP = get-resourcepool "MYRP".

    $myRP.extensiondata.vm

    This generates the MoRef VM.

    [2]

    How do I use get - view then pull only information on those specific MoRefs and has this method might be considerably better than the get - vm method detailed above?

    Notice-EEG - viewtype property VirtualMachine MoRef does not work

    Kind regards

    marc0

    Hi Marco,.

    (1) Yes, this call will be all first retrieve all virtual machines and then filter on the resource pool property.

    I suggest using the following call which retrieves only the virtual machines in the desired resource pool. This will give you better performance:

    $resourcePool = get-ResourcePool "MYRP".

    Get-VM-location $resourcePool

    # Or you can use this:

    Get-VM-location "MYRP".

    (2) you can use Get-View to retrieve objects by MoRef like this:

    $vmViews = get-view-Id $myRP.extensiondata.vm

    # If you need VM objects rather than their point of view, then you must also do the following:

    $vms = $vmViews | Get-VIObjectByVIView

    Kind regards

    Dimitar

Maybe you are looking for