Uix:table

Hello!
How can I render data using <uix:table> component? I know how it goes with uix, but I need it in uix jsp.
Here's what I've tried:
<uix:table id="myTable">
<%
  DataObject[] rows = new DataObject[12];
  for(int i = 0; i < 10; i++) {
    DictionaryData row = new DictionaryData();
    row.put("test1", "row " + i);
    row.put("test1", "column 2, row " + i);
    rows[i] = row;
  myTable.setTableData(new ArrayDataSet(rows));
%>
</uix:table>But there's no result. It just renders a table with one empty field.
Could someone give me a simple example of rendering data using <uix:table tableDataBinding="..." ... /> component.
Thanks!
Andrej

hi, you need to add columns.
here is an example:
    <uix:table id="myTable"  >
    <%
      DataObject[] rows = new DataObject[12];
      for(int i = 0; i < 10; i++) {
        DictionaryData row = new DictionaryData();
        row.put("col1", "row " + i);
        row.put("col2", "column 2, row " + i);
        rows[i] = row;
      myTable.setTableData(new ArrayDataSet(rows));
    %>
      <uix:column >
        <uix:columnHeader >
          <uix:styledText text="Header1"/>
        </uix:columnHeader>
        <uix:styledText textBinding="col1"/>
      </uix:column>
      <uix:column >
        <uix:columnHeader >
          <uix:styledText text="Header2"/>
        </uix:columnHeader>
        <uix:styledText textBinding="col2"/>
      </uix:column>
    </uix:table>

Similar Messages

  • Hiding certain columns in UIX table

    I want to hide certain colums of my UIX table based on VO at runtime depending on context.
    I know that I can use the rendered property of a column but I believe there is a way to do it without dealing with UIX. The reason is that I have about 30 dynamic colums so specifying the property (and enabling the appropriate bindings) seems to be tiresome and unreasonable.
    I have a method in AppModuleImpl.java that sets the VO query and I want this method to hide the unwanted colums somehow.
    Any suggestions ?

    What about in your UIX table adding a columnGroup containing the 30 odd columns, setting its rendered property to true/false through EL (expression language) based on whatever the context you refer to is (possibly a session variable previously set)? That way you wouldn't have to set the rendered property for each individual column.
    CM.

  • uix:table using JSP tags

    I cannot figure out how to bind a dataobject list using the <uix:table> tag. Could someone please help me with this.
    Jeff Driskell

    Do you mean that you already have a DataObjectList which you want to set as the <uix:table>'s tableData attribute? If so, I believe you have two choices:
    1. You can use a scriptable variable for the table and call setTableData() explicitly on the TableBean.
    2. You can use a scriptable variable for a dataScope and register a DataProvider which provides access to your DataObjectList. Then, you can use the tableDataBinding attribute of the <uix:table> tag to bind to your DataProvider.
    Examples of both of these techniques are provided in the "Scriptable variables" section of the "UIX JSP Tag Libraries" section of the UIX Developer's Guide.

  • Column / Row Spanning in UIX table

    Hi There,
    Anybody know how to achieve column/row spanning when using the uix databound table?
    For example, i would like a table which looked similar to the following:
         | Cell1  | Cell2 | Cell3 |
         | A spanned cell         |
         --------------------------Is it also possible to combine this with row spanning in a UIX table and then further combine it with the single-selection bean, producing an output similar to the below (how complex can i make this :)) :
         | Select | Column 1 | Column 2 | Column 3 |
         |        |  Cell 1  |  Cell 2  |  Cell 3  |
         |   o    |---------------------------------
         |        |  A spanned cell                |
         |        |  Cell 1  |  Cell 2  |  Cell 3  |
         |   o    |---------------------------------
         |        |  A spanned cell                |
         -------------------------------------------I guess I should add that both rows on the same select line would come from the same row of the data source.
    I get the impression that spanning can be done from looking through the BLAF standards at http://www.oracle.com/technology/tech/blaf/specs/tables.html#banding_group_colrow, although maybe this just related to the table layouts (where spanning of this type is easy enough) and isn't applicable/implemented for the databound table itself?
    Anyway, thanks in advance for any help :)
    Cheers,
    Lee

    Hi ,
    I have updated the function and its working fine.
    alter
    FUNCTION [dbo].[fnGetFirstOcurrences]
    (@Text nvarchar(max),
    @Delimiter
    char(1),
    @StopAt
    smallint)
    RETURNS
    nvarchar(max)
    BEGIN
    DECLARE @Return
    nvarchar(max),
    @Final
    int = 0,
    @Times
    smallint = 1,
    @Delimiters
    smallint
    SELECT  @Delimiters
    = LEN(@Text)
    - LEN(replace(REPLACE(@text,'
    ','#'), @Delimiter,
    IF
    (@Delimiters
    >= @StopAt)
    BEGIN
    WHILE @Times
    <= @StopAt
    BEGIN
    SET @Final
    = CHARINDEX(@Delimiter, @Text
    + @Delimiter, @Final
    + 1)
    SET @Times
    = @Times + 1
    END
    SET @Final
    = @Final - 1
    SELECT  @Return
    = LEFT(@Text, @Final);
    END
    ELSE
    BEGIN
    SELECT @Return
    = @Text +
    REPLICATE('  '
    + @Delimiter,
    (@StopAt - @Delimiters)
    - 1)
    END
    RETURN
    ISNULL(@Return, @Text)
    END
    Thanks
    Thankx &amp; regards, Vipin jha MCP

  • Creating a LINK in ADF UIX table

    Dear sirs...
    is it possible to create a link for each row in an adf uix table? the link selects the row and forwards to another page.
    i have seen this in a JSP page, but uix????
    best regards

    Dear sirs...
    is it possible to create a link for each row in an adf uix table? the link selects the row and forwards to another page.
    i have seen this in a JSP page, but uix????
    best regards

  • How to get rid of "Previous" en "Next" header in UIX Table?

    I have the simplest of UIX tables in my page,
    showing a single column of dates:
    <table model="${bindings.Startmoment}">
    <contents>
    <column>
    <contents>
    <styledText model="${uix.current.myDate}"/>
    </contents>
    </column>
    </contents>
    </table>
    This renders all the dates, along with a table header
    showing "Previous" and "Next" options, which are grayed out. I don't want this for this particular table - how
    can I switch this "Navigation Bar" off? None of the standard blocksize, minvalue, etc. properties seem to have any effect.

    currently it is not possible to remove the previous/next labels.

  • UIX Table - show row indexes of a range

    How can I show the row indexes of the actual range in a UIX table. For example when the showed record range is 5-14, I would like to display a column which contains the indexes numbered 0-9.

    There's nothing built-in to help, you'll have to wire it up yourself.

  • "Next" and "Previous" functionality on UIX tables not working with 10g

    With new release of JDeveloper(10G), the "Next" and "Previous" navigation buttons/links on UIX tables are not working. I tried different approaches:
    1. It does not work with Data Controls built from Java Beans or from TopLink.
    2. I tried without using Data Controls and it still does not work.
    I shows "Next" and "Previous" buttons on the page. But it shows all records on the page rather then showing limited records. Say for example if the block size is 5 and total number of records are 15, it shows all 15 records in the table but the "next" and "Previouds" button would say "1-5 of 15".
    Did any of you observe the same behaviour?

    Hi Shital -
    Thanks for the additional info...
    When I said that the total number of records is 15, I
    meant that my tableData's DataObjectList contains 15
    entries. (In case of DataControls you don't even use
    DataObjectList, but for my non data control
    applications I used DataObjectList). You are saying
    that If I want to display only 5 records per page
    then I will need to provide a DataObjectList with
    five items. Then for next five records from 6-10 I
    will have to program in such a way that my method
    call returns 6-10 records.That's correct. In the case where you are explicitly providing data to the table via a DataObjectList, you need to feed the data to the table in page size blocks - and you also need to handle the table's goto event to scroll the table to the next/previous block of data.
    In previous version of
    UIX(2.1.7) I never had to program for next and
    previous buttons. UIX tables used to take care of
    that. That's why I am so surprised.It sounds like you must have been using the <bc4j:table> component. Is that the case?
    Getting back to your original issue...
    1. It does not work with Data Controls built
    from Java Beans or from TopLink.I believe that this is a bug in the preview release - and I'm fairly sure this will be addressed by production. In production, ADF should automatically handle wiring up table scrolling for you when binding your table to a data control - whether the data control is implemented via JavaBeans, Toplink, or BC4J. I believe that in the preview release, scrolling only working when binding to a BC4J data control.
    Andy

  • Jdev 10.1.2 UIX table double rows

    After migrating to JDev 10.1.2 I met such problem!
    When I add row to editable UIX table and then try to select another row the row I just added makes double!
    Does anybody meet such problem?

    Repost

  • ADF UIX table example: oracle.cabo.doc.* missing

    Hi,
    I'm working through the Oracle ADF UIX Developer's Guide and want to try the ADF UIX Table Example. Unfortunately I don't seem to have the classes which are referred to in that example (located in oracle.cabo.doc.demo.table..), which makes it difficult for me to follow and understand the example.
    I've found a reply to a post to this forum of 26-nov-2002 where it is stated that these files were at that moment not yet available.
    My question is: have these files become available in the meantime. If so, wher can I find them?
    Regards,
    Anton

    Clicking on a sortable header generates a sort event. You need to specify a handler for this event. The error you see is a result of the application not knowing how to handle the sort event. On your page you should include something like the following to handle the sort event:
    <handlers>
    <event name="sort">
    <method class="myPackage.myClass" method="doMySort"/>
    </event>
    </handlers>
    For more details, see the "Sortable Column Headers" section in this chapter of the ADF UIX Dev Guide: http://helponline.oracle.com/jdeveloper/help/state/content/navSetId.jdeveloper/navId.4/vtAnchor.Sort/vtTopicFile.jdeveloper%7Cuixhelp%7Cuixdevguide%7Ctables%7Ehtml/

  • UIX tables and RangeSet

    Hi to all;
    Let's suppose that we have an view object with 100 records and we are browsing at an common UIX table lets say (1..6 lines) iterator rangeSize = 6;
    Some event where called and that view object changes the CurrentRow to the 50th record;
    Just like an Browse and Seek records page;
    How can i tell to UIX Table that the CurrentrangeSet was changed ?
    Thank you;

    Thanks for the reply;
    But i think that i do not make myself clear;
    The problem was when we have an UIX Table browsing records and we change the underlined ViewObject CurrentRow to some row that was not between the actual rangeSet.
    Uix table behavior was just not making self refresh of it's data;
    Just few hours after posting here i came to this code; and seams to have solved the problem;
    public void onSeek( DataActionContext ctx )
          DCIteratorBinding dcDec =            
             ctx.getBindingContainer().findIteratorBinding("DecIterator");
          Row[] r = dcDec.getRowSetIterator().findByKey(k,1);
          if ((r!= null) && (r.length > 0))
             dcDec.getRowSetIterator().scrollRangeTo( r[0],0 );  // here i think is the point
             dcDec.getRowSetIterator().setCurrentRow(r[0]);
      }Very Thanks ;
    Marcos Ortega
    Brazil

  • Uix table with multiple lines per row

    Hi,
    how can I design a table that has multiple lines for one row.
    It should look like this
    row1-cell1 row1-cell2
    row1-cell3 row1-cell4
    row2-cell1 row2-cell2
    row2-cell3 row2-cell4
    Thanks a lot.
    Christian

    Christian,
    I'll scribble down a quick example off the top of my head...
    <table data:tableData="${mydata}">
    <column>
    <stackLayout>
    <link text="cell1"/>
    <link text="cell3"/>
    </stackLayout>
    </column>
    <column>
    <stackLayout>
    <link text="cell2"/>
    <link text="cell4"/>
    </stackLayout>
    </column>
    </table>
    I recommend you just play around with UIX XML, and you'll find something that works.
    Hope this helps,
    Ryan

  • Block Sizes on UIX Table

    Hello,
    I am using Jdev 10.1.2 and UIX version 2.2.16. I have a UIX search page, and I'd like to be able to allow users to be able to specify how many results are returned by a query. Currently, my table is very simple:
    <table width="100%"
    model="${bindings.FindPresubmissionsView1}"
    id="FindPresubmissionsView10"
    partialRenderMode="multiple"
    partialTargets="_uixState">
    This is obviously followed by a number of columns, etc... I know that normally the number of rows displayed is determined by the Iterator range size for the view object in my page's UI model. I played around a little with blockSize, but this doesn't seem to actually affect the number of rows displayed, and I have a feeling like I'm going about this the wrong way.
    Has anyone done anything similar? Or can anyone point me toward a working example of this? The UIX developer's guide seems to discuss what I'm looking for, but I'm a little confused about how to implement it. Is there any place to download demos of the examples in the developer's guide, perhaps? Thanks, all!
    John

    Hi
    Oops, I had no idea that you could dynamically change the iterator rangeSize on the Java backend, which basically makes any changes to my uix page unnecessary :) Thanks!
    John

  • UIX table tag's attribute VALUE is missing in jdev 10g production

    In JDeveloper 10g preview, I handled my table's navigation manually and need to set the table's tag attribute VALUE in order to keep the record range.
    However, when i convert my project to JDeveloper 10g Production, eventhought the page is still working fine, but in the design windows will show that the uix page is in invalid state and I found that the attribute VALUE is no more supported.
    Could anyone please help me and let me know how do i set back my record range? Thanks!

    It turns out that you're running into a bug that will be fixed in the soon to be released version of JDev 10g. The good news is that it's a design time bug, so your pages will still work at runtime. You can even fix the bug yourself if you want. In JDEV_HOME\jlib there is uix2-schemas.zip. Inside of that is ui/table.xsd.
    Add the below attribute definition inside of the complex type for the table, and you should be all set.
    <attribute name="value" type="ui:unsignedIntExpressionType" default="1"/>
    Hope this helps,
    Ryan Pollock
    UIX Team

  • JSP uix:table without bc4j

    Hi!
    I am trying to build a page in JSP including UIX tags for tabs and other layout issues. I would like to include a table. I have some fixed tables I want to include. In UIX XML I have seen I can manually build a table using the <table> tag and build up the table with a header, then row-by-row.
    Is it possible to do the same thing in UIX JSP as well? When I try to cut and paste the code from UIX XML to the JSP and prefix all the tags with uix:, all it gives me is "tag is not registered in taglib". Is there another way to build up a table, other then just plain html?
    One of the reasons I want to use the table tag, is to be able to split up long tables over multiple pages. Using BC4J and view objects is not an option!
    Thanks in advance,
    Jeroen van Veldhuizen

    Yes you can.
    Right click your session facade and choose create data control
    Then drag the query results from your datacontrol onto the page and drop as a pivot table.
    If you don't want to use ADF Binding you'll need to create a managed bean for your JSF that has the correct data collection for a pivot table.

Maybe you are looking for