Problem in displaying rows in a table.

Hi
i have a query region and a results table .
i have a details button in results table which will fetch results in to the details table.
once i click the details button of a selected row i get the results into details table.
now the problem is after applying (commiting transaction) if i click on the another rows details button details table results are not changing..
what might be the problem...

Hi,
i have a vendor name which is lov item.from there i will get the vendorid
In islovevent() i am capturing that value and passing the same to the initdetails in amimpl
which in turn calls initquery in voimpl
the problem is page details are refrshing fine if i dont add a row to the table .the problem arises only when i add a row...
when i add a row and try saving it.it saves properly. but when i go to vendor lov and selects another vendor ..the details are remianing same....
the code i used for above :
CO CODE:
if (pageContext.isLovEvent())
String lovInputSourceId = pageContext.getLovInputSourceId();
if ("SearchVendorName".equals(lovInputSourceId))
String vendorId=pageContext.getParameter("VendorIDfrm");
Serializable[] parameters={vendorId };
am.invokeMethod("initExemptionDetails",parameters);
AM CODE:
public void initExemptionDetails(String vendorid){
ExemptionVOImpl vo = getExemptionVO1();
if (vo == null) {
throw new OAException("CLE", "CLE_F272_VO_NULL");
vo.initExemptionQuery(vendorid);
VOIMPL CODE:
public void initExemptionQuery(String vendor_id){
setWhereClause(null);
reset();
setNamedWhereClauseParam("VENDOR_ID",Integer.parseInt(vendor_id));
executeQuery();
AND LAST BUT NOT LEAST WHICH IS CAUSING THE ERROR CODE FOR ADDING A ROW:
ExemptionVOImpl vo = getExemptionVO1();
if (vo != null)
vo.setMaxFetchSize(0);
vo.executeQuery();
Row row = vo.createRow();
if (vo.getFetchedRowCount() == 0)
vo.insertRow(row);
else
{ vo.insertRowAtRangeIndex(vo.getRowCountInRange(),row); }
vo.setCurrentRow(row);
row.setNewRowState(row.STATUS_INITIALIZED);
please help me out:::

Similar Messages

  • How to change the number displaying rows in a table

    Hi all,
    i have a table for resources in Debrief Work order (Standard Screen), we need to change the default displaying rows. inistially it displayed 3 empty rows.
    i tried to change the Records Displayed for the table but it did not affect.
    also it is possible to change the "Add 3 rows" button in the table to add for example 5 rows instead?
    any idea?
    Regards,
    Mahdi Charara

    Hi,
    Through personalization we can do.On standared page top right u will find personalization link.click on the clink next expand all there find apporiate table .Here u will fine reorder button set as u want display and save. then u can see the change.For add row functionality u need to extend the co.

  • Displaying row numbers in tables

    Is there a way to get JTable to display row numbers on the left-most side of the table? Are there any functions in JTable that will allow you to do this?
    I am thinking that to do this, I will probably need to add a column to my table model and make the first column and uneditable JLabel that shows the row number.
    Thanks for any help.
    Mike Ryan

    Ok , the class i am pulling this code from is 500+ lines of code, so I will try to pull out only the important pieces.
    private DefaultTableModel theNorthernModel;
    private JTable theNorthernTable;
    private DefaultTableCellRenderer[] theRenderer;
    private JScrollPane theNorthernPane;
    private Object[] rowTitles = {"1", "2", "3",  "4", "5",  "6", "7"};//
    private Object[] colTitles  = {"one","two","three","four","five","six"};
         theNorthernModel = new DefaultTableModel(rowTitles.length,colTitles.length);
              theNorthernTable = new JTable(theNorthernModel);
              theNorthernTable.setCellSelectionEnabled(false);
              theNorthernTable.setEnabled(false);
              theNorthernTable.getTableHeader().setReorderingAllowed(false);
              theNorthernPane  = new JScrollPane(theNorthernTable);
              theNorthernPane.setPreferredSize(new Dimension(600, 150));
    //this is the stuff you want          
    ListModel listModel = new AbstractListModel() {
                 public int getSize() {
                         return rowTitles.length;
                public Object getElementAt(int index) {
                     return rowTitles[index];
            JList rowHeader1 = new JList(listModel);
            rowHeader1.setBackground(theNorthernPane.getBackground());
            rowHeader1.setFixedCellWidth(140);
            theNorthernPane.setViewportView(theNorthernTable);
            theNorthernPane.setRowHeaderView(rowHeader1);
            rowHeader1.setCellRenderer(new RowHeaderRenderer(theNorthernTable));
    theRenderer = new DefaultTableCellRenderer[6];
              for(int i = 0; i< 6; i++) {
                   theRenderer[i] = new DefaultTableCellRenderer();     
    theColumnModel = (DefaultTableColumnModel)theNorthernTable.getColumnModel();
    * RowHeaderRenderer renders the panel's rows
    class RowHeaderRenderer extends JLabel implements ListCellRenderer {
         * Constructor creates all cells the same
         * To change look for individual cells put code in
         * getListCellRendererComponent method
        RowHeaderRenderer(JTable table) {
            JTableHeader header = table.getTableHeader();
            setOpaque(true);
            setBorder(UIManager.getBorder("TableHeader.cellBorder"));
            setHorizontalAlignment(CENTER);
            setForeground(header.getForeground());
            setBackground(header.getBackground());
            setFont(header.getFont());
         * Returns the JLabel after setting the text of the cell
        public Component getListCellRendererComponent( JList list,
        Object value, int index, boolean isSelected, boolean cellHasFocus) {
            setText((value == null) ? "" : value.toString());
            return this;
    }

  • Problem in displaying o/p in Table Control

    Hi ,
    while displaying in table control.
    its is displaying  line twice.
    I have some contains in iti itab.
    which i am displaying itf itab through table control..
    i have coded like this...
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0112.
    LOOP at itf   WITH CONTROL TC  CURSOR tc-current_line.
        MODULE FILL_TABLE_CONTROL.
    ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE CANCEL AT EXIT-COMMAND.
    LOOP at itf.
        module read_table_INPUT.
      ENDLOOP.
    MODULE USER_COMMAND_0112.
    *&      Module  STATUS_0112  OUTPUT
          text
    MODULE STATUS_0112 OUTPUT.
      SET PF-STATUS 'ZTC'.
    SET TITLEBAR 'xxx'.
      DESCRIBE TABLE iti LINES  tc-lines.
    ENDMODULE.                 " STATUS_0112  OUTPUT
    MODULE fill_table_control OUTPUT
    MODULE fill_table_control OUTPUT.
    loop at iti   .
      READ TABLE  itf with key ingr_code = iti-ingr_code
                               ingr_desc = iti-ingr_desc.
            MOVE iti-INGR_CODE TO ITF-INGR_CODE.
            MOVE iti-INGR_DESC TO ITF-INGR_DESC.
            MOVE iti-CONC TO ITF-CONC.
            MOVE iti-QUANTITY TO ITF-QUANTITY.
            MOVE iti-UOM TO ITF-UOM.
            append ITF  ."index tc-current_line.
            endloop.
    ENDMODULE.                    "fill_table_control OUTPUT
    can any one help me

    loop at iti .
    READ TABLE itf with key ingr_code = iti-ingr_code
    ingr_desc = iti-ingr_desc.
    MOVE iti-INGR_CODE TO ITF-INGR_CODE.
    MOVE iti-INGR_DESC TO ITF-INGR_DESC.
    MOVE iti-CONC TO ITF-CONC.
    MOVE iti-QUANTITY TO ITF-QUANTITY.
    MOVE iti-UOM TO ITF-UOM.
    append ITF ."index tc-current_line.
    endloop
    You dont need to append the data , you have to Modify the data.
    Problem is with the above code.
    Correct to this...
    MODULE fill_table_control OUTPUT.
    READ TABLE itf index tc-current_line.
    MOVE iti-INGR_CODE TO ITF-INGR_CODE.
    MOVE iti-INGR_DESC TO ITF-INGR_DESC.
    MOVE iti-CONC TO ITF-CONC.
    MOVE iti-QUANTITY TO ITF-QUANTITY.
    MOVE iti-UOM TO ITF-UOM.
    endloop.
    ENDMODULE. "fill_table_control OUTPUT
    Regards
    Vijay Babu Dudla

  • ADF faces - Urgent! - problem in display row-detail

    Hi all, I've maka a post yesterday but I still can't resolve the problem.
    I have a page that display data from the database.
    The amount of data is variable, so I configure the iterator as follow:
    <methodIterator id="XLB_find_user_OLIter" Binds="XLB_find_user_OL.result"
    DataControl="Session_EJB_TDBLocal" RangeSize="10"
    BeanClass="TDB.model.OltdbView" Refresh="always"
    CacheResults="false"/>
    The table have a single selection column and a view detail button.
    when user click the button, the following method is called (in the backing bean):
    public String ElaboraAtt_action() {
    OperationBinding bind=this.bindings.getOperationBinding("XLB_changeToWorkingOn_olTdb");
    int ret=(Integer)bind.execute();
    if(ret==0){
    XLB_changeToWorkingOn_olTdb make some operation on the record and return a result code.
    the bind for XLB_changeToWorkingOn_olTdb is:
    <methodAction id="XLB_changeToWorkingOn_olTdb"
    InstanceName="Session_EJB_TDBLocal.dataProvider"
    DataControl="Session_EJB_TDBLocal"
    MethodName="XLB_changeToWorkingOn_olTdb"
    RequiresUpdateModel="true" Action="999"
    ReturnName="Session_EJB_TDBLocal.methodResults.Session_EJB_TDBLocal_dataProvider_XLB_changeToWorkingOn_olTdb_result">
    <NamedData NDName="username" NDValue="${userState.name}"
    NDType="java.lang.String"/>
    <NamedData NDName="callid" NDValue="${showOl_backing.currentCallid}"
    NDType="java.lang.String"/>
    </methodAction>
    where showOl_backing is the backing bean.
    In the backing bean, the code for current callid is:
    public String getCurrentCallid() {
    JUCtrlValueBindingRef tableRowRef=(JUCtrlValueBindingRef) this.getOl_table().getRowData();
    return (String) tableRowRef.getRow().getAttribute("callid");
    The problem is:
    If the rows change between the rendered page and the next submit, the row retourned from getCurrentCallid() is wrong.
    I've seen that, before start to execute the action, ADF refresh the table with the new values, so I think that the selection is made with an index, but on new values...
    I've tried almous any solution...
    Thanks!
    Luca

    ...ok...finally...I've done...
    simply, i've setted cache resut to true in the iterator.
    When af:pool refresh the table, or when a refresh button is click, a method call execute the operationBindings, and the result are refreshed...
    Hi all!

  • Problem in displaying row vale as column name

    Hello Experts,
    Please help me,its very urgent....
    i want to dispaly a column value as a column name.
    i have two column into selete statement and i want to dispaly one column value as a column name and other column value as a single row.
    My query is :
    SELECT MAX(DECODE (NAME,'virtualDeviceId',VALUE))vdid ,
    MAX(DECODE (NAME,'virtualDeviceType',VALUE)) vdevtype,
    MAX(DECODE (NAME,'domainName',VALUE)) vdevtype1,
    MAX(DECODE (NAME,'sCTPPortSip',VALUE)) vdevtype2,
    MAX(DECODE (NAME,'signallingIpAddress',VALUE)) vdevtype,
    MAX(DECODE (NAME,'signallingNetworkMask',VALUE)) vdevtype,
    MAX(DECODE (NAME,'uDPPort',VALUE)) vdevtype,
    MAX(DECODE (NAME,'uDPPortEnum',VALUE)) vdevtype,
    MAX(DECODE (NAME,'sCTPPort',VALUE)) vdevtype,
    MAX(DECODE (NAME,'sCTPPortM3UA',VALUE)) vdevtype FROM(          
    SELECT extractvalue(VALUE(l),'/S109:trafficParameters/S109:name'
    , 'xmlns="http://itprogrammes.intra.bt.com/pdb/capabilities/ManageDaaliResource/2005/11/16" xmlns:header="http://wsi.nat.bt.com/2005/06/StandardHeader/" xmlns:S97="http://ccm.intra.bt.com/2005/11/16/LIB/Info/CCM/AnalysisModel/Services" xmlns:S109="http://ccm.intra.bt.com/2005/11/16/LIB/Info/MTOSI"') NAME,
         extractvalue(VALUE(l),'/S109:trafficParameters/S109:value'
    , 'xmlns="http://itprogrammes.intra.bt.com/pdb/capabilities/ManageDaaliResource/2005/11/16" xmlns:header="http://wsi.nat.bt.com/2005/06/StandardHeader/" xmlns:S97="http://ccm.intra.bt.com/2005/11/16/LIB/Info/CCM/AnalysisModel/Services" xmlns:S109="http://ccm.intra.bt.com/2005/11/16/LIB/Info/MTOSI"') VALUE
         FROM INTERFACE_MESSAGE_DESTINATION imd ,TABLE(xmlsequence(EXTRACT(XMLTYPE(imd.remote_request),'/activateConnection_Payload/jobBody/subnetworkConnection/S109:aEndTerminationPoint/S109:managedElement/S109:physicalTerminationPoint/S109:connectionTerminationPoint/S109:trafficDescriptor/*'
    , 'xmlns="http://itprogrammes.intra.bt.com/pdb/capabilities/ManageDaaliResource/2005/11/16" xmlns:header="http://wsi.nat.bt.com/2005/06/StandardHeader/" xmlns:S97="http://ccm.intra.bt.com/2005/11/16/LIB/Info/CCM/AnalysisModel/Services" xmlns:S109="http://ccm.intra.bt.com/2005/11/16/LIB/Info/MTOSI"'))) l
    WHERE message_id ='NIAS/0000041608') GROUP BY VALUE ;
    output is :
    Col1 Col2 col3 col4 col5 col
    1.'1001105'          '1001105'                                   
    2. 'MGC'                                        
    3.'value' 'value' 'value'
    output display : MGC in Col2 and in row 2, 'values' are in col4 and col5 and in row 3.
    I want all values in a single row.
    Please help me
    Surender Rana

    It is ugly to force multiple rows into a single row. But it can be done and can be done dynamically as the following approach shows.
    SQL> create or replace type TStrings as table of varchar2(4000);
    2 /
    Type created.
    SQL>
    SQL> create or replace function ForceColumns( cur SYS_REFCURSOR ) return TStrings is
    2 setCols TStrings;
    3 setResults TSTrings;
    4 begin
    5 setResults := new TStrings();
    6 loop
    7 fetch cur into setCols;
    8 exit when cur%NOTFOUND;
    9
    10 if setCols.Count > 0 then
    11 setResults.Extend( setCols.Count );
    12 for i in 1..setCols.Count
    13 loop
    14 setResults( setResults.Count-i+1 ) := setCols(i);
    15 end loop;
    16 end if;
    17 end loop;
    18
    19 return(setResults);
    20 end;
    21 /
    Function created.
    SQL>
    SQL> select
    2 ForceColumns(
    3 CURSOR(
    4 select TStrings(object_id,object_name,object_type) from user_objects where rownum <= 5
    5 )
    6 ) as RESULT_SET
    7 from dual
    8 /
    RESULT_SET
    TSTRINGS('TABLE', 'A', '70998',
    'PROCEDURE', 'ABC', '54360',
    'TABLE', 'ANIMALS', '84829',
    'TABLE', 'B', '69604',
    'PROCEDURE', 'BUILDNAMEMAP', '70155')
    SQL>Note that as the row can contain any number of columns, it needs to be dynamic. This approach uses a collection type called TStrings to achieve this.

  • Problem in adding rows in a table

    Hello All ,
    I am having a strange problem in adding table rows here . All things seems to be in place . But when i click the button nothing happens . I have worked on much more complex tables and added rows safely but i cant understand what's happening here . I have saved the form as Dynamic XML form , interactive form , I have set the pagination of the repeating rows . But Heck !!! It's not working at all . I am totally confused . More over while i drag the table from the object palette an error appears and LC closes down .But when i click on the table at the toolbar and inserted table over there then it shows no error . What's happening ?? Any help is greatly appreciated .
    Script : form1.Page1.Subform1.Button1::click - (JavaScript, client)
    form1.Page1.Subform1.Table1.Row4.instanceManager.addInstance(1);
    Thanks .
    Bibhu.

    Hi,
    The way you described reminded me of another thread, where the index was not straightforward: Saving finished Form duplicates some subForms
    You can post your form to Acrobat.com, hit the Share and Publish buttons when prompted and then copy / paste the link here.
    Niall

  • Problem in displaying rows using hGrid

    Hi everyone,
    I'm having diffilculties in creating hGrid
    -> I have one table with columns Employe_number, Last_name, and Manager_id.
    -> Created EO
    -> Created VO and VL
    I expect to retrieve a row similar to figure below
    Lastname..........................................Emplno
    Victor.............................................1
    .....Rockwell......................................2
    ..........Ford.....................................21
    ...............Mel.................................211
    .....Chan..........................................3
    ..........Madison..................................31But I only get the direct report
    Lastname..........................................Emplno
    Victor...............................................1
    .....................................................2
    .....................................................3People under Rockwell and Chan are not populated..
    This is similar to tutorial's hGridPG but I gues I missed out something.
    Appreciate for any help.
    Thanks,
    Elmer
    Edited by: Elmer on Jan 30, 2010 12:13 AM

    Hi everyone,
    I was able to solve this problem. It's the value i put in the ancestor node.
    From /oracle/apps/per/xxTree/webui/MainPG.TreeRN
    To /sm/oracle/apps/per/xxTree/webui/MainPG.TreeRN
    Elmer

  • Need help in displaying Rows to Columns

    Hi,
    I am facing problem in displaying Rows to Columns
    I am using pivot function:
    select *
    from
    (select vendor_name
    from tablea)
    pivot
    (count(vendor_name)
    for vendor_name in ('a,b,'c'));
    its working fine showing vendor_name and count
    but when i want to display the output as:(How to include the Salalry column in the query?)
    Name:{a b c}
    Sal Total:(400,600,800}
    Any help will be needful for me

    Not sure what you mean:
    select  *
      from  (select deptno,sal from emp)
      pivot(sum(sal) for deptno in (10,20,30))
            10         20         30
          8750      10875       9400
    SQL> SY.

  • Editing a particular row in a table - Web Dynpro Abap

    Hi all,
    My scenario is, I have to fetch contract details from EKPO table when I enter the Purchase Document Number and press SUBMIT button on my interactive form. The details will be displayed in a table.
        This part is working fine.
    Then, out of the displayed rows in that table, I have to click one of the rows. This particular row should appear as a separate row below the existing table. Here I will edit certain fields and update the database.
    My question is, How to display that particular row below the existing table which I select. The table will dynamically increase the row size depending on the records.

    Hi Surya,
    You can use the index property to display the selected row data.
    Suppose your form structure is like:
    BodyPage
       TBL_EKPO
           DATA
               EBELN
               EBELP
               LOEKZ
        SF_SELECTED_ROW_DISPLAY
            EBELN
            EBELP
            LOEKZ
    Then, in any of the field's exit event you can write:
    BodyPage.SF_SELECTED_ROW_DISPLAY. EBELN.rawValue = xfa.resolveNode( " BodyPage.TBL_EKPO.DATA["+ this.parent.index +"].EBELN").rawValue;
    Hope this helps.
    Amit

  • Max Rows in 11g Tables

    It seems no matter what I set as the max display rows for a table in 11g Analysis, it stops at 500 and makes the user select the arrow for a new page. I've checked the MBeans that control the setting in instanceconfig.xml and have found that the max is 65,000. The main issue is that if a user tries to export data from a dashboard it only exports 500 records. I've also checked the maximum in the RPD and it is set to 100,000. Has anyone else experienced this behavior? When exporting from a report, does it limit to 500 rows?
    Thanks!

    *19.3.1.2 Manually Configuring Settings for Data in Views*
    You can configure a similar group of settings that affects the display of data in tables, pivot tables, and graphs. While the settings are mainly the same, you must include the element within each appropriate parent element to override the default setting that applies to that view. For example, the views all use the MaxVisiblePages element. You must include that element within each of the Table, Pivot, and Charts parent elements, to override the default value of that setting for each of those view types.
    Before you begin this procedure, ensure that you are familiar with the information in Section 3.4, "Using a Text Editor to Update Oracle Business Intelligence Configuration Settings".
    To manually edit the settings that change the display of data in views:
    1.Open the instanceconfig.xml file for editing, as described in Section 3.6, "Where are Configuration Files Located?"
    2.Locate the Table, Pivot, and Charts parent sections, in which you must add the elements that are described in Table 19-1.
    3.Include the elements and their ancestor elements as appropriate, as shown in the following example.
    <ServerInstance>
    <Views>
    <Table>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>500</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <DefaultRowsDisplayed>30</DefaultRowsDisplayed>
    </Table>
    <Pivot>
    <MaxVisibleColumns>300</MaxVisibleColumns>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>500</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <DefaultRowsDisplayed>30</DefaultRowsDisplayed>
    </Pivot>
    <Charts>
    <MaxVisibleColumns>2000</MaxVisibleColumns>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>2000</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <JavaHostReadLimitInKB>4096</JavaHostReadLimitInKB>
    </Charts>
    </Views>
    </ServerInstance>
    Note that this example does not include parameters that might exist in the file, but that are centrally managed by Fusion Middleware Control and cannot be changed manually.
    4.Save your changes and close the file.
    5.Restart Oracle Business Intelligence.
    Table 19-1 describes the common elements that affect the display of data in views. If the user exceeds these values, then the Oracle BI Server returns an error message when the view is rendered.
    Table 19-1 Common Elements for Manually Changing the Display of Data in Views
    Element Description Default Value Applicable Views
    DefaultRowsDisplayed
    Specifies the default number of rows to display in the view.
    30
    Pivot Table, Table
    MaxVisibleColumns
    Specifies the maximum number of columns to be displayed in a view.
    300
    Graph, Pivot Table
    MaxVisibleRows
    Specifies the maximum number of rows to be displayed in a view.
    For tables and pivot tables, specifies the number of rows that is displayed on the tooltip for the Display Maximum Rows per Page paging control button.
    500
    Graph, Pivot Table, Table
    MaxVisiblePages
    Specifies the maximum number of page choices (or pages in PDF) to be displayed in a view.
    1000
    Graph, Pivot Table, Table
    MaxVisibleSections
    Specifies the maximum number of sections to be displayed in a view.
    This element does not apply when a slider is in place for a graph. The SectionSliderDefault and SectionSliderLimit elements apply to limit section values when a slider is in place. See Table 19-2.
    25
    Graph, Pivot Table, Table
    JavaHostReadLimitInKB
    Specifies the maximum amount of data that is sent to the browser for a single graph.
    4096
    Graph
    I hope you helps...

  • Deleting rows from one table while filter condition lies into another table

    Hi All,
    I'm facing a problem deleting a row from a table where the condition lies in other table. To ealaborate the scenario further let's say I have two table T1 (transaction table) and T2 (Master Table). I want to delete a record from table T1 by checking some conditions lies in table T2.
    I tried with the below query but this query deleting records from both the table.
    DELETE FROM ( SELECT * FROM T1 top INNER JOIN T2 tp
    ON top.TID = tp.TID
    WHERE top.DEAL_SITE_ID = inputparameter1
    AND (TP.SEGMENT <>inputparameter2 OR tp.segment is not null));
    Here the record is getting deleted from both the tables but I don't want to delete data from my master table i.e table T2.
    Any help would be highly appreciated. Thanks in advance.
    Regards,
    Subhadeep

    SQL> select *
      2   from the_table;
    X          Y
    AA         a
    BB         a
    CC         a
    AA         b
    DD         b
    SQL> select *
      2   from the_table_2;
    X          Y
    AA         a
    BB         a
    CC         a
    SQL>  delete from
      2  (
      3  select *
      4  from the_table  t1 inner join the_table_2 t2
      5  on  t1.x = t2.x
      6  and t1.y = t2.y);
    3 rows deleted.
    SQL> select *
      2   from the_table;
    X          Y
    AA         b
    DD         b
    SQL> select *
      2   from the_table_2;
    X          Y
    AA         a
    BB         a
    CC         a

  • Generic function to display a specific row from any table

    Hi all,
    I need some help to write a function in PL/SQL or Dynamic SQL (or both), to write a function that would take in parameters only the unique ID of the row to display and the name of the table to display (that could be any table with any format).
    Actually we don't know in advance which table will be accessed, so we don't know the columns and their types until the function is called.
    Once I get the row, I want to return a small table with a size of only one line containing the details of the row I looked for.
    So the signature of the function would be something like: CREATE function displayDetailedRowFromAnyTable(uniqId in varchar2(25), tableName in varchar2(25)).
    Hope the description is clear. I found in some forums some details about this kind of problems; however, the structure of the tables (ie. the columns name and their types) is always known in advance. In my case, I don't know those details until run time.
    Any help would be greatly appreciated.

    There is a built in "function" to do this. It's called "SELECT" and it's available through the SQL engine. You give it the table name and the ID you want and it can return you all the columns from that table...
    e.g.
    SELECT *
    FROM <table_name>
    WHERE id = <required_id>If you truly want a generic dynamic SQL then you'll have to code it as an ANYTYPE (as already mentioned above). Although this will make your code very complex and difficult to maintain.
    e.g. of defining your own dynamic pipelined function using anytype ...
    create or replace type NColPipe as object
      l_parm varchar2(10),   -- The parameter given to the table function
      rows_requested number, -- The parameter given to the table function
      ret_type anytype,      -- The return type of the table function
      rows_returned number,  -- The number of rows currently returned by the table function
      static function ODCITableDescribe( rtype out anytype, p_parm in varchar2, p_rows_req in number := 1 )
      return number,
      static function ODCITablePrepare( sctx out NColPipe, ti in sys.ODCITabFuncInfo, p_parm in varchar2, p_rows_req in number := 1 )
      return number,
      static function ODCITableStart( sctx in out NColPipe, p_parm in varchar2, p_rows_req in number := 1 )
      return number,
      member function ODCITableFetch( self in out NColPipe, nrows in number, outset out anydataset )
      return number,
      member function ODCITableClose( self in NColPipe )
      return number,
      static function show( p_parm in varchar2, p_rows_req in number := 1 )
      return anydataset pipelined using NColPipe
    create or replace type body NColPipe as
      static function ODCITableDescribe( rtype out anytype, p_parm in varchar2, p_rows_req in number := 1 )
      return number
      is
        atyp anytype;
      begin
        anytype.begincreate( dbms_types.typecode_object, atyp );
        atyp.addattr( to_char(to_date(p_parm,'MONYYYY'),'MONYY')
                    , dbms_types.typecode_varchar2
                    , null
                    , null
                    , 10
                    , null
                    , null
        atyp.endcreate;
        anytype.begincreate( dbms_types.typecode_table, rtype );
        rtype.SetInfo( null, null, null, null, null, atyp, dbms_types.typecode_object, 0 );
        rtype.endcreate();
        return odciconst.success;
      exception
        when others then
          return odciconst.error;
      end;  
      static function ODCITablePrepare( sctx out NColPipe, ti in sys.ODCITabFuncInfo, p_parm in varchar2, p_rows_req in number := 1 )
      return number
      is
        elem_typ sys.anytype;
        prec pls_integer;
        scale pls_integer;
        len pls_integer;
        csid pls_integer;
        csfrm pls_integer;
        tc pls_integer;
        aname varchar2(30);
      begin
        tc := ti.RetType.GetAttrElemInfo( 1, prec, scale, len, csid, csfrm, elem_typ, aname );
        sctx := NColPipe( p_parm, p_rows_req, elem_typ, 0 );
        return odciconst.success;
      end;
      static function ODCITableStart( sctx in out NColPipe, p_parm in varchar2, p_rows_req in number := 1 )
      return number
      is
      begin
        return odciconst.success;
      end;
      member function ODCITableFetch( self in out NColPipe, nrows in number, outset out anydataset )
      return number
      is
      begin
        anydataset.begincreate( dbms_types.typecode_object, self.ret_type, outset );
        for i in self.rows_returned + 1 .. self.rows_requested
        loop
          outset.addinstance;
          outset.piecewise();
          outset.setvarchar2( self.l_parm );
          self.rows_returned := self.rows_returned + 1;
        end loop;
        outset.endcreate;
        return odciconst.success;
      end;
      member function ODCITableClose( self in NColPipe )
      return number
      is
      begin
        return odciconst.success;
      end;
    end;
    And to use it
    SQL> select * from table( NColPipe.show( 'JAN2008' ) );
    JAN08
    JAN2008

  • Setting leadselection does not change displayed row in table

    I am using a Table element to display a list of search results.
    The first time I perform a query, the results appear and the first row is displayed. The table footer shows the total amount of rows and the buttons to navigate. So far, so good.
    The problem occurs when I perform a new query, after having navigated through the rows and the table was for example showing row number 10.
    I perform the new query (which sets the leadselection back to 0), but the table stays on row 10, or the row closest to that number. It does not jump to the first row. Or in other words, the table view does not "reset".
    Any ideas?

    You right, it will not automatically navigate to the first row.
    Set  firstVisibleRow property of the table UI element to zero everytime you execute the search.
    Abhi

  • Problems with displaying tables from windows software in Powerpoint

    I have been having some problems with powerpoint presentations that include tables from specific windows software. These tables were produced with the software package called SPSS for windows. The font that's used for these tables is Tahoma. The powerpoint presentations were made on a windows operated computer where the tables were pasted into the slides as pictures.
    When opening these presentations on my MacBook these tables are presented in a way that is impossible to read. The tables are mostly empty while some unclear symbols are inconsitently divided over the table. The original table existed out of a combination between text in the first row and collom and numbers in the other cells.
    Has anybody had any experience with this problem or something similar? Any suggestions on what to look for when trying to solve this problem?
    Thanks in advance!!
    Regards.
    Jochem

    Depending on the software you use to display the presentation on your Mac I suggest posting your request either here
    http://discussions.apple.com/forum.jspa?forumID=1191
    or here
    http://discussions.apple.com/forum.jspa?forumID=774
    If you are using a non-Apple-software (e.g. NeoOffice or OpenOffice) I suggest the support forums for the specific product you use.
    You will hopefully get more helpful answers in these forums as you would get here, as this issue is not a Windows/Mac OS X compatibility issue but a Powerpoint compatibility issue.

Maybe you are looking for

  • Express won't print to printer

    Well technically it will but the printer has to be on. I have a canon printer which in all other circumstances including shared printer on a server it will auto power on when a Job goes through, yet the express will not allow this to happen, so basic

  • Pages not loading properly and can't install add ons

    After installing the Firefox 29 on Windows 7, the mozilla's site and add-ons page do not load properly. Some problem as shown in https://support.mozilla.org/en-US/questions/992362 and tried all the steps but still doesn't work.

  • TS1368 is itunes store down right now?

    is itunes down for anyone else?

  • Share files between Mac and Windows sessions.

    Hello, I've a business(sales) software(Ciel) which is working on Mac. This software is generating a file which can be exported to another (Ciel) software(accounting) but which only works on Windows. I've made 2 sessions for both operating systems, sp

  • Doubt on Drop Down box by key

    Hi All, My requirement is to fill a dropdown with values in accordance to the selected value of another drop down... My code is as follows.. private void fillTaxTypes(){           IModifiableSimpleValueSet dropTTValueSet;           IWDAttributeInfo a