Hiding viewobject table columns in uiXML/BC4J page

I would like to know how to hide a tablecolumn in a uiXml/BC4J page.
Regards
Tuncay

Tuncay -
You can modify the view.uix form and comment out the attribute you don't want displayed. For instance,
<!--<bc4j:column attrName="ManagerId">
<columnHeader>
<bc4j:sortableHeader/>
</columnHeader>!
<contents>
<bc4j:input readOnly="true"/>
</contents>
</bc4j:column>-->
Hope this helps,
Lynn
Java Tools Team

Similar Messages

  • How to use table-detail with uiXML-BC4J?

    Hi,
    is there any sample code available how to use the table-detail tag with BC4J?
    Found in the UIX samples that i need to implement a hide and a show event.
    How to implement these eventhandlers for a bc4j:table?
    Thanks, Markus

    Hi Markus:
    I am doing the same thing, I have a Master and Detail VO and calling Detail VO in <detail> </detail> tag.
    Everthing thing display correctly, but when i click on the sortedcolumnheader while detail is disclosed, it closes the detail part. My detail information generated based on BC4J:Table detail:disclosed elements. could you please let me if you have faced this problem.
    Thanks
    Mohammad Tahir

  • How can i hide table columns or rows in pages

    I can do it in numbers, but how can i hide a column or down in pages?

    Slim it down to nothing?
    Peter

  • Hiding a table column and its contents yet reading the values

    Hi all,
    hope someone can help as i urgently need a solution for this although its probably more of a javascript and html forms question than a JSP - but i couldnt find a good javascript forum - if any one has come across a good JS and HTML - i would appreciate if you would let me have a url for it - in the meantime as i need this urgentely and most JS sites that i have visted and posted on seem to be useless, i havent got a reply back yet , and since i've always found java sun forum good and helpful thought would post it here - hope no one minds it too much . Thanks in advance for any help with resolving my urgent problem.
    overview of question:
    I need to, using an onclick() event read the contents of the 4th cell in the clicked row and set the value of a hidden element � (not sure what element to use here attribute tag? Or some other - but basically, this needs to also be hidden, as I�m going to use this as one of the parameters to send through as part of the form - )
    explanation of question
    So when I do :-
    <td><netui:label value="{container.item.TELECARERID}"/></td> And using javascript :-
    row.cells[4].innerText;I can read the value and print it to screen as :-
    alert('row.cells[4].innerText)) = ' + row.cells[4].innerText);although at this stage I�m not sure how to now set this value to an element in the form so that I can include this value as part of the submit action of the form.
    However when I do the following, which is closer to what I�m trying to achieve (ie hide the 4th column of the table and its values � but when I just hide the value as in:-
    <td><netui:hidden dataInput="{container.item.TELECARERID}" dataSource="" /></td> I can�t use the above (row.cells[4].innerText;), javascript syntax to get to the value although the value is still in the viewsource of the html page.
    How can I hide this forth column of the table yet get the values of the 4th column and also set it to some element of the form so that it can be submitted with the date range as part of a criteria to search against by the backend server.
    the full code (well... relevant parts)
    Here is all the code:
    <table id="table1" class="tablebody" border="1">
            <tbody>
             <tr>
               <th><rpb:columnHeader field="FIRSTNAME"><i18n:getMessage messageName="first_name"/></rpb:columnHeader></th>
               <th><rpb:columnHeader field="LASTNAME"><i18n:getMessage messageName="last_name"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="LOGONNAME"><i18n:getMessage messageName="logon_name"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="TEAM"><i18n:getMessage messageName="team"/></rpb:columnHeader></th>
               <th><rpb:columnHeader field="TELECARERID"><i18n:getMessage messageName="telecarer_id"/></rpb:columnHeader></th>
            </tr>
           </netui-data:repeaterHeader>
           <netui-data:repeaterItem>
            <tr bgcolor="#FFFFFF" onMouseOver="this.bgColor='gold';" onMouseOut="this.bgColor='#FFFFFF';" onclick="selectTeleCarer(this)">
            <td><netui:label  value="{container.item.FIRSTNAME}"/></td>
              <td><netui:label value="{container.item.LASTNAME}"/></td>
             <td><netui:label  value="{container.item.LOGONNAME}"/></td>
           <td><netui:label  value="{container.item.TEAM}"/></td> 
            <td><netui:label value="{container.item.TELECARERID}"/></td>
           </tr>
          </tbody>///////and then I�m trying to using the below sepertaely printed javascript set it to the below hidden attribute so that it can be submitted as part of the form
    <netui:hidden tagId="teleCarerId" dataSource="{actionForm.teleCarerId}" dataInput=""/>
                                 <div>
                             <i18n:getMessage messageName="created_between"/>
                                <netui:textBox tagId="data" dataSource="{actionForm.fromDate}"/>
                                <button id="trigger" onclick="jscalendar/calendar.js">...</button>
                               <i18n:getMessage messageName="and"/>
                                <netui:textBox tagId="data1" dataSource="{actionForm.toDate}"/>
                                <button id="trigger2" onclick="jscalendar/calendar.js">...</button>
                            </div>
                    <br />
                    <netui:button value="Submit" type="submit"/>
                </netui:form>/// the java script is :-
    function selectTeleCarer(row)
        if ( row.style ) {
    row.style.backgroundColor = ('gold' == row.style.backgroundColor)?
    'white' : 'gold';
    //document.form.teleCarerId.value = row.cells[4].innerText;
    alert('row.cells[4].innerText)) = ' + row.cells[4].innerText);
    }

    thanks for the reply,
    but i cant use just html like <input type hidden > as i'm using the struts like framework with the netui tags in weblogic where i need to link the tag value to the form bean to be passed to the server . thus i need to use the netui tag , which doesnt have a name but a tagId instead, so i'm using it like this :
    <netui:hidden tagId="teleCarerId" dataSource="{actionForm.teleCarerId}" dataInput=""/>and then in javascrpit doing:
    //document.form.teleCarerId.value = row.cells[4].innerText;but thats not my problem ()as it probably will work and its only an issue after i resolve the first part of my question:-
    which is how do i hide a cloumn in a table and its values so that when the user selects a row i can pass the hidden value of row as part of my form .
    as i mentioned before when i make the cloumn visible as in
      <th><rpb:columnHeader field="TELECARERID"><i18n:getMessage messageName="telecarer_id"/></rpb:columnHeader></th>and give it a visible value:
      <td><netui:label value="{container.item.TELECARERID}"/></td>
           </tr>i can pick up the value fine using the javascript syntax:
    row.cells[4].innerText;however when i hide only the value - which is only part of what i want to do as i want to also hide the column heading so that this part of the table isnt seen- as in:-
    <td><netui:hidden dataInput="{container.item.TELECARERID}" dataSource="" /></td>then i cant use
    row.cells[4].innerText;to pick up the value although it does hide the value and in viewsourec the value is there - is there some other syntax that i should be using here - and also how can i hide the cloumn heading so that the table looks asthtically good on the browser?
    ie. what should i change this line of code to?
      <th><rpb:columnHeader field="TELECARERID"><i18n:getMessage messageName="telecarer_id"/></rpb:columnHeader></th>thanks in advance for any help.

  • ADF Image from BLOB Table Column

    Does anybody know how to show an image on a JSP page based on a Blob Column through ADF Binding ?
    I've seen a post which reference the use of <adf:render model="Row.image"/>. However this doesn't seem to work.
    Thanx

    Is there a way to put images based on BLOB table columns on a JSP Page using ADF/Struts/JSP, or not ?
    Does anybody have a clue ?
    Thanks

  • Hiding Table Columns with the Spry Element Selector

    I am trying to set up a toggle button that will show/hide
    rows >1 when clicked. I've used Adobe's
    "Hiding
    Table Columns with the Spry Element Selector" example and it
    worked fine with an HTML list, until I linked to actual XML data.
    Now it works in reverse. What gives?
    Here's the example:
    http://a44.awardspace.com/testing/toggleShowHideRows.htm

    That's what I started with. Same result:
    http://a44.awardspace.com/testing/toggleShowHideRows.htm

  • I want to convert a series of names into a table (in either numbers or pages). The list I have has a name and then an email address in brackets, followed by a 'yes' or a 'no'. I would like to separate the list into three columns

    I want to convert a series of names into a table (in either numbers or pages). The list I have has a name and then an email address in brackets, followed by a 'yes' or a 'no'. I would like to separate the list into three columns - the first containing the name, the second containing the email address and the third containing the 'yes' or 'no'.
    Can you help me ?

    The question that needs to be answered is what is separating the columns? Is it a single tab, one or more tabs, spaces, or what?  Or is it the brackets that makes the separation between the three pieces of data?
    If it is always a single tab, that makes it really easy.  All you have to do is find/replace the brackets with nothing (as Wayne said)
    If it might be multiple tabs, you can find/replace tab-tab with a single tab and repeat that a few times until no more double-tabs are found.
    If it is one or multiple spaces, that might be difficult. I'll think about this one if this is what you have. I'll ignore this possiblility for now.
    If it is the brackets separating the three pieces of data, you would Find/Replace the left bracket with a tab then do the same with the right bracket.

  • Hiding and restoring table columns from file?

    how i handle hiding and unhiding columns in a jtable is that i have a checkbox for each column, depending on which is checked "on" the tablecolumn is found and added to a vector and removed from the table.
    when the checkbox is checked "off" this vector is searched for the correct tablecolumn, and then added back to the table. this works fine.
    when i close out of the program, i go thru the table and write the visible column names along with its size to file.
    when i re-open the program, i create the table normally, then go thru the file and hide(remove) the tablecolumns found in it..this works fine.
    but when i go back to this checkbox list and try to unhide the tablecolumn, i get an exception
    java.lang.IllegalArgumentException: Cannot format given Object as a Number
         at java.text.NumberFormat.format(NumberFormat.java:219)
         at java.text.Format.format(Format.java:133)
         at javax.swing.JTable$DoubleRenderer.setValue(JTable.java:3397)
         at javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponent(DefaultTableCellRenderer.java:160)
         at javax.swing.JTable.prepareRenderer(JTable.java:3731)
         at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1149)
         at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1051)
         at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:974)
         at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)before i unhide the columns, the table is already populated with values. so it might have something to do with that...cuz there is no problems unhiding them if the table contains no data
    any ideas?
    thanks

    If you're interested, this method hides a table column without any modifications of its content:
       public static void setTableColumnVisible(JTable table, int col,                                                                             
                                                  boolean visible, int width) {
          try {
             TableColumn column = table.getColumnModel().getColumn(col);
             if (!visible) {
                column.setMinWidth(0);
                column.setWidth(0);
                column.setMaxWidth(0);
                column.setPreferredWidth(0);
             else {
                column.setWidth(width);
                column.setPreferredWidth(width);
          catch(Exception e) {
             e.printStackTrace();
       }Method use:
    . setTableColumnVisible(table, col, false, 0) hides the column
    . setTableColumnVisible(table, col, true, 100) restores the column to its size of 100
    Hope this helped,
    Regards.

  • Hiding a tablix column conditionnaly from page to page (group member to group member)

    Hi
    I have the following report
                  Col1   Col2    Col3
    Group1 
                    1          2      3
                    2          4      3
                   3           6      6
    (page break)
                Col1   Col2    Col3
    Group2 
                    1          1      0
                    1          0      0
                   2           1      0
    (page break)
                Col1   Col2    Col3
    Group2 
                  3        2         1 
                  1        4         2
                  4        6        3
    In Group2 (page2) since Sum(Col3) = 0 I want to hide the column for this group (page) only
    The result i need is:
                  Col1   Col2    Col3
    Group1 
                    1          2      3
                    2          4      3
                   3           6      6
    (page break)
                Col1   Col2    
    Group2 
                    1          1 
                    1          0  
               -----        ---          Notice there is no Col3
                   2           1     
    (page break)
                Col1   Col2    Col3
    Group2 
                  3        2         1 
                  1        4         2
                  4        6        3
    Is it possible ?

    This can be done by using an expression in the Hidden property of the column.
    For your expression you need to know what the textbox that contains the sum is called.  Select it and have a look at its Name property in the Properties window to find out.
    With that info, right-click the grey column header of the column that you want to hide and select
    Column Visibility.  In the popup select the "Show of hide based on an expression" radio button and click the fx button to enter an expression.
    The expression to be entered goes like this:
    =IIF(ReportItems!YourSumTextbox.Value > 0, False, True)
    This will completely hide the column when the sum is not more than zero.
    SQL Server MVP, MCITP/MCTS SQL Server 2008
    Check out my articles at BI: Beer Intelligence

  • Showing and Hiding Columns in an UIX page

    How To Dynamically Hide and Show Columns in a UIX Page

    The following will display or hide a column Address depending on the value of sessionScope.showAddress:
    <column rendered="${sessionScope.showAddress == null ? 'false' : sessionScope.showAddress}">
    If you have access to MetaLink, I would advise you to have a look to Note 306887.1: How To Dynamically Hide and Show Columns in a UIX Page
    Regards,
    Didier

  • Problems using detaildisclosure on UIXML BC4J

    Hi there.
    I have try to build a litle aplication with UIXML/BC4J and i need to use a table with DetailDisclosure but i can't show the hide detail of a row.
    Source Code :
    �UIXML Page�
    <?xml version="1.0" encoding="windows-1252" ?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j">
    <bc4j:registryDef>
    <bc4j:rootAppModuleDef name="CustomerToCustomerAppModule"
    definition="OE_UIX_v1.OeModule"
    releaseMode="stateful">
    <bc4j:viewObjectDef name="CustomerMasterVO" rangeSize="10"/>
    <bc4j:viewObjectDef name="CustomerDetailVO" rangeSize="1"/>
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    <content>
    <try xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <catch>
    <displayException/>
    </catch>
    <contents>
    <pageLayout xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    title="Visualizar Clientes">
    <!-- Start of common pageLayout section. If you plan to expand this
    example application, consider using a UIT template to specify the common
    portions of your pageLayout -->
    <productBranding>
    <image source="tools_collage.gif"
    shortDesc="JDeveloper Product Logo"/>
    </productBranding>
    <corporateBranding>
    <image source="oraclelogo.gif" shortDesc="Oracle Logo"/>
    </corporateBranding>
    <globalButtons>
    <globalButtonBar>
    <contents>
    <globalButton source="www_home.gif" text="Home"
    destination="Main.uix"/>
    <globalButton source="www_contact.gif" text="Contact Us"
    destination="http://www.oracle.com"/>
    <globalButton source="www_help.gif" text="Help"
    destination="http://otn.oracle.com/products/jdev/content.html"/>
    </contents>
    </globalButtonBar>
    </globalButtons>
    <copyright>Copyright 2003 Meitner. All Rights Reserved.</copyright>
    <privacy>
    <link text="Privacy Statement" destination="http://www.meitner.com"/>
    </privacy>
    <!-- End of common pageLayout section -->
    <contents>
    <!-- this will contain any validation errors after form
    submission -->
    <messageBox automatic="true"/>
    <bc4j:rootAppModuleScope name="CustomerToCustomerAppModule">
    <contents>
    <header text="Pesquisar">
    <contents>
    <form name="procurar" method="POST">
    <contents>
    <inlineMessage prompt="Condi��o de Pesquisa"
    vAlign="middle">
    <contents>
    <flowLayout>
    <contents>
    <textInput name="attrPesquisa"
    data:text="ctrl:page@attrPesquisa"
    shortDesc="Pesquisar"/>
    </contents>
    </flowLayout>
    </contents>
    <end>
    <submitButton text="Pesquisar" ctrl:event="search"/>
    </end>
    </inlineMessage>
    </contents>
    </form>
    </contents>
    </header>
    <header text="Resultados">
    <contents>
    <form name="viewForm" method="POST">
    <contents>
    <tableLayout hAlign="center">
    <contents>
    <bc4j:viewObjectScope name="CustomerMasterVO">
    <contents>
    <bc4j:table name="viewTable" width="80%"
    alternateText="N�o foram encontrados clientes"
    formSubmitted="true">
    <detail>
    <labeledFieldLayout rendered="true">
    <contents>
    <tableLayout>
    <contents>
    <bc4j:rootAppModuleScope
    name="CustomerToCustomerAppModule">
    <contents>
    <bc4j:viewObjectScope
    name="CustomerDetailVO">
    <contents>
    <bc4j:rowScope
    name="detailCustomerDetailVO">
    <contents>
    <bc4j:messageList attrName="CustAddress"
    readOnly="true"/>
    <bc4j:messageInput attrName="PhoneNumbers"
    readOnly="true"/>
    <bc4j:messageInput attrName="NlsLanguage"
    readOnly="true"/>
    <bc4j:messageInput attrName="NlsTerritory"
    readOnly="true"/>
    <bc4j:messageInput attrName="CreditLimit"
    readOnly="true"/>
    <bc4j:messageInput attrName="CustEmail"
    readOnly="true"/>
    <bc4j:messageInput attrName="AccountMgrId"
    readOnly="true"/>
    <bc4j:messageInput attrName="CustGeoLocation"
    readOnly="true"/>
    <bc4j:messageInput attrName="CustomerId"
    readOnly="true"/>
    </contents>
    </bc4j:rowScope>
    </contents>
    </bc4j:viewObjectScope>
    </contents>
    </bc4j:rootAppModuleScope>
    </contents>
    </tableLayout>
    <formValue name="disclosed" value="1"/>
    </contents>
    </labeledFieldLayout>
    </detail>
    <tableSelection>
    <!-- single selection for each row in the table -->
    <singleSelection selectedIndex="0"
    shortDesc="Cliente Selecionado">
    <contents>
    <!-- the update button causes the currently selected
    row to be sent to the update page -->
    <submitButton text="Update"
    ctrl:event="update"/>
    <!-- the delete button causes the currently selected
    row to be removed -->
    <submitButton text="Delete"
    ctrl:event="delete"/>
    <submitButton text="Create"
    ctrl:event="create"/>
    </contents>
    </singleSelection>
    </tableSelection>
    <!-- the key identifying the current row in the table -->
    <bc4j:keyStamp>
    <bc4j:rowKey name="key"/>
    </bc4j:keyStamp>
    <contents>
    <!-- A bc4j:column element is added for each attribute
    in the ViewObject. -->
    <bc4j:column attrName="CustomerId">
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>
    <contents>
    <bc4j:input readOnly="true"/>
    </contents>
    </bc4j:column>
    <bc4j:column attrName="CustFirstName">
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>
    <contents>
    <bc4j:input readOnly="true"/>
    </contents>
    </bc4j:column>
    <bc4j:column attrName="CustLastName">
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>
    <contents>
    <bc4j:input readOnly="true"/>
    </contents>
    </bc4j:column>
    </contents>
    <detailDisclosure>
    <disclosed data:disclosed="disclosed@detailData@ctrl:eventResult"/>
    </detailDisclosure>
    </bc4j:table>
    </contents>
    </bc4j:viewObjectScope>
    </contents>
    </tableLayout>
    </contents>
    </form>
    </contents>
    </header>
    </contents>
    </bc4j:rootAppModuleScope>
    </contents>
    <contentFooter>
    <!-- the create button redirects to the create page -->
    <button text="Create" ctrl:event="create"/>
    </contentFooter>
    </pageLayout>
    </contents>
    </try>
    </content>
    <handlers>
    <event name="show">
    <method class="pt.meitner.oe.GlobalEvents" method="doHideShowEvent"/>
    </event>
    <event name="hide">
    <method class="pt.meitner.oe.GlobalEvents" method="doHideShowEvent"/>
    </event>
    <event name="search">
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="CustomerToCustomerAppModule">
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="CustomerMasterVO">
    <!-- search for the view criteria -->
    <bc4j:findByExample>
    <bc4j:exampleRow ignoreCase="true">
    <bc4j:exampleAttribute>
    <bc4j:nameBinding>
    <bc4j:parameter name="attrName"/>
    </bc4j:nameBinding>
    <bc4j:valueBinding>
    <bc4j:parameter name="attrValue"/>
    </bc4j:valueBinding>
    </bc4j:exampleAttribute>
    </bc4j:exampleRow>
    </bc4j:findByExample>
    <bc4j:executeQuery/>
    <!-- store the current search criteria as page properties -->
    <bc4j:setPageProperty name="attrName">
    <bc4j:parameter name="attrName"/>
    </bc4j:setPageProperty>
    <bc4j:setPageProperty name="attrValue">
    <bc4j:parameter name="attrValue"/>
    </bc4j:setPageProperty>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    <event name="sort" source="viewTable">
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="CustomerToCustomerAppModule">
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="CustomerMasterVO">
    <!-- sort by the submitted attribute name -->
    <bc4j:sort/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    <event name="goto" source="viewTable">
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="CustomerToCustomerAppModule">
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="CustomerMasterVO">
    <!-- navigate to the submitted range -->
    <bc4j:goto/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    <event name="create">
    <!-- forward to the create page -->
    <ctrl:go name="CustomerVO_Create" redirect="true"/>
    </event>
    <event name="update">
    <!-- forward to the update page, passing the selected key
    as a page property -->
    <ctrl:go name="CustomerVO_Update" redirect="true">
    <ctrl:property name="key">
    <ctrl:selection name="viewTable" key="key"/>
    </ctrl:property>
    </ctrl:go>
    </event>
    <event name="delete">
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="CustomerToCustomerAppModule">
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="CustomerMasterVO">
    <!-- find the selected Row -->
    <bc4j:findRowByKey>
    <bc4j:keyBinding>
    <bc4j:selectionKey name="viewTable" key="key"/>
    </bc4j:keyBinding>
    <bc4j:handlers>
    <!-- remove the selected ViewObject row -->
    <bc4j:removeRow/>
    <!-- execute the query to eliminate dead row access -->
    <bc4j:executeQuery/>
    </bc4j:handlers>
    </bc4j:findRowByKey>
    </bc4j:findViewObject>
    <!-- commit the transaction, forwards to self automatically -->
    <bc4j:commit/>
    </bc4j:findRootAppModule>
    </event>
    </handlers>
    </page>
    �Java Class�
    package pt.meitner.oe;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.servlet.event.EventResult;
    import oracle.cabo.servlet.event.PageEvent;
    import oracle.cabo.servlet.ui.data.PageEventFlattenedDataSet;
    import oracle.cabo.ui.UIConstants;
    import oracle.cabo.ui.data.DataObject;
    import oracle.cabo.ui.data.DataObjectList;
    import oracle.cabo.ui.RenderingContext;
    public class GlobalEvents
    public GlobalEvents()
    public static EventResult doHideShowEvent(BajaContext bc, Page page,
    PageEvent event)
    PageEventFlattenedDataSet tableRows =
    new PageEventFlattenedDataSet(event, event.getParameter(UIConstants.SOURCE_PARAM));
    // this is the row that must be (un)disclosed:
    int row = Integer.parseInt(event.getParameter(UIConstants.VALUE_PARAM));
    // decide whether we want to disclose or undisclose depending on the name
    // of the event
    System.out.println("r -> " + row + " table " + event.getParameter(UIConstants.SOURCE_PARAM));
    boolean disclose = UIConstants.SHOW_EVENT.equals(event.getName());
    System.out.println("disclose =" + disclose);
    DataObjectList detailData = new DetailData(tableRows, row, disclose);
    EventResult result = new EventResult(page);
    result.setProperty("detailData", detailData);
    return result;
    private static final class DetailData implements DataObjectList
    * @param pageEvent contains the current disclosure state of the table
    * @param index the index of the row that must have its disclosure state
    * changed
    * @param disclosure the new disclosure state for the row
    public DetailData(DataObjectList pageEvent, int index, boolean disclose)
    _pageEvent = pageEvent;
    // initially, none of the table rows will be disclosed, so there will be
    // no pageEvent data and this length would be zero:
    _length = pageEvent.getLength();
    _index = index;
    _disclose = disclose;
    public int getLength()
    // make sure that the length we return is sufficiently large enough that
    // we reach the index we want to change
    return (_index >= length) ? index+1 : _length;
    public DataObject getItem(int index)
    boolean disclose;
    if (index==_index)
    // this is the index that we want to change.
    disclose = _disclose;
    else if (index < _length)
    // this index can safely be pulled from the pageEvent
    DataObject row = _pageEvent.getItem(index);
    // if there was a "disclosed" form element on this row then we
    // consider the row disclosed:
    disclose = (row.selectValue(null, "disclosed") != null);
    else
    disclose = false;
    return disclose ? DISCLOSETRUE : DISCLOSEFALSE;
    private final DataObjectList _pageEvent;
    private final int index, length;
    private final boolean _disclose;
    private static final DataObject DISCLOSETRUE = new DataObject() {
    public Object selectValue(RenderingContext rc, Object key)
    return Boolean.TRUE;
    private static final DataObject DISCLOSEFALSE = new DataObject() {
    public Object selectValue(RenderingContext rc, Object key)
    return Boolean.FALSE;

    Eliseu -
    Unfortunately with the forum software not escaping any XML content, I'm having a real hard time figuring out what kind of problem you are having with detail disclosure. I did post a response to your message in the UIX forum:
    Problems with details disclosure
    You might want to check out my response and post any follow-ups there...
    Andy

  • ViewObject (Date column) works fine in 9.0.3 but causes errors in 9.0.5

    Good Morning,
    I have generated entity/view objects, from the same table, for JDev9.0.3 and JDev9.0.5. The application runs fine under JDev9.0.3.
    When I drag/drop a view onto the design panel within 9.0.5 and run its associated dataAction two unexpected thing occur.
    1. The table displays 'no records found' in the browser. I am certain the table has thousand's of records.
    2. When I refresh the browser (hold the ctrl key and click MS Explorers refresh button) I receive the following error:
    oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:oracle.sql.TIMESTAMP@2228
    I can reproduce this error on 'any' table which have date columns. Again, the same view displays fine under 9.0.3. Can this problem be reproduced on your end using 9.0.5? If so, there a work-around? If not, do you have any ideal on what would cause this? Is there a workaround or a patch?
    Thank you

    I am basically following the procedures described here:
    http://otn.oracle.com/products/jdev/collateral/tutorials/9050/adfuix_tut.html
    My Date column attributes are set as follows:
    Entity Attribute Tab;
    a. The name is DateCreated
    b. The type is Date
    c. Updateable is Always
    d. Persistend and Queriable is checked.
    Attribute Properties Tab:
    Default values
    Control Hints Tab:
    a. Display Hint: Display
    b. Format Type: Simple Date
    c. Format: yyyy-MM-dd
    d. Control Type: Default
    e. Form Type: Detail
    My business components were created from my
    'Business Components Diagram'. I created the diagram using dnd from a table located under the 'Connections --> Database' pane.
    I also have a StrutsPageFlow diagram. When I dnd a viewobject onto one of my "uix" pages, I do not see 'EL' binding syntax on any date columns. I can see this information within my other columns.
    I understand the Emp table has a HireDate column. Are you able to display the 'HireDate' column on a uix page? If you are and were using the same build of JDeveloper, then I need to figure out what Im doing wrong. My first guess is the way 9.0.2/9.0.3 handled dates and the way 9.0.5 is handling dates is different.
    Thanks

  • How to Print the Report Column headers on each page of any report

    Can someone offer assistance on how I can go about achieving the ability to show and print the Report Column headers on each page of any report using the Print Attributes of APEX 3.0? These reports will be printed using Excel and Word.
    I read a thread with a similar request but the answer seems vague for my level of understanding.
    I am connected to a print server and using BI Publisher.
    Thanks,
    Ric

    Hello Ric,
    >> These reports will be printed using Excel and Word.
    I'm not sure I understand what you are trying to do. You are using a very powerful tool – BI Publisher – why do you need Excel or Word for printing? Is there a special need only Excel or Word can provide?
    One of the major advantages of using BI Publisher is that it's taking care of all these tedious tasks like reasonable page breaking, headers and footers, and also table headers.
    Regards,
    Arie.

  • Move Table Column with AppleScript in Microsoft Word

    Microsoft Word has a flaw (in my opinion) with tables in that it aligns the left and right text with the margins rather than aligning the table columns with the margins. This results in sloppy tables, because the left and right borderlines lie outside the margins.
    I would like to fix the word tables by
    calculating the left cell padding and right cell padding in points and setting them to variables {left_pad,right_pad} respectively
    move left column by left_pad to the right
    move right column by right_pad to the left
    The script I was working on does not work, but I will post it to show my thought process as I hone in on my solution.
    tell application "Microsoft Word"
        --595 points is width of A4 paper
        -- Set page margin in points to variables
        set {l_margin, r_margin, t_margin, b_margin} to {(get left margin of page setup of active document), get (right margin of page setup of active document), get (top margin of page setup of active document), get (bottom margin of page setup of active document)}
        get {l_margin, r_margin, t_margin, b_margin}
        -- Set specific Paragraph margins
        -- NOTE: If you select a table thinking you wish to drag just the left margin to the right, or the right margin to the left, this code does not accomplish this because each cell has its own paragraph formatting. This code will set the margin for every single cell, because each cell has its own margins! (separate from padding).
        set para_sel to paragraph format of selection
        set paragraph format left indent of para_sel to (centimeters to points centimeters 0.5)
        -- Aligning left and right columns of table with the margins
        -- NOTE: There is a command to set left row indent, but not right row indent (very stupid of Microsoft)
    end tell

    I have worked up something that seems to work (although I cannot promise it is the best way). Hope it helps anyone else who has this need.
    tell application "Microsoft Word"
    activate
    set findRange to find object of selection
    clear formatting findRange -- clear any previous formatting used in a find operation
    set forward of findRange to true -- find forward
    set style of findRange to "List Bullet" -- the style to look for
    tell findRange
    set gotIt to execute find find text "" -- do the search w/o matching any text
    end tell
    if gotIt is true then -- if a match was found
    copy object selection -- copy it to the clipboard
    set mySelection to (the clipboard) -- then put clipboard into a variable
    set myOffset to ¬
    (get selection information selection information type ¬
    (horizontal position relative to page)) -- now put selection info into a variable
    display dialog mySelection & return & (myOffset as text) -- then display it
    end if
    end tell

  • Frame 9 solution for table column + side head does not work in Frame 10 and 11

    In Frame 9 structured (DITA) we could force Frame to record the actual widths of table columns in the DITA XML.  Frame 9 would respect the widths when opening the file.  This was particularly useful for forcing tables to be wide -- to go across the column and the side head -- and for the columns to never resize. 
    In Frame 9 this was done by commenting out the line
    "writer use proportional widths;" 
    like this
    "/* writer use proportional widths; */"
    in the topic.rules.text" file located in
    "...\FrameMaker9\Structure\xml\DITA\app\DITA-Topic-FM"
    This no longer works in Frame10 and Frame 11.  Even though the same line is commented out in all the "NAME.rules.txt" files in all the subdirectories of
        "...\AdobeFrameMaker11\Structure\xml\DITA_1.2\app"
    and
        "...\AdobeFrameMaker11\Structure\xml\DITA\app"  
    and
        "...\AdobeFrameMaker10\Structure\xml\DITA_1.2\app"
    and
        "...\AdobeFrameMaker10\Structure\xml\DITA\app"  .
    Commenting out the line does force Frame 10 and 11 to record  the absolute column width (2.357" etc.) in the DITA XML.
    However, on Open,  Frame 10 and 11 force the table to fit in the column, not the column and sidehead. That is they behave as though they were still using proportional column widths.  It seems the original values (as inserted by Frame 10 and 11 before closing!) are recalculated on Open, thereby mimicking the default proportional width behavior.  
    For example, this on Save then Close from Frame 10 or 11
    <table frame = "topbot" colsep = "0" rowsep = "1">
    <tgroup cols = "4" colsep = "0" rowsep = "1" outputclass = "FormatB">
    <colspec colnum = "1" colname = "1" colwidth = "1.796in" colsep = "0"/>
    <colspec colnum = "2" colname = "2" colwidth = "1.852in" colsep = "0"/>
    <colspec colnum = "3" colname = "3" colwidth = "1.179in" colsep = "0"/>
    <colspec colnum = "4" colname = "4" colwidth = "2.152in" colsep = "0"/>
    goes to this on Open then Save: 
    <table frame = "topbot" colsep = "0" rowsep = "1">
    <tgroup cols = "4" colsep = "0" rowsep = "1" outputclass = "FormatB">
    <colspec colnum = "1" colname = "1" colwidth = "1.351in" colsep = "0"/>
    <colspec colnum = "2" colname = "2" colwidth = "1.393in" colsep = "0"/>
    <colspec colnum = "3" colname = "3" colwidth = "0.887in" colsep = "0"/>
    <colspec colnum = "4" colname = "4" colwidth = "1.618in" colsep = "0"/>
    Any help at all would be appreciated!  
    We have 8,000 to 10,000 pages to PDF in the next few days and about 33% of those pages are messed up tables!
    Message was edited by: borealforest

    Hi...
    Unfortunately, I don't have any insight into the default DITA table handling in FM10 or FM11 .. so can't give you the answer you're looking for. Since both FM10 and FM11 offer ExtendScript, you could write a script (or have one written) that processes all of your files to reset the table widths. Or, perhaps the best short term solution may be to reinstall FM9 to get the job done, then spend more time later to figure out a better solution.
    One alternative would be for you to use DITA-FMx, which supports the table/@pgwide attribute for controlling which tables span the page and which don't. Since your tables probably don't make use of this attribute, it won't help in the near term, but might make sense going forward.
    Cheers,
    Scott Prentice
    Leximation, Inc.
    www.leximation.com

Maybe you are looking for

  • Error when run report wher DB in another Network

    hi every one i have report give this error REP-0159: Syntax error on command line when i connect on DB that in another network but if application server and DB in the same network it's work Successful Thanks

  • Remote no go in hifi mode?

    Anyone got any tips on how to get the remote to work on hifi mode?

  • Ipod won't start up after a long time being off

    Hey guys well, I have a wierd problem, here it goes my ipod(5th gen video 30 gb) well not start up after it's been off for let's say a day. I know it must have a full charge and it does. The keys do not respond, I usally have to plug it in or sometim

  • Error when downloading attachments and the calendar

    Hi! We're having problems downloading attachments in the forum, the calendar and reports from iLearning with Internet Explorer. The error message states: Internet Explorer cannot download (url goes here) Internet Explorer was not able to download thi

  • Data entry in module pool screen

    Hi all, I have created a module pool program. on the screen of the program, i have entered a dictionary field KNA1-KUNNR. On the second field on the screen, i have coded a search help to generate the F4 help based on the entries in the first field. N