ÖAF - loop through a vo and get values of attribute associated with line

HI people,

I need code of the OPS to loop through a VO and retrieve the values of attribute associated with each line.

I use following code in AM after - vo.invokeMethod ("initQuery", params, classes) - line.

for (loop = 0 int; loop < vo.getRowCount (); loop ++) {}

Line resultRow = vo.getCurrentRow ();

If (resultRow! = null)

System.out.println ("" + (String) resultRow.GetAttribute ("PARTYID"));

}

-resultRow - is done with the null value.

Please share the code to achieve this.

Thank you

NGO

You must call vo.next () to move to the next row, but this isn't a good method.

You can browse the lines of the vo in two aspects.

First one uses an iterator that is more reliable because it does not change the current line. You must create the java vo RowImpl file to do this.

int fetchRowCount = vo.getFetchRowCount();
voRowImpl row = null;
if (fetchRowCount  > 0) {
    RowSetIterator iter = vo.createRowSetIterator("Iter");
        iter.setRangeStart(0);
        iter.setRangeSize(fetchBidderRowCount);
        for (int i = 0; i < fetchBidderRowCount; i++) {
            row = voRowImpl iter.getRowAtRangeIndex(i);
             //use RowImpl getters
             Number personId = row.getPersonId();
    }
    iter.closeRowSetIterator();
}

Second, one is your method proper form:

for (Row row = rowsVo.first(); row != null; row = rowsVo.next()) {
     Number personId = (Number)row.getAttribute("PersonId");
}

Kind regards

Anil.

Tags: Oracle Applications

Similar Questions

  • How can I delete my documents and get rid of my thinkpad with windows 95?

    How can I delete my documents and get rid of my thinkpad with windows 95?

    If there is anything physically wrong with your computer, you can use Darik Boot and Nuke (DBAN aka) to make a scrub of the security of your HARD drive. Glance to download here.

    This will leave Nothing on the HARD drive. You can take the time to reinstall an operating system, but at the very least, the new operating system should be Win 98SE or higher.

  • My Hotmail has recently begun to generate drafts and get into my project folder with the title 'unknown '? Someone knows why?

    WINDOWS HOTMAIL

    My Hotmail has recently begun to generate drafts and get into my project folder with the title 'unknown '?  Someone knows why?

    Any Hotmail questions belong to http://windowslivehelp.com/product.aspx?productid=1

  • Can I use Illustrator to draw the outline of a photograph and get an outline of art beautiful line of items in the photo?

    Can I use Illustrator to draw the outline of a photograph and get an outline of art beautiful line of items in the photo? I tried to do this by using the Trace of the Image, but I can't select the paths that result and assign a stroke to path. How can I do this?

    Please see the photo

  • Query to find the Pages and the list of permissions associated with a particular role in PS

    I want a query to find the Pages and the list of permissions associated with specific roles in PS.

    For example, if we see the role of manager accounts payable, it conatins Pages and the list of permissions.

    But, to get everything in EXCEL sheet by Manuel priocess's BIG job. So, can someone give me the query.

    Please try under queries

    The roles assigned to the list of Perm:

    SELECT B.ROLENAME

    OF PSCLASSDEFN A, PSROLECLASS B

    WHERE (A.CLASSID = B.CLASSID

    AND A.CLASSID =: 1).

    List of Perm pages can access:

    SELECT B.MENUNAME, B.BARNAME, B.BARITEMNAME, B.PNLITEMNAME, C.PAGEACCESSDESCR, B.DISPLAYONLY

    OF PSCLASSDEFN A, PSAUTHITEM B, PSPGEACCESSDESC C

    WHERE (A.CLASSID = B.CLASSID

    AND A.CLASSID =: 1

    AND B.BARITEMNAME > ' '

    AND B.AUTHORIZEDACTIONS = C.AUTHORIZEDACTIONS)

  • I get the configuration error associated with a licence of Photosaop CS5. Error: 213:5

    I get the configuration error associated with a licence of Photosaop CS5. Error: 213:5

    This error is due to a permission problem.

    http://helpx.Adobe.com/x-productkb/policy-pricing/activation-error-cod es.html

    Please follow the instructions in the following link to resolve the issue:

    http://helpx.Adobe.com/x-productkb/policy-pricing/configuration-error-CS5.html

    Kind regards

    Ashutosh

  • In a table - looping through the rows and the stored procedure call

    APEX version: 3.2.0.00.27

    Hello

    I searched the forum and tried a few things but could not make it work.

    I have a tabular presentation, developed with the help of the ATD (Cascading LOV - method of tabular presentation - AJAX - ATD )

    What I'm trying to do now:
    -After submit and validations, loop through all the lines and
    -call a stored procedure passing 3 parameters obtained from each of the lines on the form of tables. This procedure will be an update of a database table.

    On the forum, I found that I could do the loop "* FOR i IN 1..." APEX_APPLICATION.g_f03. "LOOP COUNT *" syntax.

    Only for testing purposes, I tried just to view information with the following (On Load - after a footer) process (example of Denes Kubicek == > http://deneskubicek.blogspot.com/2009/05/execute-javascript-throuhg-plsql.html):
    declare
      v_today  varchar2 (200);
    begin
    --  :P40_test := APEX_APPLICATION.g_f03(1);
    --  :P40_test2 := APEX_APPLICATION.g_f04.COUNT;
      :P40_test2 := 100;
    
      v_today := to_char (sysdate, 'dd.mm.yyyy');
    
    --FOR i IN 1.. APEX_APPLICATION.g_f03.COUNT LOOP 
    
      :P40_test := APEX_APPLICATION.g_f02(2);
    
      HTP.p ('<script type="text/javascript">');
      HTP.p (   'alert(''Today is '
              || v_today
    --          || APEX_APPLICATION.g_f04(APEX_APPLICATION.g_f03(i))
              || '.\n'
              || 'end!'');'
             );
      HTP.p ('</script>');
    
    --    :P40_test := APEX_APPLICATION.g_f02(APEX_APPLICATION.g_f02(i));
    
    --END LOOP;
    
    end;
    The foregoing would give me a ' * ORA-01403: no data found * ' message. I tried through various variants of APEX_APPLICATION.g_f0* #*, but still can't get anything to display correctly. In commenting on all the lines referring to APEX_APPLICATION.g_f0x above, the date would be are they displayed fine.

    I tried uncomment the FOR... LOOP and play with the code (defining the process runs "On submit - after calculations" and Validations), I got was a ' * ORA-06502: PL/SQL: digital error or value: character conversion number error * "message.

    Here is the script of the form in a table:
    select 
    "V"."MSLINK",                                       -- hidden (number)
    "V"."INSTALLATION_DATE",                        -- editable date picker
    "V"."MANUFACTURER_INDICATOR",              -- editable (cascading LOV -- text)
    "V"."MODEL_INDICATOR",                           -- editable (cascading LOV -- text)
    "V"."DIAMETER_INDICATOR",                      -- editable (LOV -- number)
    "V"."PURPOSE_INDICATOR",                        -- editable (LOV -- text)
    "V"."VALVE_NUMBER",                                -- shown but not editable -- number
    "V"."MODIFY_DATE",                                  -- shown but not editable
    "V"."MODIFY_USER",                                   -- shown but not editable
    "V"."VALVES_STYLE"."FEATURE"                  -- shown but not editable -- number
    from "#OWNER#"."VALVES" "V"
    Where
      "V"."PROJECT_ID" = :P1_PROJECT_NUMBER AND
      "V"."VALVES_DFLAG" = 0
    Regarding the parameters for the stored procedure, it would the MSLINK, VALVE_NUMBER and the VALVES_STYLE. FEATURE.

    Help, please!
    (Sorry for the long post).

    Thank you

    Tan

    Hi, Tan,

    I have not seen that type of object - I've only used custom types for purposes of test years ago and have never used their within Apex!

    One possibility is that the value of checksum being is based on all of the content of these fields, rather than only the part of the FEATURE. If there are other parts of the object, you could include those items as well.

    Otherwise, as you f01 KP for a record, you will need to retrieve the values of the FUNCTION in your PL/SQL code directly from the table (because the user cannot modify these fields, you can be sure that the values in the table will be still valid).

    Andy

  • A loop in the bays and assigning values

    Hello

    I use a document with 16 elements level table to store values, these values correspond to a text field.

    What I want to do, is create 2 tables, a storage of values and store the field names in the correct order.

    for example item 0 two tables correspond to the text box and it has the stored value.

    I want to know if I can loop through both of these tables and set the values in a field instead of writing;

    var txt01 = this.getField("Text1");
    var txt02 = this.getField("Text2");
    //... Etc
    
    txt01.value = arrTextVal[0];
    txt02.value = arrTextVal[1];
    //... Etc
    

    Could I write something more in the direction of;

    for (var i in arrTextVal && arrTextName) {
         arrTextName[i].value = arrTextVal[i];
    }
    

    I realize maybe it's completely wrong, but I'm trying to give a clear example if what I'm trying to achieve.

    Any help is very appreciated.

    Thank you in advance.

    Assuming that the two arrays have the same length and the elements in them are in the same order, you can simply do:

    for (var i=0; i		   
  • To loop through the array and check mouse events

    I have an array of objects. I want to continuously loop in the table and see if the user made a ROLL_OVER or click on one of these objects.

    I regularly did something similar where I loop in a table and look for collisions with a moving object (but who uses hitTestObject: see code below)

    Someone can help me please with how to do the same for the rollover, then click on?

    First of all, a little clean to make it more effective. It is best to declare variables once. If for you the current code I would as follows:

    var k: uint;
    var classRef_mybooth: Class;
    var MC_mybooth: *;
    for (k = 0; k< xmldata.booth_data.length();="" k++)="">
    class classRef_mybooth = getDefinitionByName(xmldata.booth_data[k].@asset);
    MC_mybooth = new classRef_mybooth ();
    MC_mybooth. Name=XMLDATA.booth_data[k].@name;
    MC_mybooth.x=XMLDATA.booth_data[k].@XPos;
    MC_mybooth.y=XMLDATA.booth_data[k].@yPos;
    MC_mybooth. Width=XMLDATA.booth_data[k].@XScale;
    MC_mybooth. Height=XMLDATA.booth_data[k].@yscale;
    MC_mybooth. Number=XMLDATA.booth_data[k].@number;
    boothArray.push (MC_mybooth);
    MC_booth_holder. AddChild (MC_mybooth);
    }

    Second, I guess that all classes whose names in XML are available for Flash (imported, etc.)

    Now, I add a listener that is unique to all of the objects and then do what I do with them based on the target of the event:

    inside the loop on each iteration:

    MC_mybooth.addEventListener (MouseEvent.ROLL_OVER, rollOverListener);

    Later:

    function rollOverListener(e:MouseEvent):void {}
    trace (e.Target.Name); or whatever the variables that you can use. Your target is the object that they roll.
    return;
    }

    Is this what you need?

  • Question regarding tablespace TEMP and the o/s file associated with.

    Hello

    I want to write a simple query that returns the existing storage space and files that are part of each tablespace.

    I tried the script / query:
    col tablespace_name format a15
    col datafile_name   format a35
    col MB              format 999999
    col "CreateSize MB" format 999999
    
    --
    -- following two queries present only to show the problem I'm running into
    --
    
    select ts#
         , name
      from v$tablespace;
    
    select ts#
         , name
      from v$datafile;
    
    --
    -- this ALMOST works
    --
    
    select t.name tablespace_name
         , t.bigfile
         , d.name datafile_name
         , d.bytes/(1024*1024) MB
         , d.create_bytes/(1024 * 1024) "Create Size MB"
      from v$tablespace t
      join v$datafile   d
     using (ts#)
    ;
    The last query fails to display the files associated with it and the TEMP tablespace.

    Question: what tables should I ask to get a complete picture (one that is not lack of TEMP and its files)?

    Thank you for your help,

    John.

    V$ tempfile

    dba_temp_files

    Here you get a temporary tablespace.

    Concerning
    Asif kabir

  • To loop through the table and use the values returned in another query

    Hello

    I tried to do something very simple, but still can not.

    I am trying to iterate on a table and use each line of a column in a where clause to display a query clause.

    For example:

    I want to retrieve all users of dba_users pass it to a clause where clause in a query to show for example account_status and profile of each user. But I want to do it in a way if I can turn the result in an html table.

    I tried too much really, so I'll post something that does not work, but which I think will show the problem I have,

    BEGIN
     FOR i IN (SELECT username from dba_users order by 1)
     LOOP
     EXECUTE IMMEDIATE 'select account_status from dba_users where username like ''||i.username||''';
     END LOOP;
     END;
     /
    

    Example of what I want to achieve:

    Suppose that there are two users, SYS, and SCOTT:

    USERNAME                       PROFILE                        ACCOUNT_STATUS
    ------------------------------ ------------------------------ --------------------------------
    SYS                            DEFAULT                        OPEN
    
    
    USERNAME                       PROFILE                        ACCOUNT_STATUS
    ------------------------------ ------------------------------ --------------------------------
    SCOTT                            DEFAULT                        OPEN
    

    Thanks in advance for your time,

    OD

    Hi Bill,

    Bill Citad kirjoitti:

    What a join or a sub query going to help me? honestly

    -- join
    select
      s.sql_id,
      h.loads_total
    from dba_hist_sqlstat h join v$sql s on (
      h.sql_id = s.sql_id
    )
    where rownum < 3
    ;
    
    -- subquery
    select
      sql_id,
      loads_total
    from dba_hist_sqlstat
    where sql_id in (
      select sql_id from v$sql where rownum < 3
    )
    ;
    
    -- correlated subquery
    select
      sql_id,
      loads_total
    from dba_hist_sqlstat
    where exists (
      select null from v$sql where sql_id = dba_hist_sqlstat.sql_id
    )
    and rownum < 3
    ;
    
    -- lateral inline view (12c)
    select
      s.sql_id,
      h.loads_total
    from dba_hist_sqlstat, lateral(
      select sql_id from v$sql where sql_id = h.sql_id
    ) s
    where rownum < 3
    ;
    
  • How to make a loop through a list to get all the SelectedItems?

    Here is my code, but the loop is to return all items (items selected and deselected no)

    lstMarks in my ListBox.
    var markslist:String;

    for (var i: int = 0; i < marks.length; i ++) {}
    markslist = & markslist = ', ' + lstMarks.selectedItem.mymarks;
    Text1. Text = markslist;
    }

    If anyone can help. I need to get only the selecteditems in the comma delimited by the string.

    THX

    The forum feeds Media table unless you put spaces around them. Try:
    marksList is marksList + selectedMarks [i] .mymarks;.

    Tracy

  • I get this msg continually, and I think it is associated with my printer, but I can't download the proper software component.

    I get this message every time I turn on my computer.  I went to Microsoft and downloaded everything I can, but seems not work.  On the other hand, I can't use my scanner properly...

    Ideas for a quick fix?

    Amelia

    MeliMel604,

    It was a known issue with the Windows 7 upgrade. Microsoft .NET Framework Version 2.0 error after upgrading to Windows 7

    First run delete print jobs to remove stuck print Job (s) of the queue.

    Restart your computer.

    Press the Windows key and the keys x at the same time, programs and features, your printer, uninstall it.

    Restart your computer.

    Press the Windows key and the x key at the same time, Control Panel, Windows updates. Make sure you have the latest updates.

    I then download drivers for 64 bit Vista system and save them to your desktop. Get the drivers from Dell V105 all-in-one printer owners thread (W7)

    With the computer online, install the compatibility mode Vista SP2 Vista drivers

    Don't forget the programs anti-virus and firewall will block communications. If you do not install any virus program, Windows Defender is the default value. Try to read...

    Enable the printer after Microsoft Essentials/Windows Defender

    Rick

  • How to loop through the layers of the children of a group with jsx?

    Need to change the name of a child layers in a group? How to get there?

    Kind regards

    Dorothy

    What is giving you problems?

    Perhaps this example can help:

    #target photoshop
    var theLayers = collectLayers(app.activeDocument.activeLayer, []);
    alert (theLayers.join("\n"));
    ////// function collect all layers //////
    function collectLayers (theParent, allLayers) {
      if (!allLayers) {var allLayers = new Array}
      else {};
      var theNumber = theParent.layers.length - 1;
      for (var m = theNumber; m >= 0;m--) {
      var theLayer = theParent.layers[m];
      theLayer.name = theParent.name + "_" + m;
    // apply the function to layersets;
      if (theLayer.typename == "ArtLayer") {
      allLayers.push(theLayer)
      }
      else {
      allLayers = (collectLayers(theLayer, allLayers))
    // this line includes the layer groups;
      allLayers.push(theLayer);
      }
      };
      return allLayers
      };
    
  • How to get rid of specialties associated with those profile?

    Just because I have either created, commented or other on individual/topic thread, just do not make me an expert, rather it means that I have an interest. I get the distinction - Apple? I guess there is no way to get rid of the annoying little icons?

    At present, there is no way to get rid of the specialty badge icon. Apparently the PTB, think it's cool, and we're stuck with it for now. It is supposed to encourage new members to join and participate.

Maybe you are looking for