Read only table not displaying data

hi my read only table is not dispalying data when the page load,am in jdeveloper 11.1.1.6.0
<af:query id="qryId1" headerText="Search" disclosed="true"
                      value="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
                      model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
                      queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
                      queryOperationListener="#{bindings.ImplicitViewCriteriaQuery.processQueryOperation}"
                      partialTriggers="::t1"/>
          </af:panelHeader>
          <af:panelGroupLayout id="pgl1" halign="left" valign="middle"
                               layout="vertical" inlineStyle="width:1806px;">
            <af:table value="#{bindings.CfgTablesView1.collectionModel}"
                      var="row" rows="#{bindings.CfgTablesView1.rangeSize}"
                      emptyText="#{bindings.CfgTablesView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                      fetchSize="#{bindings.CfgTablesView1.rangeSize}"
                      rowBandingInterval="0" id="t1" width="705"
                      inlineStyle="height:500px;">
              <af:column sortProperty="Tablename" sortable="false"
                         headerText="#{bindings.CfgTablesView1.hints.Tablename.label}"
                         id="c1">
                <af:outputText value="#{row.Tablename}" id="ot1"/>
              </af:column>
              <af:column sortProperty="Description" sortable="false"
                         headerText="#{bindings.CfgTablesView1.hints.Description.label}"
                         id="c2">
                <af:outputText value="#{row.Description}" id="ot2"/>
              </af:column>
            </af:table>it show no data to display even if there is data in the database
Edited by: adf0994 on 2012/11/15 9:43 AM
Edited by: adf0994 on 2012/11/15 9:45 AM
Edited by: adf0994 on 2012/11/15 10:02 AM
Edited by: adf0994 on 2012/11/15 10:09 AM

ok i did that is working,but the problem is when the page load it does not display data,i have to click search button and on my query panel and click refersh than able to see data
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
          xmlns:f="http://java.sun.com/jsf/core">
  <af:panelHeader text="Maintain Schema" id="ph1"
                  inlineStyle="height:853px; border-color:Lime; border-style:ridge;">
    <f:facet name="context"/>
    <f:facet name="menuBar"/>
    <f:facet name="toolbar">
      <af:outputLabel value="CF-L-017" id="ol1"/>
    </f:facet>
    <f:facet name="legend"/>
    <f:facet name="info"/>
    <af:panelStretchLayout id="psl1" inlineStyle="width:1869px; height:801px;"
                           bottomHeight="345px">
      <f:facet name="bottom">
        <af:panelGroupLayout layout="scroll"
                             xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                             id="pgl3" inlineStyle="width:1950px;">
          <af:panelStretchLayout id="psl2"
                                 inlineStyle="width:1861px; height:376px;"
                                 endWidth="4px">
            <f:facet name="center">
              <af:panelHeader text="Fields" id="ph6"
                              inlineStyle="height:500px; border-color:Lime; border-style:ridge;">
                <f:facet name="context"/>
                <f:facet name="menuBar"/>
                <f:facet name="toolbar"/>
                <f:facet name="legend"/>
                <f:facet name="info"/>
                <af:table value="#{bindings.CfgFieldsView1.collectionModel}"
                          var="row" rows="#{bindings.CfgFieldsView1.rangeSize}"
                          emptyText="#{bindings.CfgFieldsView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.CfgFieldsView1.rangeSize}"
                          rowBandingInterval="0"
                          selectedRowKeys="#{bindings.CfgFieldsView1.collectionModel.selectedRow}"
                          selectionListener="#{bindings.CfgFieldsView1.collectionModel.makeCurrent}"
                          rowSelection="single" id="t2"
                          partialTriggers="::cb2 ::cb5 ::cb6 ::cb4 ::cb3 ::t1"
                          inlineStyle="height:164px;" columnStretching="last"
                          width="918">
                  <af:column sortProperty="Fieldlabel" sortable="true"
                             headerText="#{bindings.CfgFieldsView1.hints.Fieldlabel.label}"
                             id="c7">
                    <af:outputText value="#{row.Fieldlabel}" id="ot4"/>
                  </af:column>
                  <af:column sortProperty="Format" sortable="true"
                             headerText="#{bindings.CfgFieldsView1.hints.Format.label}"
                             id="c4">
                    <af:outputText value="#{row.Format}" id="ot7"/>
                  </af:column>
                  <af:column sortProperty="Type" sortable="true"
                             headerText="#{bindings.CfgFieldsView1.hints.Type.label}"
                             id="c3">
                    <af:outputText value="#{row.Type}" id="ot6"/>
                  </af:column>
                  <af:column sortProperty="Length" sortable="true"
                             headerText="#{bindings.CfgFieldsView1.hints.Length.label}"
                             id="c6">
                    <af:outputText value="#{row.Length}" id="ot3">
                      <af:convertNumber groupingUsed="false"
                                        pattern="#{bindings.CfgFieldsView1.hints.Length.format}"/>
                    </af:outputText>
                  </af:column>
                  <af:column sortProperty="Fielddescription" sortable="true"
                             headerText="#{bindings.CfgFieldsView1.hints.Fielddescription.label}"
                             id="c5">
                    <af:outputText value="#{row.Fielddescription}" id="ot5"/>
                  </af:column>
                </af:table>
                <af:panelHeader text="Details" id="ph4"
                                inlineStyle="height:191px; border-style:ridge; border-color:Lime;">
                  <f:facet name="context"/>
                  <f:facet name="menuBar"/>
                  <f:facet name="toolbar"/>
                  <f:facet name="legend"/>
                  <f:facet name="info"/>
                  <af:panelFormLayout id="pfl1" maxColumns="2" rows="3"
                                      partialTriggers="t1"
                                      inlineStyle="width:589px;">
                    <af:inputText value="#{bindings.Fieldlabel.inputValue}"
                                  label="#{bindings.Fieldlabel.hints.label}"
                                  required="#{bindings.Fieldlabel.hints.mandatory}"
                                  columns="20"
                                  maximumLength="#{bindings.Fieldlabel.hints.precision}"
                                  shortDesc="#{bindings.Fieldlabel.hints.tooltip}"
                                  id="it4">
                      <f:validator binding="#{bindings.Fieldlabel.validator}"/>
                    </af:inputText>
                    <af:inputText value="#{bindings.Format.inputValue}"
                                  label="#{bindings.Format.hints.label}"
                                  required="#{bindings.Format.hints.mandatory}"
                                  columns="20"
                                  maximumLength="#{bindings.Format.hints.precision}"
                                  shortDesc="#{bindings.Format.hints.tooltip}"
                                  id="it3">
                      <f:validator binding="#{bindings.Format.validator}"/>
                    </af:inputText>
                    <af:selectOneChoice value="#{bindings.Type.inputValue}"
                                        label="#{bindings.Type.label}"
                                        required="#{bindings.Type.hints.mandatory}"
                                        shortDesc="#{bindings.Type.hints.tooltip}"
                                        id="soc1">
                      <f:selectItems value="#{bindings.Type.items}" id="si1"/>
                    </af:selectOneChoice>
                    <af:inputText value="#{bindings.Length.inputValue}"
                                  label="#{bindings.Length.hints.label}"
                                  required="#{bindings.Length.hints.mandatory}"
                                  columns="20"
                                  maximumLength="#{bindings.Length.hints.precision}"
                                  shortDesc="#{bindings.Length.hints.tooltip}"
                                  id="it2">
                      <f:validator binding="#{bindings.Length.validator}"/>
                      <af:convertNumber groupingUsed="false"
                                        pattern="#{bindings.Length.format}"/>
                    </af:inputText>
                    <af:inputText value="#{bindings.Fielddescription.inputValue}"
                                  label="#{bindings.Fielddescription.hints.label}"
                                  required="#{bindings.Fielddescription.hints.mandatory}"
                                  columns="20"
                                  maximumLength="#{bindings.Fielddescription.hints.precision}"
                                  shortDesc="#{bindings.Fielddescription.hints.tooltip}"
                                  id="it1">
                      <f:validator binding="#{bindings.Fielddescription.validator}"/>
                    </af:inputText>
                    <f:facet name="footer">
                      <af:panelGroupLayout layout="vertical" id="pgl5">
                        <af:panelGroupLayout layout="horizontal" id="pgl2">
                          <af:commandButton actionListener="#{bindings.First.execute}"
                                            text="First"
                                            partialSubmit="true" id="cb2"/>
                          <af:commandButton actionListener="#{bindings.CreateInsert.execute}"
                                            text="Add New"
                                            id="cb5"/>
                          <af:commandButton actionListener="#{bindings.Commit.execute}"
                                            text="Save"
                                            id="cb7"/>
                          <af:commandButton actionListener="#{bindings.Delete.execute}"
                                            text="Delete"
                                            id="cb6"/>
                          <af:commandButton actionListener="#{bindings.Next.execute}"
                                            text="Next"
                                            partialSubmit="true" id="cb4"/>
                          <af:commandButton actionListener="#{bindings.Last.execute}"
                                            text="Last"
                                            partialSubmit="true" id="cb3"/>
                        </af:panelGroupLayout>
                        <af:commandButton text="Submit" id="cb1"/>
                      </af:panelGroupLayout>
                    </f:facet>
                  </af:panelFormLayout>
                </af:panelHeader>
              </af:panelHeader>
            </f:facet>
            <f:facet name="end"/>
          </af:panelStretchLayout>
        </af:panelGroupLayout>
      </f:facet>
      <f:facet name="center">
        <af:panelHeader text="Tables" id="ph2"
                        inlineStyle="height:500px; border-color:Lime; border-style:ridge;">
          <f:facet name="context"/>
          <f:facet name="menuBar"/>
          <f:facet name="toolbar"/>
          <f:facet name="legend"/>
          <f:facet name="info"/>
          <af:panelHeader text="Filter" id="ph3"
                          inlineStyle="height:165px; border-style:ridge; border-color:Lime;">
            <f:facet name="context"/>
            <f:facet name="menuBar"/>
            <f:facet name="toolbar"/>
            <f:facet name="legend"/>
            <f:facet name="info"/>
            <af:query id="qryId1" headerText="Search" disclosed="true"
                      value="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
                      model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
                      queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
                      queryOperationListener="#{bindings.ImplicitViewCriteriaQuery.processQueryOperation}"
                      partialTriggers="::t1"/>
          </af:panelHeader>
          <af:panelGroupLayout id="pgl1" halign="left" valign="middle"
                               layout="vertical"
                               inlineStyle="width:1796px; height:298px;">
            <af:table value="#{bindings.CfgTablesView11.collectionModel}"
                      var="row" rows="#{bindings.CfgTablesView11.rangeSize}"
                      emptyText="#{bindings.CfgTablesView11.viewable ? 'No data to display.' : 'Access Denied.'}"
                      fetchSize="#{bindings.CfgTablesView11.rangeSize}"
                      rowBandingInterval="0" id="t1" width="833"
                      inlineStyle="height:186px;" columnStretching="last"
                      columnSelection="multiple"
                      partialTriggers="::cb8 ::cb10 ::cb9"
                      rowSelection="single"
                      selectedRowKeys="#{bindings.CfgTablesView11.collectionModel.selectedRow}"
                      selectionListener="#{bindings.CfgTablesView11.collectionModel.makeCurrent}">
              <af:column sortProperty="Tablename" sortable="true"
                         headerText="#{bindings.CfgTablesView11.hints.Tablename.label}"
                         id="c2">
                <af:outputText value="#{row.Tablename}" id="ot2"/>
              </af:column>
              <af:column sortProperty="Description" sortable="true"
                         headerText="#{bindings.CfgTablesView11.hints.Description.label}"
                         id="c1">
                <af:outputText value="#{row.Description}" id="ot1"/>
              </af:column>
            </af:table>
            <af:panelFormLayout id="pfl2" maxColumns="3" rows="1">
              <f:facet name="footer"/>
              <af:panelGroupLayout id="pgl6" layout="horizontal" valign="middle"
                                   halign="right" inlineStyle="width:1228px;">
                <af:inputText value="#{bindings.Tablename.inputValue}"
                              label="#{bindings.Tablename.hints.label}"
                              required="#{bindings.Tablename.hints.mandatory}"
                              columns="#{bindings.Tablename.hints.displayWidth}"
                              maximumLength="#{bindings.Tablename.hints.precision}"
                              shortDesc="#{bindings.Tablename.hints.tooltip}"
                              id="it5">
                  <f:validator binding="#{bindings.Tablename.validator}"/>
                </af:inputText>
                <af:inputText value="#{bindings.Description.inputValue}"
                              label="#{bindings.Description.hints.label}"
                              required="#{bindings.Description.hints.mandatory}"
                              columns="#{bindings.Description.hints.displayWidth}"
                              maximumLength="#{bindings.Description.hints.precision}"
                              shortDesc="#{bindings.Description.hints.tooltip}"
                              id="it6">
                  <f:validator binding="#{bindings.Description.validator}"/>
                </af:inputText>
                <af:commandButton text="Add New" id="cb8"
                                  actionListener="#{bindings.CreateInsert1.execute}"/>
                <af:commandButton actionListener="#{bindings.Commit.execute}"
                                  text="Save" id="cb9"/>
                <af:commandButton actionListener="#{bindings.Delete1.execute}"
                                  text="Delete" id="cb10"/>
              </af:panelGroupLayout>
            </af:panelFormLayout>
          </af:panelGroupLayout>
        </af:panelHeader>
      </f:facet>
    </af:panelStretchLayout>
  </af:panelHeader>
</jsp:root>

Similar Messages

  • Dynamic Table not displaying data

    First off, i have searched high and low, and havent been able to find much help.
    That said, i have been trying to create a simple search/results page in dream weaver, i am using ASP and sql express.  Ive been following the adobe tutorial, and everything works as it says it should, except that when you actually do a search, and hit submit, the results page only shows the dynamic table headings, but no data.
    On the results page, when i create the record set, if i test it, the data shows up correctly.  However on the page itself, nothing shows up.
    Here are some example screen shots:

    Results page:
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!--#include file="Connections/netdata.asp" -->
    <%
    Dim rsUserResults__MMColParam
    rsUserResults__MMColParam = "1"
    If (Request.QueryString("frmUserSearch") <> "") Then
      rsUserResults__MMColParam = Request.QueryString("frmUserSearch")
    End If
    %>
    <%
    Dim rsUserResults
    Dim rsUserResults_cmd
    Dim rsUserResults_numRows
    Set rsUserResults_cmd = Server.CreateObject ("ADODB.Command")
    rsUserResults_cmd.ActiveConnection = MM_netdata_STRING
    rsUserResults_cmd.CommandText = "SELECT logonDate FROM dbo.loginInfo WHERE userName = ?"
    rsUserResults_cmd.Prepared = true
    rsUserResults_cmd.Parameters.Append rsUserResults_cmd.CreateParameter("param1", 200, 1, 50, rsUserResults__MMColParam) ' adVarChar
    Set rsUserResults = rsUserResults_cmd.Execute
    rsUserResults_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = 10
    Repeat1__index = 0
    rsUserResults_numRows = rsUserResults_numRows + Repeat1__numRows
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <table border="1">
      <tr>
        <td>logonDate</td>
        <td>loginTime</td>
        <td>computerName</td>
        <td>userName</td>
      </tr>
      <% While ((Repeat1__numRows <> 0) AND (NOT rsUserResults.EOF)) %>
        <tr>
          <td><%=(rsUserResults.Fields.Item("logonDate").Value)%></td>
          <td><%=(rsUserResults.Fields.Item("loginTime").Value)%></td>
          <td><%=(rsUserResults.Fields.Item("computerName").Value)%></td>
          <td><%=(rsUserResults.Fields.Item("userName").Value)%></td>
        </tr>
        <%
      Repeat1__index=Repeat1__index+1
      Repeat1__numRows=Repeat1__numRows-1
      rsUserResults.MoveNext()
    Wend
    %>
    </table>
    </body>
    </html>
    <%
    rsUserResults.Close()
    Set rsUserResults = Nothing
    %>
    Search page:
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="frmUserSearch" name="frmUserSearch" method="get" action="userResults.asp">
      <p>Enter User Name
        <input type="text" name="userName" id="userName" tabindex="1" />
      </p>
      <p>
        <input type="submit" name="userNameSubmit" id="userNameSubmit" value="Submit" />
      </p>
    </form>
    </body>
    </html>

  • How to add business logic before populating the read only tables.

    Hi All
    Could you please suggest something for the following requirement:
    I want to populate read only tables from the data control pallete(Based on VO) into the jsff. But Before populating the table I want to add conditions based on what the data should appear in the table.
    For e.g:
    There is a VO fetching the completed and pending tasks by the user. Only one VO is there to fetch the tasks but different tables are used to show the pending and completed tasks..I have created the bind variable for the task status.
    Shall I need to add business logic in the backing bean for jsff which is having the setter and getter for the tables.
    Regards,
    Kanika

    Hi,
    why don't you specify ViewCriteria on the View Object you use and use a bind variable to filter the table data? You can apply ViewCriteria in the AM data model so that they only show e.g. completed tasks, or you can assign a view criteria that uses bind variables, in which case the table is filtered dynamically by the value of the bind variable, or you use Java code to dynamically apply the View Criterias
    Frank

  • How to get a list of displayed columns from a UIX read only table

    I am using JDev 9.0.5.2 ADF UIX. Is there a way to get all the columns and/or column labels displayed in a UIX read only table? I would like to be able to do this in my DataForwardAction.

    Please don't post the same question multiple times.

  • UIX page not displaying data from VO's

    I have an application where my users log in by passing a username/password to a client method in my application module. The Webusers View Object has a view link to the Customers view object, which has a view link to the Orders view object, which has a view link to the OrdLines view object, like this:
    WebusersView
    --CustomersView via WebCustViewLink
    ----OrdersView via CustOrdViewLink
    ------OrdLinesView via OrdOrdlinesViewLink
    I've run this Application Module through the tester and I can see data via all the View Links.
    I have the following code in my login() script:
    w = getWebusersView();
    w.setWhereClause("login = '" + username + "'");
    w.executeQuery();
    I've stepped through the login() code and it works correctly. If I understand BC4J correctly, then all of the View Links should fire and coordinate the data from Customers, Orders, and OrdLines when this query executes successfully.
    I created a UIX page and did a drag/drop of Orders to the page as a read-only table. I found the Orders table by expanding the Webusers entry in the Data Control palette, then the Customers entry below that, to grab the Orders entry there. I think this means that it will follow the WebCustViewLink to get the Customer that goes with the Webuser, then the CustOrdViewLink to get the Orders for that Customer. Is this correct?
    When I try to run this and display the table, I get no records. I know for a fact that records exist under the Webuser username I've chosen.
    What is wrong? Why doesn't my UIX page display the appropriate Orders based on the Webusers->Customers->Orders view links?

    If there, try removing the $. at the beginning of the binding that gets puts there if you select the item from the pop up list.
    I have a text field that is read only and bound without the $. that was working fine for displaying data. I have a drop down that had the $. and was not saving. I removed the $. and now it is getting saved to the XML. However, it does not display on the next render of the form.

  • Read-only table with a LOV on a VO's attribute

    Hi,
    I have a VO ('X') that is displayed as a read-only table. 'X' has an attribute called 'SubscriptionId'. The value of 'SubscriptionId' is a foreign key to another table called 'Subscription'. My 'Subscription' database table has a column named 'Description'.
    Example:
    'X' has an attribute 'SubscriptionId' = 14
    DB table 'Subscription' has a row that looks like this:
    14, "A subscription description" (where "A subscription description" is the 'Description' column)
    I set up a LOV for 'SubscriptionId' on my VO 'X', so that it should show the value of 'Description' from 'Subscription' instead of the 'SubscriptionId'.
    If I display my VO 'X' as a form, I can see my LOV (for 'Description').
    However, when I display my VO ('X') as a read-only table, it isn't adhering to the LOV I defined on my VO, and is instead showing the 'SubscriptionId'.
    What do I need to do differently on my table to show the 'Description' instead of the foreign key 'SubscriptionId'? I want it to be just an output text of the Description, not a choice list.
    Thanks,
    Joel

    Hi
    In simple way just set the ReadOnly property of choice list in the coloum = true
    for example
    <af:column sortProperty="EmpId" sortable="true"
    headerText="#{bindings.DocTransactionView1.hints.EmpId.label}"
    id="c2" align="center">
    <af:selectOneChoice value="#{row.bindings.EmpId.inputValue}"
    label="#{row.bindings.EmpId.label}"
    required="#{bindings.DocTransactionView1.hints.EmpId.mandatory}"
    shortDesc="#{bindings.DocTransactionView1.hints.EmpId.tooltip}"
    id="soc4" readOnly="true">
    <f:selectItems value="#{row.bindings.EmpId.items}" id="si3"/>
    </af:selectOneChoice>
    </af:column>

  • UIX: How to add linked view table columns to the Read-only table

    Hi
    I have two tables
    T1: ID, STAFF_ID, NOTE
    T2: STAFF_ID, USERNAME
    I have created corresponding entity objects (E1, E2), views (V1, V2), association A(E1->E2 as *..1 using STAFF_ID) and viewlink VL(V1->V2 as *..1 using association A).
    My model in AppModule looks like
    V1
    ----V2 via VL
    Now I have single UIX page in which I drop V1 as Read-only table. The table displays columns correctly: ID, STAFF_ID, NOTE
    What I want is to add a column STAFF_ID from the V2 into this table. I have tried to drop it into the table but when the page is run it does not display anything in that column. It has to do something with binding.
    I have done similar test with dropping V1 as read-only FORM and then added STAFF_ID from V2 as messageTextInput and everything is rendered correctly.
    Anyone knows how to do the same thing but with table?

    Yes that is true but I would like to give another example where this may not apply.
    Say I have 3 tables
    CLIENT(INDIVIDUAL_ID,...)
    ADDRESS(ADDRESS_ID,...)
    ADDRESS_HISTORY(ADDRESS_ID, INDIVIDUAL_ID,BEST_ADDRESS)
    where ADDRESS_HISTORY is intersection table in CLIENT to ADDRESS many to many relationship.
    Suppose I have VO2 that consists of ADDRESS and ADDRESS_HISTORY entities (corresponding association exists) and user needs to add new address for the selected customer in VO1 (made from CLIENT entity). There are several issues here:
    1) An input form made out of VO2 must contain an entry for BEST_ADDRESS flag but since it will be read-only, seems that this approach may not work. However, I found a post re:Updating view objects with multiple entities that provides workaround this.
    2) In that case assume that I use DBSequence to automatically add ADDRESS_ID when user inputs new record in this input form. I am using DB Trigger on ADDRESS table and have selected ADDRESS_ID in ADDRESS entity as DBSequence. Now observe that VO2 would contain another ADDRESS_ID from ADDRESS_HISTORY entity which has to be automatically populated with the same value. How?
    In a nutshell my question relates to the problem how to automatically populate intersection table when new record is added to the detail. But the trick is that some attributes of the intersection table must be inserted by the user in the form..
    Please advise

  • Need to Add and Remove Columns of ADF Read Only table from Backing bean

    I have a scenario where I am trying to Populate TransientVO which is shown has a ADF Read Only Table in page.
    I have couple of Check Boxes Based on their selection I am trying to render and hide certain Columns.
    But the Issue which I am facing is only the Column Header seems to change where as the Rows and Values doesnt..
    even If I apply the expression language rendering condition on the outputText inside those columns.. ..
    So I am thinking to add and remove VO Attribute columns to the table from backing bean.
    Need some sample code snippet or a better design to achieve this. Its kind of urgent too...having an aggressive deadline :(
    Please chip in People..
    Thanks in Advance .
    TK

    Table Code..
    <af:table value="#{bindings.InventoryGridTrans.collectionModel}"
                                    var="row"
                                    rows="#{bindings.InventoryGridTrans.rangeSize}"
                                    emptyText="#{bindings.InventoryGridTrans.viewable ? 'No data to display.' : 'Access Denied.'}"
                                    fetchSize="#{bindings.InventoryGridTrans.rangeSize}"
                                    rowBandingInterval="0" id="t4"
                                    partialTriggers="::sbcSales ::sbcUsage ::cb1">
                            <af:column sortProperty="Period" sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Period.label}"
                                       id="c38">
                              <af:outputText value="#{row.Period}" id="ot33"/>
                            </af:column>
                            <af:column sortProperty="Past12SalesCount"
                                       sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Past12SalesCount.label}"
                                       id="c29"
                                       rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
                              <af:outputText value="#{row.Past12SalesCount}"
                                             id="ot40"
                                             rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}"
                                             visible="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.InventoryGridTrans.hints.Past12SalesCount.format}"/>
                              </af:outputText>
                            </af:column>
                            <af:column sortProperty="Past12UsageCount"
                                       sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Past12UsageCount.label}"
                                       id="c40"
                                       rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
                                       visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
                              <af:outputText value="#{row.Past12UsageCount}"
                                             id="ot47"
                                             rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
                                             visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.InventoryGridTrans.hints.Past12UsageCount.format}"/>
                              </af:outputText>
                            </af:column>
                            </af:column>
                    </af:table>

  • Sorting a newly-added row within an ADF Read-Only Table

    I'm having a bit of trouble with a situation where I'm adding a new row to the data set behind an ADF Read-Only Table (I'm using 10g), but the new row is popping to the top rather than sorting in according to the sort order. I know this is the default behavior, and I was looking at section 23.4.4 in the Developer's Guide (http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_tables_forms.htm#insertedID4 - which is actually for 11g), which advises programmatically queuing a SortEvent after the commit, and implementing a handler to execute the sort.
    The problem I'm having, though, is that my commit and the table I need to refresh are on different pages. I've tried adding a CoreTable binding (masterDetail1) for the table to the backing bean for the add page and doing this in the saveButton_action() method:
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    ArrayList<SortCriterion> masterDetail1SortCriteria = new ArrayList<SortCriterion>();
    SortCriterion discAsc = new SortCriterion("Disc", true);
    SortCriterion trkAsc = new SortCriterion("Trk", true);
    masterDetail1SortCriteria.add(discAsc);
    masterDetail1SortCriteria.add(trkAsc);
    masterDetail1.setSortCriteria(masterDetail1SortCriteria);
    ...but I get a NullPointerException as soon as I try to refer to masterDetail1. I've also tried creating a SortEvent but I'm not sure how to actually queue it or if that'll even work if I don't have a usable reference to the table.
    Any thoughts on how I can do this or on a better way to refresh the table so that the newly-added item falls into the existing sort?
    Edited by: gdmitchell on Jul 19, 2010 2:40 PM
    Edited by: gdmitchell on Jul 19, 2010 2:41 PM

    Hi,
    you cannot reference a table that is located on a different page from a managed bean of another page and expect its JSF binding to be non-null. As soon as a page is moving out of focus, its server side component tree is cleared and the managed bean (if its in request scope) dismissed
    Frank

  • UIX - Changing read-only-table row colors

    Hi
    I have the requirement to alternate the background-row-color in an UIX read-only-table dependent on a value in the row.
    Can anybody point me in the right direction of a solution please?
    I'm familiar enough with the styles in the XSS style sheets, and using EL to dynamically change attributes of a UIX web page when rendered. However in the default <table> UIX tag generated by JDeveloper when dragging a data control onto a UIX web page, there doesn't appear to be a <row> tag for changing the background colour?
    Any help appreciated
    I'm using JDeveloper 9.0.5.2.
    Cheers,
    CM.

    I don't know if this works in JDeveloper 9.0.5.2, but there's a solution at least for JDevloper 10.1.2. You have to define a different styleClass (a CSS) for each column, depending on a condition. This solutions works as well together with row banding:
    <column>
      <columnHeader>
        <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.MyView,'Seats')}" text="Seats"/>
      </columnHeader>
      <contents>
        <rowLayout width="100%" styleClass="${ui:cond(uix.current.IsLocked == 'J', 'OraTableCellLocked', '')}">
          <contents>
            <cellFormat>
              <contents>
                <textInput model="${ui:defaulting(uix.current.Seats, ' ')}" columns="10" readOnly="true"/>
              </contents>
            </cellFormat>
          </contents>
        </rowLayout>
      </contents>
    </column>The styleClass "OraTableCellLocked" has to be defined in the file "base-desktop.xss". An example ("Locked" cells are displayed with a red background):
       <style selector=".OraTableCellLocked">
        <includeStyle name="TableCellDataText"/>
        <includeStyle name="TableCellDataVerticalAlign"/>
        <!--<includeStyle name="TableCellDataBackgroundColor"/>-->
        <includeStyle name="TableCellDataBorderColor"/>
        <property name="background-color">#FFA4A4</property>
      </style>Hope this helps, although the original is very old.
    Regards,
    Georg

  • Query not displaying data

    Hello BW experts,
    I am having an issue where in my query is not displaying data even though there is data in the cube in production.
    But the same query is displaying data for the same selection in QA system.
    I have executed the tests in RSRT, but am not able to find anything.
    Please give your valuable inputs.
    Thanks in Advance
    BW learner

    Hi,
    Check the filters of your query, Is there any selection made where you are going to get only march data which is present in your production system.
    Check the info cube data by giving the same filter values as in the query definitation. If you didnt find any data, then your query is working fine.
    check this and let me know...
    if you find some data in the cube with the same filter selection, then give me the data flow of your query, which means, whether the query is executed on Multiprovider or cube?
    Regards,
    Patil.

  • Report not displaying data from one of the infoproviders

    Hi Experts,
    Issue: Report not displaying data from one of the infoproviders
    I have a report 'ReportA' which has multiprovider MP1 as the source.
    MP1 has two Infocubes IC1, IC2 in its design.
    Now, when i execute the report, data from IC1 is displayed. But no data from IC2 is displayed.
    Is there a setting i need to enable in MP1 ? or is there anything else that needs to be enabled ?
    Please reply.
    Regards,
    Suraj S Nair

    Hi All,
    When i display data directly from the multi provider, without any restrictions, i cannot view the data from infocube IC2.
    I feel its not an issue with the Query. It must be a problem with the setting in the Multiprovider MP1.
    Infocube IC2 is a copy of Infocube IC1. Multiprovider MP1 first only had IC1 in its design. It was recently IC2 was also included.
    I checked the Characteristics, all of them are assigned corectly.
    Now, this issue sure has something to do wiht the setting of Multiprovider or please correct me if wrong.
    Regards,
    Suraj S Nair

  • I purchased a IMac in Feb later I added a Seagate ext. hard drive. On April 29 I received an errors that the ext. Drive may be a read only and not backing up files. I'm unable to check disk permission or correct errors. Help would be appreciated.

    I purchased a IMac in Feb later I added a Seagate ext. hard drive. On April 29 I received an errors that the ext. Drive may be a read only and not backing up files. I'm unable to check disk permission or correct errors. Help would be appreciated.

    Click on the hard drive on the desktop, then File > Get Info. What does it say about permissions?  If this is just a data drive you may want to consider "ignore ownership on this volume".
    Otherwise I can only say I have not been reading good things about Seagate drives recently.  I have some of their rock-solid ones from about 10 years ago (still running well), but now...?

  • Acrobat Reader 9 does not display Type 3 fonts correctly

    Acrobat Reader 9 does not display Type 3 fonts correctly for quite a few of our older, PDF version 1.2 PDF files in our products, where normal Acrobat or Digital Editions show no such problem. It only shows the bottom part of the glyphs but then shifted to the top of the glyph area.
    Files available for test/reference upon request.
    Rob van Fucht
    Elsevier

    Hmm, this cannot be, as this is legacy material from 1997. There is no way that this can be changed using Type 1 or OTF fonts other than retypesetting everything from scratch, I fear, and that will be just too much expensive work. Interestingly, Acrobat Reader 8 and the latest Adobe Digital Editions display these PDFs correctly, so I have no alternative other than assume that the changes in the font rendering mechanism in Reader 9 are responsible for this. I am checking these files with Acrobat 9 Professional shortly...
    Rob

  • Agile PLM Read Only Tables

    Hello,
    Im working on Agile PLM and facing issues in modifying the 'Change History' for an Item.
    When i'm executing following code-
    ITable table = item.getTable(ItemConstants.TABLE_CHANGEHISTORY);
    Map param = new HashMap();
    param.put(ItemConstants.TABLE_CHANGEHISTORY, "10");
    IRow row = table.createRow(params);
    Following error is observed
    Exception in thread "main" Error code : 60063
    Error message : Object is read-only
    Agile SDK documentation says the table "Change History" is a Read-Only table, how can i make it writable??
    Any pointers in this regards will be helpful.
    Hoping for a response.. :-)

    Hi,
    Only the released/canceled changes with the Affected Items could be listed in the Item's 'Change History' table. You cannot force any data write to Change History directly.

Maybe you are looking for

  • Photoshop CS6 performance on new Macbook Pro Retina Late 2013

    Hi guys, Just bought the new 13" Macbook Pro Retina Late 2013 with 8GB RAM and 256SSD. Installed CS6 with all patches and retina update but performance is appaling. Im editing a Nikon D800 file which I know is heavy, but when zoomed in at 100% and us

  • How do I show page numbers using code?

    I posted this to the Scripting Forum three weeks ago and have had no response.  let's try here.... I have an application that creates a PDF document in code from a Word document (using the Adobe PDF printer).   it then add a "signature page" using a

  • ITunes 5: Get Info crash

    If I Control-Click on a library item then choose Get Info (on my Mac, or a shared library or the iTunes Music Store), iTunes crashes immediately. If, however, I press Command-I, Get Info window appears. iTunes has been completely deleted (including r

  • Itouch sound not working - only works with earbuds

    I recently purchased an Itouch and the sound only works with earbuds? Please help, what am I doing wrong

  • [Help] Export: the image size

    dear all, I am trying to export the image from AI. I set the document size 256*256 px when I create new document. after I finish my image, i wanna export to the same size, that is 256*256 px. however, if I use 128dpi "resolution", I will not get 256*