Passing two values in two different views using view criteria in adf bc

I have two tables. Message and MessageProperties. Message table is connected with itself as same as Employee table of HR. Means a Message can have various child message. MessageProperties contains the message properties. A message can have various properties. I want to show the message only if it has a particular value in MessageProperties,then its properties,its child message. If its child message have the same value in MessageProperties,then it shows that. Likewise it should give me a tree structure with its all properties.
When I am hardcode the value then its shows fine.
SELECT Message.MESSAGE_ID,
Message.MSG_CONTENT_ID,
FROM MESSAGE Message, MESSAGE_PROP MessageProp
WHERE (MessageProp.Message_Id=Message.Message_Id) AND ((MessageProp.Key='From' OR MessageProp.Key='To') AND (MessageProp.value='B'))
But when I use the Bind variable in view criteria then I am not able to achieve this.
1. How to do that in adf bc and how to link message and messageprop with this condition?
2. How to pass two parameters in serviceinterface FIndViewCriteria method i.e. messageId and value so that it will show only that message having that value?

Thanks Timo,
It helps me a little bit.
It only shows me the parent message id and its properties. But it is not showing its child message id and its properties.
Let me explain you step by step what I have done.
1> I have created a view MessageView with two entities i.e Message and MessageProp and include the value attribute of MessageProp in it.
2> I have created the default MessagePropView from MessageProp Entity.
3> In MessageView I have modified the query which you have given.
4> I have created the Bind variables.
5> I have created a view criteria and in that view criteria I have included Message_Id=:Bind_MessageId and Value=:Bind_Value.
6> I have created an association connecting Message.Message_Id and Message.Parent_Id(1 to * cardinality) because a message can be a parent of many messages.
7> I have created a viewlink between Message and MessageProp using Message_Id.
8> I have created a view link between Message and Message using the association which I have created in step 6.
9> I have created the Application Module. In that,my Data Model looks like
---MessagePropView2
---MessageView1
---------MessagePropView1
---------MessageView2
10> Then I have created the service interface. In service interface view instances,I include these two view and select the GetByKey operation from basic operations.
11> From View Criteria find operations I have included the view criteria which I have created in message view in step 5.
12> Then I run the AppModuleServiceImpl.java and select the view criteria operation which I have created in step 11.
13> There I find two bind variables i.e. Bind_MessageId and Bind_Value. I give the values there.
But it checks whether that message Id(Bind_MessageId) which I have given have that value(Bind_Value) or not. If it has then it shows only that message along with its properties but it is not showing me its childs and their properties.
I want to show only those child message who have the MessageProp.value as (Bind_Value).
I hope you understand with the scenario.
I'll be very thankfull to you if you help me to do this.
Rohit.

Similar Messages

  • How can I use sysnonym to hide two different views?

    hi,
    My question is how can I use 2 different users to login and they point to different views. However, in the program level, the view name always stand for "Test_View".
    I try to meet the requirements and do the followings:
    Step 1: In user A account, it creates two different views and also grant select to User B and User C respectively.
    Step 2: Login User B and create public synonym called "Test_View".
    Step 3: Login User C and create public synonym called "Test_View".
    I encounter the problem in Step 3 which is public synonym called "Test_View" is already exist. So, anyone can tell me once login and it will depend on which view you can see on program level.
    Thanks
    Amy

    As 399811 told you, you have to create private synonyms.
    "CREATE SYNONYM ...." instead of "CREATE PUBLIC SYNONYM ...."
    the private synonym has to created in each user.
    Joel Pérez

  • Why can't two different users use Itunes on the same computer with different log ins

    Why can't two different users use Itunes on the same computer with different log ins

    Pmorgan5672 wrote:
    Why can't two different users use Itunes on the same computer with different log ins
    They can, but not at the same time.
    If one user left iTunes running, and another user tries to use iTunes from a different Windows user ID, that second user will get an error message.  If they really want to use iTunes, they either have to beg the first user to log in and close iTunes, or else they have to restart the computer.
    If you are asking the technical reason why, it is something about context switching.

  • Applying different view criterias to af:query based different situations

    Hi all;
    Lets say i have 3 different view criterias ....and i want to apply only one of them to af:query based user's role....
    I dont have an idea how to do that...My only clue is my supervisor mentioned to me i can use page definition to do that;
    <searchRegion Criteria="DepartmentViewCriteria" Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"
                      Binds="DepartmentView1Iterator" id="DepartmentViewCriteriaQuery"/>Can u help me on this matter please!
    If post is too shallow to understand i can elaborate more...
    jDeveloper 11.1.2.1.0
    Oracle DB 11g

    Create a custom public method in yr applicationmoduleImpl class. Get the viewcriteria of target vo or programmatically create yr viewcriteria.
    Based on current loggedInUser role which can be access by ADFContext.getCurrent().getSecurityContext().getUserRoles(), u can apply specific viewcriteria on VO.
    After that u can follow this link - http://dstas.blogspot.com/2010/09/adf-11g-methodaction-and-invokeaction.html, from +"We will now expose the method in the client interface of the AM"+ teopic.
    At the end u will be able to execute this method from pagedef file, whenever u enter to this page.
    Hope this helps.

  • View Criteria in ADF Query Panel with Table-Class Cast Exception

    Hi,
    I am getting Class Cast Exception when using view criteria for ADF Query Panel with Table. The version I am using is 11g Release 1(11.1.1.2.0)
    Here is what I did:
    1. created a view criteria on a view object
    2. all are optional
    3. all are Strings
    3. Dragged the view criteria as a query component (ADF Query panel with Query table) on to the design layout
    and the error when I clicked the Search button is:
    javax.el.ELException: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
    at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1289)
    at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:115)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    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:292)
    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:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at sni.foundation.facesextensions.filters.FoundationFilter.doFilter(FoundationFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
    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.doFilter(JpsAbsFilter.java:138)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
    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.run(WebAppServletContext.java:3592)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._clearFilterCriteriaRows(FacesCtrlSearchBinding.java:4549)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._addFilterCriteria(FacesCtrlSearchBinding.java:4603)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:423)
    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)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
    Thanks
    Venkatesh

    Hi Frank.
    I'm using JDev 11.1.1.3.0 as you suggest the error is no longer present in the latest version.
    I can pick my query from the "Saved Search" pick list on the QueryPanel list of queries just fine, and it sets up the filter properly, but when I press the "Search" button, I get the same reported error...
    <RegistrationConfigurator><handleError> Server Exception during PPR, #1
    javax.el.ELException: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
         at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1303)
         at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:115)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         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:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         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:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         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.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._clearFilterCriteriaRows(FacesCtrlSearchBinding.java:4588)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._addFilterCriteria(FacesCtrlSearchBinding.java:4642)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:424)
         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)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         ... 42 more

  • How to forward message to two different queue using jms proxy service

    Hi all,
    In my project I need to listen to one jms queue then forward the messages to two different queue.
    Now I already made one proxy for listening to the queue then pass it to another queue using business service, It works.
    But how to forward the messages to two different queue in same flow process using one proxy and bs??
    or any other way?
    Really thanks in advance.
    Regards,
    Kahlil

    Hi,
    I have a MQ queue and i created a Proxy to listen to the queue , but i dont see any activity in OSB logs ..how do i knw if OSB proxy is polling that MQ ( mq is the transport protocol that i am using ) .
    Thanks
    Prarthana.

  • Can I download itunes on two different computers using the same apple id?

    Can I download itunes on two totally different computers using the same apple id and go back and forth between them (ie home computer and work computer)?

    You can use a laptop to set up multiple devices with the same apple ID and you can maintiain different content on each device.

  • Integrating R/3 of two different landscape using XI ?

    Guys,
    Would like to integrate two R/3 Systems (4.6 C & 4.7) using SAP XI of two different networks which is in two different countries , for a synchronous scenario.
    Now , how to connect these two systems of different landscape using XI ?
    Cheers!

    HI,
    Please refer the guide for SLD configuration:
    SLD preparation very good:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/flatFILETOFLATFILE&
    Working with System Landscape Directory (SLD) :
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/workingwithSystemLandscapeDirectory+%28SLD%29&
    Configuring SLD in Sneak Preview SAP NetWeaver '04 Sneak:
    /people/sugree.phatanapherom/blog/2005/08/14/configuring-sld-in-sneak-preview-sap-netweaver-04-sneak
    XI Software Logistics 1: SLD Preparation:
    /people/sap.india5/blog/2005/11/03/xi-software-logistics-1-sld-preparation
    Refer How to handle SLD guide for help:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e76e511-0d01-0010-5c9d-9f768d644808
    Also as said you need to use the party and the third party adapter for implementing the same over the differnet newtwork you can either go with the seeburger adapter.
    Wanna Party ?
    /people/shabarish.vijayakumar/blog/2006/09/13/wanna-party
    How to Set up an SAP XI Integration Directory Scenario with Party to Support EDI Partner Processing
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0b355ae-0501-0010-3b83-8f2bb566fa47
    Do let me know if you need further information on the same.
    Thnx
    Chirag Gohil

  • One Model, Two Trees, Two Different Views

    Here is what I need to do:
    - Maintain 1 and only 1 model for tree data
    - Display two different JTrees, each using the same model, but one showing all the data, and the other only showing a subset.
    Example:
    My Tree Data model is a file system containing all drives and folders below them.
    One tree needs to show all the drives and folders below them.
    The other tree needs to only show one drive and the folders below it.
    I am open to any suggestions, even if you are just brainstorming.

    My abstract adapter for my experimantal GEDCOM editor - still being worked on
    abstract public class AbstractTreeViewAdapter implements TreeModel
        private String rootElementName_;
        private Model m_model;
        private Element rootElement_;
        public AbstractTreeViewAdapter(Model model, String rootElementName)
            m_model = model;
            rootElementName_ = rootElementName;
            Element root = m_model.getGEDCOMDocument().getRootElement();
            rootElement_ = root.getChild(rootElementName, root.getNamespace());
            m_model.addPropertyChangeListener(new PropertyChangeListener()
                public void propertyChange(PropertyChangeEvent event)
                    if (rootElement_ != null)
                        removeAllChildNodesFromRoot();
                    Element root = m_model.getGEDCOMDocument().getRootElement();
                    rootElement_ = root.getChild(rootElementName_, root.getNamespace());
                    addAllChildNodes();
        //  Methods to edit the tree /////////////////////////////////////
        public void removeChild(Object parent, int childIndex)
        public void removeChild(Object parent, Element child)
            int childIndex = getIndexOfChild(parent, child);
            if (childIndex < 0)
                throw new IllegalArgumentException("Cannot find child");
            removeChild(parent, childIndex);
        public void insertChild(Object parent, Element child, int index)
            int numberOfChildren = getChildCount(parent);
            if ((index < 0) || (index > numberOfChildren))
                throw new IllegalArgumentException("Index out of range");
            Object[] path = getPath((Element)parent);
            Object[] childToInsert = {child};
            int[] indexToInsert = {index};
            TreeModelEvent event = new TreeModelEvent(this, path, indexToInsert, childToInsert);
            Iterator it = m_listeners.iterator();
            while (it.hasNext())
                TreeModelListener listener = (TreeModelListener)it.next();
                listener.treeNodesInserted(event);
        private Object[] getPath(Element element)
            LinkedList result = new LinkedList();
            while ((element != null) && !element.getName().equals(rootElementName_))
                result.addFirst(element);
                element = element.getParent();
            result.addFirst(getRoot());
            return result.toArray();
        public Object getChild(Object obj, int index)
            if (obj instanceof Element)
                return ((Element)obj).getChildren().get(index);
            else if (obj instanceof Model)
                return getChild(rootElement_, index);
            else
                return null;
        public int getChildCount(Object obj)
            if (obj instanceof Element)
                return ((Element)obj).getChildren().size();
            else if (obj instanceof Model)
                int childCount = (rootElement_ == null)?0:rootElement_.getChildren().size();
                return childCount;
            else
                return 0;
        public int getIndexOfChild(Object obj, Object child)
            if (obj instanceof Element)
                Iterator it = ((Element)obj).getChildren().iterator();
                for( int index = 0; it.hasNext(); index++)
                    if (it.next() == child)
                        return index;
                return -1;
            else if (obj instanceof Model)
                return getIndexOfChild(rootElement_, child);
            else
                return -1;
        public Object getRoot()
            return m_model;
        public boolean isLeaf(Object obj)
            if (obj instanceof Element)
                return !((Element)obj).hasChildren();
            else if (obj instanceof Model)
                return false;
            else
                return true;
        public void removeTreeModelListener(javax.swing.event.TreeModelListener treeModelListener)
            m_listeners.remove(treeModelListener);
        public void valueForPathChanged(javax.swing.tree.TreePath treePath, Object obj)
            System.out.println("VFPC"+obj);
        public void addTreeModelListener(javax.swing.event.TreeModelListener treeModelListener)
            m_listeners.remove(treeModelListener);
            m_listeners.add(treeModelListener);
        public void removeAllChildNodesFromRoot()
            Object[] path =
            {getRoot()};
            removeAllChildNodes(path);
        public void removeAllChildNodes(Object[] path)
            ChildrenOf children = new ChildrenOf(path[path.length-1]);
            if (children.size() == 0)
                return;
            TreeModelEvent event = new TreeModelEvent(this, path, children.getIndexSet(), children.getChildren());
            Iterator it = m_listeners.iterator();
            while (it.hasNext())
                TreeModelListener listener = (TreeModelListener)it.next();
                listener.treeNodesRemoved(event);
        public void addAllChildNodes()
            Object[] path =
            {getRoot()};
            addAllChildNodes(path);
        public void addAllChildNodes(Object[] path)
            ChildrenOf children = new ChildrenOf(path[path.length-1]);
            if (children.size() == 0)
                return;
            TreeModelEvent event = new TreeModelEvent(this, path, children.getIndexSet(), children.getChildren());
            Iterator it = m_listeners.iterator();
            while (it.hasNext())
                TreeModelListener listener = (TreeModelListener)it.next();
                listener.treeNodesInserted(event);
        private class ChildrenOf
            ChildrenOf(Object parent)
                if (parent instanceof Element)
                    children_ = ((Element)parent).getChildren().toArray();
                else if (parent instanceof Model)
                    if (rootElement_ == null)
                        children_ = new Object[0];
                    else
                        children_ = rootElement_.getChildren().toArray();
                else
                    children_ = new Object[0];
            int[] getIndexSet()
                int[] indexes = new int[children_.length];
                for (int i = 0; i < children_.length; i++)
                    indexes[i] = i;
                return indexes;
            Object[] getChildren()
                return children_;
            int size()
                return children_.length;
            private Object[] children_;
        public void notifyAllChanged(TreeModelEvent event)
            Iterator it = m_listeners.iterator();
            while (it.hasNext())
                TreeModelListener listener = (TreeModelListener)it.next();
                listener.treeStructureChanged(event);
        public void notifyStructureChanged(TreeModelEvent event)
            Iterator it = m_listeners.iterator();
            while (it.hasNext())
                TreeModelListener listener = (TreeModelListener)it.next();
                listener.treeStructureChanged(event);
         * The set of listeners that will be notifed when the tree changes
        private Vector m_listeners = new Vector();
    }

  • Project Web App (PWA)/Sharepoint 2013: is there any way to display two different views of the Project Center PWA web part to the same user in a site collection?

    i want some of my users to see all the projects in the Project Center at my top-level site, and those same users to see only the projects they own at a subsite level in Project Center. that way they could see an 'all project' view on the homepage and only
    their projects on their dashboard pages (which also have an instance of Project Center web part on them). i have searched and searched but cannot find a solution to this. is there any way to acheive this functionality? thanks in advance for your assistance!

    I have tried this in the past, but was not successful, as far as I can recall. Once you access the project center webpart in one page, the view will be retained regardless where you see it again. (until you apply a different view or clear your browser cache). 
    May be an easier solution is to display a 'report' on the home page with ALL projects (much easier to do), and use the Project Center webpart for the My projects view as it is easier to achieve via Project Server Security, than a report.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • How to pass ITEM:VALUE pair in ICON view link of Interactive Report

    When Icon View is enabled in an interactive report, you can display graphic images (blob data that are stored in the database) in 3 different views.
    1) View Icons
    2) View Report
    3) View Detail
    When you click on the displayed image in views 1 and 3 you navigate to a form to manage the row data and the image. By default it only passes the PK id of the row.
    How do I pass additional ITEM:VALUE pairs when navigating to the detail form page? I want to pass &APP_PAGE_ID. to the form page as well.
    There is an attribute under ICON VIEW called "Link Column" but if I put the "item:value" pair in the fields for this item's "ColumnLink" attributes, there is no effect.
    Also for bonus points...
    how do you make the ICON VIEW attributes, "HTML ALT Text" and "HTML TITLE Text" dynamic e.g. &ITEM. doesn't work here.
    thanks in advance
    Paul P

    For your link column, parse a link column in your query like so
    apex_util.prepare_url('f?p=M:53:'||:APP_SESSION||'::::P53_IMAGE_ID:'||i.image_id)Scott

  • How to pass a value to javascript from flash using externalinterface

    hi,
    i'm currently trying to call a javascript function and pass values to it. but i'm not really familiar in using the addcallback since i only tested on calling a function from flash without passing anything to the function.
    Basically, i'm going to retrieve the values of a node from xml.
    and then i will assign those values to a variable in flash.
    now what i'm going to do next is pass this value to a javascript parameter..is it done using externalinterface?
    Could anyone give me an example.
    I just need to throw the value to the javascript function parameter and no return values to the actionscript.
    The event is that whenever an image is click, the corresponding value for each image is passed to the javascript function.
    here is my unfinished script.
    function imageClicked(e:Event):void {
        for each (var imageURL:XML in xml.images.link_to)
            ExternalInterface.call("TestButton",imageURL);
    thanks so much in advance.

    first, it seems that the 'TestButton' funciton in JS will be called several times when an image is clicked - for each loop in the 'for each' loop you wrote.
    second, in order to test the communication between AS and JS, try starting with something simple, like -
    ExternalInterface.call('alert', 'OK');
    if this doesn't work try tracing the ExteranlInterface.available property/
    if it does work, place an alert within the 'TestButton' in the JS code, to see its actually being called.
    and so forth...
    good luck,
    eRez

  • Pass variable value to Nested I-view

    Hi All,
    Short question:
    In a nested I-view, how can i refer back to variable value (selected value in dropdown box) located in main I-view?
    Detailed situation:
    In VC i have quite a large table presenting x/customer over a variable fiscal year. If a customer is selected in that table another query is triggered and will show a chart with some specific info regarding that customer over that same fiscal year.
    Thus: var. fiscal year --> first query --> table: x/customer --> action: customer selected --> second query --> chart: detailed customer info / var. fiscal year.
    In the connection between the table and the second query i can configure the input field (fiscal year) and assigned value easily by select the input form concering the variable fiscal year.
    However this construction works when i keep everything in one I-view. Regarding performance i've to split up my model into several nested i-views.
    Therefore the dropdown box where the fiscal year can be selected and submitted is detached. So now, in my main I-view i've various dropdown boxes and some nested i-views.And In one of those i-views i've a 'signal in' (containing var. fiscal year) and the continuation of the ealier mentioned construction.
    Now, when i'm trying to filter the connection between the table and the second  query i'm not able to refer back to the input form containing the var. fiscal year (because its not in that Nested I-view, but in the main I-View). Also i'm not able to refer to the input signal.
    Any suggestions?
    Kind regards,
    Bart

    Hi Bart,
    short answer
    You have to pass your value with a signal in into your nested iView.
    Best Regards,
    Marcel

  • Help Creating A Link In An IR Report Passing The Value From A Different Col

    Version 4.0.2.00.07
    Hello,
    I have an Interactive Report with a column that I need to create a link on but I need to pass the value of another column.
    This report shows the Features of a particular Release. There is a select list for the Release that is selected and executes the report.
    There is a column that indicates whether the Feature has a Commitment attached to it. If there is have that a link to another report that shows all the Commitments for that Feature by passing the FEATURE_ID which is also a column on the Feature report.
    Query:
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
                                      ) THEN 'Yes' ELSE 'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....If "Commitment Exists" has a 'Yes', the 'Yes' is a link that will pass the FEATURE_ID to another report that will show the Commitments for that Feature. If the "Commitment Exists" has a 'No' then no link.
    I was also wondering if the Commitment report could open in a seperate window and make it modal?
    I hope this is clear and someone could help me.
    Please let me know if it's not clear or more information is needed.
    Thanks,
    Joe

    To accomplish this I would build the link as part of the value. So if Yes the Yes itself would be a link, if No is simply text as today.
    It would look something like this:
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
           THEN
            '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
           ELSE
            'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....One problem with this approach is when you export the report (as a CSV for example). There are a few ways to handle this, one is to simply duplicate the column with clear text yes and no and set this column to be included on export and only visible on export. The other column, with the link, set it to no export.
    The other option is to add another condition on the REQUEST value.
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
           THEN
                  decode(:REQUEST, 'CSV', 'Yes'
                , '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
           ELSE
            'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....It seems that the link itself is getting replaced with a #. The link would look something like this:
    'f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id
    Hope this helps.
    Oh and of course, in order for the link to display you need to change the Display Type to "Standard Report Column" otherwise the HTML will be escaped.
    Thanks
    -Jorge

  • Programmtically Setting View Criteria in ADF Query Component

    I have created two view criterias for a View Object and used ADF Query component for searching. User can select any one of the View Criteria from "saved search" in ADF Query component. but i want to set it programmatically based on some business rules. How i can do that?

    No I don't want to set view criteria on search click. Actually I have ADF Query component on my page which is by default disabled. There are also some fields outside the query component on the value of which i enable ADF Query component and wants to set a particular ViewCriteria based on context. All ViewCriterias are defined and listed in "saved search" of ADF Query component but i don't want to allow user to select it but wants to application set it automatically based on context. For it i will be needed to set a particualar ViewCriteria for ADF Query component through code and then refresh ADF Query component to show newly set ViewCriteria. I know how to refresh query component or any other component through code but don't know how to set ViewCriteria on ADF Query component?

Maybe you are looking for

  • IPod Touch not detected in Win 7  HELP!!!!

    Windows 7 will not detect iPod Touch 64gb. Appears if no drivers are installed or the device is just not detected....HELP!!!

  • Logo in Adobe Forms

    Hi All, I want to add company logo in adobe forms. What is the procedure for this. I drag and drop the image in lay out and I stuck afte that. Please help me out in this, Thanks in Advance, Praveen

  • ORA-00338: ORA-00338: log 2 of thread 1 is more recent than control file

    Hi, I am getting error "ORA-00338: log 2 of thread 1 is more recent than control file" My os is RHEL 5.5, 64-bit Database version is 11.1.0.7 Help !

  • Fonts to repair 10.6.7 bug

    Hello Apple just released an updater which deliver fonts to repair the bug introduced by 10.6.7. As you see, they didn't wait for 10.6.8. Update available thru Software update or thru : http://support.apple.com/downloads/ Yvan KOENIG (VALLAURIS, Fran

  • Requirements for AD integration

    Hey All, Trying to integrate AD into my MAC server environment and Im having some issues around adding my MAC server into the domain. I keep getting the error 5200 (Server could not be contacted. I have tried almost every suggestion from placing the