CMR filed returing empty collection

Hi, everybody!
I'm experimenting with EJB CMPs using Orion as Persistence manager and MySQL as database. I've made a simple one-to-many relationship with two tables, automatically created CMPs with Local interfaces with the relationship. Everything works fine, I can select the beans, access attributes...
Except, when I call the bean from the parent table to select the related entries in the child table, I get an empty collection. To be precise, the collection.size() states the correct number of child entries, but the iterator is empty, I'm not able to iterate over the children:(
Please help,
Igor

Hi there.. I have the same problem!! and I'm looking for a solution ??
I just want to tell you if one of us find it he will give the hand..
Okey dear!!!
Tahnks,

Similar Messages

  • Empty Collections and Empty Tags

    It seems that empty collections from a cast or cursor result in an empty tag. For example, the following sql:select work.work_id medlineid,
    cursor(
    select
    databankname,
    db.accessionnumberlist_ref.accessionnumberlist accessionnumberlist
    from table(dbl.databanks) db
    order by databankname) databanklist,
    cast( multiset (
    select chemical_t(
    wrkchm.cas_registry_number,
    wrkchm.term)
    from work_chemicals wrkchm
    where wrkchm.work_id=work.work_id
    order by wrkchm.term) as chemicals_t) chemicallist
    from
    works work,
    databanklist_t_v dbl
    where
    work.work_id = 96264942
    and work.work_id = dbl.work_id(+)results in the following XML:<medlinecitationset>
    <medlinecitation num="1">
    <medlineid>96264942</medlineid>
    <databanklist/>
    <chemicallist/>
    </medlinecitation>
    </medlinecitationset>Is there a way to not have these empty tags appear?
    Thanks! -- John.
    null

    David, this is about understanding the use of, and differencies between tags and collections. This is a bit hard for many new users.
    First of all searching for collections and tags can *not* be done simultaneously. You can either work with one collection only, or you can search for pictures with one or more tags.
    Next collections should be used as either temporary work sets or for special occasions like specific vacations, trips or birthdays, e.g. "Anna 5 years". You say you have a collection named "Churches". I think would have made a TAG called "Churches" instead, because a tag is for general searches that can be combined. On the other hand I might have made a collection called "Church visits July 2005" or "Summer vacation 2005" or the like.
    Another difference is that pictures in a collection can be sorted manually by drag & drop, while pictures found via tags always are shown in the order chosen in the Photo Browser Arrangement box shown bottom left in the Organizer.

  • Webapps tag - filters "lastclassified" and "randomclassified" producing empty collections

    When using the {module_webapps} tag, the filters "lastclassified" and "randomclassified" producing empty collections. "all" and "lastest" are working OK.
    Example code:
    {module_webapps id="Member Directory" filter="lastclassified" itemid="Featured" template="" resultsPerPage="4" collection="members"}
    {module_webapps id="Member Directory" filter="randomclassified" itemid="Featured" template="" resultsPerPage="4" collection="members2"}
    {module_webapps id="Member Directory" filter="latest" itemid="Featured" template="" resultsPerPage="4" collection="members3"}
    <pre><code>{{ this.members | json }}</code></pre>
    <pre><code>{{ this.members2 | json }}</code></pre>
    <pre><code>{{ this.members3 | json }}</code></pre>
    Produces this output.
      "moduleName": "webapps",
      "moduleDescriptor": {
        "templatePath": "",
        "parameters": "id=\"Member Directory\",filter=\"lastclassified\",itemid=\"Featured\",resultsPerPage=\"4\",template=\"\",collection=\"members\"",
        "apiEndpoint": "/api/v3/webapps",
        "objectType": "34",
        "objectId": "-1",
        "adminUrl": "/Admin/CustomContent_ItemList.aspx?CustomContentID=-1"
      "moduleName": "webapps",
      "moduleDescriptor": {
        "templatePath": "",
        "parameters": "id=\"Member Directory\",filter=\"randomclassified\",itemid=\"Featured\",resultsPerPage=\"4\",template=\"\",collection=\"members2\"",
        "apiEndpoint": "/api/v3/webapps",
        "objectType": "34",
        "objectId": "-1",
        "adminUrl": "/Admin/CustomContent_ItemList.aspx?CustomContentID=-1"
      "moduleName": "webapps",
      "moduleDescriptor": {
        "templatePath": "/Layouts/WebApps/Member Directory/list.html",
        "parameters": "id=\"Member Directory\",filter=\"latest\",itemid=\"Featured\",resultsPerPage=\"4\",template=\"\",collection=\"members3\"",
        "apiEndpoint": "/api/v3/webapps",
        "objectType": "34",
        "objectId": "-1",
        "adminUrl": "/Admin/CustomContent_ItemList.aspx?CustomContentID=-1"
      "editableFieldTypes": {
        "description": "Html",
        "itemid": "Id",
        "name": "Text",
        "url": "Text",
        "releaseDate": "Date",
        "expiryDate": "Date",
        "lastUpdateDate": "Date",
        "weight": "Number"
      "items": [
          "description": "\r\n",
          "itemid": "4943789",
          "name": "Donec Elit",
          "urlWithHost": "http://law-australasia.boswebsystems.com/member-directory/donec-elit",
          "url": "/member-directory/donec-elit",
          "releaseDate": "2014-10-08",
          "releaseDate_raw": "7/10/2014 11:00:00 PM",
          "expiryDate": "9999-01-01",
          "expiryDate_raw": "1/01/9999 12:00:00 AM",
          "lastUpdateDate": "2014-10-08",
          "lastUpdateDate_raw": "8/10/2014 12:10:08 PM",
          "counter": "1",
          "weight": "",
          "Member First Name": "",
          "Member Surname": "",
          "Title": "Director, R & D Talent",
          "Firm_id": "4929417",
          "Firm": "Andersons Solicitors",
          "State": "",
          "Email": "",
          "Direct Phone": "",
          "Mobile Number": "",
          "Areas of Law Practiced": "",
          "Areas of Law Interested In": "",
          "LinkedIn Profile": "",
          "Twitter Profile": "",
          "Google+ Profile": "",
          "Accredited Specialist": "0",
          "Accreditations": "",
          "Dietary Requirements": "",
          "DOB": "",
          "Special Interest Groups": "",
          "Tagline": "Donec id elit non mi porta gravida at eget metus. Fusce dapibus, justo sit amet risus etiam porta sem...",
          "isloggedin_11": {
            "moduleName": "isloggedin",
            "moduleDescriptor": {
              "templatePath": "",
              "parameters": "",
              "apiEndpoint": "/api/v3/isloggedin",
              "objectType": "-1",
              "objectId": "-1",
              "adminUrl": ""
            "isLoggedIn": "0"
          "description": "\r\n",
          "itemid": "4943785",
          "name": "Jack Bour",
          "urlWithHost": "http://law-australasia.boswebsystems.com/member-directory/jack-bour",
          "url": "/member-directory/jack-bour",
          "releaseDate": "2014-10-08",
          "releaseDate_raw": "7/10/2014 11:00:00 PM",
          "expiryDate": "9999-01-01",
          "expiryDate_raw": "1/01/9999 12:00:00 AM",
          "lastUpdateDate": "2014-10-08",
          "lastUpdateDate_raw": "8/10/2014 12:08:15 PM",
          "counter": "2",
          "weight": "",
          "Member First Name": "Jack",
          "Member Surname": "Bour",
          "Title": "Chief Executive Officer",
          "Firm_id": "4929396",
          "Firm": "Steele & Co",
          "State": "NSW",
          "Email": "",
          "Direct Phone": "",
          "Mobile Number": "",
          "Areas of Law Practiced": "",
          "Areas of Law Interested In": "",
          "LinkedIn Profile": "",
          "Twitter Profile": "",
          "Google+ Profile": "",
          "Accredited Specialist": "0",
          "Accreditations": "",
          "Dietary Requirements": "",
          "DOB": "",
          "Special Interest Groups": "",
          "Tagline": "Donec id elit non mi porta gravida at eget metus. Fusce dapibus, justo sit amet risus etiam porta sem...",
          "isloggedin_12": {
            "moduleName": "isloggedin",
            "moduleDescriptor": {
              "templatePath": "",
              "parameters": "",
              "apiEndpoint": "/api/v3/isloggedin",
              "objectType": "-1",
              "objectId": "-1",
              "adminUrl": ""
            "isLoggedIn": "0"
          "description": "\r\n",
          "itemid": "4943787",
          "name": "Kate Metus",
          "urlWithHost": "http://law-australasia.boswebsystems.com/member-directory/kate-metus",
          "url": "/member-directory/kate-metus",
          "releaseDate": "2014-10-08",
          "releaseDate_raw": "7/10/2014 11:00:00 PM",
          "expiryDate": "9999-01-01",
          "expiryDate_raw": "1/01/9999 12:00:00 AM",
          "lastUpdateDate": "2014-10-08",
          "lastUpdateDate_raw": "8/10/2014 12:09:23 PM",
          "counter": "3",
          "weight": "",
          "Member First Name": "",
          "Member Surname": "",
          "Title": "Project Manager",
          "Firm_id": "4929417",
          "Firm": "Andersons Solicitors",
          "State": "",
          "Email": "",
          "Direct Phone": "",
          "Mobile Number": "",
          "Areas of Law Practiced": "",
          "Areas of Law Interested In": "",
          "LinkedIn Profile": "",
          "Twitter Profile": "",
          "Google+ Profile": "",
          "Accredited Specialist": "0",
          "Accreditations": "",
          "Dietary Requirements": "",
          "DOB": "",
          "Special Interest Groups": "",
          "Tagline": "Donec id elit non mi porta gravida at eget metus. Fusce dapibus, justo sit amet risus etiam porta sem...",
          "isloggedin_13": {
            "moduleName": "isloggedin",
            "moduleDescriptor": {
              "templatePath": "",
              "parameters": "",
              "apiEndpoint": "/api/v3/isloggedin",
              "objectType": "-1",
              "objectId": "-1",
              "adminUrl": ""
            "isLoggedIn": "0"
          "description": "\r\n",
          "itemid": "4943788",
          "name": "Porta Gravida",
          "urlWithHost": "http://law-australasia.boswebsystems.com/member-directory/porta-gravida",
          "url": "/member-directory/porta-gravida",
          "releaseDate": "2014-10-08",
          "releaseDate_raw": "7/10/2014 11:00:00 PM",
          "expiryDate": "9999-01-01",
          "expiryDate_raw": "1/01/9999 12:00:00 AM",
          "lastUpdateDate": "2014-10-08",
          "lastUpdateDate_raw": "8/10/2014 12:10:39 PM",
          "counter": "4",
          "weight": "",
          "Member First Name": "",
          "Member Surname": "",
          "Title": "VP of Operations",
          "Firm_id": "4929417",
          "Firm": "Andersons Solicitors",
          "State": "",
          "Email": "",
          "Direct Phone": "",
          "Mobile Number": "",
          "Areas of Law Practiced": "",
          "Areas of Law Interested In": "",
          "LinkedIn Profile": "",
          "Twitter Profile": "",
          "Google+ Profile": "",
          "Accredited Specialist": "0",
          "Accreditations": "",
          "Dietary Requirements": "",
          "DOB": "",
          "Special Interest Groups": "",
          "Tagline": "Donec id elit non mi porta gravida at eget metus. Fusce dapibus, justo sit amet risus etiam porta sem...",
          "isloggedin_14": {
            "moduleName": "isloggedin",
            "moduleDescriptor": {
              "templatePath": "",
              "parameters": "",
              "apiEndpoint": "/api/v3/isloggedin",
              "objectType": "-1",
              "objectId": "-1",
              "adminUrl": ""
            "isLoggedIn": "0"
      "pagination": {
        "currentPage": 1,
        "numberOfPages": 2,
        "previousPageUrl": "",
        "nextPageUrl": "/Default.aspx?PageID=13659684&A=WebApp&CCID=22594&Page=2&Items=4"

    Thanks! Will the documentation be updated to show this correct usage?
    Developer reference - Web Apps

  • Contains Queries on Empty Collections

    I'm running into the following problem when attempting a JDO query which
    uses the .contains() operator on multiple collections, where one of the
    collections is empty.
    My class contains two vectors, both of which contain strings. I want to run
    a query that returns all instances of TestClass that contain a certain
    string in one of the two lists. I have done roughly what is outlined below.
    1) The class looks like:
    public class TestClass
    private Vector _collection1;
    private Vector _collection2;
    2) The metadata in system.jdo looks like:
    <class name="TestClass">
    <field name="_collection1">
    <collection element-type="java.lang.String"/>
    </field>
    <field name="_collection2">
    <collection element-type="java.lang.String"/>
    </field>
    </class>
    3) I construct the query as follows:
    // pm is the existing persistence manager
    Query query = pm.newQuery();
    query.setClass( TestClass.class );
    query.setCandidates( pm.getExtent( TestClass.class, true ) );
    query.setFilter( "_collection1.contains( string ) ||
    _collection2.contains( string )" );
    query.declareParameters( "String string" );
    Collection results = (Collection) query.executeWithArray( new Object[]
    { "searchString" } );
    4) The resulting SQL query (for SQL/Server) looks like:
    SELECT DISTINCT
    t0.JDOIDX,
    t0.JDOCLASSX,
    t0.JDOLOCKX
    FROM
    TESTCLASS__COLLECTION2X t2,
    TESTCLASSX t0,
    TESTCLASS__COLLECTION1X t1
    WHERE
    t1.COLLECTION1X = 'searchString'
    OR (t2.COLLECTION2X = 'searchString')
    AND t0.JDOIDX = t1.JDOIDX
    AND t0.JDOIDX = t2.JDOIDX
    Suppose that the target string is located in the first collection of some
    instance of TestClass. Also suppose that there are no strings in the second
    collection. Under these circumstances, the query will not return this
    instance.
    Is there a way to work around this other than running two separate queries?
    Is this a bug or is this the expected behaviour?
    Any help on this is much appreciated.
    Regards,
    Sasha Haghani.

    Hi David,
    I've tried this approach as well and am now getting a different error.
    Using:
    1) query filter: "( _collection1.contains( var ) && var == param ) || (
    _collection2.contains( var ) && var == param )"
    2) parameter string: "String param"
    3) variable string: "String var"
    4) parameters: new Object[] { "value" }
    The following exception raised is:
    com.techtrader.modules.jdo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
    t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX FROM TESTCLASSX t0 WHERE variable =
    'value' OR (*variable* = 'value')] Line 1: Incorrect syntax near '*'.
    Severity 15, State 1 <rest of exception message omitted>
    at
    com.techtrader.modules.jdo.impl.jdbc.runtime.JDBCFieldData.load(JDBCFieldDat
    a.java:127)
    at
    com.techtrader.modules.jdo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuer
    y.java:33)
    at
    com.techtrader.modules.jdo.query.QueryImpl.executeWithMap(QueryImpl.java:330
    at
    com.techtrader.modules.jdo.query.QueryImpl.executeWithArray(QueryImpl.java:3
    93)
    As you can see from above, the generated SQL statement looks like:
    SELECT
    t0.JDOIDX,
    t0.JDOCLASSX,
    t0.JDOLOCKX
    FROM
    TESTCLASSX t0
    WHERE
    variable = 'value'
    OR (*variable* = 'value')
    Additionally, if I change the filter to "( (_collection1.contains( var )) &&
    (var == param) )", I get the following exception:
    com.techtrader.modules.jdo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
    t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX FROM TESTCLASSX t0 WHERE variable =
    'value'] Line 1: Incorrect syntax near '*'. Severity 15, State 1, <rest of
    exception message omitted>
    at
    com.techtrader.modules.jdo.impl.jdbc.runtime.JDBCFieldData.load(JDBCFieldDat
    a.java:127)
    at
    com.techtrader.modules.jdo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuer
    y.java:33)
    at
    com.techtrader.modules.jdo.query.QueryImpl.executeWithMap(QueryImpl.java:330
    at
    com.techtrader.modules.jdo.query.QueryImpl.executeWithArray(QueryImpl.java:3
    93)
    Again, the generated SQL looks like:
    SELECT
    t0.JDOIDX,
    t0.JDOCLASSX,
    t0.JDOLOCKX
    FROM
    TESTCLASSX t0
    WHERE
    variable = 'value'
    We are using multiple queries for now and aggregating the results by hand,
    so this issue isn't blocking us.
    Regards,
    Sasha Haghani.
    "David Ezzio" <[email protected]> wrote in message
    news:[email protected]...
    Hi Sasha,
    One thing that appears "unusual", if you will, about your queries
    is that you are using a parameter in the contains() method rather
    than a variable. The spec mentions a different usage pattern along
    the following lines: "collection.contains(string) && string ==
    strParam" where "strParam" is declared as the parameter, and
    "string" is declared as a variable. You may have already tried this
    as a variation. Your usage appears permitted as far as the spec
    goes, but may not have been tested for Kodo.
    David Ezzio
    Sasha Haghani wrote:
    Hi Patrick,
    I tried your workaround and the following exception was thrown:
    javax.jdo.JDOUserException: The given filter/ordering String "( (
    (_collection1.isEmpty() == false) && (_collection1.contains( string )) )
    ||
    ( (_collection2.isEmpty() == false) && (_collection2.contains(
    string )) ) )" is not valid. Make sure all parentheses are properlymatched
    and that the filter uses proper Java syntax.
    at
    com.techtrader.modules.jdo.query.QueryImpl.getExpression(QueryImpl.java:371)
    at
    com.techtrader.modules.jdo.impl.jdbc.runtime.JDBCQuery.getExpression(JDBCQue
    ry.java:49)
    at
    com.techtrader.modules.jdo.query.QueryImpl.executeWithMap(QueryImpl.java:312
    at
    com.techtrader.modules.jdo.query.QueryImpl.executeWithArray(QueryImpl.java:3
    93)
    I tried three variations on the parentheses used in the filterexpression.
    All yielded the same exception. I couldn't find any glaring errors or
    omissions in the query. The string parameter is also properly declared.Is
    this possibly another bug?
    I'm executing multiple individual queries to acheive my goal for thetime
    being. Let me know if I'm doing anything wrong or if these are bugs,let me
    know when they are fixed. Thanks much.
    Regards,
    Sasha Haghani.
    "Patrick Linskey" <[email protected]> wrote in message
    news:[email protected]...
    Sasha,
    This sounds like a bug. I will enter it into our database and get back
    to you later.
    Meanwhile, you may be able to work around it using something like
    query.setFilter (
    "(_collection1.isEmpty () == false && _collection1.contains(string))"
    + " || (_collection2.isEmpty () == false &&
    _collection2.contains
    (string))" );
    -Patrick Linskey

  • How does hibernate determine type of an empty collection elements?

    Consider we've got an instance of a class like this:
    @Entity
    class MyClass {
    @ManyToMany
    List<MyClass2> theList = new LinkedList<MyClass2>();
    public List<MyClass2> getTheList() { return theList; }
    public void setTheList( List<MyClass2> theList ) { this.theList = theList; }
    .. id and its getter and setter here ..
    As far as I know generic collection's type is erased after compilation. Therefore hibernate sees a raw-type collection in runtime. But it maps this many-to-many association from MyClass to MyClass2 correctly even if the list is empty. And in java persistence API documentation "targetEntity" property in @ManyToMany is optional also. It says "Default: the parameterized type of the Collection when defined using generics".
    So there should be another way to determine collection element's type in runtime. Could anybody explain it to me?

    The compiled class file still contains the information. Therefore you can get the generic type information for fields (using Field.getGenericType).
    Objects on the other hand, don't contain that information.

  • Problem with an empty collection

    When a procedure executes
    FOR i IN g_tabla_situacion.FIRST..g_tabla_situacion.LAST
    LOOP
    END LOOP;
    and g_tabla_situacion has no elements, ORACLE returns a
    "*-6502:ORA-06502: PL/SQL: numeric or value error*"
    How can I avoid this problem?
    Now I am doing...
    IF ( g_tabla_situacion.COUNT > 0 ) THEN
    FOR i IN g_tabla_situacion.FIRST..g_tabla_situacion.LAST
    LOOP
    END LOOP;
    END IF;
    but it doesn't seem the best solution...
    Thanks.
    Edited by: pacoKAS on 19-feb-2010 0:34

    pacoKAS wrote:
    I was thinking in a solution that forces g_tabla_situacion.LAST to be lower than g_tabla_situacion.FIRST when I load g_tabla_situacion with no registers....Not sure what you mean, but if your collection is not dense (as in only these indexes are present: 1 - 2- 5) you will get an exception. The method that I showed you will always work correctly, regardless if the collection is Sparse (containing gaps) or if the collection doesn't contain any entries.

  • Cmr filed . urgent help me

    hello
    I want CMR-FIELD to be the part of compound primary key class. How can i do this
    b/c compound primary key class only takes CMP-FIELD. please help, it is very
    much urgent.........
    i am using in j2ee with ejb2.0
    thanx
    sai

    You should just specify the field as cmp-field as usual then add the field in the cmr-field tag in the relationships portion of the deployment descriptor. There should be no problem with identifying relationships where the primary key is also a foreign key to another entity.

  • Trying to retrieve list of rooms using EWS Managed API but it returned empty collection

    Hi,
    I'm trying to retrieve list of rooms using EWS Managed API. Before I have tried the following code I make sure our Administrator put all the rooms in a list following  link https://technet.microsoft.com/en-us/library/ee633471%28v=exchg.141%29.aspx.
    Here is the simple code I have used :
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Microsoft.Exchange.WebServices.Data;
    using System.Net;
    using System.Security;
    namespace ExchangeConsole1
    class Program
    static void Main(string[] args)
    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
    service.Credentials = new NetworkCredential("username", "Password1", "domain");
    service.Url = new Uri("https://email.xxxx.com/ews/exchange.asmx");
    EmailMessage email = new EmailMessage(service);
    EmailAddressCollection listOfRoomList = service.GetRoomLists();
    // Display the individual rooms.
    foreach (EmailAddress address in listOfRoomList)
    Console.WriteLine("Email Address: {0}", address.Address);
    service.GetRoomLists() results "Enumeration yielded no results". Could anybody help me please ?
    Thanks
    Sandipan

    Enable tracing and see what the response from the server looks like. Also depending on your setup and how long ago your administrator created the list, it may take some
    time to replicate.
    Administrator has done it one week ago. Here is the trace response I am getting
    <Trace Tag="EwsResponse" Tid="9" Time="2015-04-10 15:36:37Z" Version="15.00.0847.030">
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header>
    <h:ServerVersionInfo MajorVersion="15" MinorVersion="0" MajorBuildNumber="995" MinorBuildNumber="31" Version="V2_15" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
    </s:Header>
    <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <m:GetRoomListsResponse ResponseClass="Success" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
    <m:ResponseCode>NoError</m:ResponseCode>
    <m:RoomLists />
    </m:GetRoomListsResponse>
    </s:Body>
    </s:Envelope>
    </Trace>
    It's say no error.  Any help ?
    Thanks
    Sandipan

  • How to pass empty PL/SQL collection?

    I can pass an array as PL/SQL associative array into PL/SQL procedure/block.
    It works perfectly.
    But i can't pass empty array (e.g. new decimal[] {} ) as value - exception raised:
    System.InvalidOperationException:
    "OracleParameter.Value is invalid"
    I can receive empty collection FROM pl/sql, but can i pass empty collection TO pl/sql?

    Unfortunately, there are no any suitable workaround for this problem in thread mentioned above.
    Workaround given by Greg in the thread:
    You can get around it in the meantime by using
    Param1.Value = new string[1]{null};
    Param1.Size=0;Why is that not suitable?
    - Mark

  • Put "Empty (as a verb) Collection" On Context Menu

    Sometimes I just want to emty a collection without changing the folder/collection I'm in. I vote for "Empty Collection" on the "right/ctrl-click" menu of "not-smart" collections.
    R

    Tony:
    What you say is true -- at least, the way you have said it.
    What "Thriller novelist' says is also true.
    I have agonized over having moved from 2007 to 2013 because of the loss of the old functionality.  The
    "...is still available..." portion of the AutoCorrect in the context menu takes a lot longer -- and usually at a time of literary inspiration, when I need to speed-up my keyboarding, not to retard it.
    You have taken away very desirable functionality by this ...er, simplification in the 2013 release.  In Outlook 2007 and Word 2007, my common keyboarding mistakes could be noted and I could add them quickly to the AutoCorrect list if
    I chose to.  Now, in 2013, I am losing untold hours of work when I must either slow down my keyboarding enough to prevent mistakes, or go back and make the now-slowed corrections. 
    Microsoft has dumbed-down the feature.
    I cannot provide a screenshot of the old context menu, because I no longer have Outlook/Word 2007.  Can't someone else at MS offer you a running Office 2007 edition, where you could watch how it works yourself?    
    Please restore the full former functionality of this feature.  Your response dated 4/13/14 should not be marked as The Answer.
    Thanks. 

  • Is there any order for objects in a relationship collection

    I am using two cmp ejbs A and B which are in a many to one relationship.
    This is like : Any Order has 0 to * OrderLines.
    For this my ejb A has a cmr fild of type Collection:
    public abstract Collection getBs();
    public abstract void setBs(Collection x);
    My question is if there is any way to indicate the position in which the related objects are saved in the collection.
    This is very important for me. Because I want to generate a view to the
    user for ejb A that should be allways in the same order.
    This is like:
    The view of the "order" should show the "orderLines" allways in the same positions: first orderline, 2nd orderline , 3rd orderlin,....
    And if the user replace the 2nd "orderLine" with an other orderline, next time the view should still show it in the 2nd position in the "order" page.
    If I use the following code:
    Collection x = getBs();
    x.add(someObject);
    It won't be in any specific position.
    I wanted to do the following:
    Collection x = getBs();
    Vector v = new Vector(x);
    v[anyPosition] = someObject;
    setBs(v);
    But then I read that I should never use the set method for a cmr field of type Collection! Because this will be done exclusively by the container!
    So what to do?????

    Hi sarkarati,
    As J2EE requires the usage of the Collection interface, the only way is to order the OrderLine by hand before display.
    Regards,
    -- markus.

  • How to remove target node if source field value is empty SAP PI Mapping

    Hello,
    how to remove target node if source field value is empty in graphical Mapping.
    Like if
    MIddle name in source filed is empty, I would like to eliminate target field from out put XML.
    Thank you
    John

    Hi Jhon,
    If you want to remove all empty tags and you dont to complicate your message mapping, you can use a XSL, after the message mapping,  to remove all the empty tags:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:template match="node()|@*">
            <xsl:copy>
                <xsl:apply-templates select="node()|@*"/>
            </xsl:copy>
        </xsl:template>
        <xsl:template match="*[not(@*|*|comment()|processing-instruction())
         and normalize-space()='' ]"/>
    </xsl:stylesheet>
    Regards

  • Finder methods that return collections (don't work)

    Hi all, this looks like an internal error, but I though Id ask incase there is a way around it.
    Im having some problems with entity java beans using jdeveloper and the internal j2ee server. The bean is deployed and runs, find by primary key and all other methods work except find by last name which returns a collection.
    I have experimented with the code, and stepped through with the debugger. The debugger doesn't find any errors or throw any exceptions. The method which it calims causes the error ejb find by last name does not throw an error and exits normally.
    Though experiments I have done I have found that the failure only occurs if the collection returned has elements. If and empty collection is returned then the error is not given. If null is returned then the same error is given with a null pointer exception at the start instead of class cast. I have tried serveral variations on this code and none seem to work. Im hoping this is a common bug and you can point me towards a solution.
    I have browsed your forum and searched your site, as well as the web for information on this bug but have not found any information.
    My OS is Linux Red Hat 8.0 and the version of JDeveloper is 9.0.2.8.2. I urgenly need assistance with this, it forms the basis for a final year degree project which needs to be submitted in 4 weeks.
    -- Error output --
    java.lang.ClassCastException: java.lang.Integer
         at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1530)
         at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1453)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:53)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
         at __Proxy0.findByLastName(Unknown Source)
         at SamplepodPackage.PatientClient.main(PatientClient.java:88)
    -- output ends --
    Thanks for your time
    Glenn Jenkins
    (Glamorgan University)

    I think I've figured it out. I checked my keywords and some of the keywords I used were unintentionally under another keyword, so it appears that smart collections useingn using child keywords will always include the parent keyword, even if that keyword isn't listed in the Keyword panel. When I moved the wrong children outside the existing parent, the Smart Collection worked properly. Now I have to figure out how the keywords unintentionally became children to other keywords.
    CPB
    CPB
    Craig P. Beyers
    703-626-3848 (m)

  • How to disply empty cell from a string using stringtokenizer class

    Hello All
    I had wriiten a small program to read the string and split the string into different tuples.When i had empty cell in string i am unable to display it. Can any body help me out pls?
    code given below
    import java.io.*;
    import java.util.StringTokenizer;
    class Tokenize {
    // Create BufferedReader class instance
    static InputStreamReader input = new InputStreamReader(System.in);
    static BufferedReader keyboardInput = new BufferedReader(input);
    static String record;
    /* Main method */
    public static void main(String[] args) throws IOException {
         //declare the string variables
         String text,delim,var,delimv,vname;
         String X = "x";
         int i = 1;
         //read the inputs from keyboard for variables and delimv
         System.out.print("What is your variable names? ");
    var = keyboardInput.readLine();
    System.out.println("variable are :" + var );
         System.out.print("What is your separator? ");
         delimv = keyboardInput.readLine();
         //read the inputs from keyboard for string and delim
    System.out.print("What is your String? ");
    text = keyboardInput.readLine();
    System.out.println("String is :" + text );
         System.out.print("What is your separator? ");
         delim = keyboardInput.readLine();
         //create the stringtokenizer class instance
         StringTokenizer vt = new StringTokenizer(var,delimv);
         StringTokenizer st = new StringTokenizer(text,delim);
         //print the nexttokens as long as tokens and variables are available
         while (vt.hasMoreTokens()) {
         while (st.hasMoreTokens()) {
         vname = vt.nextToken();
         //     if(st.nextElement() == X){
         // System.out.println("filed is empty");
         // System.out.println(vname + "= ");
         System.out.println(vname + "=" + st.nextToken());
                   //nextToken());
    Variables name : cat1,cat2,cat3,cat4,cat5,cat6,cat7,cat8,cat9,cat10,cat11
    String name : Produkten;Voor hem;;Funny Mask ;12.50;4.90;17.40;1-5 dagen;0;http://www.eroticastore.nl/ProductDetails.asp?ProductId=21733&ReferrerId=134;http://www.eroticastore.nl/ProductImages/thumb_3300000510.jpg
    Note : Empty cell is in between "Voor hem" and "Funny Mask"
    Thanks In advance,
    Murali

    When you post code, please use [code] and [/code] tags as described in Formatting Help on the message entry page. It makes it much easier to read.

  • Merging a collection into a table

    I have a table with some blank columns.
    I take all the data from the table in a collection and then process the data to fill those empty columns.
    Now i have the collection with all the valid data.
    Is it possible to cast this same collection into a table and merge it again into the original table?
    I am trying to do so, but there is an error saying "cant use local collection"...
    Any help on this would be appreciated.

    Thanks a lot for your suggestion.
    I would like to give you an elaborate process.
    I have a table ABC. Some columns of that table are empty. I need to get those filled using some other tables.
    Firstly, using a cursor I fetch the records in a collection say V_ABC.
    Now in a FOR loop, I am fetching the missing data from other tables for every record in the collection and setting it in the empty places in the collection V_ABC itself.
    So finally i have the collection V_ABC which has complete data.
    The FOR loop is now ended.
    Now i try to merge this V_ABC into tale ABC like this:
    MERGE INTO ABC abc
    USING TABLE(CAST(V_ABC AS TT_ABC)) z
    ON (abc.random_column_name = z.random_column_name)
    WHEN MATCHED THEN
    UPDATE
    SET abc.initially_empty_column = z.initially_empty_column
    The exact error is "Error: PLS-00642: local collection types not allowed in SQL statements".
    I am forced to use PL-SQL because of performance issues.
    Could you provide an alternate way?
    I guess one way would be to create another empty collection and EXTENDing it and creating a replica of V_ABC. Then probably it will allow me to merge. But i m not sure.

Maybe you are looking for

  • Can you hide individual names in a group email

    Hello there, I've trawled the discussion pages and cannot find this question, so I hope I'm not repeating it. I want to send an email via Mac Mail using the 'send to group' facility on the Mac Address book. However I want to send the email and hide t

  • API's to populate ZX tables, ap_invoice_lines & ap_invoice_distributions

    Hi, Right now we are in the process of upgrading our application from 11i to R12.1.3. During the procure to pay upgrade, We are facing a challenge in interfacing R12 Oracle Payables invoices with Vertex Q Series Tax. The existing vertex interface pro

  • I Tunes won't load videos

    hi all, My itunes will load and play quick time files and .m4v files but when you try and load a .avi or any other file type nothing happens. You go add file to library, selec file ans hit ok.. then nothing . nit doesn't apear under video's and there

  • Inserting text in iphoto

    As a windows switcher, I'm just starting to use the ilife suite. I made a slideshow using iphoto and inserted text. The problem is that the text is in a very small font and in the upper left hand corner of the slide. I can't figure out how to move th

  • B1i Dashboard message

    Hi, I installed the b1 integration server. If I start now the dashboard I got the message. Error: The requested dashboard does not exist. Dashboard: /com.sap.b1.dashboards/0010000100.sap_dashboard_001.dab001/default.html If this dashboard is newly im