Filter on Master-Detail

Build JDEVADF_11.1.2.0.0_GENERIC_110531.1615.6017
Hello,
I have a Master Detail View. I show the objects of the views in a single table. I can filter the objects by Master View, but not of the detail view.
What should I do to the elements of detailed view can also filter?
<af:table value="#{bindings.MyView1.collectionModel}" var="row"
                                      rows="#{bindings.MyView1.rangeSize}"
                                      emptyText="#{bindings.MyView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                                      fetchSize="#{bindings.MyView1.rangeSize}" rowBandingInterval="0"
                                      filterModel="#{bindings.MyView1Query.queryDescriptor}"
                                      queryListener="#{bindings.MyView1Query.processQuery}" filterVisible="true"
                                      varStatus="vs" selectedRowKeys="#{bindings.MyView1.collectionModel.selectedRow}"
                                      selectionListener="#{bindings.MyView1.collectionModel.makeCurrent}"
                                      rowSelection="single" id="t1">
                                <af:column sortProperty="#{bindings.MyView1.hints.Ref.name}" filterable="true"
                                           sortable="true" headerText="#{bindings.MyView1.hints.Ref.label}" id="c1">
                                    <af:inputText value="#{row.bindings.Ref.inputValue}"
                                                  label="#{bindings.MyView1.hints.Ref.label}"
                                                  required="#{bindings.MyView1.hints.Ref.mandatory}"
                                                  columns="#{bindings.MyView1.hints.Ref.displayWidth}"
                                                  maximumLength="#{bindings.MyView1.hints.Ref.precision}"
                                                  shortDesc="#{bindings.MyView1.hints.Ref.tooltip}" id="it1">
                                        <f:validator binding="#{row.bindings.Ref.validator}"/>
                                        <af:convertNumber groupingUsed="false"
                                                          pattern="#{bindings.MyView1.hints.Ref.format}"/>
                                    </af:inputText>
                                </af:column>
                                <af:column sortProperty="#{bindings.MyView1.hints.Description.name}" filterable="true"
                                           sortable="true" headerText="#{bindings.MyView1.hints.Description.label}"
                                           id="c2">
                                    <af:inputText value="#{row.bindings.Description.inputValue}"
                                                  label="#{bindings.MyView1.hints.Description.label}"
                                                  required="#{bindings.MyView1.hints.Description.mandatory}"
                                                  columns="#{bindings.MyView1.hints.Description.displayWidth}"
                                                  maximumLength="#{bindings.MyView1.hints.Description.precision}"
                                                  shortDesc="#{bindings.MyView1.hints.Description.tooltip}" id="it2">
                                        <f:validator binding="#{row.bindings.Description.validator}"/>
                                    </af:inputText>
                                </af:column>
                                <af:column sortProperty="#{bindings.MyView1.hints.MYAddrView.FkProperty.name}"
                                           filterable="true" sortable="true"
                                           headerText="#{bindings.MyView1.hints.MYAddrView.FkProperty.label}"
                                           id="c15">
                                    <af:inputText value="#{row.MYAddrView.bindings.FkProperty.inputValue}"
                                                  label="#{bindings.MyView1.hints.MYAddrView.FkProperty.label}"
                                                  required="#{bindings.MyView1.hints.MYAddrView.FkProperty.mandatory}"
                                                  columns="#{bindings.MyView1.hints.MYAddrView.FkProperty.displayWidth}"
                                                  maximumLength="#{bindings.MyView1.hints.MYAddrView.FkProperty.precision}"
                                                  shortDesc="#{bindings.MyView1.hints.MYAddrView.FkProperty.tooltip}"
                                                  id="it15">
                                        <f:validator binding="#{row.MYAddrView.bindings.FkProperty.validator}"/>
                                        <af:convertNumber groupingUsed="false"
                                                          pattern="#{bindings.MyView1.hints.MYAddrView.FkProperty.format}"/>
                                    </af:inputText>
                                </af:column>
                                <af:column sortProperty="#{bindings.MyView1.hints.MYAddrView.AddrCity.name}"
                                           filterable="true" sortable="true"
                                           headerText="#{bindings.MyView1.hints.MYAddrView.AddrCity.label}" id="c16">
                                    <af:inputText value="#{row.MYAddrView.bindings.AddrCity.inputValue}"
                                                  label="#{bindings.MyView1.hints.MYAddrView.AddrCity.label}"
                                                  required="#{bindings.MyView1.hints.MYAddrView.AddrCity.mandatory}"
                                                  columns="#{bindings.MyView1.hints.MYAddrView.AddrCity.displayWidth}"
                                                  maximumLength="#{bindings.MyView1.hints.MYAddrView.AddrCity.precision}"
                                                  shortDesc="#{bindings.MyView1.hints.MYAddrView.AddrCity.tooltip}"
                                                  id="it16">
                                        <f:validator binding="#{row.MYAddrView.bindings.AddrCity.validator}"/>
                                    </af:inputText>
                                </af:column>
                                <af:column sortProperty="#{bindings.MyView1.hints.MYAddrView.AddrZip.name}"
                                           filterable="true" sortable="true"
                                           headerText="#{bindings.MyView1.hints.MYAddrView.AddrZip.label}" id="c17">
                                    <af:inputText value="#{row.MYAddrView.bindings.AddrZip.inputValue}"
                                                  label="#{bindings.MyView1.hints.MYAddrView.AddrZip.label}"
                                                  required="#{bindings.MyView1.hints.MYAddrView.AddrZip.mandatory}"
                                                  columns="#{bindings.MyView1.hints.MYAddrView.AddrZip.displayWidth}"
                                                  maximumLength="#{bindings.MyView1.hints.MYAddrView.AddrZip.precision}"
                                                  shortDesc="#{bindings.MyView1.hints.MYAddrView.AddrZip.tooltip}"
                                                  id="it17">
                                        <f:validator binding="#{row.MYAddrView.bindings.AddrZip.validator}"/>
                                    </af:inputText>
                                </af:column>
</af:table>thank you
regards

Hi Shay,
thank you for your reply.
I have two view objects based on two DB-tables. They are in relation with a View Link. So I have under my DataControls:
MyView1
-> MYADDRView.
I push my MyView1(Master) on the jsp and I select ADFTable. and I click to "Enable Sorting" and "Enable Filtering".
For the fields belonging to MyView1, I can filter the data, but when I want to filter a field belongs MYADDR, i have the error message:
ADF_FACES-60098:Faces-Gültigkeitsdauer empfängt nicht behandelte Exceptions in Phase INVOKE_APPLICATION 5
javax.el.ELException: java.lang.NullPointerException
     at com.sun.el.parser.AstValue.invoke(Unknown Source)
     at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1579)
     at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:158)
     at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:483)
     at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:157)
     at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:279)
     at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)
     at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:479)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
     at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
     at java.security.AccessController.doPrivileged(Native Method)
     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.lang.NullPointerException
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._parseViewCriteriaItem(FacesCtrlSearchBinding.java:5268)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._parseViewCriteriaItems(FacesCtrlSearchBinding.java:5028)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._addFilterCriteria(FacesCtrlSearchBinding.java:4894)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:443)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     ... 51 more
<RegistrationConfigurator> <handleError> ADF_FACES-60096:Server-Exception während PPR, #1
javax.el.ELException: java.lang.NullPointerException
     at com.sun.el.parser.AstValue.invoke(Unknown Source)
     at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1579)
     at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:158)
     at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:483)
     at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:157)
     at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:279)
     at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)
     at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:479)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
     at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
     at java.security.AccessController.doPrivileged(Native Method)
     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.lang.NullPointerException
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._parseViewCriteriaItem(FacesCtrlSearchBinding.java:5268)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._parseViewCriteriaItems(FacesCtrlSearchBinding.java:5028)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._addFilterCriteria(FacesCtrlSearchBinding.java:4894)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:443)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     ... 51 moreregards

Similar Messages

  • Filter on Master Detail tables

    Hi,
    I've just created a simple Master Detail view (both tables) on my jsf page.
    I would like to add a filter above all the master table columns but I can't.
    I have set all the properties linked to Filtering I've seen to "true" (for the table and the columns) but I don't see the header with the filter field.
    I'm just wondering what value I should set in the FilterModel property. When I create a simple table, it's linked to a queryDescriptor, but this doesn't exist for my master table.
    Could anyone help ?
    Thank you.

    Hi,
    here's what happens when you create a filterable table using the table dialog. If you want to apply this manually, then the same steps need to be performed
    - A search binding is added to the executables section in the ADF page definition file of the containing page. The binding is configured by the <searchRegion> metadata element.
    - The queryListener attribute is set to reference the processQuery method that is exposed by the <searchRegion> implementation class
    - The filterModel attribute is set to point to the query descriptor exposed on the ADF hierarchical binding that exists for the table.
    - The filterVisible attribute is set to true to display the filter input components above the table header, as shown in figure 09-4. The filterVisible attribute value can be set using Expression Language, allowing the application developer to dynamically control when a user is allowed to filter the table and when he or she isn’t.
    - The filterable attribute is set to true on the contained columns. To exclude a column from query-by-example, set this property to false.
    I suggest you drop a second instance of the master table to get the bindings created. Copy the settings of the table to the first one. Change the references to the second table binding to point to the first and then delete the second master table. Sounds easier to me
    Frank

  • OBIEE 11g:  Inconsistencies with Master-Detail events and Navigate to BI

    Hi everyone,
    I'm getting some pretty annoying inconsistencies with the Navigate to BI Content action as well as the Master-Detail events. Basically the main issue I get is that 90% of the time, the click does nothing.
    It's a pretty simple setup, I am setting up bulb gauges to act like a fancy column selector. The bulb gauges are setup to pivot based on a Metric Type column. The goal is that if you click on "Metric 1" bulb a trend report should refresh to show Metric 1. If you click on the "Metric 2" bulb, the same trend report will show that metric.
    Here's how I implemented it:
    Dashboard Tab A -- Uses Navigate to BI Content
    1) I have a prompt on Fiscal month in dashboard tab A.
    2) I created the bulb gauge and put it in dashboard tab A
    3) Setup the interaction on the bulb measure to navigate back to Dashboard Tab A.
    3) Prompted the trend on Metric Type column and put it in dashboard tab A.
    4) In theory, clicking on the bulb, should navigate back to the same tab and update the trend report appropriately
    5) In reality, nothing happens.
    6) The only way I can get the navigate to work is if I first change the value in the fiscal month prompt and click Go. Then I click on the bulb and the navigation will work ONCE. After that it's broken again.
    Dashboard Tab B -- Use Master Detail -Events
    1) Pretty much same situation as dashboard A, but instead of navigate to BI Content, I use the master-detail events.
    2) Pretty much the same results. I cannot get it to consistently work, in fact the trick with the filter didn't do anything.
    3) One thing I tried was cleared my browser history completely (Mozilla Firefox) and then launched the page. It work for about 5 clicks and then stopped.
    Either way, neither of these are working properly for me.
    Has anyone else had these issues?
    -=Joe
    Has anyone else had an issue with this?

    So someone explained to me that master-detail events only occur within a single report. They cannot be used to communicate across two different reports.
    That is significantly less useful than I originally thought. I honestly that it was a method of communication for one report to update other target reports that are all listening on the same channel. That would have been a powerful feature. A single report refreshing other views in the same report is still useful, but not as much.
    That being said, I still don't understand what the heck is going on with the navigate to BI content feature. I've been testing it out. It works with pivot tables and regular tables. But the moment I add a graph, gauge or even a "Filter" view into the dashboard page, the click stops working. Really really strange stuff.

  • Master / Details Regions with yui Calendar

    I have a Calendar of Events that I need to display.  I have put a yui Calendar in my Master Region, and need it to control the Details Region.  I can get the Details Region to show a single event per day.
    Is there a way to let the Details Region show multiple Events if they are scheduled on the same date?
    I do not have access to an external web server to post my page to, but here is the code to the Master/Details Region on my site:
    <div id="sidebar2">
        <div id="yuicalendar1"></div>
    <script type="text/javascript">
    // BeginWebWidget YUI_Calendar: yuicalendar1   (function() {
        var cn = document.body.className.toString();
        if (cn.indexOf('yui-skin-sam') == -1) {
          document.body.className += " yui-skin-sam";
      })();  var inityuicalendar1 = function() {
        var yuicalendar1 = new YAHOO.widget.Calendar("yuicalendar1");    // The following event subscribers demonstrate how to handle
        // YUI Calendar events, specifically when a date cell is
        // selected and when it is unselected.
        // See: http://developer.yahoo.com/yui/calendar/ for more
        // information on the YUI Calendar's configurations and
        // events.
        // The YUI Calendar API cheatsheet can be found at:
        // http://yuiblog.com/assets/pdf/cheatsheets/calendar.pdf
        //--- begin event subscribers ---//
        yuicalendar1.selectEvent.subscribe(selectHandler, yuicalendar1, true);
        yuicalendar1.deselectEvent.subscribe(deselectHandler, yuicalendar1, true);
        //--- end event subscribers ---//
    yuicalendar1.cfg.setProperty("title", "Calendar of Events", false);    yuicalendar1.render();
      }  function selectHandler(event, data) {
      // The JavaScript function subscribed to yuicalendar1.  It is called when
      // a date cell is selected.
      // alert(event) will show an event type of "Select".
      // alert(data) will show the selected date as [year, month, date].
      var formattedDateString = data[0][0][1] + "/" + data[0][0][2] + "/" + data[0][0][0];
      var r = dsCalendar.findRowsWithColumnValues({"Date": formattedDateString }, true);
      var region = Spry.Data.getRegion("classDetail");
      if(r){
       dsCalendar.setCurrentRow(r.ds_RowID);
       region.setState("showClass", true);
       } else {
        region.setState("ready", true);
      };  function deselectHandler(event, data) {
      // The JavaScript function subscribed to yuicalendar1.  It is called when
      // a selected date cell is unselected.
      };      // Create the YUI Calendar when the HTML document is usable.
      YAHOO.util.Event.onDOMReady(inityuicalendar1);
    // EndWebWidget YUI_Calendar: yuicalendar1
    </script>
    <div spry:detailregion="dsCalendar" spry:setrow="dsCalendar" id="classDetail">
    <div spry:state="showClass">
    <table width="100%" border="0" cellpadding="1">
       <tr>
         <td colspan="2"><h4>{Class}</h4></td>
        </tr>
       <tr>
        <td colspan="2">{Description}</td>
        </tr>
       <tr>
         <td>{Location}</td>
         <td>{Date}</td>
       </tr>
    </table>
        </div>
        <div spry:state="ready">
    There are no classes on this date. Please select another date.
    </div></div>
      <!-- end #sidebar2 --></div>
    And, here is the code to my "schedule.htm" file:
    Class
    Logo
    Description
    Location
    Date
    Dreamweaver CS4 Intermediate
    Take your skills to the next level with this training.
    Austin, TX
    12/15/2008
    InDesign CS4 Advanced
    This class is for experienced users that want to go beyond the basics.
    Phoenix, AZ
    12/18/2008
    Flex CS4 Data Services
    Learn about Live Cycle Data Services in this training.
    Austin, TX
    12/19/2008
    Flash CS4 Rich Content Creation
    From beginning to intermediate, learn how to animate with the latest tools.
    Austin, TX
    12/30/2008
    Photoshop Advanced
    Experienced Photoshop users will learn how to use advanced tools for image manipulation.
    Phoenix, AZ
    12/20/2008
    Dreamweaver CS4 Intermediate
    Take your skills to the next level with this training.
    Austin, TX
    12/01/2008
    InDesign CS4 Advanced
    This class is for experienced users that want to go beyond the basics.
    Phoenix, AZ
    12/08/2008
    Flex CS4 Data Services
    Learn about Live Cycle Data Services in this training.
    Austin, TX
    12/25/2008
    Flash CS4 Rich Content Creation
    From beginning to intermediate, learn how to animate with the latest tools.
    Austin, TX
    12/26/2008
    Photoshop Advanced
    Experienced Photoshop users will learn how to use advanced tools for image manipulation.
    Phoenix, AZ
    8/21/2009
    Short Course
    Seminar where the engineers come together to discuss TxDOT.
    Austin, TX
    8/26/2009
    Long Course
    Around the cementary, down to the high school, and back.
    Wolfforth, TX
    8/21/2009
    No Class
    No classes on this date.
    n/a
    Notice on the schedule.htm file, there are some classes that have the same date.  I would like the Details region to show multiple classes based on the date.  Is that even possible?
    Thanks!

    @strick,
    Don't know if you got this sorted out already, but I'll add an answer since I looked here when trying to figure this out.
    I had the same problem.
    You can get this to do what you want in two steps:
    1.)  Just below the line in your code that reads
    var formattedDateString = data[0][0][1] + "/" + data[0][0][2] + "/" + data[0][0][0];
    add the following code:
    function myFilterFunc(dataSet, row, rowNumber)
    // Filter all rows with date = selected date
    if (row['Date'] == formattedDateString){
    return row;   }
    else {
    return null;}
    // Filter the data.
    dscalendar.filter(myFilterFunc);
    2.) Just after the line in your code that reads
    <table width="100%" border="0" cellpadding="1">
    add the following code:
    <tr spry:repeat="dscalendar">
    Ok, one last step for the code that you've listed here.  You should be able to get rid of all the <tr> tags except for the outermost ones.  So, it could
    look like this:
    <table width="100%" border="0" cellpadding="1">
       <tr spry:repeat="dscalendar">
        <td colspan="2"><h4>{Class}</h4></td>
        <td colspan="2">{Description}</td>
        <td>{Location}</td>
        <td>{Date}</td>
       </tr>
    </table>
    You can see a working example of this at http://www.coloradogreenline.com/YUISpryCalendar/sprytest6.html.  October 13, 2009 has more than one event scheduled.  This one doesn't display the data in table format, but you can still it working.
    Hope this helps.

  • RFC to get the Vendor Master details

    Hi Experts,
    We have a requirement to create an RFC to get the Vendor Master details (Used for Searching the Suppliers), where the Input criteria : Vendor Name(First Name & Last Name), City, Purchase Organisation and the corresponding output is Address Data, Central Data, Bank Information, Sales Data of Customer. Is there any standard report or function module we can use for this requirement.?
    Thanks & Regards
    -Asim

    Hello,
    You may need to write your own RFC with the interface that you want. If all the input parameters are obligatory then you can use the following logic
    Select the vendor numbers from table LFA1 based on the name and city.
    Us these vendor numbers with the purchase organization from the input parameters and filter them using the table LFM1.
    Now the result will be all vendor numbers with the name specified in the city for the specified purchase organization.
    That may be multiple vendors so run a loop and inside the call the RFC BAPI_VENDOR_GETDETAIL and pass the vendor numbers to get the other details.
    Hope this helps in solving your query.
    Regards,
    Sachin

  • Apply "WHERE CONDITION" in "MASTER/DETAIL FORM" in "ORACLE APEX

    Hi to all respected Gurus of this community.
    I have a problem and I hope that there must be solution in this community and I am not aware of that till now.
    I have a master/detail form in Oracle Application Express. Now, I want to apply a where condition in master-form to filter the data as per requirement but I cannot do so.
    There is an option of "Modify Query" in "Query Definition". According to the instructions I am selecting the desired column (HR_Category) in left and providing text string 'M-9' in the right column to filter the data where HR_Category is M-9, and when I press apply changes, it gives me an error that
    "1 error has occurred
       The condition you are adding has caused the query to be invalid."
    Please help how to proceed to apply a where condition.
    Regards
    Muhammad Uzair Awan
    Oracle APEX Programmer
    Pakistan

    uzairmalik wrote:
    Hi to all respected Gurus of this community.
    I have a problem and I hope that there must be solution in this community and I am not aware of that till now.
    I have a master/detail form in Oracle Application Express. Now, I want to apply a where condition in master-form to filter the data as per requirement but I cannot do so.
    There is an option of "Modify Query" in "Query Definition". According to the instructions I am selecting the desired column (HR_Category) in left and providing text string 'M-9' in the right column to filter the data where HR_Category is M-9, and when I press apply changes, it gives me an error that
    "1 error has occurred
       The condition you are adding has caused the query to be invalid."
    Please help how to proceed to apply a where condition.
    Regards
    Muhammad Uzair Awan
    Oracle APEX Programmer
    Pakistan
    Probably a syntax error.  Check the syntax of the new clause very carefully.
    Can you post the query indicating which predicate is the new one?  If you need to change the column and table names for confidentiality

  • 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

  • Master/Detail query problem

    I have two VO, masterVo and detailVo, which assoicated with a VL.
    I create a page to query the masterVo and show the result master data and related detail data.
    Can I add a query criteria to filter the detailVo?
    Now I can only set where clauses in masterVo, is it possible to set where clauses both in masterVo and detailVo?

    I don't use query region for my master/detail data query, because the query result is in hgrid region on the other page.
    So I use controller to send the query criteria into AM for query. In masterVoImpl.java, I combine query
    criteria to Where clauses to initiate query. I have one query criteria belong to detailVo attr, How can I put the detailVo criteria
    and masterVo query criteria at one query?
    Thanks a lot.
    Louis

  • Master Detail Reports on the same page

    hi experts. i need your assistance in one issue...
    i have a master detail reports in one page. Master report displays all the products and details report shows their orders...
    what i want is, when user clicks on products graph its detail graph show the orders of that particular record on the same page. Both reports would remain visible on the same page side by side.
    if anyone can help?

    Hi Asif48,
    Just as Visakh suggest, we can add the master data and subreport in the same tablix, then set the visbility of subreport to toggle based on click action of master level row. And add some parameters to filter the related data based on the master report field.
    For more details, please refer to the following steps:
    Create another report as the subreport and insert some fields. 
    Create a parameter named Order in the subreport.
    In the main report, right-click to insert a subreport in the column right of the master tablix.
    Right-click the subpeort to open the Subreport Properties, and select the subreport name in the drop-down list.
    In the left panel of the Subreport Properties dialog box, click Visibility.
    Select Hide option, and select Product (master level row) to display the subreport to be toggled by the Product report item.
    In the left panel of the Subreport Properties dialog box, click Parameters.
    Select Order in the drop-down list of Name, and select [Product] (use the related filed name) in the drop-down list of Value.
    If there are any other questions, please feel free to let me know.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Master-detail dropdown using selectonechoice

    I have a master-detail releationship between 2 views that I want to display as one table (master) with the detail as a selectonechoice dropdown list column in the master table. The example in "Not Yet Documented ADF Sample Applications" no 71 "Dropdown Lists in Table with Different Choices per Row" explains a method for doing this but it involves querying all the detail records and then using the foreign key in the master to filter the rows in memory, which is not efficient for a large detail view.
    Is there a better way?
    Hugh Nelson

    I think you'll need to use an af:foreach inside your dropdown list components to list the details for each master.
    http://kuba.zilp.pl/?id=61

  • How to set up a master/detail Spry select

    Hello, I was trying to build a master/detail select using Spry following the example in the samples folder, but I didn't succed. I think I'm pretty close. I'm using two datasets from two diffrent xml files. The problem is that I don't know how to set a filter probably. Thanks so much.
    This is my code:
    <script type="text/javascript">
    <!--
    var dsRubro = new Spry.Data.XMLDataSet("rubro_xml.php", "root/row");
    dsRubro.setColumnType("idConsultaRubro", "number");
    var dsCategoria = new Spry.Data.XMLDataSet("categoria_xml.php", "root/row");
    dsCategoria.setColumnType("idConsultaRubro", "number");
    dsCategoria.setColumnType("idConsultaCategoria", "number");
    dsCategoria.setColumnType("orden", "number");
    //-->
    </script>
    </head>
    <body>
    <form>
    Rubro:
    <span spry:region="dsRubro" id="rubroSelector">
    <select spry:repeatchildren="dsRubro" name="rubroSelect" onchange="document.forms[0].categoriaSelect.disabled = true; dsRubro.setCurrentRowNumber(this.selectedIndex);">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{idConsultaRubro}" selected="selected">{descripcion}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{idConsultaRubro}">{descripcion}</option>
    </select>
    </span>
    Categoria:
    <span spry:region="dsCategoria" id="categoriaSelector">
    <select spry:repeatchildren="dsCategoria" id="categoriaSelect" name="categoriaSelect">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{idConsultaCategoria}" selected="selected">{descripcion}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{idConsultaCategoria}">{descripcion}</option>
    </select>
    </span>

    Use XPath to filter the data in the second dataset as follows
    <!DOCTYPE html>
    <html xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script>
    var dsRubro = new Spry.Data.XMLDataSet("rubro_xml.php", "root/row");
    dsRubro.setColumnType("idConsultaRubro", "number");
    var dsCategoria = new Spry.Data.XMLDataSet("categoria_xml.php[idConsultaRubro=-1]", "root/row");
    dsCategoria.setColumnType("idConsultaRubro", "number");
    dsCategoria.setColumnType("idConsultaCategoria", "number");
    dsCategoria.setColumnType("orden", "number");
    function newXPath(cat){
        dsCategoria.setXPath('root/row[idConsultaRubro='+cat+']');
        dsCategoria.loadData();
    </script>
    </head>
    <body>
    <form>
    Rubro:
    <span spry:region="dsRubro" id="rubroSelector">
    <select spry:repeatchildren="dsRubro" name="rubroSelect"  onchange="newXPath(this.value)">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{idConsultaRubro}" selected="selected">{descripcion}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{idConsultaRubro}">{descripcion}</option>
    </select>
    </span>
    Categoria:
    <span spry:region="dsCategoria" id="categoriaSelector">
    <select spry:repeatchildren="dsCategoria" id="categoriaSelect" name="categoriaSelect">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{idConsultaCategoria}" selected="selected">{descripcion}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{idConsultaCategoria}">{descripcion}</option>
    </select>
    </span>
    </body>
    </html>
    I hope this helps.
    Ben

  • DB-Adapter 10g: Filtering Detail-Rows in Master-Detail-Relationship

    Hi,
    I'm having a Master-Detail-Table e.g. Departments and Employees. Those are mapped with 1:N FK-Relationship. Using the Oracle SOA-Suite 10.1.3.5 DB-Adapter I'd like to setup a filter returning all Departments and all (e.g.) female Employees.
    For the example see: http://docs.oracle.com/cd/E11036_01/integrate.1013/b28994.pdf (chapter 4.3.9). Unfortunately, this doesn't work. If definining a where-clause empCollection.gender='female' I get the following behavior:
    - If a dept has no female emp, this department is not shown at all (however I want it to be empty)
    - If there is at least one female emp, the department and all employees are shown.
    Any idea on how to solve this problem would be highly appreciated!
    Regards,
    Johannes

    I gave it a try, 2 problems:
    1) the outer-join seems to be wrong. it provides me only departments that have at least one female employee. If I change that outer-join to:
    select DEP.id,DEP.name, EMP.id,EMP.GENDER
    from EMP, DEP
    where EMP.DEP_ID(+)=DEP.id
    and emp.gender(+)='female'
    it gives me what I want from sqldeveloper:
    select * from emp;
    ID NAME
    1 empty
    2 mixed
    3 male
    4 female
    select * from dep;
    ID DEP_ID GENDER
    1 2 male
    2 2 female
    3 2 male
    4 3 male
    5 3 male
    6 4 female
    7 4 female
    8 4 female
    select DEP.id,DEP.name, EMP.id,EMP.GENDER
    from EMP, DEP
    where EMP.DEP_ID(+)=DEP.id
    and EMP.GENDER(+)='female'
    ID NAME ID GENDER
    1 empty
    2 mixed 2 female
    3 male
    4 female 6 female
    4 female 7 female
    4 female 8 female
    2) However that doesn't solve my problem with the BPEL-Adapter. There I still get the folowing result:
    <DepCollection xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/test4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Dep>
    <id>2</id>
    <name>mixed</name>
    <empCollection>
    <Emp>
    <id>1</id>
    <gender>male</gender>
    </Emp>
    <Emp>
    <id>2</id>
    <gender>female</gender>
    </Emp>
    <Emp>
    <id>3</id>
    <gender>male</gender>
    </Emp>
    </empCollection>
    </Dep>
    <Dep>
    <id>4</id>
    <name>female</name>
    <empCollection>
    <Emp>
    <id>6</id>
    <gender>female</gender>
    </Emp>
    <Emp>
    <id>7</id>
    <gender>female</gender>
    </Emp>
    <Emp>
    <id>8</id>
    <gender>female</gender>
    </Emp>
    </empCollection>
    </Dep>
    <Dep>
    <id>3</id>
    <name>male</name>
    <empCollection>
    <Emp>
    <id>4</id>
    <gender>male</gender>
    </Emp>
    <Emp>
    <id>5</id>
    <gender>male</gender>
    </Emp>
    </empCollection>
    </Dep>
    <Dep>
    <id>1</id>
    <name>empty</name>
    <empCollection />
    </Dep>
    </DepCollection>
    This is how I used the wizard:
    1_Select_Table.png
    2relationship.png
    3objectfiltering.png
    4selection_Criteria.png
    Any futher ideas?
    Edited by: Johannes M on 17.01.2013 12:31
    Edited by: Johannes M on 17.01.2013 12:34

  • Master Detail - Master Report Rows doesn't match master detail scroll

    Hello,
    Another rookie question. I created a master detail form and report. I am controlling the report with a where clause to only view the rows where the current application user is the record owner. For example, my app user login is the email address of the user. Then I filter the rows to only display the rows associated to the users email address. So, if the table contains 100 rows, only the 10 rows that the user is associated with, displays in the report.
    When I drill into a record, i am presented with the correct master detail form with the correct data, however, when I click the Next and Previous buttons, I can see the entire record set. For example, if I only saw 10 rows on the report, I can scroll through all hundred records once i drill in from the report.
    How do I limit the data to match the visibility that i set at the report.
    Thanks!
    -Brent

    fixed.

  • Problem when trying to add a master-detail

    Hi all.
    I have customize a list in sharepoint with infopath.
    Now I want to add the master detail to this form.
    If I add a Web Part, from the list, no problems... I can create a filter between them and the master details works perfect. The problem of this is that I have an infopath form for the master and a 'sharepoint list' desing for the detail, and is not very
    good looking.
    So, what I want is to add for the detail, another infopath form, but I not able to.
    I have added a web part - category form - Infopath form web part but I'm not able to add the filter condition and get only the detail related to the master.
    Please help me!
    Thanks a lot in advance

    Hi pabivil,
    According to your description, my understanding is that you want to connect an InfoPath form web part to a list in SharePoint 2010.
    To achieve it, you can add a button then create a rule based on the button to send data to web part in the InfoPath form like the screenshot. After that, when you add the InfoPath form web part and the list in the same page,  the list can get the filter
    param from the InfoPath form.
    More information:
    http://office.microsoft.com/en-001/sharepoint-help/use-the-infopath-form-web-part-HA102770988.aspx
    http://sharepoint.stackexchange.com/questions/61118/infopath-form-web-part-connection-to-a-list-view-web-part
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Master-Detail only shows the first record of the Master's data

    I have an ADF Master Table, Detail table. I use ExcuteWithParams on the Master Table. When executed from a button (Button has partial submit = true for button, Master Table has PartialTrigger on button, and Detail table has PartialTrigger on Master table and button), it works fine. However, I want to pass the parameters in pageFlowScope variables, and have the ExecuteWithParams invoked upon page load. When I try to do this, the Detail table only shows the first record of the Master's data, no mater what row is clicked on the Master table.
    Master table now has no PartialTrigger, and Detail table has PartialTrigger on Master table. In my pageDef, I used an invoke action as follows:
    <invokeAction Binds="ExecuteWithParams" id="invokeExecuteWithParams"
    Refresh="always"/>
    What am I missing? I am using verion 11.1.1.3. Any help would be much appreciated.
    Thanks,
    Jessica

    Yes, it works when I drag the data control as a master detail without filtering any data. I want the user to be able to set search criteria to filter the data in the master table (For example, only pull back data with a transaction date between :startdate and :enddate). I can get it to work if I execute from an executewithparams button on the page, but not if I want to invoke the executewithparams upon page load with the parameter set by pageflowscope variables.
    Thank you for responding.
    Jessica

Maybe you are looking for