Query returns list of objects with all fields = NULL

Hi there,
I must be doing something wrong. I have tried to query for all activities and all contacts using the code pattern shown below (for activities):
Activity_ServiceLocator serviceLocator = new Activity_ServiceLocator();
serviceLocator.setActivityEndpointAddress(config.get(CONFIG_KEY_URL) + ";jsessionid=" + sessionId);
ActivityQuery aq = new ActivityQuery();
ListOfActivityQuery laq = new ListOfActivityQuery();
laq.setActivity(aq);
ActivityQueryPage_Input aqpi = new ActivityQueryPage_Input();
aqpi.setListOfActivity(laq);
laq.setPagesize(new BigInteger("100"));
laq.setStartrownum(new BigInteger("0"));
ActivityQueryPage_Output aqpo = serviceLocator.getActivity().activityQueryPage(aqpi);
When I do getListOfActivity() from the ActivityQueryPage object, I get a non-empty list, however, when I loop over the list, it seems that all fields in all the objects are NULL. This, even though I have checked in the system that the activities (appointments) all contain fields with data.
As mentioned, when I try to query for all contacts using the exact same code pattern, I also get a non-empty list of (contact) objects with non-empty fields .. So, I guess I'm doing a simple mistake (since I have hundreds of contacts in my CRM system), but which?
Thx in advance

Okay, I partly found the answer myself. It appears that one has to explicitly set a (empty) query type for the fields that one wants returned from the query .. At least this appears to return the field value of the returned objects .. But is this really the correct way of doing it?
A few related questions;
1) What is the purpose of the UseChildAnd? I cannot read this from the documentation!
2) Is there any more documentation than the Oracle CRM On Demand Release 16? I would like to have some more documentation on
a) how to make a cross table query, e.g. across activities and contacts (for instance, give me all contact who have an appointment tomorrow), and
b) how to use the QueryType.
Any references to something that can enlighten me? :-)

Similar Messages

  • Table maint genertr inserting multiple rows with all fields editable

    Hi
    I have created a ztable in se11 and maintained table maintenance generator SM30.
    Now i need to insert multiple rows into the table with all fields editable.
    How can i achieve this?
    Thanks in advance.

    >
    deepak thimmegowda wrote:
    > Hi
    >
    > I have created a ztable in se11 and maintained table maintenance generator SM30.
    >
    > Now i need to insert multiple rows into the table with all fields editable.
    >
    > How can i achieve this?
    >
    > Thanks in advance.
    Create a Table maintenance generator with One Step .
    regards,
    Jinson.

  • Duplicate Purchase Order with all fields.

    Hi,
    I need a method to Duplicate a Purchase Order with ALL the fields. I tryed with a SendKey("^D") method but the new instance not copy the IC data. Looking for a better method, I read about the option to Save as XML the selected purchase, but I don't know what is the procedure to load the "clone instance" stored in the XML into the SBO Form with a new DocEntry.
    Anyone knows the better path to do this?
    Thanks in advance.
    Oscar Sanchez Montaner

    Hi Oscar,
    The XML method is fine. You export the original PO to an XML file. You can then use XSLT or a .NET XMLDataDocument object (or similar method if you are using another development environment) to remove the values in the DocNum, DocEntry and any other nodes you don't want to clone (eg DocDate). You can then load this back in to SBO using the GetBusinessObjectFromXML method of the Company object. Personally, I like the XSLT method because it's easy to do and very easy to amend without recompiling your addon (eg if you create new UDFs then you can quickly amend the XLST file to include or exclude these fields).
    Kind Regards,
    Owen

  • How do I print a list of albums with all Genres? Skips the classical albums. ?

    How do I print a list of all albums and all genres? Itunes skipped Classical albums.

    Well, this is not only a way to print a list with all genres but also a list with all type of genre used in your iTunes library.
    I found a crazy way, but it works. Export a list of all you music sorted by genre (with genre included as one of the columns) and save all as a text file > File > Library > Export List > Tipe: text file
    Open Excel - drag drop text file into excel. [FROM HERE YOU CAN PRINT ALL YOUR MUSIC LIST] - click once in the upper left square before column A and over line 1 and now click twice a little bit before the end of column A (the pointer changes like a cross) to adjust all cell width.
    NOW TO MAKE A GENRE LIST
    Find the genre column > select the column
    copy it and in a new sheet paste only this column in A1 ... Annn cells.
    Now select the first cell (A1) and go to Data > Remove Duplicated > (if you wish select "my data has a header")
    click OK
    Now what stays in the column is only one name for each genre.
    That's it (sorry my english, but I'm brazilian)

  • Downloaded Global Address List does not download all fields

    I have my Global Address List from the Exchange Server linked into an Access 2003 database. (Will not link to Access 2007, 2010 format).  There is one field (TITLE) that appears in the structure of the linked table but the data for that field is not
    downloaded.  When I look at the Global Address List in Outlook, the TITLE field is populated with the appropriate data.  How can I get the data from the TITLE field into the Access linked table?

    Hi Kay_some,
    >>I have my Global Address List from the Exchange Server linked into an Access 2003 database. (Will not link to Access 2007, 2010 format). There is one field (TITLE) that appears in the structure of the linked table but the data for that field
    is not downloaded. <<
    If I understood correctly, the data of TITLE filed didn't download in Access 2003. Also as far as I tested, this field works well in Access 2013.
    Since the support and updates for Office 2003 is no longer available. Office 2003 products no longer receive the following:
    Assisted support
    Online content updates
    Software updates from Microsoft Update
    Security updates to help protect your PC from harmful viruses, spyware, and other malicious software, which can steal your personal information.
    To get more powfull experience about using Access, I suggest that you update it to the latest version.
    In addtion, this forum is for developers discussing developing issues about Access, if you have issues about end-user, you can get more effective response from
    Microsoft Office TechNet or
    Office Microsoft Commnity forum.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to print out document list items (and with all comments!)

    Hi all,
    I am wondering how to get a good printout of document lists.
    In a web application I have some document list items and the users are adding many comments in it, so that the document list item doenst show all in the initial view, but scroll buttons to navigate up and down.
    I was surprised to read that the standard print functionality doesnt support document items.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/68ce8391886e47e10000000a422035/content.htm
    How can I print out a list of all document list items with all comments?
    Ist there a workaround?
    thanks in advance for sharing your experiences, br, Michael

    Thanks guys for trying to help me...
    Gabriel, I not wanna do "a lot of trix" to get this out of iCal when it should be solved by iCal (from my point of view).
    Dancing Brook, Yes I hope we will see that in the future. I am convinced that there is many of us out there who want to see that function in iCal, even if they not really missed it yet.
    I have already sent a request to iCal feedback (hope they noted). Maybe they will if we are many doing so...

  • Where get the Version trials Business Object with all your components?

    How get the version trial the Business Object Enterprise XI 3.1 or the ultimate version, I need with all components for example: Business View manage, Desinger, Central cofiguration manager, Desktop Web Intelligence, Universe Builder, etc.

    You need to login to SAP Service Market Place (SMP) and visit the download section i.e https://service.sap.com/swdc
    Once there you need to navigate to Installations and Upgrades > SAP BusinessObjects portfolio  > SAP BusinessObjects Business Intelligence platform (SBOP Enterprise) > BOBJ ENTERPRISE XI 3.1 > Installation > Choose OS platform > SBOP ENTER SERVER XI 3.1 SP3 WINDOWS > Download all three parts.
    Similarly, you can obtain temp license key from https://service.sap.com/licensekey
    Thanks

  • Refresh a query driven list based on a search field

    I have a text field in a control block that I am using as a search criteria.
    I have another list whose source query is based on the previously mentioned text field's value.
    As I am typing in the text field, I want the list to update based on what I have typed.
    For example, as I type ORACLE, the list would show all O records, then OR records, then ORA records, then ORAC records, and so on and so on.
    I have been unable to find when/where the trigger exists that will allow me to do this.
    Can anyone help?

    Hello nameless,
    first: do not use timers, because they have a negative influence on the performance.
    use a pre-query trigger in which you check the value of your text field. In this trigger you can set the block property WHERE of the block to be queried like: "column_name LIKE '%'||:block_name.item_name||'%'
    with this all records containing the text in your text item will be shown. You could also add a radio button with three values: Starts with, Contains, Ends with. When you implement the functionality like this, the USER controls what happens and not the programme.
    greetz,
    Hans

  • Query for listing several values in same field

    Hi,
    is there a function for listing more than one value in the same field, only with comma seperation?
    For example, I want to group by cardcode from ORDR and list all docnum's like this:
    Cardcode    Docnum's
    21355          98765, 95498, 95164
    21564          95484, 54684, 95654, 98465
    21865          95484, 12486
    Kind regards
    Kjetil Sandvik

    HI,
    Thank for your replies.
    We need to update all old orders for sure, but my idea was to use this query:
    Select CardCode, COUNT(Address2) From ORDR Where Docstatus <> 'C' GROUP BY address2, cardcode order by cardcode, address2
    The results will give me two lines for each customer and count the addresses, so then I know that the count of one of the lines must me changed. Let's say there is 20 orders with new address and 20 orders with old address, my intention was to manually change the 20 orders that is old. Instead of checking all 40, It would help alot to list all order numbers in a column beside in the query.
    BR
    Kjetil

  • Jpa native query returns only first character of a field

    Hi,
    I've a JPA native query that returns two fields from my oracle database. The first field is a CHAR(2) field with two char values in it, like 'OZ' etc.
    The problem is, as soon as the query is executed it returns only first character of field1. If the actual value of field1 is like 'OZ' then it returns only 'Z'.
    Query nativeQueryForProfileInfo = getManager().createNativeQuery(queryToRun);
    List list = nativeQueryForProfileInfo.getResultList();
    Please help,
    thanks

    There could be several explanations here and it's difficult to say without having more details, possibilities are
    There is something wrong with your display logic.
    There is something wrong with your mapping.

  • Query on getting the Pane with all the items for creating Views

    Hi Group,
    I have a query as under:
    I was trying to create a sample Web Dynpro ( for ABAP ) using tcode SE80 and while creating view, I have to get the Pane with the items ( eg., Radio element, text fields, text areas, etc., kind of all UI Elements )....
    But, I was not able to get while defining the View for the Web Dynpro application....
    Please let me know if any setting has to be done to get this or any other clue as to get this Pane...
    Thanks in advance.
    Regards,
    Vishnu.

    hi vishnu....
            make sure you have given the host and port in the local host file in c:/.
    [link|help.sap.com/saphelp_erp2005/helpdata/en/43/e86de5008b4d9ae10000000a155369/content.htm ].
    ---regards,
       alex b justin

  • Return List of object from web service

    Hi to all.
    I have a java class which returns an array of ojects (custom objects).
    With jdeveloper tool i would like to create a ws around my class, but i receive this message:
    Method getUsers: The following JavaBean parameters have property descriptors using types that do not have an XML Schema mapping and/or serializer specified:
    Code is the following:
    public class GETUSERS
      //Costruttore di default
      public GETUSERS(){}
      public UserProfile[] getUsers(String LastName,String Name)
        CallableStatement proc = null;
        ResultSet rs = null;
        UserProfile users[]  = null;
        int cont=0;
        try
          Connessione connessione = new Connessione();
          Connection conn = connessione.getJNDIConnection();
          if (conn != null )
          proc = conn.prepareCall("{call procedure(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) }");
          //Cursore di output
          proc.registerOutParameter(1, oracle.jdbc.OracleTypes.CURSOR);
          proc.setInt(2,1);
          proc.setInt(3,100);
          proc.setString(4,null);
          proc.setString(5,LastName);
          proc.setString(6,Name);
          proc.setString(7,null);
          proc.setString(8,null);
          proc.setString(9,null);
          proc.setString(10,"n");
          proc.setString(11,null);
          proc.setString(12,null);
           proc.executeQuery();
           rs = (ResultSet)proc.getObject(1);
          rs.last();
          users= new UserProfile[rs.getRow()];
          rs.beforeFirst();
          while (rs.next())
           users[cont].setUID(rs.getString(1));
           users[cont].setName(rs.getString(2));
            cont++;
          rs.close();
          proc.close();
        catch(Exception ex)
        System.out.println(ex.getMessage());
        return users;
    }Any idea?
    Thanks

    Can you show the UserProfile.java ? That may have some variables, which are not supported in web services.

  • Report Query returning "No Data Found" with bind variables

    I put a simple query into Report Query:
    Select "bluefish". "name" as "name",
    "bluefish"."primary_flag" as "primary_flag",
    "bluefish"."status" as "status",
    "bluefish"."ID" as "ID" from "bluefish" "bluefish" where "bluefish"."ID" = :P3_XPRINTID
    When I test the query, data is returned; however, when I try to run the query using "Test Report" button, I get an error 01403 No Data Found. If I replace the bind variable with an explicit value, the report works.
    Anyone have any ideas as to what is causing this problem? I am using the Generic Report Layout, with various output types. I AM editting the query and defining the bind variable before I test the report (otherwise, the query wouldn't run).
    Charles

    Sometimes if you create a form/report/whatever using the wizards, it will create an After Submit process called something like Reset Page - basically you want to make sure you don't have any After Submit processes that call a Clear Session state (it may say something like Clear Cache for Page).
    In your branch, there is also a box that says Clear Cache - you want to make sure that does not have page Number 8 in it or it will clear your session state.
    Put the page in Debug mode and read through it - check to make sure your value is getting saved and maybe you can see what is going wrong.

  • R12 Payables: SQL Query to List Invoices along with their Validation Status

    Hi All,
    I am looking for a SQL query that gives me the list of all AP Invoices and their Validation Status.
    Thanks,
    Anil

    select invoice_id, invoice_num, invoice_amount, invoice_currency_code, approval_status_lookup_code from AP_INVOICES_V ;
    --Prasanna                                                                                                                                                                                                                                                                           

  • Content Query Web Part will not display all fields.

    I would love some assistance on this.  When I choose fields to display in the Web Part they do not appear.  And I should say the the article "How to: Display Custom Fields in a Content Query Web Part" on the Developer Network is
    a great start but it is only applicable to '07 and '10.  Where is the detailed info for SP 2013??

    Hi,
    According to your description, my understanding is that you want to display custom columns in Content Query web part in SharePoint 2013.
    Per my knowledge, the method for SharePoint 2013 to display custom columns in Content Query web part is the same with SharePoint 2010.
    The method in the link below is also can be used for SharePoint 2013:
    http://msdn.microsoft.com/en-us/library/ms497457(v=office.14).ASPX
    Do you encounter any issue when customizing in in a Content Query Web Part?
    Here are some links about customizing the ItemStyle.xsl to display custom columns in Content Query web part in SharePoint 2013 for you to take a look:
    http://prafulgoyal.blogspot.in/2013/04/sharepoint-content-query-webpart-oob.html
    http://social.msdn.microsoft.com/Forums/en-US/49739730-47c1-43df-9d0e-ad506e6ca31b/display-multiple-columns-in-content-query-webpart
    http://social.msdn.microsoft.com/Forums/en-US/1484df2b-0fb9-4b58-b833-a75019db88c7/content-query-display-multiple-columns?forum=sharepointgeneral
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • Messy Push Notifications on iPhone 4 running iOS 6.0.1

    Well guys, I have an iPhone 4 running iOS 6.0.1. Initially push notifications for all apps worked fine. I never missed a notification on any of the apps especially Facebook. I even got every notification about friends and pages I have liked on facebo

  • Programs Quitting

    So I just got my computer back from applecare, they put a new logicboard in... Now I am all excited to get it back and now no matter what program I use on my computer it suddently quits all the time... I have tried repairing permissions, restarting,

  • Weird BC4J HTML error -- method not found

    Hey all, I'm getting a strange new error, and I don't think I even changed anything since the last build. We're using BC4J in a "proof of concept" capacity right now, and I have a fairly simple page that was working fine yesterday. It's a browse form

  • Can I achive valueChangeListener in af:query?

    I've a multi-select component and it is is giving severe performance issue while deselecting from a larger selection. I'm curious to know if I could register/listen to valueChangeListener for af:query attributes? Appreciate any help or pointers!

  • Replacement of special chacters

    Hi. I'm trying to replace special characters in a string but I must be doing something wrong. I've tried : select replace(chr(248), chr(248), chr(195)||chr(184)) from dual and get a null-value back I've also tried to replace on a 'proper' column. But