Want to get Run By from CI_INFOOBJECTS

Developed a Java SDK web application.
In report details page have three columns SI_KIND , SI_CREATION_TIME ,  SI_NAME
want to add one more column Run By.
How to get it.
Thanks
in Advance

Hello Amitra.
By "Run By", I am assuming that you want to retrieve the name of the user who scheduled a report instance.  If that is so, then that information can be retrieved from the Scheduling Info of the scheduled instance.  There is no direct function call from the scheduling info in the SDK.  However, this information can be retrieve by retrieving the properties of the scheduling information and then retrieving the property vale for the property called "SI_SUBMITTER".  Please note that the scheduling information is only available if it is an instance (SI_INSTANCE = 1).  The following JSP code will retrieve the "SI_SUBMITTER" information and display it on the screen:
<%@ page import = "com.crystaldecisions.sdk.framework.ISessionMgr,
                       com.crystaldecisions.sdk.framework.CrystalEnterprise,
                       com.crystaldecisions.sdk.framework.IEnterpriseSession,
                       com.crystaldecisions.sdk.occa.infostore.IInfoStore,
                       com.crystaldecisions.sdk.occa.infostore.IInfoObject,
                       com.crystaldecisions.sdk.occa.infostore.IInfoObjects,
                       com.crystaldecisions.sdk.occa.infostore.ISchedulingInfo,
                       com.crystaldecisions.sdk.properties.IProperties,
                       com.crystaldecisions.sdk.properties.IProperty"
%>
<%
     //Declarations
     // Business Object Declarations.
     IEnterpriseSession boEnterpriseSession = null;
     ISessionMgr boSessionMgr = null;
     IInfoStore boInfoStore = null;
     // InfoObject Declarations.
     IInfoObjects boInfoObjects = null;
     IInfoObject boInfoObject = null;
     ISchedulingInfo boSchedulingInfo = null;
     IProperties boSchedulingProperties = null;
     IProperty boSI_SUBMITTERProperty = null;
     Object boSI_SUBMITTERPropertyValue = null;
     // The information to logon to the Enterprise.
     String logonUserName = "<Enter logon user name here>";
     String password = "<Enter logon password here>";
     String cmsName = "<Enter CMS name here>";
     String authType = "secEnterprise";
     // Query to retrieve the instance infoObject.
     String queryInstanceString = null;
     String reportName = "<Enter report name here>";
     // Initialize the Session Manager by getting it from the Crystal Enterprise
     // class's getSessionMgr function.
     boSessionMgr = CrystalEnterprise.getSessionMgr();
     // Logon to the Session Manager to create a new BOE session.  Pass in the
     // user name, password, the CMS name, and the authentication
     // type.
     boEnterpriseSession = boSessionMgr.logon(logonUserName, password, cmsName, authType);
    // Retrieve the InfoStore object
    boInfoStore = (IInfoStore) boEnterpriseSession.getService("", "InfoStore");
    // Set up the query string to retrieve the source user.
    queryInstanceString = "SELECT SI_ID, SI_NAME, SI_SCHEDULEINFO FROM CI_INFOOBJECTS WHERE SI_INSTANCE = 1 AND SI_NAME = '" + reportName + "'";
    // Execute a query of the infoStore to retrieve the infoObjects collection.
    boInfoObjects = boInfoStore.query(queryInstanceString);
       // Retrieve the first infoObject.
       boInfoObject = (IInfoObject) boInfoObjects.get(0);
       // Get the scheduling information for the infoObject instance.
       boSchedulingInfo = boInfoObject.getSchedulingInfo();
     // Retrieve the properties for the scheduling info.
     boSchedulingProperties = boSchedulingInfo.properties();
        // Reteieve the submitter of this particular scheduled instance (i.e. the person who ran the report).
     // The property that we need to retrieve is the SI_SUBMITTER property.
     boSI_SUBMITTERProperty = boSchedulingProperties.getProperty("SI_SUBMITTER");
     // Get the value of the SI_SUBMITTER property.
     boSI_SUBMITTERPropertyValue = boSI_SUBMITTERProperty.getValue();
     // Print out the SI_SUBMITTER property value.  This is the person who scheduled the report.
     out.println("<br>The value for the SI_SUBMITTER value for the report instance for the report that has name '" + reportName + "' is '" + boSI_SUBMITTERPropertyValue.toString() + "'.<br>");
%>
I hope that this helps you out.
Regards.
- Robert

Similar Messages

  • I want to get the values from the second hiphen only

    Hey Guys,
    I have one column and the data like this
    col1 = 'AI463-901-001'
    Now,
    I want to get the values from the second hiphen only(any no. of values).
    Please can any one help me on this .
    Thanks in advance!
    Regards,
    -LK

    you have a mistake
    you result is -001
    this is right
      select substr('AI463-901-001',instr('AI463-901-001','-',1,2)+1) from dual;
      -- @user11928732 -  if you are using Oracle Database 11g, ttry this please
    with data as
      (select  'AI463-901-001'from dual)
      select substr(str,instr(str,'-',1,2)+1) from data;
      select substr(<YOUR COLUMN>,instr(<YOUR COLUMN>,'-',1,2)+1) from <YOUR TABLE>;result is : 001
    Edited by: Mahir M. Quluzade on May 3, 2011 5:37 PM

  • I want to get my photos from icloud,,,, i had almost 3 gb of photos backed up on icloud,,, how can i transfer all those photos to my new phone,, i tried but i only got 90 photos. those are the recent one. i had almost 1000 photos in icloud back up?plz hlp

    i replaced my old iphone to a new one.. i want to get my photos from icloud,,,, i had almost 3 gb of photos backed up on icloud,,, how can i transfer all those photos to my new phone,, i tried but i only got 90 photos. those are the recent one. i had almost 1000 photos in icloud back up?plz hlp

    You should call Apple Support and give them your Apple ID so that they can verify how many photos you actually do have backed up in iCloud...
    Also, are you able to do an iTunes backup at all? Because that would save all of the photos and allow you to get them onto the new device.
    Apple Support number is
    1-800-694-7466

  • My iTunes says I owe $5.25 for songs that I have already paid for and am not going to pay for again but I want to get some apps from the store and now there's a hold on my account. Who do I talk to get the hold taken off

    I explained it most in my question but I am getting charged double for songs that I have already paid for and am not going to pay for twice because that is messed up. But I want to get some apps from the store and it wont let me because of $5.25. Who can I talk to about resolving this issue?

    You're right, it would have been covered under warranty. But because of the user damage, chances are there's a 200-something dollar fee . If you explain to them that it had a defect previously, they might replace it for you at no charge. **MIGHT**. But they would have to believe that it had a defect previously.

  • HT1296 I HAVE A TOUCH 4.3. MY COMPUYET DIED AND NOW HAVE A NEW LAP TOP. I HAD SYNCED PHOTOS FORM THE COMPUTER IN THE TOUCH THAT APPEAR IN FOLDERS. THEY WERE NOT TAKEN WITH THE TOUCH. NOW HAVE A NEW COMPUTER AND WANT TO GET THESE PHOTOS FROM THE IPOD TO NE

    I HAVE A TOUCH 4.3. MY COMPUTER DIED AND NOW HAVE A NEW LAP TOP. I HAD SYNCED PHOTOS FROM THE COMPUTER TO THE TOUCH THAT APPEAR IN FOLDERS. THEY WERE NOT ORIGINALLY TAKEN WITH THE TOUCH. NOW HAVE A NEW COMPUTER AND WANT TO GET THESE PHOTOS FROM THE IPOD TO NEW PC OTHERWISE ARE LOST. MY LAPTOP IN WINDOWS 7

    To get synced photos from an iPod to a computer you need a third-party program like TouchCopy or PhoneView.

  • I wanted to get this app from the app store but it wouldn't load the app after typing it in the search box

    Hey apple or who ever is going to answer the question I'm about to give,
         Anyway, my question Why isn't my app store working? Is there a glitch in the IOS 7 or something. But let me get into further detail about my situation. I wanted to get this app from the app store. When I click on the app everything is fine at first, but then i click on the "search button" and I type out the name of the app.And usually the name of the app would pop up to what it appears be a list of the names of each app, but that never happened. Then, I clicked "enter" or "search" and it wouldn't load after hours and hours. And then I decided to go to the settings and see whats up with the app. I scoll down and click on the "ITunes & App Store" with an arrow pointing right. Once I clicked it, it freezes. But I haven't updated my phone (its IOS 7 but theres an update for IOS 7.1 or something like that)
    Regards,
    Veronica M.

    Veronica ...
    Reset the device then try the App Store.
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't help, tap Settings > General > Reset > Reset All Settings
    No data is lost due to a reset.
    When you can, yes, there's an update available.
    Tap Settings > General > Software Update

  • Hello i want to get an app from another store

    hello i want to get an app from another store , i am from india so use indian app store but i want to get textplus which is not available on indian store it is available on us store and text plus is a free app
    so i was thinking that can i make a fake id or something like to get an app from itunes using that fake id and then  installed it in  my ipod touch??
    and is it legal ? i dont want to do anything stupid with my ipod
    so pls reply and thankyou..

    if you have access to another apple id that has been created in that country you can do this, for example I travel frequently between two countries, I have a billing address in both, I create 2 apple id, one for each country.
    I can purchase from either store as long as I am logged into the corresponding ID for that country. No matter where I am geographically located.
    The main thing you need to be aware of is it you switch to many times between the stores, it will stop allowing you log into one of them, not sure what the actuall number of switches is though....

  • So i redeemed my money onto itunes but i wanted to get a game from app store but my money is on itunes how do i get that money on app store?

    so i redeemed my money onto itunes but i wanted to get a game from app store but my money is on itunes how do i get that money on app store?

    Is this in the US store? How much is the credit that you have on your account? How much does the app cost?
    The US store prices do not include the local sales taxes added in the final steps of the sale. If you do not have enough credit to cover the total the system asks for a credit card to cover the remaining balance.

  • I want to get my songs from my ipod onto my laptop and i have clicked transfer purchases but is has not put them on my laptop? help???

    i want to get my songs from my ipod onto my laptop and i have clicked transfer purchases but it hasnt put the songs onto my laptop? help???

    amyfromwiltshire wrote:
    hey just had a new laptop and lost my itunes on my old one! So now i want to get the music off my ipod onto my new itunes and laptop! I can seem to only download music i have purchased is there anyway where i can get all the music off my ipod and onto my itunes!!! PLEASE HELP
    You can recover purchases by installing the latest version of iTunes to your laptop, then select the 'purchases' tab under Store in the sidebar and look at the lower left of the iTunes window for a link to: 'Download Previous Purchases'

  • TS3989 My iphone was stolen and I want to get my pictures from the device back.

    My iphone was stolen and I want to get my pictures from the device back. I have iCloud but when i logged into it there was no icon for my pictures so I guess they are not on there for some reason. How can i get my photos back either on iCloud or wherever?

    If your music and books all came from iTunes you can download it again without charge. If you had maintained an iCloud backup of your phone you can restore that backup and get all of your content back.

  • Hi, I have set up my PC new and want to get my music from my Apple TV back, how can i do this ? Pls Help

    Hi, i set my PC new up, and now i want to get all my music from my apple tv (first generation) back on my PC, how can i do this ? Pls help me.

    Sorry, but you probably can't. You cannot sync from an Apple TV to a PC except for items purchased from the iTunes Store on the Apple TV. You'll need to restore from the backups you made of your iTunes library, which I presume you made?
    Regards.

  • HT1329 hi i need help with my ipod nano i want to get my music from my ipod to i tunes so that i can be able to transfer the music on my i tunes to my ipad mini can you help me with that ?

    hi i need help with my ipod nano i want to transfer my music from the ipod to the itunes so that i can be able to transfer the music to my ipad can you help me with that ?

    You cannot use iTunes to transfer song files from iPod to computer, except for songs purchased from the iTunes Store.  However, there are third-party methods and utilities that can transfer from iPod to computer.  If you do an Internet search on something like"iPod transfer," you should get some links.  (The CNET article seems to be popular.)
    Once the song files are on your computer's drive, you can add them to your iTunes library, and then sync your iPad.

  • Want to get xml file from external webservice

    hello experts,
    I have to call a webservice only by call a url and get back a xml file as response. I´ll create the complete url with a mapping and tried to call the webservice with http and soap adapter but it doesn´t work. The url is correct and works with my browser.
    https://sh.de.xxxxxxxx.net:443/extranet/levels/?group=Administrator&user=esco&pass=e2999a4f79804301f1134fadb6e0fc2d&salt=1222877335158
    What should I do?
    many thanks for help
    Ulf

    Hi,
    Try following steps:
    1) Ensure that you are having the correct Webservice with you.
    2) Create your IR objects depending on the Webservice that you have (the one which you need to call).
    3) If you are using a HTTP Test Client to send the request then you need not mention any URL there...you just need to give the Sender namespace and Sender Message Interface Name....since you want the response back use QoS as BE...also ensure that other requierd details are correct.
    4) Now since you are using SOAP communication channel at your Receiver side you need to enter a Target URl in the SOAP Channel......now open the Webservice (the one which you need to call)....in this Webservice there will be a field
    <soap:address location="http://xyz......"/>
    copy the contents (http://xyz......) from here and paste it in the Target URL field of your SOAP Channel.
    Now you are ready to test your scenario.
    Regarding your other Qs:
    is the soap receiver adapter correct for this scenario? <<Yes>>
    I only have the response xml structure but not as file and no request structure.<<You said that you have created the necessary mappings, so you can enter the required data in the Test Tab of your Message mapping....copy the data into your HTTP client and do the testing>> 
    how do I get the url from my mapping as url for a request? <<no need for a URL....where will you use it??>>
    do I have to create a new wsdl for this? <<no>>
    revert back if you have any queries.
    Regards,
    Abhishek.

  • Want to get a hardcopy from the oscillosco​pe tds3034b through ethernet

    i'd like to use labview to get a hardcopy from my oscilloscope tds3034b through ethernet,but after I sent out "hardcopy start" i can't receive any data from oscilloscope.I found some other people also have this issue,I don't know how to close it.wish you give me some suggestions.Thanks.
    attachment is  other people's block diagram for 3034b
    Attachments:
    original.png ‏22 KB

    You are telling the hardcopy to go to a printer.  See here for the code I used to get the screen shot and save it to a file on my computer instead of on the scope: http://forums.ni.com/t5/Instrument-Control-GPIB-Se​rial/Screen-capture-of-Tektronix-MSO4104B-using-La​...
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions

  • Want to get sequence value from bean

    I want to get sequecne value in abean
    when i try to make this
            String EmpId = (String)JSFUtils.resolveExpression("#{bindings.EmpViewId.inputValue}");Error appear
    Caused by: java.lang.ClassCastException: oracle.jbo.domain.DBSequence cannot be cast to java.lang.String
    and when i tried
            DBSequence EmpId = (DBSequence)JSFUtils.resolveExpression("#{bindings.EmpViewId.inputValue}");another errpr appeared
    how can i catch this DBSequence value

    you did not mention your JDev version.
    For 10g it might be helpful:
    http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/web_complex006.htm
    Example 19-49 Value Change Listener Method for Handling a File Upload Event
    String fileUploadLoc =
    FacesContext.getCurrentInstance().getExternalContext().
    getInitParameter("SRDemo.FILE_UPLOADS_DIR");
    if (fileUploadLoc == null) {
    // Backup value if context init parameter not set.
    fileUploadLoc = "/tmp/srdemo_fileuploads";
    //get svrId and append to file upload location
    DBSequence svrId =
    (DBSequence)ADFUtils.getBoundAttributeValue("SvrId");
    fileUploadLoc += "/sr_" + svrId + "_uploadedfiles";
    I don't know if it works for 11g too.
    NA
    http://nickaiva.blogspot.com/

Maybe you are looking for

  • Full path mapping not working for Taxonomy values

    Hi Friends, I'm trying to update a main table field, which is of type Lookup [Taxonomy]. The taxonomy table has a 5-level hierarchy, with two columns, Code (Display Field 1) and Name (Display Field 2). There are no attributes maintained. 001, A   [Re

  • Create image of XSTRING data and display it in Web Dynpro

    Hello, I am trying to dynamically display an image in a Web Dynpro ABAP Image-Control. The problem is that the data is stored in the DB as XSTRING and I can't find a Method for example to create a new object in the MIME-Repository of the data which i

  • What is the difference?  2.2 vs 2.5   and 256 Flash vs  512 Flash      speed or what ?

    What's the difference besides price - 2.2 vs 2.5  and 256 FLASH vs 512 FLASH?    On pins and needles whether I should wait or buy a Macbook Pro now. Last I saw was 2014 midyear the latest. All I do as a senior citizen is play internet based games and

  • How to attach documents in Delivery & in Invoice document of SD processing?

    Dear Sirs, Hi, Can you please suggest me how to attach documents in Delivery & in Invoice document of SD processing? I could do so in inquiry, quotation, sales order but not able to locate the path in Delivery and in Invoice. Pl suggest. regards, raj

  • Obsolete fm needed

    Hi All we are working on a UPGRADE project from 46c to ECC 6. we have found function module CACS_APPL_GET_SET is missing it exists in the old version but deleted by SAP. do suggest the replacement if any . below attached is the code CALL FUNCTION 'CA