How to pass all rows from a VO to PL/SQL API

Hi,
My requirement is to pass all the rows of a View Object (shown on Page as a Table) to PL/SQL API. I am not allowed to pass information row by row using single array (JTF_VARCHAR2_TABLE_200).
How do we pass multidimensional information to the PL/SQL API. Any pointers to this would be welcome.
Thanks

Sumeet,
sorry for delay in code snippet.
Here is a sample code assuming you want to send 2 attributes name and desc from your VO rows.
I wrote the code during weekend and hence i doubt its working ;)
public oracle.sql.ARRAY getVoArray()
Connection conn = this.tx.getJdbcConnection();
OAViewObject vo = (OAViewObject)this.appModule.findViewObject("TestVO");
try
ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor
("TABLE_OF_BELOW_ROW_TYPE"
,conn
StructDescriptor voRowStructDesc = StructDescriptor.createDescriptor
("XXX_TO_BE_SEND_ROW_TYPE"
,conn
TestVORowImpl row = null;
String name;
     String desc;
int fetchedRowCount = vo.getFetchedRowCount();
STRUCT [] finalStruct = new STRUCT[fetchedRowCount];
Object[] attrField = new Object[1];
RowSetIterator entityIdIter1 = vo.createRowSetIterator("entityIdIter1");
if (fetchedRowCount > 0)
entityIdIter1.setRangeStart(0);
entityIdIter1.setRangeSize(fetchedRowCount);
for (int i = 0; i < fetchedRowCount; i++)
row = (TestVORowImpl )entityIdIter1.getRowAtRangeIndex(i);
name = (String)row.getName();
          desc = (String)row.getDesc();
attrField[0] = (String)name;
finalStruct[i] = new STRUCT(voRowStructDesc, conn, attrField);
entityIdIter1.closeRowSetIterator();
oracle.sql.ARRAY yourArray = new oracle.sql.ARRAY(descriptor, conn, finalStruct);
return yourArray;
return null;
catch(java.sql.SQLException ex)
throw OAException.wrapperException(ex);
Let me know if you are still having issues.
--Saroj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • How to pass all values from one node element to created node element?

    Hi
    I have model node element under which there are 7 values, and I've created value node element and trying to pass the values from the model node Element to this value node element. But instead of passing all the values its listing only one value.
    How do we rectify this problem!!!
    Thanks in Advance
    Srikant

    Hi Anil
    I've created the node named: TableNode
    and the name of the node from which i want to get the data is : Li_Required_Node
    the Node Structure is
    Context
      |_ Zs_Quantity_Input
         |_Output
           |_Node_Required_Node
              |_Schddt
      |_TableNode
        |_CmpDate
    The Schddt has some 7 values
    The code Snippet is as follows:
    IPublicPricesComp.ITableNodeElement nodeElement;
    IPublicPricesComp.ILi_Required_NodeElement scheduleElement;
    int counter3Max = wdContext.ILi_Required_Node().size();
    for( int counter3= 0 ; counter3 < counter3Max ;counter3++ )
    nodeElement = wdContext.createTableNodeElement();
                             scheduleElement = wdContext.nodeZs_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Required_Node().getLi_Required_NodeElementAt(counter3);
    nodeElement.setCmpDate(scheduleElement.getSchddt());
    wdContext.nodeTableNode().addElement(nodeElement);               
    On writing the above code and then binding the node to a table column only one value getting displayed
    Where can be the error?
    Thanks in Advance
    Srikant

  • How to read all rows stored in pojo bean from jsp page

    Hi sir
    After storing all rows into ArrayList object in pojo class, how to retrieve those rows from jsp page and display them together one by one.
    Regards

    Well, you wouldn't do it in Java. You would do it in JSTL, preferably.
    So if your POJO had a getRows method which returned your List of row objects, you would get the list like this (after putting the POJO into request scope under the name of "pojo"):
    ${pojo.rows}
    And if you wanted to go through that list and process each of the rows, then c:forEach would be the way:
    <c:forEach value="row" items="${pojo.rows} />
    (check the documentation, I'm posting this from memory)

  • How to pass the data from a input table to RFC data service?

    Hi,
    I am doing a prototype with VC, I'm wondering how VC pass the data from a table view to a backend data service? For example, I have one RFC in the backend system with a tabel type importing parameter, now I want to pass all the data from an input table view to the RFC, I guess it's possible but I don't know how to do it.
    I try to create some events between the input table and data service, but seems there is no a system event can export the whole table to the backend data service.
    Thanks for your answer.

    Thanks for your answer, I tried the solution 2, I create "Submit" button, and ser the mapping scope to  be "All data rows", it only works when I select at least one row, otherwise the data would not be passed.
    Another question is I have serveral imported table parameter, for each table I have one "submit" event, I want these tables to be submitted at the same time, but if I click the submit button in one table toolbar, I can only submit the table data which has a submit button clicked, for other tables, the data is not passed, how can I achieve it?
    Thanks.

  • How to delete multiple rows from ADF table

    How to delete multiple rows from ADF table

    Hi,
    best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
    Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code
    Frank

  • How to pass the values from one screen to another

    HI,
    consider me21n,
    po is created with the item category L,so components tab is enabled.that u all know.
    i have added the custom tab in the item details with netwt,gross wt,no of pieces and one more field.
    those fields are also in component structure of material data.
    i need to pass the matnr,maktx,quantity,ntwt,grosswt from the component to be displayed in  the subscreen.
    i used import mdpm to xmdpm from memory id 'subcon',  where it is exported from the function module 'me_components-maintain'.
    how to pass  all the values from component of structure MDPM to the subscreen of custom tab in the item details.
    help me pls........................'

    hi everyone,
    MODULE status_0111 OUTPUT.
    data : fill type i.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.,
      DESCRIBE TABLE lt_zzmm_po_comp LINES fill.
      ctrl_0111-lines = fill.
    ENDMODULE.                 " STATUS_0111  OUTPUT
    MODULE fetch_data OUTPUT.
      ctrl_0111-lines = 2.
    import xmdpm to lt_xmdpm from memory id 'SUBCON'.
    IF not sy-subrc eq 0.
        CLEAR lt_zzmm_po_comp[].
        LOOP AT lt_xmdpm.
          MOVE-CORRESPONDING lt_xmdpm TO lt_zzmm_po_comp.
          APPEND lt_zzmm_po_comp.
        ENDLOOP.
    MOVE-CORRESPONDING lt_zzmm_po_comp TO ctrl_0111.
      read table ctrl_0111-cols into col where index = 3.
      ENDIF.
    ENDMODULE.                 " FETCH_DATA  OUTPUT
    MODULE pass_line OUTPUT.
      READ TABLE lt_zzmm_po_comp INDEX ctrl_0111-current_line.
      MOVE-CORRESPONDING lt_zzmm_po_comp TO ctrl_0111.
    ENDMODULE.                 " PASS_LINE  OUTPUT
    flow logic
    PROCESS BEFORE OUTPUT.
    MODULE status_0111.
    MODULE FETCH_DATA.
    loop at lt_zzmm_po_comp WITH CONTROL ctrl_0111 cursor
    ctrl_0111-current_line.
       module pass_line.
    endloop.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0111.
    loop.
    *module read_data.
    endloop.
    but i cant see my fields in the table control .....i dont know y it is  not coming?can anyone help me with code...

  • Passing multiple rows from VC to GP

    Hi,
    I am trying to implement a GP process where I want to get a list of structure from a VC UI.
    Basically, this is what I want to go:
    a. Present a GP CO with a VC UI with a table to allow user to insert rows of information
    b. Transfer these rows of information to GP context
    c. Present the same rows of information in another GP CO for approval.
    The question is: how to pass the rows of information from the VC table into the GP context as output parameter of the VC CO?
    Thanks.

    Found my solution by referring to this thread: how to pass tables in Guided Procedures from VC
    Basically I just set the Multi-selection to true.
    I hit another issue, but was resolved with this thread: To Work with Guided procedure

  • How to Empty all rows within a Power Pivot Model

    Hi,
    I would like to know how to empty all rows within a Power Pivot model. I am in the process of creating quite a complex Power Pivot model. This means I need to create some sort of primitive version control process, e.g. stored multiple backups of the Power
    Pivot model without the data.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Forget what I've said before:
    Have a look at Gil's thread here:
    https://social.technet.microsoft.com/Forums/en-US/40abe021-1abd-4a2a-bf33-a035847fb7be/disconnect-datamodel-from-source?forum=powerquery
    For Power Pivot it means that you can get rid of all your data, but Keep Relations, measures, ..everything.
    Just import your tables once in order to get the connections right and move on.
    Imke

  • How to get all images from folder in c#?

    I am trying to get all images from folder. But it is not executing from following:
     string path=@"C:\wamp\www\fileupload\user_data";
                string[] filePaths = Directory.GetFiles(path,".jpg");
                for (int i = 0; i < filePaths.Length; i++)
                    dataGridImage.Controls.Add(filePaths[i]);
    Please give me the correct solution.

    How to display all images from folder in picturebox in c#?
    private void Form1_Load(object sender, EventArgs e)
    string[] files = Directory.GetFiles(Form1.programdir + "\\card_images", "*", SearchOption.TopDirectoryOnly);
    foreach (var filename in files)
    Bitmap bmp = null;
    try
    bmp = new Bitmap(filename);
    catch (Exception e)
    // remove this if you don't want to see the exception message
    MessageBox.Show(e.Message);
    continue;
    var card = new PictureBox();
    card.BackgroundImage = bmp;
    card.Padding = new Padding(0);
    card.BackgroundImageLayout = ImageLayout.Stretch;
    card.MouseDown += new MouseEventHandler(card_click);
    card.Size = new Size((int)(this.ClientSize.Width / 2) - 15, images.Height);
    images.Controls.Add(card);
    Free .NET Barcode Generator & Scanner supporting over 40 kinds of 1D & 2D symbologies.

  • How to get all data from nokia to i5s

    how to get all data from nokia E71 to i5s???

    if you can put those data in your computer then add it in iTunes. your iPhone 5s should get it thru syncing.

  • How to pass multiple values from workbook to planning function ?

    Hi,
    I have created Planning function in Modeler and it has one parameter(Variable represents = Multiple single values).
    When executing the planning function by create planning seq. in the web template : I see value of variable store data like ...
        A.) input one value -> V1
        B.) input three values -> V1;V2;V3
    This function execute completely in web.
    However, I want to use the planning function in workbook(Excel).
    The value of variable can't input V1;V2;V3... I don't know how to pass multiple values from workbook to parameter(Multiple single values type) in planning function ?
    thank you.

    Hi,
    Please see the attached how to document (page no 16).
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0881371-78a1-2910-f0b8-af3e184929be">how to</a>
    Hope this was helpful
    thanks

  • How to open "All Tabs" from previously shown pages history?

    Hi,
    How to open "All Tabs" from previously shown pages history. I am not asking about "Reopen from last session". I am asking about how to open all tabs from previous webpage links from a past date from history, currently its allowing me to select each page link manually by clicking it.
    Thank you!

    Select the first item you wish to open, scroll down to the last, Shift-click that one & all those between should be selected too. Double-click on them & they should all start to open... or you can copy & then drag/paste into a new or existing bookmarks folder.

  • How to upload all songs from iTunes Match to the mac in one step

    how to upload all songs from Match to the Mac in one step?

    You have to subscribe to iTunes Match to do that.  See http://www.apple.com/itunes/itunes-match/.

  • How to get all rows in table to red using alternate rows properties option

    How to get all rows in table to red using alternate rows properties option

    Hi Khrisna,
    You can get all rows red by selecting the color red in the "Color" and "frequency" to 1 under the "Alternate Row/Column colors".
    I tried doing it and the colors freaked me out (all red) :-D
    Kindly tell me if im missing something.
    Regards,
    John Vincent

  • Regarding how to pass the data from web dynpro to workflow

    hi gurus,
    how to pass the data from web dynpro to workflow.
    Regards
    vijay

    Check this [thread|SAP_WAPI_START_WORKFLOW;

Maybe you are looking for

  • Hook iPhone to TV

    My iPod came with a cable that allows me to hook up to the tv to do photo slide shows on the tv from the photos stored on the iPod. Does anyone know if the iPhone will be able to do this? Thanks.

  • Ipod to Ipad mini

    Can I return one for something else?

  • Group by + aggregate function / report

    Helloo, we have a report with following sql statment SELECT "SPREEDSHEET_TABLE"."SCHEMA_NAME" "SCHEMA_NAME", "SPREEDSHEET_TABLE"."DATABASE_NAME" "DATABASE_NAME", "SPREEDSHEET_TABLE"."SERVER_NAME" "SERVER_NAME" ,max(CURRENT_DATE) FROM pritesh.SPREEDSH

  • Very frequent BSODs on Windows Vista Ultimate

    Hi everyone. I am a happy owner of an Aluminium MacBook, but, unfortunately, not when it comes to Windows. The system crashes pretty much every time I go on it. It happens upon various tasks - launching a game, watching IPTV (which is the main reason

  • Vram HD4000 before upgrade ram macbook pro

    Hello! Today I upgraded the ram in my macbook pro 15 "late 2012 (i7 2.3 ghz) bringing it to 16GB. Ram is Samsung 1600MHz. Vram I have noticed, however, that the HD4000 is not increased to 768MB (as it should be 4gb ram = 386mb vram, 8gb ram = 512mb v