ADF question: re-executing the view iterator which returns different rows

Hi,
I am terribly stuck in building one of my demos for
an ADF seminar.
I happened to created a view object which queries with
rows showing up random lists such that:
select a, b, c
from sometable
order by mod(DBMS_RANDOM.Random,50)+50
and the result shows up fine. I wanted to display
only one row, so I set up fetch size max to 1.
in this way, I would get a random selection whenever
I executed query to this view object.
I created a data page where the results would show up.
ok, so far so good. But I happened to notice that
the randomly selected row would not change once it is
loaded (pressing reload button on my browser did not
refreshed the random selection). I knew this behavior,
that the view object would cache the query once it
is executed and not updated.
So, I put an action event to invoke the 'Execute' method
to this view object iterator. The selection now seems
to be working randomly, but I also got error messages
that says:
You must correct the following error(s) before proceeding:
JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33035: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[2 ]
JBO-33035: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[2 ]
I suspect this was because the newly selected row has different Key(primary key) to that of previously selected row, but I want to override this.
is there any way that I may clear up the selection cache
to tell ADF that the newly selected row is the current
key in the row?
Any suggestions are gladly welcomed.
Regards,
Howard Yoo

repost

Similar Messages

  • Disable random generation of  .adf-ctrl-state and the view state

    Hi,
    I'm trying to test a few transaction on an ADF application that would need to be run using a simulator.
    The problem is it is pretty hard to do this using a programmed simulator since everytime the adf-ctrl-state and the viewstate in the browser change, which requires capturing them. To complicate matters further there exists the PPR navigation (at least that's what I think it is) which present a unique _afrLoop id, that also seems to behave differently with different user-agents. 
    My question is, can I do anything with those fiedls that would allow me to have one id to run my transactions ? I understand that some of those ids, like the viewstate act like a session nonce....but are there do I have any options ?
    Thanks,

    You will need to configure your test suite to capture and replay those values. There is also the javax.faces.ViewState variable.
    Here are some good pointers on how to do this in JMeter
    http://one-size-doesnt-fit-all.blogspot.com.au/2010/04/configuring-apache-jmeter-specifically.html
    A more generalized article
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfloadstresstesting-354067.pdf

  • Execute the view created with createViewObjectFromQueryStmt

    I have create a view like this:
    String sql = "select count(*) from........."
    ApplicationModule am = (ApplicationModule)ctx.getBindingContext().findDataControl("AppModuleDataControl").getDataProvider();
    ViewObject vo = am.createViewObjectFromQueryStmt("VuName", sql);
    How do you get the count from the view. Pls help me.
    Thanks.

    Thanks Frank.
    My question is "not the row count", but to get the value of count from the query. Pls let me know how to do it. Its urgent and I'm stuck here.
    Thanks.

  • Can I change the order in which my different e-mail accounts are displayed in TB?

    I use TB to access e-mails from 5 different accounts. They are displayed in the order in which I added them but I would like to change that order. Is it possible, please?

    Many thanks @Airmail for taking the time to provide the solution.

  • HOW TO EXECUTE A STORE PROCEDURE THAT RETURN MULTIPLE ROWS FROM A QUERY

    I NEED TO CREATE AND USE A STORE PROCEDURE THAT IS GOING TO DO A SELECT STATEMENT AN THE RESULT OF THE SELECT STATEMENT IS RETURN IN SOME WAY TO THE REQUESTER.
    THIS CALL IS MADE BY AN EXTERNAL LANGUAGE, NOT PL/SQL OR FORMS APPLICATION. USING FOR EXAMPLE ODBC AND VISUAL BASIC. WHAT I NEED TO DO IS ADD A DATA ACCESS LAYER TO MY APPLICATION AND I ALREADY HAVE IT DONE FOR MS SQL SERVER, BUT I NEED THE SAME FUNCTIONALITY ACCESSING AN ORACLE DATABASE.
    FLOW:
    1. VB CREATE A ODBC CONNECTION TO A ORACLE DATABASE
    2. VB EXECUTE A STORE PROCEDURE
    3. THE STORE PROCEDURE RETURNS TO THE VB APPLICATION THE RESULT OF THE QUERY THAT IS INSIDE OF THE STORE PROCEDURE.(I.E. THE STORE PROCEDURE IS A BASIC SELECT, NOTHING COMPLEX)
    4. VB DISPLAY THE RESULT IN A GRID
    FOR SURE I CAN DO THE SELECT DIRECTLY TO ORACLE, BUT FOR PERFORMANCE REASONS AND SCALABILITY, I'LL LIKE IT TO DO IT USING A STORE PROCUDURES
    IS THIS POSIBLE?, HOW?
    THANKS

    Certainly, it's possible. First, define a stored procedure that includes an OUT parameter which is a REF CURSOR. Then, call the stored procedure via ODBC omitting the OUT parameter from the list of parameters. IT will automatically be returned as a result set. Syntax for both is below...
    CREATE PROCEDURE foo (inParam in varchar2, resultSet OUT REF CURSOR )
    In ODBC:
    {call foo( 'someData' )}
    Justin

  • Query hanging when queries in the resultset of UNION returned no rows

    Hi all,
    I have a query like this.
    Select * from table a
    UNION
    select * from table b
    UNION
    select * from table c
    UNION
    select * from table d
    table a, table b, table c has some rows of data.
    table d does'nt have any data.
    so,
    when i do union
    of results of table a,table b and table c, I will get the results.
    But when I include the UNION of table d(which is not having rows), Then the query is hanging.
    Please help me in this regard.
    Thanks in advance,
    Sreekeshava S

    Please find the query below.
    select nn.node_name as nn_node_name,
    t.template_name as t_template_name,
    decode(status_flag, 0, 'NO', 'YES')
    from opc_node_names nn, opc_source_templ t,
    opc_node_config c, opc_change_status s
    where nn.node_id = c.node_id
    and c.node_id = s.object_id
    and c.template_id = t.template_id
    and s.object_type = 1
    and s.status_type = 1
    and s.value != 4
    and s.value != 5
    and nn.node_id not in (select node_id from opc_nodes where is_virtual=1)
    union
    select nn.node_name as nn_node_name,
    t.template_name as t_template_name,
    'Yes (Force)'
    from opc_node_names nn, opc_source_templ t,
    opc_node_config c, opc_change_status s
    where nn.node_id = c.node_id
    and s.object_id = c.node_id
    and c.template_id = t.template_id
    and s.object_type = 1
    and s.status_type = 1
    and s.value in (4, 5)
    and nn.node_id not in (select node_id from opc_nodes where is_virtual=1)
    union
    select nn.node_name as nn_node_name,
    t.template_name as t_template_name,
    '(Virtual Node)'
    from opc_node_names nn, opc_source_templ t,
    opc_node_config c, opc_change_status s
    where nn.node_id = c.node_id
    and s.object_id = c.node_id
    and c.template_id = t.template_id
    and s.object_type = 1
    and s.status_type = 1
    and nn.node_id in (select node_id from opc_nodes where is_virtual=1)
    union
    select 'Management Server' as nn_node_name,
    t.template_name as t_template_name,
    decode(status_flag, 0, 'NO', 'YES')
    from opc_source_templ t, opc_node_config c, opc_change_status s
    where c.node_id is null
    and c.template_id = t.template_id
    and s.object_type = 1
    and s.status_type = 1
    and s.object_id = '000000000000000000000000000000000000'
    and s.value != 4
    and s.value != 5
    union
    select 'Management Server' as nn_node_name,
    t.template_name as t_template_name,
    'Yes (Force)'
    from opc_source_templ t, opc_node_config c, opc_change_status s
    where c.node_id is null
    and c.template_id = t.template_id
    and s.object_type = 1
    and s.status_type = 1
    and s.object_id = '000000000000000000000000000000000000'
    and s.value in (4, 5)
    In the above query,
    only first 2 select select statements is having some data.
    Next select statements does'nt return any data.
    If we execute the select queries from the above query independently, It will execute within no time.
    as i told only first 2 queries are having the data.
    other sql queries does'nt have any data.
    But if i union all the queries, query is hanging.
    I am executing the query through SQL developer connecting to the database located in the Remote location.

  • Executing the SQL query across 2 different databases of Oracle

    Hello All,
    In Microsoft SQL server we can execute following type of SQL query across 2 different databases:
    select * from TEST1.dbo.GENERIC_TABLE1 union select * from TEST2.dbo.GENERIC_TABLE2;
    Here TEST1 and TEST2 are 2 different databases.
    Can we do the same in Oracle?

    yes you can, but first one has to setup a database link
    Look up CREATE DATABASE LINK and then take things from there!
    P;

  • ADF: How to get the attributes' values of one single row from a table?

    Currently I have a table with 3 attributes, suppose A,B and C respectively. And I've added an selectionListener to this table. That means when I select one single row of this table, I wish to get the respective value of A, B and C for that particular row. How do I achieve this?
    suppose the method is like:
    public void selectionRow(SelectionEvent se) {            //se is the mouse selection event
    .......??? //what should I do to get the values of A\B\C for one single row?
    Edited by: user12635428 on Mar 23, 2010 1:40 AM

    Hi
    Assuming you are using Jdev 11g.
    Try with this
    public void selectionRow(SelectionEvent se) {
    String val = getManagedBeanValue("bindings.AttributeName.inputValue");
    public static Object getManagedBeanValue(String beanName) {
    StringBuffer buff = new StringBuffer("#{");
    buff.append(beanName);
    buff.append("}");
    return resolveExpression(buff.toString());
    public static Object resolveExpression(String expression) {
    FacesContext facesContext = getFacesContext();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    return valueExp.getValue(elContext);
    Vikram

  • GetRowIndex of richTable returns different row num from what is defined in the generated page

    Hi,
    I am using jdev 11.1.2.4...
    I have a binding to a RichTable. When I use dataTable.getRowIndex() I get the right row numbers, from 0.
    When I look at the source of the page in the browser, after pressing execute query - the row num in the page increases by the total number of rows in the table.
    So when I need to get the inputText clientid (to open a popup next to it) I can't get the right client id.
    for example:
    For the first time the page is entered the id is: pt1:weekTab:2:inTime1
    after pressing execute query the same field is called like this: pt1:weekTab:13:inTime1
    Does this may have something to do with that I use contextual event to run the "execute query" (the dates are on a fragment inside the page )?
    Some other definitions of the table?
    Thank you,
    Nina

    Hi,
    no it has to do with the fact that tables are stamped and the components in the table cells are no object instances. Do you launch the popup programmatically ?
    Frank

  • Different rows of a view in Physical Layer and Presentation Services

    Hi all
    From Administration tool you I have the view <View_Name> which has 3165 rows after Update Rows command.
    The same number of rows is even when i make a simple select in TOAD:
    Select count(*) from <View_Name>
    The simple report has only three fields on Presentation Layer:
    Asset Id-----Asset Number----------------Asset Description
    This report displays 3101 rows.
    I have done Reload Server Metadata, but no changes. Please help me to solve this issue.
    Regards

    Hi Sutirtha Roy
    The problem seems in OWB because from here i can no see the rows in Presentation Service.
    Or am I wrong??
    Regards

  • Why does view WWSBR_USER_FOLDERS return no rows to public ?

    Hi,
    I want to show a user dependent list of folders in a portal
    report application component, but the view
    portal30.wwsbr_user_folders does not show public folders to a
    public (not logged in) user. The view does not return any rows. I
    tested this by creating a portal report on the view, put the
    report as a portlet on page. Logout and navigate to the page. The
    report portlet shows "No Rows Returned". I would expect to see
    the public folders in the report portlet. Am I doing something
    wrong ? Is view portal30.wwsbr_user_folders the right view for
    this kind of query ?
    Environment:
    9iAS version 1.0.2.2
    Portal patch 3.0.9.8.1
    RDBMS version 8.1.7.1.1
    regards,
    Willem-Pieter van der Lugt
    Oracle Consulting NL.

    This is a bug. As a workaround, create two new views as follows:
    create or replace view wwsbr_user_corners2 as
    SELECT "ID","SITEID","LANGUAGE","PARENTID","NAME","TITLE","SETTIN
    GSSETID","SETTINGSSETSITEID",
    "ISPUBLIC","IMAGE","ROLLOVERIMAGE","TITLEIMAGE","LEADER","DESCRIP
    TION",
    "PRODUCTION","FRONTPAGE","CREATEDATE","CREATOR","UPDATEDATE","UPD
    ATOR","SEQ",
    "PUBLISHDATE","DISPLAYLEVEL","DISPLAYSUBCORNERS","ICON","LIFETIME
    HITS","CTXTXT",
    "NAVIGATIONCORNERID","ISTEMPLATE","ISPROJECT","HAVEITEMSECURITY",
    "ITEMVERSIONING",
    "DISPLAYINPARENT","TOPICID","TOPIC_SITEID","VALUE","NAVBARSITEID"
    ,"TYPE","TYPE_SITEID",
    "BASE_TYPE","FOLDER_PATH_DISPLAY","MAILTO_LINK_DISPLAY","IS_CACHE
    _VALID",
    "IS_PORTLET","IS_CACHING_ON","QUOTA","TYPE_DISPLAY_FULL","SITECHA
    RID","SYSPRIV_NAME",
    "PLSQL_EXECUTOR","SUBSCRIBER_ID"
    FROM WWV_CORNERS C
    WHERE
    -- Next line needed to select public folders
    ISPUBLIC = 1
    -- portal admin
    OR EXISTS
    SELECT 'x'
    FROM WWSEC_SYS_PRIV$
    WHERE OBJECT_TYPE_NAME = 'ANY_SITE'
    AND NAME = 'ALL_OBJECTS'
    AND OWNER = wwctx_api.get_product_schema
    AND GRANTEE_TYPE = 'USER'
    AND GRANTEE_USER_ID = wwctx_api.get_user_id
    AND GRANTEE_GROUP_ID = 0
    AND PRIVILEGE_CODE = 500 -- ADMIN
    UNION ALL
    SELECT 'x'
    FROM WWSEC_SYS_PRIV$ P, WWSEC_FLAT$ F
    WHERE P.OBJECT_TYPE_NAME = 'ANY_SITE'
    AND P.NAME = 'ALL_OBJECTS'
    AND P.OWNER = wwctx_api.get_product_schema
    AND P.GRANTEE_TYPE = 'GROUP'
    AND P.GRANTEE_USER_ID = 0
    AND P.GRANTEE_GROUP_ID = F.GROUP_ID
    AND P.PRIVILEGE_CODE = 500 -- ADMIN
    AND F.PERSON_ID = wwctx_api.get_user_id
    -- site admin
    OR EXISTS
    SELECT 'x'
    FROM WWSEC_SYS_PRIV$
    WHERE OBJECT_TYPE_NAME = 'SITE'
    AND NAME = C.SITECHARID
    AND OWNER = wwctx_api.get_product_schema
    AND GRANTEE_TYPE = 'USER'
    AND GRANTEE_USER_ID = wwctx_api.get_user_id
    AND GRANTEE_GROUP_ID = 0
    AND PRIVILEGE_CODE = 300 -- ADMIN
    UNION ALL
    SELECT 'x'
    FROM WWSEC_SYS_PRIV$ P, WWSEC_FLAT$ F
    WHERE P.OBJECT_TYPE_NAME = 'SITE'
    AND P.NAME = C.SITECHARID
    AND P.OWNER = wwctx_api.get_product_schema
    AND P.GRANTEE_TYPE = 'GROUP'
    AND P.GRANTEE_USER_ID = 0
    AND P.GRANTEE_GROUP_ID = F.GROUP_ID
    AND P.PRIVILEGE_CODE = 300 -- ADMIN
    AND F.PERSON_ID = wwctx_api.get_user_id
    -- owned; check the special groups too
    OR EXISTS
    SELECT 'x'
    FROM WWSEC_SYS_PRIV$
    WHERE OBJECT_TYPE_NAME = 'FOLDER'
    AND NAME = C.SYSPRIV_NAME
    AND OWNER = wwctx_api.get_product_schema
    AND GRANTEE_TYPE = 'USER'
    AND GRANTEE_USER_ID in (wwctx_api.get_user_id, 2)
    AND GRANTEE_GROUP_ID = 0
    AND PRIVILEGE_CODE = 700
    OR EXISTS -- group grant to a specific group
    SELECT 'x'
    FROM WWSEC_SYS_PRIV$ P, WWSEC_FLAT$ F
    WHERE P.OBJECT_TYPE_NAME = 'FOLDER'
    AND P.NAME = C.SYSPRIV_NAME
    AND P.OWNER = wwctx_api.get_product_schema
    AND P.GRANTEE_TYPE = 'GROUP'
    AND P.GRANTEE_USER_ID = 0
    AND P.GRANTEE_GROUP_ID = F.GROUP_ID
    AND F.PERSON_ID = wwctx_api.get_user_id
    AND PRIVILEGE_CODE = 700
    create or replace view wwsbr_user_folders2 as
    SELECT c.id,
    c.siteid caid,
    c.language language,
    c.name name,
    c.title display_name,
    c.topicid category_id,
    c.topic_siteid category_caid,
    c.description ,
    c.type type_id,
    c.type_siteid type_caid,
    c.base_type base_type_id,
    c.is_portlet is_portlet,
    c.is_caching_on is_caching_on,
    c.seq sub_folder_sequence,
    c.displayinparent display_in_parent_folder,
    c.itemversioning,
    c.settingssetid style_id,
    c.settingssetsiteid style_caid,
    u.url url_value,
    decode(c.base_type,3,c.value,null) search_value,
    decode(c.base_type,4,c.value,null) plsql_value,
    c.image title_image_name,
    c.rolloverimage rollover_image_name,
    c.titleimage banner_image_name ,
    c.navigationcornerid navigation_bar_id,
    c.navbarsiteid navigation_bar_caid,
    c.ispublic is_public,
    c.haveitemsecurity item_level_security,
    c.type_display_full display_full_screen,
    c.plsql_executor plsql_folder_executor,
    c.createdate,
    c.creator,
    c.updatedate,
    c.updator
    FROM WWSBR_USER_CORNERS2 C,
    WWSBR_URL$ U
    WHERE c.value = u.url(+) and
    c.siteid = u.object_siteid(+)
    The first view adds the condition (WHERE ISPUBLIC=1) to show any
    public folder.
    Don't change the original view definitions, and be sure you
    grant access on WWSBR_USER_FOLDERS2 (or whatever you choose to
    call it) to PORTAL30_PUBLIC (or whatever your public portal
    schema is called).
    Regards,
    Jerry

  • Af:table is not showing records until doing refresh of the view object iter

    Hi Experts,
    I am using JDeveloper 11.1.1.4 and i have a page whhich shows records of a particular read only view object as an af:table. When i run the page at first it is not showing any data at all . But there are 2 records when i run the query of that read only view object.In my page there is a link called "Refresh" which calls the "Execute" operation of the view iterator of my view object. When i click this link the table shows two records.Why the table does not show records once wehn the page is rendered?
    Please help me.

    The following is the code that shows the panel collection in my page.
    <af:panelCollection id="pc1" featuresOff="freeze, wrap"styleClass="NewStyle">
    <f:facet name="secondaryToolbar">
    <af:toolbar id="t1" styleClass="Secondary">
    *<af:query id="qryId1" headerText="Search" disclosed="false"*
    *value="#{bindings.salesInvoiceAuthorisationCriteriaWaitOnlyQuery.queryDescriptor}"*
    *model="#{bindings.salesInvoiceAuthorisationCriteriaWaitOnlyQuery.queryModel}"*
    *queryListener="#{criteria.processQueryForSalesInvoice}"*
    *queryOperationListener="#{bindings.salesInvoiceAuthorisationCriteriaWaitOnlyQuery.processQueryOperation}"*
    *displayMode="compact"*
    *saveQueryMode="readOnly" maxColumns="2"*
    *modeChangeVisible="false" styleClass="Minimal"*
    *conjunctionReadOnly="true"*
    *resultComponentId="::t2"/>*
    </af:toolbar>
    </f:facet>
    <af:table value="#{bindings.salesInvoiceAuthorisation1.collectionModel}"
    var="row"
    rows="#{bindings.salesInvoiceAuthorisation1.rangeSize}"
    emptyText="#{bindings.salesInvoiceAuthorisation1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.salesInvoiceAuthorisation1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.salesInvoiceAuthorisation1Query.queryDescriptor}"
    queryListener="#{bindings.salesInvoiceAuthorisation1Query.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.salesInvoiceAuthorisation1.collectionModel.selectedRow}"
    selectionListener="#{bindings.salesInvoiceAuthorisation1.collectionModel.makeCurrent}"
    rowSelection="none" id="t2"
    columnStretching="column:accountNameColumn"
    binding="#{processDocuments.invoiceTable}"
    contentDelivery="immediate"
    partialTriggers="::c111 selectToPost ::qryId1"
    styleClass="newTableStyle" autoHeightRows="9">
    <af:column filterable="false" sortable="false"
    headerText="#{bindings.DocumentAuthorisationView1.hints.ToPost.label}"
    id="c18" align="center"
    styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
    width="103">
    <af:selectBooleanCheckbox id="selectToPost"
    value="#{row.bindings.ToPost.inputValue}"
    autoSubmit="true"/>
    </af:column>
    <af:column sortProperty="DocumentName" filterable="true"
    sortable="true"
    headerText="#{bindings.salesInvoiceAuthorisation1.hints.DocumentName.label}"
    id="c11"
    styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
    width="107" filterFeatures="caseInsensitive">
    <af:outputText value="#{row.DocumentName}" id="ot1"/>
    </af:column>
    <af:column sortProperty="ExternalReference" filterable="true"
    sortable="true"
    headerText="#{bindings.salesInvoiceAuthorisation1.hints.ExternalReference.label}"
    id="c10"
    styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
    width="105" filterFeatures="caseInsensitive">
    <af:outputText value="#{row.ExternalReference}" id="ot8"/>
    </af:column>
    <af:column sortProperty="DocumentCategory" filterable="true"
    sortable="true"
    headerText="#{bindings.salesInvoiceAuthorisation1.hints.DocumentCategory.label}"
    id="c9"
    styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
    width="105" filterFeatures="caseInsensitive">
    <af:outputText value="#{row.DocumentCategory}" id="ot11"/>
    </af:column>
    <af:column sortProperty="CrDr" filterable="true"
    sortable="true"
    headerText="#{bindings.salesInvoiceAuthorisation1.hints.CrDr.label}"
    id="c4"
    styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
    width="52" align="right">
    <af:outputText value="#{row.CrDr}" id="ot9">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.salesInvoiceAuthorisation1.hints.CrDr.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="BaseDate" filterable="true"
    sortable="true"
    headerText="#{bindings.salesInvoiceAuthorisation1.hints.BaseDate.label}"
    id="c8"
    styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}">
    <f:facet name="filter">
    <af:inputDate value="#{vs.filterCriteria.BaseDate}"
    id="id1" contentStyle="text-transform:uppercase;">
    <af:convertDateTime pattern="#{bindings.salesInvoiceAuthorisation1.hints.BaseDate.format}"/>
    </af:inputDate>
    </f:facet>
    <af:inputDate value="#{row.BaseDate}" id="ot6" contentStyle="text-transform:uppercase;">
    <af:convertDateTime pattern="#{bindings.salesInvoiceAuthorisation1.hints.BaseDate.format}"/>
    </af:inputDate>
    </af:column>
    <af:column sortProperty="ExternalAccountCode"
    filterable="true" sortable="true"
    headerText="#{bindings.salesInvoiceAuthorisation1.hints.ExternalAccountCode.label}"
    id="c6"
    styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
    filterFeatures="caseInsensitive" visible="false">
    <af:outputText value="#{row.ExternalAccountCode}" id="ot3"/>
    </af:column>
    <af:column sortProperty="AccountName" filterable="true"
    sortable="true"
    headerText="#{bindings.salesInvoiceAuthorisation1.hints.AccountName.label}"
    id="accountNameColumn"
    styleClass="#{row.bindings.ToPost.inputValue ? 'RowSelected' : ''}"
    filterFeatures="caseInsensitive">
    <af:outputText value="#{row.AccountName}" id="ot4"/>
    </af:column>
    </af:table>
    </af:panelCollection>
    Edited by: Priya on Nov 22, 2011 12:22 AM

  • How to get the view link definition from the view link accessor

    Hi,
    I am using Jdev 10.1.3 and ADF BC. I am trying to do deep copy in a master/details view, after the new child record is created, I want to update the foreign key attribute. I know I can get the list of attribute definitions from the row in the view object, which include the view link accessors, I am wondering if I can get the view link definition from the view link accessors, so that I can get the source and destination attribute names.
    Thanks!

    Hi,
    you should get this through
    ViewObject vo = this.findViewObject("LocationsView1");
    int indx = vo.getAttributeIndexOf("DepartmentsView");
    ViewAttributeDefImpl vAttrDefImpl = (ViewAttributeDefImpl) vo.getAttributeDef(indx);
    ViewLinkDefImpl vdefImpl = (ViewLinkDefImpl) vAttrDefImpl.findViewLinkDefImpl();
    Note that this code starts from the ApplicationModuleImpl class, which is why I used this.findViewObject().
    Frank

  • View and the query for the view giving different datasets

    I have a view created with the below syntax.
    CREATE OR REPLACE FORCE VIEW vw_name (/*column names*/ )
    AS SELECT /*column names*/ from tables
    When I execute the query with which the view is constructed , I m getting different data set which contains 4690 rows
    and when I exeute the view I m getting dataset which contains only 4657 rows.
    Can you please explain why the differnce in count when the source for both is the same.

    Can you please explain why the differnce in count when the source for both is the same.Answer should be one of the following
    1. The two query are not same
    2. The table data has been modified
    3. You are seeing at the wrong thing (manual error)

  • Executing a view severs connection to database

    I execute a SELECT statement on a query as follows:
    SELECT * FROM LLU_V_MIN_AVG_MAX_BY_CLASS_04
    It runs for about 10 seconds and I receive the following error message:
    An error was encountered performing the requested operation:
    No more data to read from socket
    Vendor code 17410Error at line 1
    Line 1 was the SELECT statement.
    In addition, it broke the connection to the database in SQL Developer, and I have never had that happen before. At that point, I had to reconnect to the database on every window I had open in SQL Developer (to that database).
    Here's the view:
    CREATE OR REPLACE VIEW LLU_V_MIN_AVG_MAX_BY_CLASS_04 AS
    SELECT P."TypeCode", P."Year", COUNT(P."Year") AS "HowMany",
    MIN(V1."Done_in_QR" + V1."Done_in_axiUm") AS "MinPoints",
    AVG(V1."Done_in_QR" + V1."Done_in_axiUm") AS "AvgPoints",
    MAX(V1."Done_in_QR" + V1."Done_in_axiUm") AS "MaxPoints"
    FROM PRODUCER P
    INNER JOIN LLU_V_CLINIC_REQUIREMENTS_04 V1
    ON P."Producer" = V1."ProviderID"
    WHERE V1."CategoryID" = 62 -- TOTAL CLINIC POINTS
    AND P."Year" BETWEEN 2 AND 4
    AND P."TypeCode" IN ('D','I')
    AND P."Inactive" = 0
    GROUP BY P."TypeCode", P."Year"
    Here's what I've tried so far:
    1) drop and re-create the view LLU_V_MIN_AVG_MAX_BY_CLASS_04
    2) drop and re-create the view LLU_V_CLINIC_REQUIREMENTS_04 (used by above view)
    3) drop and re-create the view LLU_V_CLINIC_REQS_AXIUM_04 (used by above view)
    4) drop and re-create the view LLU_V_PRODUCTION_DETAIL_04 (used by above view)
    In all cases (except #1), issuing a SELECT * FROM <view> returned data, both before and after dropping and re-creating them. The only view on which I receive the above error message is LLU_V_MIN_AVG_MAX_BY_CLASS_04.
    I am stumped - I have no clue what's going on.
    Can a view become corrupt?
    Any and all help will be gratefully received - any additional information you need in order to help, just let me know.
    Thanks very much,
    Carl

    Thanks to both of you for your replies.
    I am using SQL Developer to execute this statement - that's what was so puzzling to me - I had never seen an error message like that before. I tried this in versions 1.2.1 and 1.5.4 of SQL Developer and got the exact same results - the abovementioned statement ran for about 10 seconds and then my connection to the database was severed and I needed to re-connect to the database.
    Version of Oracle is 10.2.0.1.0
    Some background on the views with which I am working:
    All of them are suffixed with _04. What I do - whether right, wrong or otherwise - is whenever I have to make significant changes to that particular set of views, I increment the 'version number' so that I have the old views to refer back to just in case. So, this set of views existed as view name _03 until I copied, modifed and saved them as view name _04. They were working perfectly as 'version' _03 - no weird error messages at all. I then copied them to 'version' _04 and proceeded to make my modifications. So far so good. There are two tables which also get 'incremented' like this. I issued the command ANALYZE TABLE table_name VALIDATE STRUCTURE CASCADE against both of them and it succeeded. Here are the four views I am working with, numbered for reference purposes:
    1) LLU_V_MIN_AVG_MAX_BY_CLASS_04
    2) LLU_V_CLINIC_REQUIREMENTS_04
    3) LLU_V_CLINIC_REQS_AXIUM_04
    4) LLU_V_PRODUCTION_DETAIL_04
    1) is my problem child.
    2) is used by (1)
    3) is used by (2)
    4) is used by (3)
    2), 3) and 4) execute by themselves flawlessly. I issue the command SELECT * FROM +<any of those three views>+ and they return the correct dataset.
    Also, 1) works flawlessly as LLU_V_MIN_AVG_MAX_BY_CLASS_03. All I did was copy it from _03 to _04, change the necessary view name within its code and save it and it's not working. The only view it (#1) references is LLU_V_CLINIC_REQUIREMENTS_04. I issue the command SELECT * FROM LLU_V_CLINIC_REQUIREMENTS_04 and it returns the correct dataset.
    This is why I'm stumped and why I wondered whether a view can become corrupted.
    I don't even know what to try at this point, but any and all advice will be gratefully accepted, as always.
    Thanks,
    Carl

Maybe you are looking for

  • Error when create a BP Contact

    When user attempt to enter a contact person in CRM 7.0. After the account identification and user click on "Related" which took him to the "Create Contact Person" screen. A user entered contact person's information, clicked save. The user think misse

  • How do I open the Special Edition Acrobat X PDF Portfolio themes?

    I chose these themes as my complimentary benefit when I installed Acrobat X, and downloaded the ZIP file to my hard drive without incident.  I then extracted the files within the ZIP file.  However, when I open Acrobat, and attempt to import the four

  • Ipod to car stereo?

    Anyone have suggestions on how to run the nano through the aux jack in a new car (2007 model) stereo? The area I live&work in (boston/nyc) is awful for running the ipod through the car radio because there are too many signals causing interference. I

  • PO lead time

    Hi experts, Can any one suggest me here PO date -PR date i created formula with replacement path its working fine  but both date available its ok if one of the date is not avilable the out put is displaying as date but i need If one of date is not av

  • Change country codes to get updates?

    Hello everybody! I have a German N82 (96.01), RM 313, V 20.0.062, black and I would like to do a software update but the PC suite updater and OVI both keep telling me that there are no updates available. So now i am thinking that this is somehow conn