Lookup in a grid

Hello all..
I have an entity object which represents a table of type: description(VARCHAR),date(Date), Id(Numeric).
The Id is FK for table: Id(Numeric PK), Name VARCHAR
Now in my application I have a gridControl which should represent table1 but instead of Id I want it to show Name from table2. The obvious solution is a "join" but I also want to insert records to the grid. Therefor I've created a view which represents both tables. Now everytime I press a button on my form I do "table1RowSetInfo.getRowSetAccess().newRow() and insert a value into table1.id. The problem is that I get a validation exception that table2.id cannot be null... Obviously I don't want to change the lookup table.
What can I do?
Thanks
Liron

hi,
          important here to aknowledge that the {} databinding are compile time. This implies a whole lot of restrictions. The scenario below works for me:
          - getLookupMap in the pageflow returns the lookup map
          - getList in the pageflow returns the list
          The following code then works for me
          <!-- in the heading of my JSP -->
          // get the lookup map into pagecontext
          <netui-data:getData resultId="lookup"
          value="{pageFlow.lookupMap}"/>
          // pull down as a new page attribute
          <%
          Map lookup = (Map)pageContext.getAttribute("lookup");
          %>
          Now, in my repeater ( of gridview ) I implement the column showing the actual mapped value like this:
          // to get the item key
          <netui-data:getData resultId="key"
          value="{container.item}"/>
          // to set the mapped attribute value
          <%
          pageContext.setAttribute(
          "lookupValue",
          lookup.get(pageContext.getAttribute("key")));
          %>
          // to render the mapped attribute value
          <netui:label value="{pageContext.lookupValue}"
          defaultValue=" " />
          Probably not exactly what you asked for, but hopefully close enough to guide you in the right direction.
          - Anders M.

Similar Messages

  • Using a treemap for lookup in a jsp grid

    Hi
              I am trying to use a treemap to lookup the names for id´s in a table.
              for example.
              Lookup table:
              ID.....Name
              1......carrot
              2......bananna
              the main table looks like this:
              row....id
              1.......2
              2.......1
              3.......1
              4.......2
              in my jsp page I want it to look like this:
              row....id
              1......bananna
              2......carrot
              3......carrot
              4......bananna
              I have the lookup table loaded into a treemap in the begin part of my pageflow.
              is there a special way that I can refer to the treemap in a grid view, for example, with a netui-data:expressionColumn ?
              thanks for any help.
              /Nigel
              Message was edited by NigelGuest at Feb 3, 2005 2:34 AM

    hi,
              important here to aknowledge that the {} databinding are compile time. This implies a whole lot of restrictions. The scenario below works for me:
              - getLookupMap in the pageflow returns the lookup map
              - getList in the pageflow returns the list
              The following code then works for me
              <!-- in the heading of my JSP -->
              // get the lookup map into pagecontext
              <netui-data:getData resultId="lookup"
              value="{pageFlow.lookupMap}"/>
              // pull down as a new page attribute
              <%
              Map lookup = (Map)pageContext.getAttribute("lookup");
              %>
              Now, in my repeater ( of gridview ) I implement the column showing the actual mapped value like this:
              // to get the item key
              <netui-data:getData resultId="key"
              value="{container.item}"/>
              // to set the mapped attribute value
              <%
              pageContext.setAttribute(
              "lookupValue",
              lookup.get(pageContext.getAttribute("key")));
              %>
              // to render the mapped attribute value
              <netui:label value="{pageContext.lookupValue}"
              defaultValue=" " />
              Probably not exactly what you asked for, but hopefully close enough to guide you in the right direction.
              - Anders M.

  • Internet Explorer (11.0.9600.17207) crashes on 2nd lookup selection in JS Grid page - Project Server 2010 (SP1)

    Hi all,
    we are facing a scenario that crashes IE (11.0.9600.17207). When a user with IE 11 with that version opens a grid page (project schedule for example) and updates a lookup field, IE will crash when the user expands the lookup field widget for the 2nd time.
    This scenario is not recreated on previous IE 11 versions.
    We traced the error to the CustomFieldWidget.js file line 149 (form.appendchild...):
    function AddFormInputField(form, name, value)
       {ULSQRm:;
        var el=document.createElement('input');
        el.type='hidden';
        el.name=el.id=name;
        el.value=value;
        form.appendChild(el);
    Can someone from Microsoft verify if there is alreaedy an open issue about it?
    Thanks,
    Roy
    Royg

    Thanks everyone,
    The issue was resolved when my IE updated recently (it's set to update automatically).
    the update IE version is 11.0.9600.17239 and the issue can no longer be replicated.
    I don't know if the bug is resolved (e.g. if an error is not thrown in that scenario) but at least the client handles it well and doesn't crash.
    Kind regards,
    Roy
    Royg

  • Filtered Sub-grid lookup

    I'm trying to achieve the following setup for a client in CRM2015:
    They have a 2-level hierarchy of Accounts (Head-office and Branches) that are related using the 'Parent Account' field. For each Parent Account, there are multiple ways they internally group the related child accounts with the parent account.  To replicate
    this grouping, I've created a new entity called 'Account Lists' that allows them to select a parent account and then in a Sub-grid select one or more of the related child accounts.
    These are the steps I took so far:
    1) Added a new View to the Accounts Entity called 'Child Accounts' which displays all accounts where a custom option set value is equal to Child
    2) On the new 'Account Listings' Entity I created a N:N relationship with the Accounts entity
    3) Inserted a Sub-Grid on the form and selected the following for Data Source:
     -Records - Only selected records
     -Entity - Accounts (Child Accounts)
     -Default View - Child Accounts
    4) In additional options, I applied the following settings:
     -View Selector: Show Selected Views
     -In the Views list, I only have the 'Child Accounts' view selected
    The problem I'm having is that the Sub-grid drop down and related lookup is displaying all accounts, including parent accounts, and not just child accounts.  Is there something I've done wrong here or do I need to be looking at custom lookups with
    JavaScript to achieve what I'm looking for?
    Thank you

    Just wanted to add some more information in case I helps explain this issue:
    1) Our custom 'Account Lists' entity only contains two controls: a lookup and a subgrid.
    -The lookup is labeled Parent Account and only allows the user to select an Account where a custom option set field value is equal to "Parent".  The lookup view attached to this lookup is a custom view called Parent Account that enforces this
    restriction.
    -The second control is a subgrid labeled Child Accounts.  Similar to the lookup, we've tried to apply a custom View to filter which accounts the user can select.  In particular, we created a view called Child Accounts as we're hoping they would
    only be able to select Child Accounts from the subgrids related selectors (ie via the plus button or after clicking the "Lookup More records" link).
    2) The enforcing of the default View between the Lookup and Subgrid is behaving differently as follows:
    -When the user opens the lookup, they are presented with the "Parent Account" view and cannot select any other View.  This is perfect.
    -With the subgrid, when the user clicks the plus button (+) they are shown 10 accounts, but the accounts shown include both Parent and Child accounts and not just Child accounts as we expected when assigning our custom view to this grid.  Also,
    even though I see the name of the custom View (Child Accounts) to the left of the plus button, the grid is displaying different fields then those defined by the view.
    -Similarly, when they click the "Lookup More Records" link and are presented the Look up Records window, the default view is the native "Account Lookup View" and all the other Account views are available for selection.  I was expecting
    to see only our "Child Accounts" view to be available for selection so the users could only add these Accounts to the grid.
    Any idea why we can enforce a default view on the lookup, but not the subgrid?  Am I missing something here or is this is a bug in CRM 2015?

  • How Can I Create a Record/Report Grid on a Page

    I want to build a page on which I can display a MySQL table record grid as a report, so that a user can select certain lines for further processing (e.g. emailing "action due" information to a customer).  I've searched and searched, but everything I find just dances around the edges.
    For example, I want to be able to display the results of a MySQL query into a customer detail, based on an action date in the records, in a row/column grid, so that those with an action due can be selected, and an email sent to the customers reminding them to post the required action code.  The columns in each row would include: Customer ID, Employee/Applicant's Name, DOB & SSN, the current Action Date and Code.
    OK, well I guess after two weeks without a response, I must be some kind of outcast, though I don't know why/how that happened.  While I'm new to web programming, I'm trying to learn, and attempting to follow the rules, when I know what they are.
    Message was edited by: creacontech

    Hi,
    The process is to first populate the values in the lookup(can be a part of main table or qualified table) and hierarchy tables. Once done, create the main table record and then fill the details in the qualified table for that particular main table record. Since the details of the qualified table are stored in the link established between main table record and qualified table record hence you cannot first create a qualified table record before creating main table record.
    Also when you first create a main table record containing set of lookup & hierarchy fields then you wont find the values in the drop down since you have not filled the lookup tables, hence we always fill the lookup table data first.
    Regards,
    Jitesh Talreja

  • How to map lookup main table field in another main table using MDM 7.1?

    We created a new SAP MDM 7.1 repository with multiple main tables.  The first main table is called ProductMaster table which contains Products information.  The ProductCode is the primary key and the only display field for the table during data loading process. The second main table is ProductByRegion table which has a main table lookup field ProductCode and a RegionId field.  These two fields (ProductCode and RegionId) combine as the PK for this main table.  Both main tables have key mapping enabled. 
    I was able to load ProductMaster table using Import Manager.  But Iu2019m having trouble to load data into ProductByRegion table using MDM Import Manager.  Although I have met all the 5 requirements below (excerpted from MDM Import Manager Reference Guide P.222), the ProductCode wonu2019t show up on the destination value pane.  If I mapped all productCode to NULL field, ProductCode wonu2019t load.  If I u2018Addu2019 all ProductCode to Destination Value pane, the Import Manager added duplicated rows to Product Master table while only loading 1 record to ProductByRegion table.  I canu2019t get ProductCode show up in Matching Destination Field list.  When I checked ProductMaster records in MDM Data Manager, I right-clicked on one of records, chose Edit Key Mappings, it didnu2019t show anything.  However, if I right-clicked on one of those duplicated rows, Edit Key Mapping shows remote system and key correctly.
    Where did I do wrong?  How can I fix the problem?
    Thank you for help in advance.
    From: SAP MDM Import Manager Reference Guide:
    Mapping to Main Table Lookup Destination Fields
    Import Manager handles main table lookup fields (Lookup [Main])
    differently than other MDM lookup fields. Specifically, Import Manager
    does not display the complete set of display field values of the records
    of the underlying lookup table. Instead, the values it displays for a main
    table lookup field are limited by both the key mappings for the lookup
    table and the values in the source file.
    Also, Import Manager does not automatically display the values of a
    Lookup [Main] destination field in the Destination Values grid when you
    select the field in the Destination Fields grid. Instead, for a main table
    lookup field value to appear in the Destination Values grid, all of the
    following conditions must be met:
    u2022 The lookup table must have key mapping enabled
    u2022 The lookup field must be mapped to a source field
    u2022 The source field must contain key values for the lookup table
    u2022 The destination value must have a key on the current remote system
    u2022 The destination valueu2019s key must match a source field value
    NOTE ►► The current remote system is the remote system that was
    selected in Import Manageru2019s Connect to Source dialog (see
    u201CConnecting to a Remote Systemu201D on page 416 for more information).
    Vicky

    Hi Michael,
    Thank you very much for your response.  I'm new to SAP MDM, I need some clarification and help regarding your solution. 
    I did use two maps to load ProductMaster and ProductByRegion separately.  Here were my steps:
    1. create main table ProductMaster with key mapping enabled at the table level and set ProductCode as unique and writable once (primary key).
    2. create a map to load ProductMaster record from a staging table located an oracle database.  But Key mapping didn't show anything when I looked at them using Data Manager.
    3. create main table ProductByRegion with a lookup field looking at ProductMaster table.  This field and RegionId combines as a unique field for ProductByRegion table. 
    4. create a map to load ProductByRegion table.  But ProductCode records only shows on the source pane not destination pane and can't be mapped properly.
    My questions:
    1. How can I "Ensure that you add key mapping info for all ProductMaster records" besides enabling Key Mapping on the table level?
    2. How can I define a concatenation of ProductCode and RegionId as a REMOTE KEY"?
    Thanks a lot for your help!
    Vicky

  • EJB 3.0 lookup in Weblogic 10.3.0

    Hello everyone,
    1: Our application runs on Weblogic Application Server,version 10.3.0
    2: In our system,we need to deploy an EJB conforming to the EJB 3.0 specification.
    Please find the sample code for our UAT environment as below :
    /*The remote interface*/
    package com.serverside.ejb.session;
    import javax.ejb.Remote;
    @Remote
    public interface ASimpleSessionBeanRemote {
         public void printThis(String print);
    /*The bean class*/
    package com.serverside.ejb.session;
    import javax.ejb.Remote;
    import javax.ejb.Stateless;
    * Session Bean implementation class ASimpleSessionBean
    @Stateless(name="ASimpleSessionBean", mappedName = "ASimpleSessionEJB")
    @Remote(ASimpleSessionBeanRemote.class)
    public class ASimpleSessionBean implements ASimpleSessionBeanRemote {
    * Default constructor.
    public ASimpleSessionBean() {
    // TODO Auto-generated constructor stub
         @Override
         public void printThis(String print) {
              // TODO Auto-generated method stub
              System.out.println("ASimpleSessionBean : "+print);
    3: The above files when packaged in jar get deployed on the server successfully.
    4: As per EJB 3.0 specification,the deployement descriptors are not mandatory.Hence,the jar doesn't include ejb-jar.xml and weblogic-ejb-jar.xml
    5: Please find below,the EJB3.0 annotations reference as per the Weblogic Application Server Documentation :
    Annotation : @Stateless
    Package: javax.ejb.Stateless
    Attribute : mappedName
    Description :
    Specifies the product-specific name to which the stateless session bean should be mapped.
    You can also use this attribute to specify the JNDI name of this stateless session bean. WebLogic Server uses the value of the mappedName attribute when creating the bean’s global JNDI name. In particular, the JNDI name will be:
    mappedName#name_of_businessInterface
    where name_of_businessInterface is the fully qualified name of the business interface of this session bean.
    For example, if you specify mappedName="bank" and the fully qualified name of the business interface is com.CheckingAccount, then the JNDI of the business interface is bank#com.CheckingAccount.
    6: Conforming to the above specification, the sample EJB deployed on our application server has the binding name(as reflected in the jndi tree) as follows :
    ASimpleSessionEJB#com.serverside.ejb.session.ASimpleSessionBeanRemote
    A jndi lookup using this name succeeds :
    InitialContext.doLookup("ASimpleSessionEJB#com.serverside.ejb.session.ASimpleSesionBeanRemote");
    7: Now,we want the binding name to be a simple string i.e the lookup must be something like :
    InitialContext.doLookup("ASimpleSessionEJB");
    8: To implement point-7,we tried using the ejb-jar.xml and weblogic-ejb-jar.xml as follows :
    ->ejb-jar.xml
    <?xml version="1.0" encoding="ASCII"?>
    <ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0">
    <display-name>ejb</display-name>
    <enterprise-beans>
         <session>
              <ejb-name>ASimpleSessionBean</ejb-name>
              <ejb-ref>
                   <ejb-ref-name>ASimpleSessionEJB</ejb-ref-name>
                   <remote>com.serverside.ejb.session.ASimpleSessionBeanRemote</remote>
                   <mapped-name>ASimpleSessionEJB</mapped-name>
              </ejb-ref>
         </session>
    </enterprise-beans>
    </ejb-jar>
    ->weblogic-ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-ejb-jar xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-ejb-jar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://www.bea.com/ns/weblogic/weblogic-ejb-jar http://www.bea.com/ns/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd">
    <!-- server-version: 10.3.0 --><wls:weblogic-enterprise-bean>
         <wls:ejb-name>ASimpleSessionBean</wls:ejb-name>
         <wls:stateless-session-descriptor>
              <wls:business-interface-jndi-name-map>
                   <wls:business-remote>ASimpleSessionBeanRemote</wls:business-remote>
                   <wls:jndi-name>ASimpleSessionEJB</wls:jndi-name>
              </wls:business-interface-jndi-name-map></wls:stateless-session-descriptor>
         <wls:jndi-name>ASimpleSessionEJB</wls:jndi-name>
    </wls:weblogic-enterprise-bean>
    </wls:weblogic-ejb-jar>
    9: Inspite of the point-8,the binding name remains as follows :
    ASimpleSessionEJB#com.serverside.ejb.session.ASimpleSessionBeanRemote
    10: Please guide us about the solution and implementation to attend point-7.
    Thanks !

    Hi,
    I find distributed applications very interesting (even though this application of mine could just use sockets - it is nicer than EJB 2.1). You don't need the @Local DI and local interface if you only do remote - so here is some minimal hello world code that currently works on a test network of mine.
    In this example I have provided only a remote stateless session bean and an SE client (could be a pojo or servlet).
    The *@Stateful* SB has been converted to a *@Stateless* SB (now the state field doesn't really hold state as the container pools the SSB - but this is an unrelated issue as I an not using transactions yet anyway). The key is naming the SSB with the mappedName attribute so you can easily reference it - or just check your logs after you deploy the EAR containing the EJB in your EE server.
    Note: WebLogic also registers a legacy EJB 2.1 compliant jndi name alias for you as well appsdirorg_eclipse_persistence_example_distributed_ClientEAR_earorg_eclipse_persistence_example_distributed_ClientEJB_jarNode_Home*
    For your specific question about dependency injection (which is implemented by Spring AOP inside the server).
    Use @Remote on your Remote inteface class
    Use @Stateless on your session bean implementation class
    Use @EJB to inject your stateless session bean into a servlet for example (I have not tried using @EJB on a POJO - it would need to be running on the WebLogic container in the WAR or EJB.jar - don't think that is supported - I have not tried @Resource or spring annotations for this yet)
    This example (reduced to show a single remote server) uses a JNDI lookup to get a reference to the remote bean (full try/catch exception handlers in full code near end of post).
          Hashtable<String, String> aTable =  new Hashtable<String, String>();
          aTable.put("java.naming.factory.initial","weblogic.jndi.WLInitialContextFactory");
          aTable.put("java.naming.provider.url", "beowulf5");
          Context aContext = new InitialContext(aTable);
          Object aRemoteReference = aContext.lookup("ejb/Node#org.eclipse.persistence.example.distributed.NodeRemote");       
          NodeRemote aNode = (NodeRemote) PortableRemoteObject.narrow(aRemoteReference, NodeRemote.class);
          aNode.setState(0)); // remote method invocationI deploy an EAR containing the SSB on distributed servers on any EE container - I chose WebLogic 10.3.4.
    I run an SE app that connects to a list of servers that that are running the remote stateless session bean. The code is very naive at this point, it does retry bad connections and it is not yet multithreaded - just a proof of concept for EJB 3 remote session beans.
    The InitialContext RMI handshaking will take around 10 sec per server to setup - then you can do up to 200k remote EJB RMI invokacations per second/thread on my machine.
    The @Local code is only required if you wish to optimize using your SSB on the same JVM.
    The JPA peristence code can be ignored (no EJB 3.0 Entities)
    I just discovered the forum code tag in square brackets after 2 years
    package org.eclipse.persistence.example.distributed;
    import javax.ejb.Remote;
    @Remote
    public interface NodeRemote {
        public void setState(int state);
        public int getState();
    package org.eclipse.persistence.example.distributed;
    import javax.ejb.Stateful;
    @Stateful(mappedName="ejb/Node")
    public class Node implements NodeRemote {
        private int state;
        public void setState(int aState) {        state = aState;    }
        public int getState() {        return state;    }
    }weblogic-ejb-jar.xml ejb deployment descriptor - empty (we are using dependency injection annotations)
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-ejb-jar xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://xmlns.oracle.com/weblogic/weblogic-ejb-jar http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.2/weblogic-ejb-jar.xsd">
        <!--weblogic-version:10.3.4-->
    </wls:weblogic-ejb-jar>weblogic-application.xml deployment descriptor - essentially empty
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.2/weblogic-application.xsd">
        <!--weblogic-version:10.3.4-->
        <wls:application-param>
            <wls:param-name>webapp.encoding.default</wls:param-name>
            <wls:param-value>UTF-8</wls:param-value>
        </wls:application-param>
    </wls:weblogic-application>application.xml JEE5 deployment descriptor - you can ignore the model.jar and war
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" id="Application_ID" version="5">
      <display-name>
    org.eclipse.persistence.example.distributed.ClientEAR</display-name>
      <module>
        <java>org.eclipse.persistence.example.distributed.Model.jar</java>
      </module>
      <module>
        <web>
          <web-uri>org.eclipse.persistence.example.distributed.ClientWeb.war</web-uri>
          <context-root>distributed</context-root>
        </web>
      </module>
      <module>
        <ejb>org.eclipse.persistence.example.distributed.ClientEJB.jar</ejb>
      </module>
    </application>SE java client code (run from Eclipse 3.6 EE edition)
    package org.eclipse.persistence.example.distributed;
    import java.rmi.ConnectException;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Hashtable;
    import java.util.List;
    import java.util.Map;
    import javax.ejb.EJBException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import org.eclipse.persistence.example.distributed.NodeRemote;
    import org.eclipse.persistence.example.distributed.network.Cell;
    import org.eclipse.persistence.example.distributed.network.Quad;
    import org.eclipse.persistence.example.distributed.network.Wire;
    * This class tests RMI connections to multiple WebLogic servers running on
    * remote JVM's.  It is intended for experimental concurrency investigations only.
    * Note: for non-EE/ejb/web contexts (SE) use wlfullclient.jar generated from
    * $WLS_INSTALL\wlserver_10.3\server\lib>java -jar wljarbuilder.jar
    * 20110106: refactor for generic remote connections
    * @author http://wiki.eclipse.org/User:Michael.obrien.oracle.com 20100916
    public class Host {
        /** RMI server key name - does not need to resolve under DNS */
        public static String serverDNS[] = {"beowulf5","local"};//,"beowulf6"};
        /** RMI t3 URL */
        public static String serverT3[] = {"t3://1n.n.n.n:7001","t3://1n.n.n.n:7001"};
        private int numberServers = serverDNS.length;
        /** list of server names from above arrays */
        private List<String> serverNames = new ArrayList<String>();
        /** Input context map hashtable entries - For JNDI we are forced to use Hashtable instead of HashMap*/
        private Map<String, Hashtable<String, String>> contextHashtableMap
            = new HashMap<String, Hashtable<String, String>>();
        /** output cached context maps for each remote server */
        private Map<String, Context> rmiCachedContextMap
            = new HashMap<String, Context>();
        /** $Proxy remote objects */
        private Map<String, NodeRemote> remoteObjects                                  
            = new HashMap<String, NodeRemote>();
        /** remote propagation value */
        private Map<String, Integer> stateToSet                                                  
            = new HashMap<String, Integer>();
        /** How many processors are available (real + hyperthreaded) */
        private Map<String, Integer> availableProcessors                                  
            = new HashMap<String, Integer>();
        /** whether the node is accepting requests or not */
        private Map<String, Boolean> nodeUnavailable                                     
            = new HashMap<String, Boolean>();
        /** map of t3 protocol URLs */
        private Map<String, String>  serverIPMap                                               
            = new HashMap<String, String>();
        // verify that all EE libraries available via http://download.oracle.com/docs/cd/E12840_01/wls/docs103/client/jarbuilder.html
        private static final String CONTEXT_FACTORY_NAME = "weblogic.jndi.WLInitialContextFactory";
        private static final String SESSION_BEAN_REMOTE_NAME = "ejb/Node#org.eclipse.persistence.example.distributed.NodeRemote";
        //private String sessionBeanRemoteName = "java:comp/env/ejb/Node"; // EE only
        //private String sessionBeanRemoteName = "org_eclipse_persistence_example_distributed_ClientEARorg_eclipse_persistence_example_distributed_ClientEJB_jarNode_Home" ;
        public Host() {
            // initialize state
            for(int i=0;i<numberServers;i++) {
                // For each server add the name key and corresponding RMI URL
                serverNames.add(serverDNS);
    serverIPMap.put(serverDNS[i], serverT3[i]);
    nodeUnavailable.put(serverDNS[i], false);
    availableProcessors.put(serverDNS[i], 0);
    Hashtable<String, String> aTable = new Hashtable<String, String>();
    contextHashtableMap.put(serverDNS[i],aTable);
    aTable.put(Context.INITIAL_CONTEXT_FACTORY,CONTEXT_FACTORY_NAME);
    aTable.put(Context.PROVIDER_URL, serverT3[i]);
    public void process() {
    // process RMI Objects
    try {           
    NodeRemote aNode;
    StringBuffer aBuffer = new StringBuffer();
    // Endlessly generate RMI requests
    for(;;) {
    // Send messages to entire grid in parallel
    for(String remoteServer : remoteObjects.keySet()) {
    aNode = remoteObjects.get(remoteServer);
    // increment server's pending state
    stateToSet.put(remoteServer, stateToSet.get(remoteServer).intValue() + 1);
    if(!nodeUnavailable.get(remoteServer)) {
    try {
    // Issue: One JVM halt will affect the entire distributed app.
    // don't let a node failure halt the host
    aNode.setState(stateToSet.get(remoteServer)); // this remote call can throw an EJBException wrapping a java.rmi.ConnectException
    aBuffer = new StringBuffer("State from: ");
    aBuffer.append(remoteServer);
    aBuffer.append(" = ");
    aBuffer.append(aNode.getState());
    System.out.println(aBuffer.toString());
    } catch (EJBException e) {
    // weblogic.transaction.internal.TimedOutException: Transaction timed out after 29 seconds
    // or
    // EJBException wrapping a java.rmi.ConnectException if the server is not running
    e.printStackTrace();
    // mark the current node as down, clear the flag in 5 min
    nodeUnavailable.put(remoteServer, true);
    } catch (Exception e) {
    e.printStackTrace();
    public void connect() {
    // Setup RMI Objects
    try {           
    // Establish RMI connections to the session beans
    for(String aServer : serverNames) {
    Context aContext = null;
    try {
    aContext = new InitialContext(contextHashtableMap.get(aServer));
    rmiCachedContextMap.put(aServer, aContext);
    System.out.println("Context for " + aServer + " : " + aContext);
    // For qualified name look for weblogic log "EJB Deployed EJB with JNDI name"
    Object aRemoteReference = aContext.lookup(SESSION_BEAN_REMOTE_NAME);
    System.out.println("Remote Object: " + aRemoteReference);
    // narrow the $proxy remote bean
    NodeRemote aNode = (NodeRemote) PortableRemoteObject.narrow(aRemoteReference, NodeRemote.class);
    remoteObjects.put(aServer, aNode);
    System.out.println("Narrowed Session Bean: " + aNode);
    // initialize state list
    stateToSet.put(aServer, new Integer(0));
    } catch (Exception ce) {
    // server down throws a javax.naming.CommunicationException inside a java.net.ConnectException
    ce.printStackTrace();
    // mark the current node as down, clear the flag in 5 min
    nodeUnavailable.put(aServer, true);
    } catch (Exception e) {
    e.printStackTrace();
    public Map<String, Hashtable<String, String>> getContextMap() {        return contextHashtableMap;    }
    public void setContextMap(Map<String, Hashtable<String, String>> contextMap) {        this.contextHashtableMap = contextMap;    }
    public Map<String, Context> getRmiContextMap() {        return rmiCachedContextMap;    }
    public void setRmiContextMap(Map<String, Context> rmiContextMap) {        this.rmiCachedContextMap = rmiContextMap;    }
    public Map<String, NodeRemote> getRemoteObjects() {        return remoteObjects;    }
    public void setRemoteObjects(Map<String, NodeRemote> remoteObjects) {        this.remoteObjects = remoteObjects;    }
    public Map<String, Integer> getStateToSet() {        return stateToSet;    }
    public void setStateToSet(Map<String, Integer> stateToSet) {        this.stateToSet = stateToSet;    }
    public Map<String, Boolean> getNodeUnavailable() {        return nodeUnavailable;    }
    public void setNodeUnavailable(Map<String, Boolean> nodeUnavailable) {        this.nodeUnavailable = nodeUnavailable;    }
    public Map<String, String> getServerIPMap() {        return serverIPMap;    }
    public void setServerIPMap(Map<String, String> aServerIPMap) {        serverIPMap = aServerIPMap;    }
    public List<String> getServernames() {        return serverNames;    }
    public void setServerNames(List<String> serverNames) {        this.serverNames = serverNames;    }
    public int getNumberServers() {        return numberServers;    }
    public void setNumberServers(int numberServers) {        this.numberServers = numberServers;    }
    public Map<String, Integer> getAvailableProcessors() {        return availableProcessors;    }
    public void setAvailableProcessors(Map<String, Integer> availableProcessors) {        this.availableProcessors = availableProcessors;    }
    public static void main(String[] args) {
    Host host = new Host();
    host.connect();
    host.process();
    Path to run SE client from command line
    java -cp .;wls/wlfullclient.jar org.eclipse.persistence.example.distributed.HostRemote Server Deploy logs
    Local JVM
    ####<18-Jan-2011 11:13:45 o'clock AM VET> <Info> <EJB> <mfobrien-pc2> <AdminServer> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1295365425233> <BEA-014021> <The EJB 'Node(Application: _appsdir_org.eclipse.persistence.example.distributed.ClientEAR_ear, EJBComponent: org.eclipse.persistence.example.distributed.ClientEJB.jar)' has been successfully deployed.
    The following remote interfaces have been bound into JNDI with the specified JNDI names:>
    ####<18-Jan-2011 11:13:45 o'clock AM VET> <Info> <EJB> <mfobrien-pc2> <AdminServer> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1295365425233> <BEA-014022> <********
    org.eclipse.persistence.example.distributed.NodeRemote is bound with JNDI name:ejb/Node#org.eclipse.persistence.example.distributed.NodeRemote ********>
    ####<18-Jan-2011 11:13:45 o'clock AM VET> <Info> <EJB> <mfobrien-pc2> <AdminServer> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1295365425233> <BEA-010009> <EJB Deployed EJB with
    JNDI name _appsdir_org_eclipse_persistence_example_distributed_ClientEAR_earorg_eclipse_persistence_example_distributed_ClientEJB_jarNode_Home.>
    beowulf5 JVM
    ####<Jan 18, 2011 11:27:46 AM EST> <Info> <EJB> <beowulf5> <AdminServer> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1295368066578> <BEA-014021> <The EJB 'Node(Application: _appsdir_org.eclipse.persistence.example.distributed.ClientEAR_ear, EJBComponent: org.eclipse.persistence.example.distributed.ClientEJB.jar)' has been successfully deployed. The following remote interfaces have been bound into JNDI with the specified JNDI names:>
    ####<Jan 18, 2011 11:27:46 AM EST> <Info> <EJB> <beowulf5> <AdminServer> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1295368066578> <BEA-014022> <******** org.eclipse.persistence.example.distributed.NodeRemote is bound with
    JNDI name:ejb/Node#org.eclipse.persistence.example.distributed.NodeRemote ********>
    ####<Jan 18, 2011 11:27:46 AM EST> <Info> <EJB> <beowulf5> <AdminServer> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1295368066578> <BEA-010009> <EJB Deployed EJB with JNDI name _appsdir_org_eclipse_persistence_example_distributed_ClientEAR_earorg_eclipse_persistence_example_distributed_ClientEJB_jarNode_Home.>
    local SE client logs
    Context for beowulf5 : javax.naming.InitialContext@9980d5
    Narrowed Session Bean: ClusterableRemoteRef(7753348759447467175S:10.156.53.10:[7001,7001,-1,-1,-1,-1,-1]:base_domain:AdminServer [7753348759447467175S:10.156.53.10:[7001,7001,-1,-1,-1,-1,-1]:base_domain:AdminServer/292])/292
    Context for local : javax.naming.InitialContext@1a897a9
    Narrowed Session Bean: ClusterableRemoteRef(-5707697697594367270S:10.156.52.246:[7001,7001,-1,-1,-1,-1,-1]:base_domain:AdminServer [-5707697697594367270S:10.156.52.246:[7001,7001,-1,-1,-1,-1,-1]:base_domain:AdminServer/300])/300
    State from: local = 1
    State from: beowulf5 = 1
    State from: local = 2
    State from: beowulf5 = 2thank you
    Glad to help out.
    /Michael

  • Lookup function issue or specific cell data binding problem

    I  have a dataset which has datatable having 2 columns i.e
    Table( Id string,Value string)
    Every single record in the datatable represents an answer to particular question, Id column being question identifier and Value column  being an answer and every question has answer being stored for 7 days.
    Now i have designed a report which is in the form of grid like
                         Day1 Answer, Day2 Answer, Day3 Answer............................Day7 Answer
    Question 1 
    Question 2
    .Question 40
    I tried using lookup function in ssrs reporting service to bind every single cell in the report using data from dataset like
    = Lookup("question_identifier",QuestionId.Value,AnswerValue.Value,"mydataset");
    The report is working absolutely fine in the report designer as expected but when i take it to the ASP.NET website where i have to generate it, it never shows up and i get report couldn't be found and make sure you have published the report kind of errors.
    I figured that this is the problem with lookup function because as soon as i removed all lookup function expressions in the report , the report started to show up but without data.
    Please let me know if there is another way to go around this problem or fix this issue.
    Thanks,
    BR,

    Hi Jolly,
    I don't think we need lookup function for this. We have only one dataset, the report can be easily created by simply modifying the query of the dataset and place those fields in the tablix report. Refer below example,
    create table reporttable(id int, value varchar(200))
    insert into reporttable values(1,'abc')
    insert into reporttable values(1,'abc1')
    insert into reporttable values(1,'abc2')
    insert into reporttable values(1,'abc3')
    insert into reporttable values(1,'abc4')
    insert into reporttable values(2,'abc')
    insert into reporttable values(2,'abc1')
    insert into reporttable values(2,'abc2')
    insert into reporttable values(2,'abc3')
    insert into reporttable values(2,'abc4')
    insert into reporttable values(3,'abc')
    insert into reporttable values(3,'abc1')
    insert into reporttable values(3,'abc2')
    insert into reporttable values(3,'abc3')
    insert into reporttable values(3,'abc4')
    select id as [Question],'Day ' + cast(row_number() over (partition by id order by id) as varchar) + ' Answer' as AnsCol
    from reporttable
    Regards, RSingh

  • CRM 2013: Custom button to Open multiselect lookup with custom view

    Hello Everyone,
    Looking for your suggestions to implement the following requirement.
    We want to implement a custom button on the sub grid of Custom Entity (Lets say, "PersonMapping"). The custom button should open another entity multi select lookup(Lets say, "Person"). Till here we could achieve by directly opening the
    multi lookup url of the Person using "Window.showModelDialog". But in this lookup, we want to set our custom view as default view. Please suggest some solution to achieve this.
    Thanks.

    Hi,
    First of all I would advice you to post this question in the new CRM 2007 forum.
    We have created our own button that calls an URL in a separate window. Here is some coding from the method CALLBACK~GET_BUTTONS which may inspirere you:
    CONCATENATE 'javascript:window.open'
                  lv_http
                  '","Print","resizable=yes,height=850,width=700,dependent=yes,status=1");'
             INTO lv_java.
      ls_button-type     = cl_thtmlb_util=>gc_icon_print.
      ls_button-tooltip  = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_SALES_QUOT/SALESQUOT_PRINT' ).
      ls_button-on_client_click = lv_java.
      ls_button-page_id  = me->component_id.
      ls_button-enabled  = abap_true.
      APPEND ls_button TO rt_buttons.
      CLEAR ls_button.
      ls_button-text     = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_SALES_QUOT/SORDER_CREATEFOLLOW-UP' )."#EC NOTEXT
      ls_button-tooltip  = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_SALES_QUOT/SORDER_CREATEFOLLOW-UP' )."#EC NOTEXT
      ls_button-on_click = 'FOLLOWUP'.                          "#EC NOTEXT
      ls_button-page_id  = me->component_id.
      ls_button-enabled  = lv_persistent.
      APPEND ls_button TO rt_buttons.
      CLEAR ls_button.
    /Anders

  • Placing objects via grids

    Can someone of you please tell me how I could place an object (for instance a simple circle) in the upper left edge of a self-set grid pattern? I only found the options "snap to grid" and "snap to point", but that's not what I was meant to do. It only snaps to some recommended vertical lines. Please help if you can!

    You can set the document grid to whatever increment size you want. Lookup Grid in online Help. Turn on visibility of the Grid (View>ShowGrid) so you can see what you're doing, until you get accustomed to it.
    If you are trying to create an array of instances of the same object, look at Effects>Distort&Transform>Transform.
    If you are trying to arrange dissimilar objects into a rectangular array, look at the Align and Distribute options.
    JET

  • Lookup values to edit data

    Hi. Is it possible to have a lookup list on the table records grid for a column that happens to be a foreign key to another table? Say, I want to have a departments lookup list for the departments column in the employees table.
    Thanks.

    I suspect this should be a new feature request, you can add this to the exchange:
    http://htmldb.oracle.com/pls/otn/f?p=42626:46:1948894399635369::NO:::
    I also think this could be a little tricky to develop and may have some serious impact on performance, so i do not expect the development team to be eager to work on this.

  • RMI JNDI Lookup on remote iAS causing "Not Authorised"

    Hi all
    I'm running through an OJMS example using AQ and all is looking good until I try and Update my plan from Design Studio..
    I get:
    IMessageSourceReceiver->messageReceive: javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Not authorized; nested exception is:
         javax.naming.AuthenticationException: Not authorized. Root exception is javax.naming.AuthenticationException: Not authorized
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2523)
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2339)
         at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1781)
         at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:721)
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:149)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at iteration.enterpriselink.sources.JMSConsumer.start(JMSConsumer.java:85)
         at iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.jmsConsumerStart(JMSMessageSourceReceiverImpl.java:1001)
    This appears to be because iAS is using JAZN security and is not allowing an anonymous lookup from BAM.
    I can't see anywhere in Architect or Administrator where I can configure a username/password for authentication with my iAS install...
    Has anyone any advice?
    Cheers
    Chris

    Hi, Chriseb2
    even i also have the same problem
    I am getting one Error while Creating Enterprise Link Plan in Design Studio of BAM and Failed to Create the Plan.
    i.e.(IMessageSourceReceiver>messageReceive:javax.NameNotFoundException: java:comp/resource/BAMTTT/TopicConnectionFactories/bam_ttq_tab not found)
    Setup:
    Integration between Oracle EBS 11.5.10 and Oracle BAM 10.1.3.
    I am trying to get the Raw Data and sending over to the Enterprise Link Plan.
    1. Created bam_ttq AQ and bam_ttq_tab.
    2. Configured all of the startup parameters required for Enterprise Message Source Type (Oracle (AS JMS and OJMS)) in the Administrator of BAM.
    3. Configured the Oracle (AS JMS and OJMS) with the following values in the Enterprise Message Sources in the Architect of BAM.
    Initial Context Factory : com.evermind.server.rmi.RMIInitialContextFactory.
    JNDI Service Provider URL : opmn:ormi://inaportal.inatech.com:6004:home.
    TopicConnectionFactory Name : java:comp/resource/BAMTTT/TopicConnectionFactories/bam_ttq_tab.
    Topic Name : java:comp/resource/BAMTTT/Topics/bam_ttq.
    JMS Message Type : Text Message.
    Durable Subscriber Name (Optional) : Bamclient.
    Message Selector (Optional) :
    Client ID (Optional) : ClientId.
    4. Also configured the data-sources.xml and applications.xml in OC4J (10.1.2) to reference the database schema where the BAM_TTQ queue is created.
    5. Modified the jndi.properties file with required properties.
    java.naming.security.principal = ias_admin
    java.naming.security.credentials = inaportal321
    java.naming.provider.url = opmn:ormi://inaportal.inatech.com:6004:home
    java.naming.factory.initial = com.evermind.server.rmi.RMIInitialContextFactory
    6. In the Design Studio I have a Plan with Oracle BAM Enterprise Message Receiver and Grid.
    And when I am updating the plan I am getting the following error.
    IMessageSourceReceiver->messageReceive: javax.naming.NameNotFoundException: java:comp/resource/BAMTTT/TopicConnectionFactories/bam_ttq_tab not found
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:164)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at iteration.enterpriselink.sources.JMSConsumer.start(JMSConsumer.java:85)
    at iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.jmsConsumerStart(JMSMessageSourceReceiverImpl.java:1001)
    at iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.messageReceive(JMSMessageSourceReceiverImpl.java:326)
    [Oracle BAM Enterprise Link error code: 0x75 -- 0x1, 0x75 -- 0x3A]
    Error during Message Receive operation.
    [Oracle BAM Enterprise Link error code: 0x75 -- 0x1, 0x75 -- 0x3B]
    Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
    [Oracle BAM Enterprise Link error code: DC -- 0x1, DC -- 0x83]
    Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
    [Oracle BAM Enterprise Link error code: DC -- 0x1, DC -- 0x83]
    Update of Plan "EBS_Example" failed.
    [Oracle BAM Enterprise Link error code: PlanMgr -- 0x1, PlanMgr -- 0xD5]
    Can U pls help me out with this? Its Urgent for Me
    Thx
    Renuka.

  • Optimisation of NN lookup for large roads table

    we have a large roads table (approx 2.5M records) for the UK. we have vehicles for which we need to locate the nearest road for approx 1-5k vehicle locations at a time. The roads table has an R-Tree index on it.
    The roads data is in British National Grid - the vehicle locations are in WGS-84
    Using a standard SDO_NN query, this takes approx 250ms per lookup on a twin 1ghz pIII with 1.5gb ram scsi 10k raid 5 disk array. - clearly not a very good result. does anybody have any ideas as how to optimise this search further. I would try using a filter, but when I include this in the single query, it degrades performance. the ideal situation would be to do a filter which is used globally for all the 1-5k vehicle batch, but i'm not sure as to how to do this in java/vb.

    Hi,
    What David says is correct. You should always use the hint
    otherwise the spatial index may not be used and that may return
    an error. However, in your case, it does not return an error.
    So I would guess the spatial index is being used.
    With regard to performance:
    1. If there are multiple neighbors for each road, there are
    multiple candidates to be evaluated and the query will be slow.
    Spatial queries currently are evaluated using the minimum
    resources for memory, etc. so as to work in all situations and
    they do not perform anything fancy with 1G memory or twin processors.
    Parallel query is an item for future releases.
    One thing that could be done in your situation is:
    cache some of the table data (use buffer_pool parameters for table)
    and pose queries within same county or a region one after another
    so that these queries which are likely to have same data as neighbors
    could take advantage of buffering.
    2. In addition to the above, in 9.2 nearest-neighbor performance should
    have improved substantially. This has to do with some internal
    optimizations minimizing the number of table fetches. So in concept,
    this would behave close to filter which does not fetch any geometries
    from the table (only uses the index) and fetches only as many
    candidate geometries as needed assuming a limited memory.
    Without doing any tuning described in 1, you should see improvements.
    3. An alternative is to use filter and sdo_distance.
    Use sdo_filter by creating a buffer around the query geometry and
    identify all data in the buffered_query. Evaluate the sdo_geom.sdo_distance
    between the query geometry and each of the result data and order them
    based on the distance and select the k-nearest. The efficiency of this
    method depends upon the selectivity of the filter operation (with the
    buffered query). If the filter returns nearly 2 or 3 times the number
    of neighbors needed, this method would perform great.
    Hope that helps,
    - Ravi.

  • Using Lookup

    Post Author: jeff.p18
    CA Forum: Data Integration
    Hello (mother-tongue = french)
    I'm a BODI beginner and I often have things lije this to code :
                SELECT gd.num_ecrou_ini, ae.dat_epreuve, ae.cod_diplome, u2018Ru2019, 2
                FROM gdet_det gd,
                atf_expertise ae,
                t_ods_w_diplome wde
                WHERE gd.num_ecro_cou = ae.num_ecro_cou
          AND gd.num_ecro_cou = (         SELECT max(gd2.num_ecro_cou)
                                                         FROM gdet_det gd2
                                                         WHERE gd2.num_ecro_ini = gd. num_ecro_ini   )
                AND gd.num_ecrou_ini not in (   SELECT wde2.num_ecrou_ini
                                       FROM t_ods_w_diplome wde2  )
                AND 2 < = (      SELECT min(hd2.priorite)
                                       FROM t_ods_h_diplome hd2
                                       WHERE hd2.num_ecrou_init = gd.num_ecrou_ini)
          AND gd.num_ecro_cou = (         SELECT max(ae2.dat_expertise)
                                                         FROM gdet_det ae2
                                                         WHERE ae2.num_ecro_cou = ae. num_ecro_cou  )
    I wonder if it is recommended to use lookup to implement it in BODI.
    Look at my where clause in BODI :
    GDET_DET_1.NUM_ECRO_COU = ATF_EXPERTISE_1.NUM_ECRO_COU ANDlookup_ext(&#91;ds_ods_info_penit.SCOTT.T_ODS_W_DIPLOME,'PRE_LOAD_CACHE','MAX'&#93;,    &#91;NUM_ECRO_INI&#93;,&#91;0&#93;,&#91;NUM_ECRO_INI,'=',GDET_DET_1.NUM_ECRO_INI&#93;) = 0 ANDlookup_ext(&#91;ds_ods_info_penit.SCOTT.T_ODS_H_DIPLOME,'PRE_LOAD_CACHE','MIN'&#93;,    &#91;PRIORITE&#93;,&#91;9&#93;,&#91;NUM_ECROU_INIT,'=',GDET_DET_1.NUM_ECRO_INI&#93;) >= 2 ANDlookup_ext(&#91;ds_source_gide_source.dbo.GDET_DET,'PRE_LOAD_CACHE','MAX'&#93;,   &#91;NUM_ECRO_COU&#93;,&#91;NULL&#93;,&#91;NUM_ECRO_INI,'=',GDET_DET_1.NUM_ECRO_INI&#93;) = GDET_DET_1.NUM_ECRO_COU ANDlookup_ext(&#91;ds_source_gide_source.dbo.ATF_EXPERTISE,'PRE_LOAD_CACHE','MAX'&#93;,   &#91;DAT_EXPERTISE&#93;,&#91;NULL&#93;,&#91;NUM_ECRO_COU,'=',GDET_DET_1.NUM_ECRO_COU&#93;) = ATF_EXPERTISE_1.DAT_EXPERTISE
    It is working but should i choose another way to do that ?
    subsidiary question : does BODI use Oracle analytical function to perform that ?
    Thanks in advance
    +

    Hi jimmy5495,
    According to your description, it seems like you don’t know how to correctly use Lookup function. Based on my research, Lookup function is not supported to be used in a single textbox that means outside Data Grid with multiple datasets environment. Because
    in a single textbox with multiple datasets environment, it only supports Aggregate functions when we want to use fields in it. While Aggregate functions are not allowed inside the Destination or Result expressions of a Lookup function.
    We can add the expression in a table textbox in the design surface, then delete the other cells. While if we want to add this expression in page header, since page header can only contain static items, I think we could achieve this goal in current release
    of Reporting Services.
    References:
    Aggregate Functions Reference (Report Builder and SSRS)
    Page Headers and Footers (Report Builder and SSRS)
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Need Method to Look Up Prices from a 8 X 7 Grid for BW Query Key Figures

    Hello.
    I have Material Groups that have various costs associated with them in the format of an 8 X 7 Excel Grid.
    Rows:
    Shipping
    Packaging
    Labor
    Etc.
    Columns:
    Cost if sales were above 10,000 per month.
    Cost if sales were above 15,000 per month.
    Cost if sales were above 20,000 per month.
    etc.
    I need to figure out a way to have a BW Query lookup the price from the row and column based on the monthly volumes.  (kind of like a VLOOKUP and an HLOOKUP in Excel).
    I thought about simply creating Key Figures for every possible combination, but I would've ended up with 56+ key figures on my ODS object.
    Does anybody have a suggestion for me to do this in a cleaner manner?
    Thanks.

    Hi kenneth,
    If i've understood ur prob correctly than you can use the conditions function in the query...create separate conditions for your criteria and display the output ....
    Ajay

Maybe you are looking for

  • ITunes launched with Error 13005

    Hi, I don't know if anyone has come across this problem before.  I have been using my iTunes library on an external drive so that I can use it between my Mac Pro and my MacBook Pro.  Both macs have Lion 10.7.3 and iTunes 10.5.3. Today my iTunes has b

  • XI: new termonologies in Integration Repository "operation" "action"

    Hi Friends, Can anyone tell me how new concepts within integration repository like "actions" "operation" are mapped to old way of "message interface" etc. Thanks in advance, Regards, Ujwal

  • Sending purchase order by email to vendor

    hi what conf steps required for sending purchase order by email to vendor and internal users? rgds sara

  • Hide table row delete button

    I have a table with row 1 visible and row 2 that appears when the "Add a New Row" button is clicked. If the user clicks the "Delete Last Row" button, the last row is deleted. I want the "Delete Last Row" button  to only be visible when there is more

  • Can you limit returned rows in a loop?

    Say you have 45 line elements in an invoice, how would you only show 15 per page? I tried fixing a row height, but the loop just bust right though that. Is there a way to limit how many are returned? Thanks, Jeremy