How to handle make current for programmatic VO

I have a view object that populates row-sets based on a procedure. The procedure returns an oracle object list, which I am able to convert to the View Object's row.
The executeQueryForCollection() runs my procedure stores my data using
    protected void executeQueryForCollection(Object qc, Object[] params,
                                             int noUserParams) {
        Object[] bind_variable = null;
        String qry =
            "begin hr.PROC_test(:1); end;";
        try {
                CallableStatement stmt =
                    getDBTransaction().createCallableStatement(qry,
                                                               getDBTransaction().DEFAULT);
                stmt.registerOutParameter(1, OracleTypes.ARRAY,
                                          "hr.TEST_REC_TABLE");
                stmt.execute();
                Array arr = stmt.getArray(1);
                Object[] array = (Object[])arr.getArray();
                ROW_COUNT = array.length;//my way to get estimated row count, since the row count for my result set is unpredictable. max of 3000 records
                rs = arr.getResultSet();
                storeNewResultSet(qc, rs);
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            super.executeQueryForCollection(qc, params, noUserParams);//I don't know whether this is really required
    private void storeNewResultSet(Object qc, ResultSet rs) {
        ResultSet existingRs = getResultSet(qc);
        // If this query collection is getting reused, close out any previous rowset - got from below link
        if (existingRs != null) {
            try {
                existingRs.close();
            } catch (SQLException s) {
                s.printStackTrace();
        setUserDataForCollection(qc, rs);
        hasNextForCollection(qc); // Prime the pump with the first row.
    }The View object is used in a page as a readonly table.
Now the problem I am facing is :
When I select a row, the make current property of table gets fired. This will call executeQueryForCollection with an additional param (bind variable) with name "fbkKy__0" (i believe it is find by key) and value : my current row's key value.
Since my executeQueryForCollection is called, the procedure gets executed again(This is also not required because, the procudure does takes time, and is not required to re-execute always).
The UI table will show the selection, but my iterator is pointing to the first row. And as a result am not able to get the current row in the bean.
I developed the above VO based on below link and the fusion middle ware developer's guide.
ref : http://adfpractice-fedor.blogspot.in/2011/01/adf-bc-programmatically-populated-vo.html
ADF 11.1.1.3.

executeQueryForCollection can be executed because of passivation/activation process. When you're selecting a new row in the table, the AM is going to be activated and VO instances are going to be refreshed. So, in case of passivation/activation, it's ok if your executeQueryForCollection is being executed again. But the strange fact is that you loose the VO's current row. The current row should be passivated as well and after the activation process the VO instance should have correct current row. That's why I asked about primary key. Actually, I emulated the situation and everything works fine, the current row is correct after the activation.

Similar Messages

  • How I can make actions for write the file name in front image

    Hello All
    How I can make actions for write image(file)  name in front the image automatically in photoshop cs3.
    Thanks

    This script tutorial might be helpful:
    http://av.adobe.com/russellbrown/CaptionMaker_SM.mov

  • How do I make payment for Creative Cloud when monthly payment declined?

    How do I make payment for Creative Cloud when monthly payment declined?

    In this forum, we can't help with purchasing issues.
    My suggestion is to call that phone number.

  • How to handle event structures for two buttons and two counters.

         *I have two buttons A and B, and have to compare the difference in hits between them.  So do I place an event structure within a while loop for each button (2 buttons, 2 event structures, 2 while loops), or does it need to be one event structure with cases for both buttons whithin one while loop? 
         *How do I pass the values of buttons A and B's hit counters out of the while loop in order to calculate the differences between them after each increment, not just the final count after the stop button is hit? 
         *How would I make one stop button work to handle both buttons A and B?   I tried to place the actual stop button in one button A's structure and its global in B's structure, but It wont seem to let me use a local variable for a latchable control
    Checker

    You should probably have not started a new thread and waited until your question in the original thread was answered. You can modify altenbach's example for a second button. You have a single event structure with a new event for the second button. You have a second shift register to track the number of times the second button is pressed. Inside the while loop but outside the event structure, you just have a subtract function in or to report the difference. do not modify the posted example for the stop button. It works perfectly as is.

  • How do I make groups for texting multiple people at a time and retain that group for future use?

    How do I make goups, in Contacts, for texting multiple people at a time and retain that group for future use?

    How do I make goups, in Contacts, for texting multiple people at a time and retain that group for future use?

  • How can we make Delivery for Blocked Dealers

    Hi,
    We want to make Delivery for Blocked Dealers, but not want print the Invoice. Means we want till Delivery for Blocked Dealers.
    How it can be done??
    Regards..
    Edited by: @ABAP@ on Sep 29, 2009 1:15 PM

    When i go in XD05, and insert Customer and Company code...and click Sales Area, there i saw one thing that Distr. Channel is like CD, DD, SS, ST but in Division, there is 00 value in all rows...showing like this..
    Distr. Channel.......Division
    CD...........................00
    DD...........................00
    SS...........................00
    ST...........................00
    After that when i want to create the sales order through VA01, there insert Order Type OR and enter. Insert Sold-to-party and Ship-to-party same and hit enter. Here, it asked sales area for customer...BUT HERE IN DIVISION 00 NOT SHOWING. Here showing like...
    Distr. Channel.......Division
    DD.........................CP
    DD.........................IA
    DD.........................MS
    DD.........................SP
    SS.........................CP
    SS.........................IA
    SS.........................MS
    SS.........................SP
    Please see, here is not 00 under Division. I think problem is there...
    Please suggest...

  • How to handle SQL code for Daylight Savings for MST Time zone

    Hi,
    1. My time zone is MST. My data showing differently as day light saving started from November. Please help me how to handle these issue.
    2. After Mar 09 2014 Daylight saving going to end.( For this how to handle in the SQL codes)
    Please answer for the above 2 doubts.
    Thanks in advance.
    Regards,
    LuckyAbdul

    Hi Abdul,
    Daylight saving is basically like switching to another timezone. If your normal time zone is Mountain Standard Time (MST), you will switch to Mountain Daylight Time in the summer.
    If daylight saving or timezones are a concern. It is best to store your dates in a DATETIMEOFFSET(0) column. This data type includes the offset between your selected timezone (MST or MDT) and UTC. The offset between MST and UTC is -7 hours and the offset
    between MDT and UTC is -6 hours.
    Be sure to datetimeoffset(0) and not just datetimeoffset. datetimeoffset(0) uses 8 bytes to store it's data (same as datetime), but datetimeoffset uses 10 bytes. This is especially important if you are going to index this column.
    Also be sure to use a similar data type in your application or the timezone information will be lost. If it is an .Net application you should use The DateTimeOffset type. Most other programming languages have equivalent types.
    Hope this helps. If you have anymore questions please let me know.
    For more information see:
    http://msdn.microsoft.com/en-us/library/bb630289.aspx
    http://msdn.microsoft.com/en-us/library/ms187819.aspx
    http://msdn.microsoft.com/en-us/library/system.datetimeoffset%28v=vs.110%29.aspx

  • How to handle "Validation failed for the field - Tax code" issue?

    We had mass uplaod the order that create on Mar with tax code effective date on Apr. Now we would like return on this order  and getting error of "Validation failed for the field - Tax code". How to handle this issue?

    Hi
    You will have to check if the Tax_Code of RMA being received is the same as the one in the related sales order.
    If not you will need to use the same tax_code.
    Refer below document : Doc ID 1584338.1

  • My Tom Tom app can't update as it tells me I haven't enough space for it, how can I make space for the update?

    I didn't think that I have that much on my iPad , but I can't seem to understand how to make room for this update.  If I delete the app and try to reload it will I have lost this app and data and have to re buy it

    Hello there Frenchyfile,
    I would suggest freeing up some space on your iPhone either from the Music app, or podcasts with this:
    Delete a song from iPhone: In Songs, swipe the song, then tap Delete.
    From: iPhone User Guide page 61
              http://manuals.info.apple.com/en_US/iphone_user_guide.pdf
    The same steps to delete a podcast apply for the podcasts app.
    You can also free space by deleting other Apps on the iPhone
    Remove app
    If you are having issues with a particular app, try removing the app from your iPhone.
    To avoid losing any app data, first back up your information.
    Touch and hold any app icon on the Home screen until the icons start to jiggle.
    Tap the "x" in the corner of the app you want to remove. You may be prompted to rate the app.
    Tap Delete to remove the app and all of its data from your iPhone.
    Click the Home button to cancel or stop deleting apps.
    Proceed to the next step to reinstall your app.
    From: Using apps on your iPhone
              http://www.apple.com/support/iphone/assistant/application/#section_5
    Also you can delete photos or videos from your Photos app.
    View your Camera Roll album: Swipe to the right, or tap the thumbnail image. You can also view your Camera Roll album in the Photos app.
    ...
    • Delete a photo or video: Tap
    From: iPhone Users Guide page 75
              http://manuals.info.apple.com/en_US/iphone_user_guide.pdf
    Also keep in mind, if you bought this app from the App store, you can download it free of charge again if it needs to be re installed.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    All the very best,
    Sterling

  • How to handle multible lineitems for BAPI_PO_CREATE

    Dear Guru's,
    please help to how to handle multible lineitems using bapi_po_create when we using transcation ME21N

    Hi ,
    u just need to use POITEM table itself , u can add multiple lines into this internal table.
    regards
    Prabhu

  • How to handle LostFocus event for TextField in J2ME?

    Hi:
    I want to handle LostFocus event for TextField in J2ME.
    So can anybody help me.....
    Thank You

    MIDP API does not have LostFocus event.
    You can try setting ItemStateListener for the TextField ([if needed, click here for details|http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/lcdui/ItemStateListener.html]). API requires that +"...For implementations that have the concept of an input focus, the listener should be called no later than when the focus moves away from an item whose state has been changed. The listener should be called only if the item's value has actually been changed...."+

  • How to handle the current row with radio button selection???

    Hi Everyone,
    I have one ADF page with one table and one "Find" button.
    I have created one new attribute with VARCHAR2(1) in the VO and dragged that attribute as first column in the table. And changed that first column to Radio Button to select only one row at a time.
    Upon clicking on the "Find" button i need to get the values of current selected row.
    How can i get the values of selected row?
    What code should i write to get the values of selected row in Method Binding of "Find" button?
    Any suggestions will be really useful.
    Thanks.

    Hello Kumar,
    I have some comments on your case.
    >
    I have created one new attribute with VARCHAR2(1) in the VO
    >
    1- You should create this attribute in the Entity object and then add it to the view object.
    2- Do you need that only one radio button is set at a time for all rows ? If yes then you need to handle the case when the user set more than one row and clear the value of the attribute for all other rows.
    >
    How can i get all the values of current row in backing bean method(method binding of Find method)?
    can u plz provide me the code for that?
    >
    If you mean by the current row is that the row with its value of the selected attribute is set (the radio button is set for that row), then you can write a method in the viewObjectImpl class and expose it to client interface and call it from your bean.
    here is an example based in Department table in HR schema.
    //This method is written in DepartmentsViewImpl   
    public Row getSelectedRadioRow(){
                //create a second row set to not impact the row set used in ADF
                RowSet duplicateRowSet = this.createRowSet("duplicateRowSet");
                //get the current row of the table to set it back after re-executing the VO
                DepartmentsViewRowImpl currentRow = (DepartmentsViewRowImpl)this.getCurrentRow();
                Row[] filteredRows = duplicateRowSet.getFilteredRows("IsSelected", "1");
                DepartmentsViewRowImpl row=null;
                if(filteredRows.length>0){
                    row = (DepartmentsViewRowImpl)filteredRows[0];
                    System.out.println("Department Name " + row.getDepartmentName());              
                this.setCurrentRow(currentRow);
                duplicateRowSet.closeRowSet();
                return row;           
            }

  • How to handle DPX files for transfer to another party across the country.

    Hi,
    I'm currently working with somebody that is on the other side of the country to do some positing work for my Premiere Pro progect.  There are 31 shots that need some compositing work.  I have already created the DPX files that I will be sending him, however, the total size of all project files is 33gigs.  Now, I decided to zip the files up and send that way.  Then it hit me, when I zipped up the thousands of individual DPX files I will be sending him, the compressed way down, like 8-1 (from 33gb to 7gb). The full project ended up being  I sent him one small batch of files, he opened them, and said they did not seem as though they lost any resolution, but I'm more concerned with color information being lost.  So, my question is this...When I zipped up the files, did I lose anything.  The unzipped back to the appropriate size (roughly 9mb per frame), and he said he could not see any loss in the image.  However, my concern is that when I go to bump up exposure on a couple of shots that were lost, Im going to be dealing with artifacting, and working with a lot less information than the original DPX files contained. 
    Did I lose information when I zipped up the DPX files?  
    Please help.  I may end up just fedexing him a hard drive full of media, but then I have to worry about shipping a flash drive with my media on it. 
    Thanks in advance for ANY and ALL assistance. 

    Did I lose information when I zipped up the DPX files?
    Nothing at all.
    ...my concern is that when I go to bump up exposure on a couple of shots that were lost, Im going to be dealing with artifacting, and working with a lot less information than the original DPX files contained.
    Zip only compresses the binary data that makes up the image...
    there is no compression of the image at all.
    After your co-worker completes the composites,
    he should zip them up to send them back to you.
    No worries.  I do this all the time.

  • How to handle second request for addition to same AD group at code level?

    I am using custom java code for adding group memberships to users based on multiple multi-valued attributes.
    Example: Location Code is a comma separated multi-valued field in OIM User Form and I need to kick off my code each time the attribute is updated.
    If only 1 value in the LocationCode changes, I want to only add users to the group for this value not the older values that have not changed.
    How do I handle this scenario where the code adds the user to the same group twice in OIM. In AD the user is only added once. Do I need to write additional code to read all existing groups of the user, compare them with the new requests and then add new groups?

    Not a big deal.
    Create a trigger in Xellerate users process defn. There u'l get option for old and new value. take both values and compare both values using stringtokenizer and update the child form or group membership.

  • How to handle warning message for the fields in tab merging , PERSONAS 2.0

    Hi all,
    Please advice me on the below issue.
    In a transaction VA32 , I have merged the fields from one tab to another tab using tab caching.
    when i try to change the value of  a merged fields , it throws the warnings message. So it is continuously looping from one tab to another tab.
    So i tried to use the additional editor concepts in tab caching as below.
    Looping is stopped and throws warning message in the same tab.
    All the changes are saved successfully only when the enter button is clicked once in the main screen, else the changes are not saved and my previous value remains.
    Anybody have an idea on how we can use Additional actions in Tab caching concepts.
    Thank you,
    Arun

    Hi Kranthi,
    When i try to save the fields which i merged from different tab is not saving.
    Please find the below details.
    Green highlighted fields are custom fields which is merged from different screen like header or item overview screen. This is handled in script button.
    Red highlighted fields are merged from different tab like shipping or sales using tab caching concept.
    While changing the value of the fields which is merged from different tab , and press ENTER then it throws the Warning message if occurs.
    After warning message, if i try to save using the script button for copying all the custom fields which is merged from different screen , pasted it to their respective screens and also saved.
    Its working fine.
    When i try to save it before pressing ENTER button then the respective changes had made in the merged fields from different tab are not reflected.
    How we can handle this issue?
    Thank you,
    Arun

Maybe you are looking for

  • How do I get PDF files to *automatically* save as the file name provided by the source?

    When I download a PDF file in Firefox, the file name changes from whatever name source used (e.g, important-report.pdf) to a miscellaneous group of characters (e.g., X2ba5zt.pdf). I often want to save the file using the 'source' name. I realize that

  • HOW to emphasize the row selected in a different colour

    Hi all, there is any way to set the selected row in a table in a different background-colour? i want to emphasize the row selected by user, i try this: <af:column headerText="#{res['abogados.nombre']}" sortProperty="Nombre" sortable="true" binding="#

  • T22 Faint/Dim Screen

    I have a T22 that works fine except the screen is VERY dim and can hardly be seen. It shows a very faint picture. Any ideas as to what may be the problem? I found some post mentioning a bad "inverter". I have an external LCD monitor connected and wor

  • Using Jakarta HttpClient API for HTTPS file upload

    Any code sample on how to upload a file via the Jakarta HttpClient API? I tried the PostMethod, not sure I used it right, got response msg from the server response code 301, which indicated the file had been permanently moved. What did that mean? Bes

  • Group by month of the date

    I need to generate a report based on the month of a date field.its look like month arrived patients May 100 june 129 July 154 How can i write the group by select command on the field of a date. Kindly help me.