Iterator estimatedRowCount for detail table

Hi,
My UI page has two tables - master and detail table. I would like to hide the "Edit" button for the details table if there is no row in the details table. Here is the code snipplet
+<af:commandToolbarButton>+
+....+
+rendered="#{bindings.ItasStateTransitionsVO1Iterator.estimatedRowCount gt 0}+
+</af:commandToolbarButton>+
However, when first entering the page, bindings.ItasStateTransitionsVO1Iterator.estimatedRowCount returns 0 even though there are some rows. Only when I clicked on a row in the master table, then the details table got refreshed, then the bindings.ItasStateTransitionsVO1Iterator.estimatedRowCount will return the correct value.
Any ideas of how to fix this issue so bindings.ItasStateTransitionsVO1Iterator.estimatedRowCount will return the correct value the first time entering the page?
Thanks.
-Mina

I didn't do any additional coding to select the first row in the master table but somehow I believe the ADF framework automatically selected it when the page renders as I can see the first row in the master table is highlighted and the detail table is rendered correctly with the data. But the detail table's iterator estimatedRowCount is returning 0. Any ideas why?
Thanks.
-Mina

Similar Messages

  • How to create UI for detail table in BP-form

    Hi!
    It is necessary to store some data in the detail table for OCRD. How I can create the UI for such table (like Contact Person in BPMD form)? I can create matrix, but how to force SBO to process my table just as OCPR.
    SBO2004
    Sry for english
    Thanks

    Have a look at all the e-learning material
    e-learning material

  • How to change the iterator collection for a table dynamically?

    Hi all,
    I am required to change the table iterator dynamically based on the some logic. Is this possible?
    Attempted this by trying to set "value" using a bean -
    value=#{backingBeanScope.chkBean.getCollectionModel}
    This bean method returns either of the below based on condition =
    #{bindings.MyVO1.collectionModel}
    #{bindings.MyVO2.collectionModel}
    Am I doing something wrong?
    Thanks,
    Srini

    have multiple VO instances and the pagedef
    iterator Binds="#{pageFlowScope.OrderBean.pageIterList.pageIterId}"
    in the bean:
    public Map getPageIterList() {
    return itrMap;
    another method in the bean:
    itrMap = new HashMap();
    put value(vo instance) for pageIterId in this map and call this method in the TF.

  • Null value in detail table's primary key

    I use Business Components Data Form to define a master-detail java panel.
    I don't display the primary key column in the detail grid control.
    Then I click on "+" to add a row, enter a value (the 2nd part of the detail table's primary key) and click commit.
    I get an error saying that the primary key column that's not displayed is null and the row cann't be committed.
    How do I fix this error?

    My fields are varchar2's.
    -- simplified to protect the guilty:
    -- (made up from memory, so sql keywords may --be misspelled, but you get the idea)
    create table proj (
    proj varchar2(10) not null,
    constraint proj_pk
    primary key(proj)
    insert into proj values ('abc');
    commit;
    -- this table has legal values for -- the master.legal field.
    -- in master, legal was changed to a -- ComboBoxControl control from -- TextFieldControl that the wizard -- generated.
    create table legal_values (
    proj varchar2(10) not null,
    legal varchar2(10) not null,
    display_order integer not null,
    constraint legal_values_pk
    primary key (proj, legal)
    insert into legal_values
    values ('abc', 'one', 1);
    insert into legal_values
    values ('abc', 'two', 2);
    insert into legal_values
    values ('abc', 'three', 3);
    commit;
    create table master (
    proj varchar2(10) not null,
    masterKey varchar2(15) not null,
    legal varchar2(10) not null,
    constraint master_pk
    primary key (proj, masterKey)
    create table detail (
    proj varchar(10) not null,
    masterKey varchar(15) not null,
    detailkey varchar(10) not null,
    display_order integer not null,
    status varchar2(12) not null, -- user can only update this field
    constraint detail_pk
    primary key(proj, masterkey, detailkey)
    -- legal rows for detail table
    create table detail_values (
    proj varchar2(10) not null,
    detailkey varchar2(10) not null,
    display_order integer not null,
    constraint detail_values_pk
    primary key(proj, detailkey)
    insert into detail_values values
    ('abc', 'status a', 1);
    insert into detail_values values
    ('abc', 'status b', 2);
    commit;
    -- if their is a foriegn key on details back
    -- to master, then you get the
    -- "mutating table" error when trigger
    -- occurs.
    create or replace trigger master_tr
    after insert on master
    for each row
    begin
    insert into detail
    (masterKey, detailKey, status, display_order, status)
    select :new.masterkey, detail_key, display_order, ' '
    from detail_values;
    end;
    -- detail.status is a comboboxControl getting --its values of of another db table too.
    -- there's also "after update" triggers on master and detail tables that copy the record to master_history and "detail_history" tables if the corresponding table is modified. Thus we have a history of the changes made to the records. The 2 history tables have 2 additional fields than their parents, "modified_date date default sysdate not null" and "modified_by varchar2(30) default user not null" that record when and who made the change. There's also a change type field that records where the change is an insert, delete or update (there 3 triggers per table , so we can correctly record change type as being insert, delete or update into the change_type field).
    If you want to make it more real to life, the status value is initially blank, then can be changed to a legal status value (complete or not complete), but can not be changed back to blank.
    ***P.S. I have to have this ready for production by monday.****
    P.P.S After you reply and change to ComboBoxControls in 2 places, try changing the table names and/or the column names (say to follow the DBA's naming convention) or add another field to the composite primary key (and unstated foriegn key) (using drop table/create table). Now try getting the existing code to run. No writing down the old/new table (or column) name pair names. Just run the code and try to fix the code based on the error messages. Are the error messages giving you adequate information to find the problem?

  • Commit operation not enabled after createinsert in detail table

    Hi Everybody,
    After clicking createinsert operation for detail table in master detail, i got unique contraint error from db.after rectifiying the data for newly created row..commit operation not enabled to save the data.
    Please find the code i used in my jsf.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:panelBox text="PanelBox2" id="pb2">
              <f:facet name="toolbar">
                <af:group id="g2">
                  <af:commandButton actionListener="#{bindings.Delete1.execute}"
                                    text="Delete1"
                                    disabled="#{!bindings.Delete1.enabled}"
                                    id="cb4"/>
                  <af:commandButton
                                    text="CreateInsert1"
                                    disabled="#{!bindings.CreateInsert1.enabled}"
                                    id="cb3"
                                    action="#{backingBeanScope.MyIndustryBean.cb3_action}"/>
                  <af:commandButton actionListener="#{bindings.Commit.execute}"
                                    text="Commit"
                                    disabled="#{!bindings.Commit.enabled}"
                                    id="cb5"/>
                  <af:commandButton actionListener="#{bindings.Rollback.execute}"
                                    text="Rollback"
                                    disabled="#{!bindings.Rollback.enabled}"
                                    immediate="true" id="cb6">
                    <af:resetActionListener/>
                  </af:commandButton>
                </af:group>
              </f:facet>
              <af:table value="#{bindings.IndustryEOView1.collectionModel}"
                        var="row" rows="#{bindings.IndustryEOView1.rangeSize}"
                        emptyText="#{bindings.IndustryEOView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                        fetchSize="#{bindings.IndustryEOView1.rangeSize}"
                        rowBandingInterval="0"
                        filterModel="#{bindings.IndustryEOView1Query.queryDescriptor}"
                        queryListener="#{bindings.IndustryEOView1Query.processQuery}"
                        filterVisible="true" varStatus="vs"
                        selectedRowKeys="#{bindings.IndustryEOView1.collectionModel.selectedRow}"
                        selectionListener="#{bindings.IndustryEOView1.collectionModel.makeCurrent}"
                        rowSelection="single" id="t1" width="448"
                        inlineStyle="height:193px;" partialTriggers="::cb3 ::cb4">
                <af:column sortProperty="IdDesc" filterable="true" sortable="true"
                           headerText="#{bindings.IndustryEOView1.hints.IdDesc.label}"
                           id="c2">
                  <af:inputText value="#{row.bindings.IdDesc.inputValue}"
                                label="#{bindings.IndustryEOView1.hints.IdDesc.label}"
                                required="#{bindings.IndustryEOView1.hints.IdDesc.mandatory}"
                                columns="#{bindings.IndustryEOView1.hints.IdDesc.displayWidth}"
                                maximumLength="#{bindings.IndustryEOView1.hints.IdDesc.precision}"
                                shortDesc="#{bindings.IndustryEOView1.hints.IdDesc.tooltip}"
                                id="it2">
                    <f:validator binding="#{row.bindings.IdDesc.validator}"/>
                  </af:inputText>
                </af:column>
                <af:column sortProperty="IdPlace" filterable="true" sortable="true"
                           headerText="#{bindings.IndustryEOView1.hints.IdPlace.label}"
                           id="c1">
                  <af:inputText value="#{row.bindings.IdPlace.inputValue}"
                                label="#{bindings.IndustryEOView1.hints.IdPlace.label}"
                                required="#{bindings.IndustryEOView1.hints.IdPlace.mandatory}"
                                columns="#{bindings.IndustryEOView1.hints.IdPlace.displayWidth}"
                                maximumLength="#{bindings.IndustryEOView1.hints.IdPlace.precision}"
                                shortDesc="#{bindings.IndustryEOView1.hints.IdPlace.tooltip}"
                                id="it1">
                    <f:validator binding="#{row.bindings.IdPlace.validator}"/>
                  </af:inputText>
                </af:column>
              </af:table>
            </af:panelBox>
            <af:panelBox text="PanelBox1" id="pb1">
              <f:facet name="toolbar">
                <af:group id="g1">
                  <af:commandButton actionListener="#{bindings.Delete.execute}"
                                    text="Delete"
                                    disabled="#{!bindings.Delete.enabled}"
                                    id="cb2"/>
                  <af:commandButton
                                    text="CreateInsert"
                                    disabled="#{!bindings.CreateInsert.enabled}"
                                    id="cb1"
                                    action="#{backingBeanScope.MyIndustryBean.cb1_action}"/>
                  <af:commandButton actionListener="#{bindings.Create.execute}"
                                    text="Create"
                                    disabled="#{!bindings.Create.enabled}"
                                    id="cb7"/>
                </af:group>
              </f:facet>
              <af:table value="#{bindings.IndustryRatinEOView1.collectionModel}"
                        var="row" rows="#{bindings.IndustryRatinEOView1.rangeSize}"
                        emptyText="#{bindings.IndustryRatinEOView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                        fetchSize="#{bindings.IndustryRatinEOView1.rangeSize}"
                        rowBandingInterval="0"
                        filterModel="#{bindings.IndustryRatinEOView1Query.queryDescriptor}"
                        queryListener="#{bindings.IndustryRatinEOView1Query.processQuery}"
                        filterVisible="true" varStatus="vs"
                        selectedRowKeys="#{bindings.IndustryRatinEOView1.collectionModel.selectedRow}"
                        selectionListener="#{bindings.IndustryRatinEOView1.collectionModel.makeCurrent}"
                        rowSelection="single" id="t2"
                        partialTriggers="::t1 ::cb1 ::cb2 ::cb7">
                <af:column sortProperty="RatingId" filterable="true" sortable="true"
                           headerText="#{bindings.IndustryRatinEOView1.hints.RatingId.label}"
                           id="c5">
                  <af:selectOneChoice value="#{row.bindings.RatingId.inputValue}"
                                      label="#{row.bindings.RatingId.label}"
                                      required="#{bindings.IndustryRatinEOView1.hints.RatingId.mandatory}"
                                      shortDesc="#{bindings.IndustryRatinEOView1.hints.RatingId.tooltip}"
                                      id="soc2" autoSubmit="true">
                    <f:selectItems value="#{row.bindings.RatingId.items}" id="si2"/>
                  </af:selectOneChoice>
                </af:column>
                <af:column sortProperty="RatingSubId" filterable="true"
                           sortable="true"
                           headerText="#{bindings.IndustryRatinEOView1.hints.RatingSubId.label}"
                           id="c6" partialTriggers="soc2">
                  <af:selectOneChoice value="#{row.bindings.RatingSubId.inputValue}"
                                      label="#{row.bindings.RatingSubId.label}"
                                      required="#{bindings.IndustryRatinEOView1.hints.RatingSubId.mandatory}"
                                      shortDesc="#{bindings.IndustryRatinEOView1.hints.RatingSubId.tooltip}"
                                      id="soc1" partialTriggers="soc2">
                    <f:selectItems value="#{row.bindings.RatingSubId.items}"
                                   id="si1"/>
                  </af:selectOneChoice>
                </af:column>
                <af:column sortProperty="Place" filterable="true" sortable="true"
                           headerText="#{bindings.IndustryRatinEOView1.hints.Place.label}"
                           id="c4">
                  <af:inputText value="#{row.bindings.Place.inputValue}"
                                label="#{bindings.IndustryRatinEOView1.hints.Place.label}"
                                required="#{bindings.IndustryRatinEOView1.hints.Place.mandatory}"
                                columns="#{bindings.IndustryRatinEOView1.hints.Place.displayWidth}"
                                maximumLength="#{bindings.IndustryRatinEOView1.hints.Place.precision}"
                                shortDesc="#{bindings.IndustryRatinEOView1.hints.Place.tooltip}"
                                id="it3">
                    <f:validator binding="#{row.bindings.Place.validator}"/>
                  </af:inputText>
                </af:column>
                <af:column sortProperty="RatingDesc" filterable="true"
                           sortable="true"
                           headerText="#{bindings.IndustryRatinEOView1.hints.RatingDesc.label}"
                           id="c3">
                  <af:inputText value="#{row.bindings.RatingDesc.inputValue}"
                                label="#{bindings.IndustryRatinEOView1.hints.RatingDesc.label}"
                                required="#{bindings.IndustryRatinEOView1.hints.RatingDesc.mandatory}"
                                columns="#{bindings.IndustryRatinEOView1.hints.RatingDesc.displayWidth}"
                                maximumLength="#{bindings.IndustryRatinEOView1.hints.RatingDesc.precision}"
                                shortDesc="#{bindings.IndustryRatinEOView1.hints.RatingDesc.tooltip}"
                                id="it4">
                    <f:validator binding="#{row.bindings.RatingDesc.validator}"/>
                  </af:inputText>
                </af:column>
              </af:table>
            </af:panelBox>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

    Hi,
    Need to set partialSubmit true for CreateInsert and partialTrigger attribute for Commit button(Select Createinsert button for partialTrigger )

  • Can we pass Iterator dynamically to af:table?

    I have about 10 tables that is supposed to be represented dynamicly in an ADF table on one jspx page. All tables have 8 columns that are identical.
    I have plan to create 10 VO's but one Jspx page..Depending upon the user selection i am trieng to pass Iterator to the Jspx table. I am not sure wether it is possible or not .
    I knew by passing dynamic list we can create a table.
    But instead i am trieng to acheve this by passing Iteratot Dynamiclly.
    Can any body help me how to approach in this situation?
    Thanks in Advance.

    Hi Krithika,
    I had solved the problem by using setQuery() for VO even without creating the 10 vo's also .I have created VO called commonTestVO ,depending on the user selction simply dynamically setting the VO query.
    Here is my solution :
    private void processValueChangeEvent(ValueChangeEvent event) {
    if (event.getNewValue().equals("value1")) {
    // sets the iterator required for the table
    DCIteratorBinding iterator = ADFUtils.findIterator("TestVOiterator");
    ViewObject vo = iterator.getViewObject();
    vo.setFullSqlMode(vo.FULLSQL_MODE_AUGMENTATION);
    vo.setQuery("select * from Test_vw where rownum <10");
    vo.executeQuery();
    } else if (event.getNewValue().equals("value2")) {
    / DCIteratorBinding iterator = ADFUtils.findIterator("TestVOiterator");
    ViewObject vo = iterator.getViewObject();
    vo.setFullSqlMode(vo.FULLSQL_MODE_AUGMENTATION);
    vo.setQuery("select * from Test_vw2 where rownum <10");
    vo.executeQuery();
    Jspx Code :
    <af:table value="#{bindings.TestVO.collectionModel}" var="row"
    rows="#{bindings.TestVO.rangeSize}"
    first="#{bindings.TestVO.rangeStart}"
    emptyText="#{bindings.TestVO.viewable ? 'No rows yet.' : 'Access Denied.'}"
    binding="#{backing_jsp_webutils_TableTest.table1}"
    id="table1">
    <af:column sortProperty="LookupId" sortable="false"
    headerText="#{bindings.TestVO.labels.LookupId}"
    binding="#{backing_jsp_webutils_TableTest.column11}"
    id="column11">
    <af:inputText value="#{row.LookupId}"
    required="#{bindings.TestVO.attrDefs.LookupId.mandatory}"
    columns="#{bindings.TestVO.attrHints.LookupId.displayWidth}"
    binding="#{backing_jsp_webutils_TableTest.inputText1}"
    id="inputText1">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.TestVO.formats.LookupId}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="LookupType" sortable="false"
    headerText="#{bindings.TestVO.labels.LookupType}"
    binding="#{backing_jsp_webutils_TableTest.column12}"
    id="column12">
    <af:inputText value="#{row.LookupType}" simple="true"
    required="#{bindings.TestVO.attrDefs.LookupType.mandatory}"
    columns="#{bindings.TestVO.attrHints.LookupType.displayWidth}"
    binding="#{backing_jsp_webutils_TableTest.inputText2}"
    id="inputText2"/>
    </af:column>
    </af:table>
    but data type and columns size should be sam efor the both tabless or views/.

  • Polling the master detail table and to update the LAST_UPDATED with SYSDATE

    Hi
    The requirement is polling the master detail table where read_flag is null and has to update the LAST_UPDATED with SYSDATE in both tables.
    Refered the MasterDetail and PollingPureSQLSysdateLogicalDelete samples of SOASuite.
    Used the delete polling strategy in polling process and modified the generated TopLink discriptor as follows.
    set the TopLink -> Custom SQL tab -> Delete tab with the following query
    for master table (RECEIVER_DEPT) :
    update RECEIVER_DEPT set READ_FLAG= 'S' , LAST_UPDATED=sysdate where DEPTNO=#DEPTNO
    set the TopLink -> Custom SQL tab -> Delete tab with the following query
    for Detail table (RECEIVER_EMP):
    update RECEIVER_EMP set LAST_UPDATED=sysdate where EMPNO=#EMPNO
    After deploying the bpel process data is updated in master(RECEIVER_DEPT) table with LAST_UPDATED as sysdate and read_flag as S
    however data is deleted in detail(RECEIVER_EMP) table rather than updated records.

    Xtanto,
    I suggest using JSP / Struts. UIX will be replaced by ADF Faces in JDeveloper 10.1.3 and thus I wouldn't suggest new developments to be started with UIX unless time doesn't allow to wait for ADF Faces. In this case develop UIX in an MVC1 model, using the UIX events for navigation because this model seems more likely to be mgratable, according to the UIX Statement of direction on Otn.
    Back to your question. You can create a search form in JSP that forwards the request to a StrutsData Action to set the scope of teh result set. The read only table can have a link or a button to call the detail page, passing the RoewKey as a string.
    Have a look at the Oracle by Example (OBE) tutorials that contain similar exaqmples.
    Frank

  • Updating model for pivot table in af:iterator

    Using Master Detail relationship, i am trying to create multiple forms at runtime. I want to show all the forms at once. Each form has some header fields and a pivot table. Header field is coming from master table and pivot table should be made from child.
    I am using af:iterator to iterate over master table rows and show header:
    <af:iterator id="i1"
                value="#{bindings.MasterTableVO.collectionModel}" var="row"
                varStatus="index"> For pivot table, i dragged Child View Object from Data Controls to make pivot table.
    <dvt:pivotTable id="pivotTable1"
              value="#{bindings.ChildTableVO.pivotTableModel}"
              summary="pivot table" sizing="auto"
              pivotEnabled="false" drillingEnabled="false"/>                                    Now while iterating, i am not able to get updated model for pivot table. Values from Master table are being updated, but pivot table from child table showing details corresponding to the first row of master table everywhere.
    So can you please help me, how to get the updated pivot table model corresponding to the current row in parent iterator ?
    I am using JDeveloper 11.1.1.6.0
    Thank You.
    VS

    Hi Aswini ,
    I didnot worked for me. I need to change the usecase a bit..
    however you can eaisly display the af:table inside iterator in readonly mode, but when you perform crud operations inline then it gives problems..
    Can you explain your usecase.
    Regards,
    Santosh.

  • CreateInsert for Detail Iterator INSIDE popup possible?

    ADF 11gR1
    Table Structure: MASTER >1:n> DETAIL >1:n> SUBDETAIL
    I have button that performs a create for MASTERIterator then opens a popup with an edittable form. In that form, I have af:iterator for DETAILIterator's attributes, as well as a table for SUBDETAILIterator. There are also createinsert pushbuttons for DETAILIterator and SUBDETAILIterator.
    I have the popup set to lazyUncached.
    When clicking on the createinsert for the DETAILIterator, the popup immediately closes.
    If this form is moved out of a popup to a standard page, it works fine. I assume because createInsert for a af:iterator tag would need to render additional HTML, perhaps this isn't possible in a single popup? I rather not perform this functionality as a "popup w/ a nested popup."
    Don't know if this is even possible, but I'm looking for insight.
    Thanks,
    -R

    for now i deleted the grandchild table (SUBDETAIL), so in the pop-up I only have
    MASTER (as a form)
    DETAIL (as a form inside an af:iterator tag).
    For example (don't have access to the machine at this moment, so excuse the pseudo-code)
    Master.attribute1
    Master.attribute2
    Master.attribute3
    <create-insert pushbutton for DETAIL>
    <af:iterator>
    row.DETAIL.attribute1
    row.DETAIL.attribute2
    </af:iterator>
    The af:iterator tag does not have a PartialTrigger attribute.
    Edited by: Roy R on Oct 27, 2009 3:51 PM

  • More than 5 rows in the detail table for a Master Detail Portlet

    I have a Master Detail Portlet.   I originally had 5 fields in the detail portlet.  I have added a column to the detail portlet and now the last column is wrapped around in the portlet.  I do not see a way to force it to be on the same line as the rest of the columns for the detail table.
    Do I need to just delete it and re-create the portlet?
    Below is the from the browser when executing the portlet.
    function show_context_help(h) {   newWindow = window.open(h,"Help", "menubar=1,toolbar=1,scrollbars=1,resizable=1,width=700, height=500"); }  
    Master action:
    [None]
    Insert
    Update
    Delete
    Carrier
    Carname
    Line Haul Carrier?
    Detail actions
    Warehouse
    Carrier
    Service
    Ship To
    Country Code
    Hold for
    Pickup
    Service?
    Associate LPN
    Required?
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete

    Easy, The default on the detail field had the Begin on New Line flag set to on.   By unchecking it I got the desired behavior.

  • Missing most detailed table for dimension tables

    Hi ,
    I am getting this following error
    Business Model Core:
    [nQSError: 15003] Missing most detailed table for dimension tables: [Dim - Customer,Dim - Account Hierarchy,Dim - Account Region Hierarchy,Fact - Fins - Period Days Count].
    [nQSError: 15001] Could not load navigation space for subject area Core.
    I got this error when I tried to configure # of Elapsed Days and # of Cumulative Elapsed Days by following way-
    1. Using the Administration Tool, open OracleBIAnalyticsApps.rpd.
    Configuration Steps for Controlling Your Data Set
    Configuring Oracle Financial Analytics 5-51
    The OracleBIAnalyticsApps.rpd file is located at:
    ORACLE_INSTANCE\bifoundation\OracleBIServerComponent\coreapplication_
    obisn\repository
    2. In the Business Model and Mapping layer, go the logical table Fact - Fins - Period
    Days Count.
    3. Under Sources, select the Fact_W_DAY_D_PSFT logical table source.
    4. Clear the Disabled option in the General tab and click OK.
    5. Open the other two logical table sources, Fact_W_DAY_D_ORA and Fact_W_
    DAY_D_PSFT, and select the Disabled option.
    6. Add the "Fact - Fins - Period Days Count" and "Dim - Company" logical tables to
    the Business Model Diagram. To do so, right-click the objects and select Business
    Model Diagram, Selected Tables Only.
    7. In the Business Model Diagram, create a new logical join from "Dim - Company"
    to "Fact - Fins - Period Days Count." The direction of the foreign key should be
    from the "Dim - Company" logical table to the "Fact - Fins - Period Days Count"
    table. For example, on a (0,1):N cardinality join, "Dim - Company" will be on the
    (0/1) side and "Fact - Fins - Period Days Count" will be on the N side.
    8. Under the Fact - Fins - Period Days Count logical table, open the "# of Elapsed
    Days" and "# of Cumulative Elapsed Days" metrics, one at a time.
    9. Go to the Levels tab. For the Company dimension, the Logical Level is set to All.
    Click the X button to remove it. Repeat until the Company dimension does not
    have a Logical Level setting.
    10. Make sure to check Global Consistency to ensure there are no errors, and then
    save the RPD file.
    Please help me to resolve.
    Thanks,
    Soumitro

    Could you let me know how you resolved this. I am facing the same.

  • "Missing most detailed table for dimension tables" eror when I run the Global Consistency check

    ERRORS:
    Business Model DAC Measures:
    [nQSError: 15003] Missing most detailed table for dimension tables: [D_DETAILS,D_EXECUTION_PLAN,D_TASK].
    [nQSError: 15001] Could not load navigation space for subject area DAC Measures.
    I am also attaching my Business Model layer for easy understanding. I have a fact table and several Dimension table. I got this error only after creating the following hierarchies:
    Execution Plan -> Tasks -> Details
    Start Date Time Hierarchy
    End Date Time Hierarchy
    Is there a solution for this problem? Thanks in advance!

    Yes ! My Task Hierarchy has 3 dimension tables that form a hierarchy :Execution Plan -> Tasks -> Detail
    All the 3 levels in the hierarchy are 3 different dimension tables.

  • Filtering not working for newly added child objects in master-detail table

    Hi,
    I am using Jdeveloper 11.1.1.4 version.
    Problem scenario:
    Filtering of records is not working for newly created child objects in a master-detail scenario.
    Steps to reproduce this issue using HR Schema (using LOCATIONS and DEPARTMENTS table ) :
    1. Create Business components (EO's & VO's ) for LOCATIONS & DEPARTMENTS table)
    1. Create a .jspx page and insert a readonly master table of Locations
    2. Insert a child table (inline-edit table) of Departments and enable filtering
    4. For the child table, drag and drop CreateInsert operation as a toolbar button .
    5. Create a new child record using the toolbar button and enter data .
    6. Filtering on the newly created child record's attributes does not work.
    Please note that the same filter works for existing child records.
    Any suggestions for resolving this issue?
    Thanks,
    Vikas

    Found from Fusion Developer's Guide the following snippet about QBE functionality :
    "+When you create data controls, all data collections will automatically include a Named Criteria node with an All Queriable Attributes criteria. This is the default view criteria that includes all the searchable attributes or columns of the data collection. You cannot edit or modify this view criteria+. "
    So, the question is if the implicit view criteria cannot be edited, how else to set the query execution mode to "Both" ?
    Shouldn't ADF BC support this by default? Is this a bug?
    Note:- If you create a maste-detail table using POJO datacontrols, filter works correctly for newly created child records also .
    This seems to be an issue with ADF-BC datacontrols only.
    Thanks,
    Vikas

  • Computation only works for FIRST record in detail table

    Hi,
    I am having a weird problem. I have a master/detail form with page computations that work only for the very first record inserted into the detail table. If i try to enter a second or a third record the fields DO NOT get updated with the return values.
    This is driving me nuts and i am on a deadline with this project. HELP!!!!!
    Here is the code for all the computations below. Interestingly enough, only the name computation works for every new detail record. The others work only for the first.
    -- Calulate Social Security PL/SQL Function
    DECLARE
    p_is16to62ssrate NUMBER(6,2);
    p_u16o62ssrate NUMBER(6,2);
    p_dob DATE;
    p_base_date DATE := SYSDATE;
    p_age NUMBER(3);
    p_totalss NUMBER(9,2);
    BEGIN
    SELECT is16to62ssrate, u16o62ssrate
    INTO p_is16to62ssrate, p_u16o62ssrate
    FROM SSC3_RATES
    WHERE ratescheduleid = 1;
    SELECT dob
    INTO p_dob
    FROM SSC3_EMPLOYEES
    WHERE ssno = :P25_SSNO;
    p_age := TRUNC(MONTHS_BETWEEN(p_base_date,p_dob)/12);
    IF (p_age >= 16) OR (p_age <=62) THEN
    p_totalss := (:P25_TOTALWAGES * (p_is16to62ssrate/100));
    ELSIF (p_age < 16) OR (p_age > 62) THEN
    p_totalss := (:P25_TOTALWAGES * (p_u16o62ssrate/100));
    ELSE
    p_totalss := 0.00;
    END IF;
    RETURN p_totalss;
    END;
    -- Calculate Levy PL/SQL Function
    DECLARE
    -- declare local variables to hold rates from rates table
    p_hsdlarate NUMBER(6,2);
    p_hsdlbrate NUMBER(6,2);
    p_hsdlcrate NUMBER(6,2);
    p_hsdldrate NUMBER(6,2);
    p_hsdlaminearnings NUMBER(8,2);
    p_hsdlamaxearnings NUMBER(8,2);
    p_hsdlbminearnings NUMBER(8,2);
    p_hsdlbmaxearnings NUMBER(8,2);
    p_hsdlcminearnings NUMBER(8,2);
    p_hsdlcmaxearnings NUMBER(8,2);
    p_hsdldminearnings NUMBER(8,2);
    p_hsdldmaxearnings NUMBER(8,2);
    p_totalwages NUMBER(8,2);
    p_totallevy NUMBER(8,2);
    BEGIN
    -- Load rate info from table into variables
    SELECT hsdlarate, hsdlbrate, hsdlcrate, hsdldrate, hsdlaminearnings,
    hsdlamaxearnings, hsdlbminearnings, hsdlbmaxearnings,
    hsdlcminearnings, hsdlcmaxearnings, hsdldminearnings,
    hsdldmaxearnings
    INTO p_hsdlarate, p_hsdlbrate, p_hsdlcrate, p_hsdldrate,
    p_hsdlaminearnings, p_hsdlamaxearnings, p_hsdlbminearnings,
    p_hsdlbmaxearnings, p_hsdlcminearnings, p_hsdlcmaxearnings,
    p_hsdldminearnings, p_hsdldmaxearnings
    FROM SSC3_RATES
    WHERE ratescheduleid = 1;
    -- Assign total wages to variable
    p_totalwages := :P25_TOTALWAGES;
    -- Determine applicable levy payment and rate
    IF (p_totalwages < p_hsdlamaxearnings) THEN
    p_totallevy := (p_totalwages * (p_hsdlarate/100));
    ELSIF (p_totalwages >= p_hsdlbminearnings) AND (p_totalwages <= p_hsdlbmaxearnings) THEN
    p_totallevy := (p_totalwages * (p_hsdlbrate/100));
    ELSIF (p_totalwages >= p_hsdlcminearnings) AND (p_totalwages <= p_hsdlcmaxearnings) THEN
    p_totallevy := (p_totalwages * (p_hsdlcrate/100));
    ELSIF (p_totalwages >= p_hsdldminearnings) THEN
    p_totallevy := (p_totalwages * (p_hsdldrate/100));
    END IF;
    RETURN p_totallevy;
    END;
    -- Calculate Total Wages PL/SQL Function
    DECLARE
    t_wages NUMBER(8,2);
    BEGIN
    t_wages := (:P25_WEEK1_WAGE + :P25_WEEK2_WAGE + :P25_WEEK3_WAGE + :P25_WEEK4_WAGE + :P25_WEEK5_WAGE + :P25_BONUS + :P25_OTHER);
    RETURN t_wages;
    END;
    -- Calculate Employee Name PL/SQL Function
    DECLARE
    p_firstname VARCHAR2(20);
    p_lastname VARCHAR2(20);
    p_name VARCHAR2(40);
    p_join VARCHAR2(2) := ', ';
    BEGIN
    SELECT firstname, lastname
    INTO p_firstname, p_lastname
    FROM SSC3_EMPLOYEES
    WHERE ssno = :P25_SSNO;
    p_name := Initcap(p_lastname||p_join||p_firstname);
    RETURN p_name;
    END;
    Regards
    Glenroy Skelton

    Hi,
    The first thing that strikes me is the following IF test:
    IF (p_age >= 16) OR (p_age <=62) THEN
    p_totalss := (:P25_TOTALWAGES * (p_is16to62ssrate/100));
    ELSIF (p_age < 16) OR (p_age > 62) THEN
    p_totalss := (:P25_TOTALWAGES * (p_u16o62ssrate/100));
    ELSE
    p_totalss := 0.00;
    END IF;The first test will be true for every number as all numbers are greater than 16 or less than 62. I'd suggest changing the OR to an AND or use BETWEEN
    Andy

  • Creating view cluster for a header and detail table

    Hi all,
    I want to create a View cluster for maintaining 2 tables (one is the header table and other is the detail table)
    ....for each line in the header table there can be multiple detail line items...
    If anyone has worked on such requirement...please tell me how should i go about developing it.
    after creation i should be able to maintain the cluster using transaction SM34....
    Thanks ,
    Sushil.

    hi
    refer to following link
    http://help.sap.com/saphelp_nw04/helpdata/en/d0/999246b2aa11d1a5700000e82deaaa/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d0/999246b2aa11d1a5700000e82deaaa/frameset.htm
    Cheers
    Snehi

Maybe you are looking for

  • Filter in alv report

    hello! i have a weird problem in alv report with the filter function. for example the field serial like viqmel-serial, if it contains the value for example 1234 the filter want work. if it contains the value N16 the filter will work. i cant understan

  • How can you create a writable PDF document from a PPT presentation ?

    How can you create a writable PDF document from a PPT presentation ? Upper part with the image , lower part with a free space in order to take notes for students during presentation or course. Thanks. B

  • Interactive pdf cannot be opened on PC

    I created an interactive PDF form in Indesign CS6. I am fine opening it with 'preview' for mac, and also with Adobe Acrobat Pro, but when someone else it opens on a windows computer with adobe reader, it says that you cannot save the filled in form.

  • TOSHIBA Blu-ray Disc Player not compatible with USB speakers

    I have a P850, using Logitch Z305 USB speakers. The speakers work fine with all other multimedia software such as WMP, iTunes or MPC, but not with TOSHIBA Blu-ray Disc Player. The Toshiba program either won't work or will crash if the speakers are pl

  • FM or BAPI to change Operation data

    Hi, Is there any BAPI to change operation data? BAPI_ALM_ORDER_MAINTAIN is not useful in my case. I want to use   IBAPI_ORDER_OPERATION_CHANGE but not able to get proper documentation for same.Can anyone give me a sample code about how to use IBAPI_O