How to create universe folder in BO XI via SDK

Hi all,
I'm just starting to use the BOXI SDK. I've used the sample to create new folders, it worked perfectly.
But now I would like to create new universe folders but I have no idea how to do it. Here is the sample to create a folder :
int addFolder (int parentFolderID, String folderName, String folderDescription, IInfoStore infoStore)
    int objectID = 0;
    try
     * Since folders are implemented using a plugin,
     * you will need the PluginManager to retrieve the folder plugin.
    IPluginMgr pluginMgr = infoStore.getPluginMgr();
     * Retrieve the Folder plugin by passing the plugin ProgID
     * to the PluginInfo property of the PluginManager.
    //IPluginInfo folderPlugin = pluginMgr.getPluginInfo("CrystalEnterprise.Folder");
    IPluginInfo folderPlugin = pluginMgr.getPluginInfo("CrystalEnterprise.Folder");
    // Create a new, empty InfoObject collection.
    IInfoObjects newInfoObjects = infoStore.newInfoObjectCollection();
     * Give the Folder plugin object to the Add method.  This
     * creates a new InfoObject based on the plugin type.
     * In this case, since the plugin is the folder plugin,
     * the object created is a folder object.
    newInfoObjects.add(folderPlugin);
       IInfoObject infoObject = (IInfoObject) newInfoObjects.get(0);
    // Specify the folder's details._ENDLOC   _
    infoObject.setTitle (folderName);
    infoObject.setDescription (folderDescription);
    objectID = infoObject.getID();
     * The next line indicates where in the folder tree the
     * folder is to be created.  It does this by setting the
     * parent ID property or, in other words, by telling the folder
     * which folder is its parent. If the parent ID property is
     * zero, then the folder has no parent and is thus a top-level
     * folder.
    infoObject.properties().setProperty(CePropertyID.SI_PARENTID, parentFolderID);
     * Use the infoStore to commit the new collection with the new folder
     * to the CMS database.
    infoStore.commit (newInfoObjects);
     }catch (SDKException e) {
          throw new Error("Impossible d'ajouter le dossier. Exception survenue : "
                                  + e.getMessage());
     }catch (NullPointerException e) {
          throw new Error("Impossible d'ajouter le dossier. Exception survenue : "
                                  + e.getMessage());
    return objectID;
Could someone give me some clues or code sample (preferably in Java or C#) in order to solve this problem?
Thank you in advance for all information and help you could provide.
Best regards,

I wouldn't expect the code to be any different for universe folders, you just need to find the id for the top level folder for the universes.  It might be easiest to add a folder there manually and check its properties.

Similar Messages

  • How to create the folder in presentation server through pop-up(

    Hi Experts,
    Can u give me the solution , how to create the folder in presentation server through pop-up(means dynamically, after executing the program , pop-up has to come to create the folderand path)
    regards
    ram.

    Use the methods -> DIRECTORY_BROWSE & DIRECTORY_CREATE of the class CL_GUI_FRONTEND_SERVICES
    DATA: path TYPE string,
          rc TYPE i,
    dir_name TYPE string value 'HI'.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
        CHANGING
          SELECTED_FOLDER      = path
      IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    concatenate path '\' dir_name into path.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_CREATE
        EXPORTING
          DIRECTORY                = path
        CHANGING
          RC                       = rc
      IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Edited by: Kartik Tarla on Sep 23, 2009 5:54 PM

  • How to create a folder for a specific e-mail account?

    How to create a folder for a specific e-mail account?
    I'm using a POP e-mail account and I would like to create folders / sub-folders... how can I do this?

    You can right click on your Desktop and select New Folder.  In Finder File > New Folder should work too, not in front of my Mac.
    Welcome to back by the way.  You might find these websites helpful.
    Switch 101
    Mac 101

  • How to create a folder to store my mail?

    hi,
    can u tell me how to create a folder to store my outgoing mails using java mail.
    Million Thanks for u
    With luv
    kathir

    hi chiru,
    Thanks for ur reply.Can u tell me how to configure IMAP.I've tried to configure IMAP in outlook and then i run the program with the code u sent,but it throws
    " javax.mail.NoSuchProviderException: No provider for IMAP
    at javax.mail.Session.getProvider(Session.java:289)
    at javax.mail.Session.getStore(Session.java:363)
    at javax.mail.Session.getStore(Session.java:343)
    at MessageSend.main(MessageSend.java:61)
    Plz give me some soln for this excep.
    Thanks in advance
    Regs
    Kathiravan

  • How to create a folder dynamically in KM repository

    Hi All,
    Could you please let me know how to create the folder dynamically in KM...
    Thanks in Advance,

    >
    Romano Bodini wrote:
    > Hi,
    >
    > Search the forum. And the SDN. Then ask.
    >
    > [Creating folders in KM dynamically|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1761]
    >
    > Romano
    Actually, "look at the API documentation" should be in that list.

  • How to create a folder (in unified folders) which contains all the messages of inboxes and outboxes

    Hi, i've searched without success how to create a folder (in unified folders) which contains all the messages of inboxes and outboxes (as it exists in Windows Live Mail).
    For me, it would be very useful to search in only one folder when i try to find something in sent and received mails.
    Thank's

    This is what Unified Folders does. I'm not sure what exactly you're trying to achieve.
    http://kb.mozillazine.org/Global_Inbox#Unified_Folders
    You might take a look at this article.
    https://support.mozilla.org/en-US/kb/global-search

  • How to create a folder in iphone3g

    Hiiiiiiiiiiiiiiiiiiiiiiiiiiiii !
       How to create a folder in iphone3g.............
    eg : utilities & game folders..........

    This works for me on an iPhone 3G  >  http://www.online-tech-tips.com/smartphones/create-folders-on-iphone/

  • HOW TO CREATE SEVERAL folder for the generation and READING FILE

    HOW TO CREATE SEVERAL folder for the generation and READING FILE WITH THE COMMAND utl_File.
    please give an example to create 3 folders or directories ...
    I appreciate your attention ...
    Reynel Martinez Salazar

    I hope this link help you.
    [http://www.adp-gmbh.ch/ora/sql/create_directory.html]
    create or replace directory exp_dir as '/tmp';
    grant read, write on directory exp_dir to eygle;
    SQL> create or replace directory UTL_FILE_DIR as '/opt/oracle/utl_file';
    Directory created.
    SQL> declare
      2    fhandle utl_file.file_type;
      3  begin
      4    fhandle := utl_file.fopen('UTL_FILE_DIR', 'example.txt', 'w');
      5    utl_file.put_line(fhandle , 'eygle test write one');
      6    utl_file.put_line(fhandle , 'eygle test write two');
      7    utl_file.fclose(fhandle);
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> !
    [oracle@jumper 9.2.0]$ more /opt/oracle/utl_file/example.txt
    eygle test write one
    eygle test write two
    [oracle@jumper 9.2.0]$
    SQL> declare
      2    fhandle   utl_file.file_type;
      3    fp_buffer varchar2(4000);
      4  begin
      5    fhandle := utl_file.fopen ('UTL_FILE_DIR','example.txt', 'R');
      6 
      7    utl_file.get_line (fhandle , fp_buffer );
      8    dbms_output.put_line(fp_buffer );
      9    utl_file.get_line (fhandle , fp_buffer );
    10    dbms_output.put_line(fp_buffer );
    11    utl_file.fclose(fhandle);
    12  end;
    13  /
    eygle test write one
    eygle test write two
    PL/SQL procedure successfully completed.
    SQL> select * from dba_directories;
    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    SYS                            UTL_FILE_DIR                   /opt/oracle/utl_file
    SYS                            BDUMP_DIR                      /opt/oracle/admin/conner/bdump
    SYS                            EXP_DIR                        /opt/oracle/utl_file
    SQL> drop directory exp_dir;
    Directory dropped
    SQL> select * from dba_directories;
    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    SYS                            UTL_FILE_DIR                   /opt/oracle/utl_file
    SYS                            BDUMP_DIR                      /opt/oracle/admin/conner/bdumpRegards salim.
    Edited by: Salim Chelabi on Apr 4, 2009 4:33 PM

  • How to create new folder on laundchpad?

    How to create new folder on launchpad? I am new, sorry

    Hi Amauri17,
    Launchpad works just like iOS if you're familar with the folder structure. Click, hold and drag one application onto another and it'll group them into a folder.

  • How to create shared folder between mac and windows

    how to create shared folder between mac and windows

    Us ean external drive formatted FAT32 or ExFat. Both OSx and Windows can read/write to the drive and both can use the same data files as long as you have a program that can open and save these files. For example, Word running both on OSx and on Windows will be able to work with the same document on the external drive.

  • How to create Universal Mobile App in XCode 4.6.2?

    I am new to Xcode, when I create Universal Mobile App project creating with out IPhone & IPad Folder and it's related files in XCode 4.6.2Version.
    Even I created IPhone folder and created the Application Under IOS->UserInterface it's only creating .xib file it's not creating it's related .h and .m files.
    Can you tell me how can I create the Universal Project. or If I want to add .h & .m files how can I add?
    I don't want to Upgrade XCode version. I want create XCode 4.6.2 Only.
    thanks

    As already provided:
    Wrong forum. You need to post this in the iOS Developer's forum.

  • How to create a folder with date each day?

    I've not used Automator, just once to "create" a workflow to create a new folder with a name; but what I want is this:
    Each morning at 12:01 am, a new folder to be created with the correct date as the name of the folder.
    So for tomorrow, Sunday 23 Nov 2008 at 12:01, I'd suddenly have a folder on my Hard Drive that would have the date like 23 Nov 2008 or 11/23/2008 or 23-11-2008 or similar.
    Then at the end of a week I'd have 7 of these; - but I can manually trash them-- I want to create these on my HD since I backup via SuperDuper! each morning (automatically) at 3:35 am (incremental backup to an external La Cie HD) and I want to know if was done, so by having a folder with the date on it I can open the external HD and if I see that that folder with the recent date is there, then I'm confident the BackUp was run.
    I have been able to create a workflow to create a folder in Automator, but not sure how to:
    1. Have the folder created automatically each day at 12:01
    2. How to have the folder label be the date
    Thanks for any comments or certainly any other work-around or other way to do this or similar.
    Regards, Steve

    Open the AppleScript Editor. Copy the following into it:
    set dt to date string of (current date)
    set mth to word 2 of dt
    set dy to word 3 of dt
    set yr to word 4 of dt
    set dtt to mth & " " & dy & " " & yr
    tell application "Finder"
    make new folder at alias "Macintosh HD:Users:username:Desktop:" with properties {name:dtt}
    end tell
    Amend the path with your Hard Disk name and username. Save as an application to anywhere suitable.
    In iCal, set up an event with a daily repeat and an alarm at the time you want it: under 'Alarm' choose 'Open file': then in the next menu which will appear change from 'iCal' to 'Other' and navigate to your script. Enter the date and time.
    Your folder will be created as required: iCal does not need to be running. This script gives the folder name as, for example, 'November 22 2008', but it's easy to amend the script if you want something a bit different - for example:
    property zro : ""
    set yr to year of (current date) as string
    set dy to day of (current date)
    set mt to month of (current date)
    set dyy to dy as string
    set nmm to the number of items in dyy
    if nmm is 1 then
    set zro to 0
    end if
    if mt is January then
    set mth to "01"
    else if mt is February then
    set mth to "02"
    else if mt is March then
    set mth to "03"
    else if mt is April then
    set mth to "04"
    else if mt is May then
    set mth to "05"
    else if mt is June then
    set mth to "06"
    else if mt is July then
    set mth to "07"
    else if mt is August then
    set mth to "08"
    else if mt is September then
    set mth to "09"
    else if mt is October then
    set mth to "10"
    else if mt is November then
    set mth to "11"
    else if mt is December then
    set mth to "12"
    end if
    set dtt to mth & "-" & zro & dy & "-" & yr as string
    tell application "Finder"
    make new folder at alias "iBook HD:Users:roger:Desktop:" with properties {name:dtt}
    end tell
    This gives the folder name as, for example, 11-22-2008. (The days will have leading zeros, if you don't want these just remove the references to 'zro'.)

  • How to create a folder with spaces written in Java under Linux?

    Hello,
    I have a serious problem
    I want to run a Linux command using a Java class with the runtime interface, there is a command to create a folder named eg "My Folder", with a space
    For create the Unix command is easy to do either:
    mkdir My\ Folder
    or
    mkdir "My Folder"
    But how to translate this in Java, I tried with two commands :
    Runtime.exec("mkdir My\\ Folder")
    Runtime.exec("mkdir \"My Folder\"")
    For example :
    import java.io.IOException;
    public class CreerDossier {
    public static void main(String[] args) throws IOException {
    Runtime runtime = Runtime.getRuntime();
    runtime.exec("mkdir My\\ Folder");
    runtime.exec("mkdir \"My Folder\"");
    But it's still not working,
    For runtime.exec("mkdir My\\ Folder") it creates two folders My\ and Folder
    For runtime.exec("mkdir \"My Folder\"") it creates also two folders "My and Folder"
    Are there solutions?
    Thank you !

    But my real problem is how to apply the chmod 777 on a folder containing spacesSo why not say so in the first place?
    Runtime.exec ("chmod 777 My\\ Folder");Runtime.exec(new String[]{"chmod", "777", "My Folder"});
    That is why I chose the example of mkdirYour reasoning on this point is incomprehensible. You wanted help with A so you asked about B. Just wasting time.

  • How to create a folder in mac os x (10.5.x) with director 11.5

    hi:
    i'm using FileXtra4 in windows and it's work perfect, when i try it in mac os x, director tell me 'Script Xtra not found' this xtra file is in de Xtra folder and i don't now what's happened.
    i need create a folder for save a historial file of users.
    how  i do to work this xtra or tell me if exist other Xtra to create a file.
    (Sorry for my bad english)

    I don't think that FileXtra was ever updated to Director 11, so the mac version will not work.  And the PC version may well have problems.  You'll need to use another xtra that has been updated, like for example, BuddyAPI.

  • How to create custom folder in every mailbox of Exchange 2007 mailbox : not using Managed folder

    Hello ,
    We want to create custom folder in mailbox as root or inside inbox for every user of mailbox but not using managed folder .
    I have found below article , but we do not get success to do that .
    http://careexchange.in/create-a-custom-root-folder-in-all-the-mailboxes-bulk-in-exchange-2010/
    Any idea how to do that ?
    It will be great helpful for  us.
    Thank you in advance.
    Regards
    faiz

    What happens when you try that method? What errors do you get? Have you ensured you've installed EWS 1.2 per the requirements listed in the script? (it actually mentions 1.1, but that no longer seems to be available, but 1.2 is here
    http://www.microsoft.com/en-gb/download/details.aspx?id=28952 ).
    I'm assuming you're running Exchange 2007 (since you're posting in the 2003/2007 forum, and this won't work on 2003), is that correct?
    While I don't know for sure that the script will work on 2007, have you ensured that you've amended the file paths to the correct locations? Eg, assuming it should work you'll need to amend the line :
    $service = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2010_SP1)
    to reflect the version of Exchange you're running, and the line :
    Import-Module -Name "C:\Program Files\Microsoft\Exchange\Web Services\1.1\Microsoft.Exchange.WebServices.dll"
    with whatever version of EWS you've installed.

Maybe you are looking for