How to find no of docs in a library using RIDC

Hi ,
I want to generate a report which will give the result like"
"No of documents uploaded in a particular library for the month of january"
How can i achieve it using RIDC.
Thanks,
Chely

My code is below,
It is not giving the docs within the "ESD" libray only.sometimes it is showing sockettimeout exception
public static void main(String[] args)
     try{
     final IdcClientManager idcManager = new IdcClientManager();
     final IdcClient idcClient = idcManager.createClient("http://172.20.90.172:16200/cs/idcplg");
     final IdcContext idcContext = new IdcContext("cbohra001c", "Feb2013#");
     final DataBinder binder = idcClient.createBinder();
     // populate the binder with the parameter
     String vars="ESD";
     binder.putLocal ("IdcService", "GET_SEARCH_RESULTS");
binder.putLocal("QueryText","dSecurityGroup <substring> <qsch>"+vars+"</qsch>");
binder.putLocal("ResultCount", "10");
     // execute the request
     ServiceResponse response = idcClient.sendRequest (idcContext, binder);
     // get the binder
     DataBinder serverBinder = response.getResponseAsBinder ();
     DataResultSet resultSet = serverBinder.getResultSet ("SearchResults");
     // loop over the results
     for (DataObject dataObject : resultSet.getRows ()) {
          System.out.println ("Title is: " + dataObject.get ("dDocTitle"));
          System.out.println ("Author is: " + dataObject.get ("dDocAuthor"));          
          System.out.println ("SG is: " + dataObject.get ("dSecurityGroup"));
     catch (Exception ex) {
ex.printStackTrace();}
Edited by: Chely on Feb 26, 2013 11:53 PM

Similar Messages

  • HT201301 how about the Chinese language doc. Able to use with the My Lyric Book program?

    how about the Chinese language doc. Able to use with the My Lyric Book program?

    I'm not sure where you see that the links I gave suggested that. The iPhoto link (quoted below) in step 4 suggests dragging the library to the new location. You can do that in Finder by dragging the library to the external disk in the Finder sidebar. If you don't have a sidebar in Finder, go to the Finder View menu and click Show Sidebar. If the external disk isn't visible in the sidebar, go to the Finder Preferences, click Sidebar at the top of the Preferences window, and put a checkmark in front of External disks in the Devices section.
    You can move your entire iPhoto library to a different computer, a hard disk, or another location on your computer.
    Important:    Before you move your iPhoto library, it’s a good idea to back it up to a DVD or external hard disk.
    Move your iPhoto library
    If you’ve created multiple photo libraries, be sure to move only the library currently displayed when iPhoto is open. To move a different library, you first need to switch to it.
    Quit iPhoto.
    In the Finder, choose your home folder (it’s usually named after you).
    Open the Pictures folder (in the home folder) to locate the iPhoto Library file.
    Drag the iPhoto Library file to a new location on your computer.
    Open iPhoto.
    In the window that appears, select the library you want, and then click Choose.

  • How to find out which sequence a certain column used?

    you konw column C in table T is created by a sequence.
    How to find out which sequence column C is using?

    In the meantime I think it ought to becompulsory to
    only assign sequence values in triggers.
    Why? I can see no good reason for this. I think it's a good idea to have stuff like this
    coded in only one placeI don't like your argument for compulsory using triggers for sequences for exactly the same reason as you, ie that I like to keep my code in one place. If I'm reading some pl/sql code which uses a sequence I like to see the fact that the sequence is used in the pl/sql code, rather than to check to see if theres a trigger on the table and then see which sequence that uses.
    "naming conventions can work, provided they're enforced. Alas, like other standards, they can only be enforced by active policing".
    Thats what code reviews are.
    " there is also the special case of one sequence populating more than one table...."
    This is My Pet hate. I don't think there's ever a case where this is absolutely necessary. Again code reviews
    Unfortunately I have to live with a system which does this.
    and I appreciate we can't all have code reviews, etc.

  • How to find number of files in a folder using pl/sql

    please someone guide as to how to find number of files in a folder using pl/sql
    Regards

    The Java option works well.
    -- results table that will contain a file list result
    create global temporary table directory_list
            directory       varchar2(1000),
            filename        varchar2(1000)
    on commit preserve rows
    -- allowing public access to this temp table
    grant select, update, insert, delete on directory_list to public;
    create or replace public synonym directory_list for directory_list;
    -- creating the java proc that does the file listing
    create or replace and compile java source named "ListFiles" as
    import java.io.*;
    import java.sql.*;
    public class ListFiles
            public static void getList(String directory, String filter)
            throws SQLException
                    File path = new File( directory );
                    final String ExpressionFilter =  filter;
                    FilenameFilter fileFilter = new FilenameFilter() {
                            public boolean accept(File dir, String name) {
                                    if(name.equalsIgnoreCase(ExpressionFilter))
                                            return true;
                                    if(name.matches("." + ExpressionFilter))
                                            return true;
                                    return false;
                    String[] list = path.list(fileFilter);
                    String element;
                    for(int i = 0; i < list.length; i++)
                            element = list;
    #sql {
    insert
    into directory_list
    ( directory, filename )
    values
    ( :directory, :element )
    -- creating the PL/SQL wrapper for the java proc
    create or replace procedure ListFiles( cDirectory in varchar2, cFilter in varchar2 )
    as language java
    name 'ListFiles.getList( java.lang.String, java.lang.String )';
    -- punching a hole in the Java VM that allows access to the server's file
    -- systems from inside the Oracle JVM (these also allows executing command
    -- line and external programs)
    -- NOTE: this hole MUST be secured using proper Oracle security (e.g. AUTHID
    -- DEFINER PL/SQL code that is trusted)
    declare
    SCHEMA varchar2(30) := USER;
    begin
    dbms_java.grant_permission(
    SCHEMA,
    'SYS:java.io.FilePermission',
    '<<ALL FILES>>',
    'execute, read, write, delete'
    dbms_java.grant_permission(
    SCHEMA,
    'SYS:java.lang.RuntimePermission',
    'writeFileDescriptor',
    dbms_java.grant_permission(
    SCHEMA,
    'SYS:java.lang.RuntimePermission',
    'readFileDescriptor',
    commit;
    end;
    To use:
    SQL> exec ListFiles('/tmp', '*.log' );
    PL/SQL procedure successfully completed.
    SQL> select * from directory_list;
    DIRECTORY FILENAME
    /tmp X11_newfonts.log
    /tmp ipv6agt.crashlog
    /tmp dtappint.log
    /tmp Core.sd-log
    /tmp core_intg.sd-log
    /tmp da.sd-log
    /tmp dhcpclient.log
    /tmp oracle8.sd-log
    /tmp cc.sd-log
    /tmp oms.log
    /tmp OmniBack.sd-log
    /tmp DPISInstall.sd-log
    12 rows selected.
    SQL>

  • How to find the font and replace another font using javascript in illustrator?

    Dear All,
    how to find the font and replace another font using javascript [batch process] in illustrator?
    i have 700 image file, it very deficult replace one by one.
    regards,
    .Suresh.S

    Ask the creator of the file for a unprotected version.

  • How to find sales order no., purchase order no. using sales order ID,PO ID

    hi,
    how to find sales order no., purchase order no. using sales order ID,PO ID
    Thank you,
    hari om

    Dear Hari Om,
    Could you please tell me, to what are you referring Sales Order ID and P.O. ID?
    meanwhile check with:
    T. Code: SE16
    Table: VBKD
    Execute (F8) the Report.
    On to next Screen, Go to Menu-bar
    Settings --> Format_Lists --> Choose Fields
    Field: VBELN - Sales Order
    Field: BSTKD - Purchase Order No.
    Best Regards,
    Amit

  • How to find out locations whether it is in use or not in use

    Hi All,
    I want to delete all unused locations from my FDM application. Can you please help me, how to find the locations that are not in use?
    Regards,
    PB

    You can view the tdataseg(x) table that the location is associated with and sort by period key as needed.
    Select PartitionKey,Part Name,Partsegmentkey
    from tpovpartiton
    This will return the location, location id and segment key.  The segment key is the data segment that the location is associated with.
    You can then query this table and sorty by period key to see what periods the location has data imported for.
    This should give you an idea and you can then delete your locations from within the Metadata > Locations Menu in FDM.
    Keep in mind that once the location is deleted, and data associated with the location will also be deleted (Historical Data)
    Hope that answers your question.

  • How to find out the script for the table using SQL

    Hi,
    Could any one tell me that how to find out the script for the table using SQL.
    Thanks,
    kamal

    Kamal,
    You can find the SQL query in Advanced tab of Answers
    Thanks,
    Balaa...

  • HT3986 how to find out serial no. of imac while using windows 7

    how to find out serial no. of imac while using windows 7

    In Windows open up the Command Prompt and type the following:
    c:> wmic bios get serialnumber

  • How to find which version of JDK is loadjava using

    Hi All,
    How to find which version of JDK is loadjava using?
    I am using Oracle : 9.0.1.5.1 and I need to use class javax.crypto.Cipher which is shipped with JDK 1.4.2, but loadjava is unable to import javax.crypto.*;
    Any inputs would be greatly appreciated.
    Thanks and regards,
    Abba

    Abba,
    From memory only (since I haven't verified it), "loadjava" is a script, so you can have a look at its contents. I believe it actually uses JDK 1.1.8 (which is part of the Oracle installation). In any case, Oracle 9i is compatible with JDK 1.3 only.
    Oracle 10g is compatible with JDK 1.4.
    Good Luck,
    Avi.

  • How check page level permission on SharePoint pages library using JSOM

    Hi,
    Can anyone tell me how check page level permission on SharePoint pages library using JSOM.
    Tanks in advance .
    Regards,
    Hari
    Regards, Hari

    Hi,
    According to your post, my understanding is that you want to check the page level permission on SharePoint Pages library via JSOM.
    I have made a simple code demo to check whether current user has edit permission for the pages in Pages library, it works like a charm.
    You can re-write it to fit your environment.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    var web;
    var list;
    $(function(){
    $("#Button1").click(function()
    console.log(1);
    getListItems('Pages',success_Items,error_Items);
    console.log(2);
    function getListItems(listTitle,success,error)
    var context = SP.ClientContext.get_current();
    this.web = context.get_web();
    this.list = context.get_web().get_lists().getByTitle(listTitle);
    this.items = list.getItems(SP.CamlQuery.createAllItemsQuery());
    this._currentUser = web.get_currentUser();
    context.load(this._currentUser);
    context.load(web,'EffectiveBasePermissions');
    context.load(items);
    context.executeQueryAsync(
    function() {
    success(items);
    error
    function success_Items(items){
    var e = items.getEnumerator();
    while (e.moveNext()) {
    this.item = e.get_current();
    console.log(this.item.get_item('FileLeafRef')); //print File or Folder Name
    console.log(this.item.get_item('FileRef')); //print File or Folder Url
    if (this.web.get_effectiveBasePermissions().has(SP.PermissionKind.editListItems)) {
    console.log('Nice, edit list item permissions!');
    else {
    console.log('Boo, no edit list item permissions!');
    function error_Items(sender,args){
    console.log(args.get_message());
    </script>
    <input id="Button1" type="button" value="Check Permissions"/>
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to find all Billing Doc fields(SAP / customer) for IDOC ?

    Hi all,
    I need to send customer billing information with all billing document fields by idoc,
    the question is, we have a lot customer defined fields in billing doc, so that i  cannot just use standard iDOC types,
    can anybody tell me a easy way to find all billing doc related fields and put it in iDOC type?
    Thanks & Best Regards,

    Hi,
    try the table ROOSOURCE and search the data source with string in astrick attr  for master data and for text with text
    This will give you the list of all the master data source in the system and it contains a column which tells about the extract structure and function module used by each.
    Thanks
    Ajeet

  • How to find out FICO user exits that are used by User

    How to find out the FICO user exits that are used by user.

    Go to tcode CMOD. In the project field drop down your list there. Put a Z* there and run the list. These should be all the exits that are activated. Search for the ones that pertain to FI. You can also search by development class. You need a little ABAP knowledge to search easily. You get this by going to the tcode then to status then to the program then to the attributes. There you find the development class. Ie FBAS.
    pls assign points if helpful as a way to say thanks.

  • How to find a particular word in a file using java

    Program how to find a particular word in a file

    SirivaniG wrote:
    Program how to find a particular word in a fileOkay, I finished it. Now what?

  • User being removed from Domain Admins...how to find all servers his account is being used.

    We have a user that is being removed from IT (more like being forcefully demoted) and our owner still finds him valuable in other departments. My challenge is to find all servers that he may be using his account locally on (as a service or added to a local
    admin group). It hasn't happened yet, but we need to be prepared to say we know all the servers his account is on when the owner demotes him.
    I'm hoping someone has an approach to this that doesn't include going through tons of Event Viewer Security logs. We do have System Center Configuration Manager and Operations Manager 2012 w/ SP1, but the guy that is responsible for those is the guy we are removing
    and none of us are aware on how to use the possible tools that those have. If you feel that those would do the trick then please point me to a "how to" and I'll try to learn on the fly. Otherwise I'll take any other suggestions.
    ~Rick

    Hi Rick,
    Based on my research, you can filter events logs based on user name and event ID:
    Advanced XML filtering in the Windows Event Viewer
    http://blogs.technet.com/b/askds/archive/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer.aspx
    Best Regards,
    Amy

Maybe you are looking for

  • FB05 - trans to be processed and first line item PK for doc type

    Hi all, Me quite confused of the entry for the following document type in FB05 DG - cust credit memo DR - cust invoice SA- gl acc doc SB - gl acc posting KG - vdr credit memo DZ - customer payment Need the help to let me know for document type above,

  • Snow Leopard Mail - Bouncing Icon Rule Works Strangely

    With most applications, when the icon bounces, the bouncing is stopped once the function it was notifying you about has been taken care of. This is not the case with Snow Leopard Mail. When a Rule has been created to 'Bounce Icon in Dock', the icon k

  • Commission Report Query

    Hello All -- We use this Query below: SELECT 'Invoice' "Invoice/AR Credit Memo", T0.CardCode "BP Code", T0.CardName "Company", T2.State1, T0.DocDate,T0.DocNum, T0.DocTotal "Gross Amt", T0.TotalExpns "Freight/Svc Charge", (T0.DocTotal - T0.VatSum- T0.

  • Once the Add-on is loaded into SAP B1 it is genearting follwing the warning message

    Hi Experts , Once the Add-on is loaded into SAP B1 it is genearting follwing the warning message  is "Conversion from string """" to type 'Double' is not valid " Please find the attachment Thanks for the Support, Satish.

  • How to update library when creating book?

    G'day, We have started to create a 40-page book. We have imported new pictures into the library since starting to create the book. However, the library at the top of the screen (where we have been dragging pictures) is not updated with the newly-impo