Run reports to content area

I can't seem to find any up to date documentation on running reports to a content area in Portal 3.0. The only docs I find talk about WebDB and don't seem to apply anymore.
My questions are really:
1. How do I schedule a report from Portal to a content area?
and
2. How do I use the rwcgi60.exe to schedule a report to a content area?
Thanks for your help.
null

Thanks for your response. When following the instructions in the document you reference, I get the following error:
Oracle Reports Server CGI - Error occurred while parsing the Reports Server command line.
Any thoughts?
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by the oracle reports team:
hello,
pls check the reports product area here on OTN for the document "Security Tips in Oracle9iAS Reports Services 6i with Oracle9iAS Portal Release 3.0" which contains this information.
regards,
the oracle reports team<HR></BLOCKQUOTE>
null

Similar Messages

  • Javascript errors when iView is running in Portal Content Area

    We have URL based iView which is running flex application. If this iView is running in separate window (by preview, link or setting "Launch in new Window" option) everything is fine.
    However, if iView is running inside Portal Content Area there are bunch of JavaScript errors (missing object, permission denied). The iView itself is still running fine, but those errors are annoying and could be a problem for customers.
    Are there any ways to fix it?
    Thanks.

    Hi,
    So after a few days I managed to finally get a workable solution:
    Whenever you are referring to a script file in your main page, you will not be able to open the file when in normal mode, even with relaxing the domain and all the other hints posted.
    What you need to do is to include the actual content of the *.js file in the main html page.
    For example, if you have a page called index.html that refers to a file AC_RunActiveContent.js which is located in your scripts directory, you will need to change the code in the index.html file as follows:
    Initial HTML File:*
    < HTML>
    < HEAD>
    < TITLE>Test Page</TITLE>
    <!-- Collapsible Panel Java Script -->
    < s c r i p t  s r c="../scripts/collapsiblepanel. j s" type="text/ j a v a s c r i p t"></ s c r i p t>
    <!-- Collapsible Panel Java Script -->
    < /HEAD>
    < BODY>
    < /BODY>
    < /HTML>
    New HTML File:
    < HTML>
    < HEAD>
    < TITLE>Executive Committee - Balance Sheets</TITLE>
    <!-- Collapsible Panel Java Script -->
    < s c r i p t t y p e="t e x t / j a v a s c r i p t ">
    your actual javascript code
    < / s c r i p t >
    <!-- Collapsible Panel Java Script -->
    < /HEAD>
    < BODY>
    < /BODY>
    < /HTML>
    By doing this:
    You will be able to use java scripts in your html file and applications without experiencing the problems mentioned. Keep in mind though that you will now have all your script file code in your actual html file and the number of lines in the files will increase dramatically.
    The increase in size of the actual html files are not too bad, a normal 2Kb html file may increase to 70Kb if not more, depending on the code contained in the initial *.js file.
    I have played around with this and have been able to include Macromedia Flash objects in my html files too, by pasting the actual code content in the html files as opposed to refereincing the script in the relevant directory.
    I hope this helps.
    Regards,
    Freddie Botha.

  • Dataset can not be open error while running report rtcctool

    Hello Experts,
    While running report rtcctool we are gettin following dumps the says
    ABAP runtime errors    DATASET_CANT_OPEN
           Occurred on     05/27/2011 at 10:00:52
    Unable to open file "/usr/sap/B**/DVEBMGS00/sec/SAP_AGS_OLCNT_VERIFY.pse".
    I am aware that the eror is happening because of this file but not sure from where to get this file. Please let me know any of you aware about this.
    Regards
    Yogesh

    Hi all.
    I have the same problem and explore all possible solutions found in this discussion and others without satisfactory result.
    Everything points that may be an inconsistency error external certificate which is in the DB. Anyone know how to fix this.
    Greetings.

  • SAPUI5 Application doesn't display in Portal Content Area

    Hallo Guys
    We are developing a SAPUI5 application that needs to be displayed inside the portal.
    The problem is that the SAPUI5 app doesn't display in in the content area, no erors, just a blank page, you have to set the iview to open in a seperate headerless window, then it works. But it needs to work in the content area.
    Our findings: a possible cause is that the IE mode when inside the Portal content area is IE5 Quirks, and when it displays in a new window, the mode changes to a more recent and acceptable mode for SAPUI5, IE9.
    Is there any solution to this? We get the same result with both URL iView and using the SAPUI5 iView in content provided by SAP. We are on NW 7.4
    Regards
    Antonette

    Hi Antonette,
    As Lawrence explained the reason is indeed that quirks and standards mode can't run together on the same page (not only in portal but it's a limitation by MS).
    Since your framework page is in IE5 quirks mode the UI5 application doesn't run in the content area, you can run it by selecting in the iView properties "Launch in a new headerless window (strandards)", that will open the UI5 application in a new window and will work.
    If you wish to run UI5 applications in the content area you can get latest SP of 7.4 and there you will have a new framework page: standards AFP, basically an AFP framework page that works in standards mode.
    In that framework page you can run UI5 applications in the content area, however trying to run old applications (HTMLB, not WD) may fail, for WD you have a paramater you need to pass called sap-ie, passing it with the value of "Edge" will make sure WD applications run in standards mode as well.
    When running the AFP in standards mode you will need to open your HTMLB and other old applications in a new headerless window or new window so you can see the content.
    Hope this helped,
    BR,
    Saar

  • Running Reports using DESTYPE=CACHE from Report Launch Form (QMS0012F)

    We are trying to run reports via the web. Since this is a 3-tier setup and our report server is running under UNIX the DESTYPE=Preview and Screen are not valid options. When we choose CACHE as DESTYPE we get the error:
    'Invalid value '||l_value||' passed for parameter DESTYPE'
    I have traced the error down to the QMS0012L.PLL library -> QMS$REPORT (version 6.5.1.3) package -> add_par_to_list procedure.
    Is this a legacy of a client/server type setup? I have modified the procedure to allow for DESTYPE=CACHE. Now by submitting a report with DESTYPE=CACHE it gets submitted to the reports server except it doesn't show report. To display the report I believe we have
    to use the Web.Show Document function to display the report (eg. http://bill:7777/servlet/RWServlet/getjobid8?server=rep60bill) as per the oracle white paper "Integrating Oracle9iAS Reports in Oracle9iAS Forms"
    Has there been a headsdtart patch to include the DESTYPE of CACHE when running reports? or are we the only ones running reports this way.

    Raymond,
    I have recorded a new bug against Headstart for this. We do not
    currently have a fix, but I've looked at the code you mention and
    your fix looks correct.
    Regards,
    Lauri

  • IViews in dynamic navigation take up whole content area

    Hi,
    I'm having a problem using dynamic navigation. I've created two Web Dynpro iViews A and B. I've added B to the dynamic navigation of A and put A into a role. Know when I want to view A, I can see the iViews loading, B in the navigation panel and A on the right of the panel. But once they are loaded, B is shown in the content area, "above" A (effectively hiding it). Once I remove B from the dynamic navigation, A is shown fine.
    Any ideas to solve this?
    thanks,
    Lieven

    Hi Lieven!
    I can only guess, that the WebDynpro integration-IView is designed to run in the content area alone and forces so.
    Did you try to run other (sap provided) WebDynpro iviews from the dynamic navigation?
    Regards,
      Jürgen

  • OC4J Containers to run report.jsp

    Does anyone have a step by step on creating a production OC4J container that will run 9i report jsp's? The report jsp's will run under the demo area but we would like to setup a new OC4J container to run reports. We are using 9ias Rel2 App Server.
    Thanks

    Hi,
    Welcome to OTN. I am not sure about the discoverer report. However, there is no straight forward way of integrating the oracle reports with jsp page (as you have in forms using run_product / run_report_object).
    Having said that, you can still use the jspx page to launch the URL that invokes the rwservlet.
    Check out [this post|http://forums.oracle.com/forums/thread.jspa?threadID=637980&tstart=0].
    -Arun

  • Error when I run report RSCMST to test the content server.

    when I run report "RSCMST" to test the my content server.    I get the error:
    header        HTTP/1.1 401 Authorization Required
                  date: Fri, 05 Dec 2008 20:20:45 GMT
                  server: Apache/1.3.41 (Unix) SAPCS/640
                  x-servertime: 20:20:45
                  x-query: create&pVersion=0046&contRep=ZTEST001&docId=020D3949CA03445AE10000000A14022B&compId=data&docPro ..
                  t=rud&accessMode=c&authId=CN%3DCPJ&expiration=20081205142027&secKey=MIH3BgkqhkiG9w0BBwKggekwgeYC
                  x-serverdate: 2008-12-05
                  x-pversion: 0046
                  x-errordescription: URI signature has expired
                  x-serverid: server="content01.ivo.com.cn";serverPort="1090"
                  x-servertype: SAP HTTP Content Server
                  content-length: 752
                  connection: close
                  content-type: text/plain
                  ~remote_addr:
                  ~uri_scheme_expanded: NONE
    want                 201
    bad           401
    time              17.974
    It seems that the "bad 401" means a http error.    I do not know how to configure it ?
    my content server uses the maxdb,  and http is apache, they are all running on redhat linux ese 5
    who can give me some advices?  thanks

    Victor,
            Looks like a web server authentication issue. I suggest you raise this issue in a basis/ web application server forum,
    Sojan

  • Error 401 when run report "RSCMST" to test my content server

    when I run report "RSCMST" to test the my content server. I get the error:
    header HTTP/1.1 401 Authorization Required
    date: Fri, 05 Dec 2008 20:20:45 GMT
    server: Apache/1.3.41 (Unix) SAPCS/640
    x-servertime: 20:20:45
    x-query: create&pVersion=0046&contRep=ZTEST001&docId=020D3949CA03445AE10000000A14022B&compId=data&docPro ..
    t=rud&accessMode=c&authId=CN%3DCPJ&expiration=20081205142027&secKey=MIH3BgkqhkiG9w0BBwKggekwgeYC
    x-serverdate: 2008-12-05
    x-pversion: 0046
    x-errordescription: URI signature has expired
    x-serverid: server="content01.ivo.com.cn";serverPort="1090"
    x-servertype: SAP HTTP Content Server
    content-length: 752
    connection: close
    content-type: text/plain
    ~remote_addr:
    ~uri_scheme_expanded: NONE
    want 201
    bad 401
    time 17.974
    It seems that the "bad 401" means a http error. I do not know how to configure it ?
    my content server uses the maxdb, and http is apache, they are all running on redhat linux ese 5
    who can give me some advices? thanks

    hello,
    I am also getting same problem with newly installed content server.
    I have defined connectivity through CSADMIN. but when I 'm running this report I 'm getting same
    time (-93) problem.
    Could you please tell me how you rectified time zone setting problem..
    would be great help..
    Regards
    Anju

  • Cannot output Reports pdf directly to content area

    I have registered a report (Oracle Reports rdf) as a portal component. It is included in a content area. I can execute the report and the output file is created (pdf) - but it is not loaded automatically into the content area folder that I specified in the scheduling parameters.
    The pdf file is created in the first directory in the REPORTS60_PATH (in our case 'bin').
    Version info :
    9iAS 1.0.2.2
    Portal 3.0.9

    Andy,
    The integration of Oracle Reports into a Portal content area is possible in two ways. Having registered a report in the Reports security pages the Oracle Report appears a standard Web component and may be added as an item. In this case the report appears as a Link which when clicked will run the report at that time (you indicate that this is working). The second way is to push a scheduled report automatically to a defined folder such that when a user moves to that folder the pre-generated report is already there.
    This second technique requires that the report server know where the Portal repository is stored. To do this you need to first set the "REPOSITORYCONN" parameter in the Report Servers configuration file (usually <reportServerName>.cfg) Eg. portal30/portal30@PortalSID. This will then allow the server to push the completed document to the defined folder.

  • Unable to create content area item for RDF-report

    According to white paper "Security tips in Oracle Reports Services (release 6i with Portal 3.0)" I'm trying to integrate an Oracle Reports 6i RDF-module in my portal.
    All goes well including running the report from de reports definition file.
    However, when I want to create an item in the content area referencing the report, the report-application is not visible in the lov Application Components. The only aplication component I'm offered is "PEOPLE_APP: People".
    Perhaps the following problems are related to this problem:
    1) When looking for applications in the Portal Navigator, the report-application is missing in the applications list. However, after using the Find...-option the application is shown. Should report-definitions been shown ?
    2) After installing rwwwvins.sql the package body WWV_RW_SB is invalid with errormessage "PLS-00306: wrong number or types of arguments in call to SET_SSO_SESSION".
    Can anybody help ?

    One problem solved...
    It appears that I should have stated the application as "Expose as Provider". After doing that the report appeared in the lov.
    Unfortunately one problem still remains. The package WWV_RW_SB has errors causing the parameterform to fail. I've rerun the rwwwvins-script but the package body stays invalid.

  • Running Reports from Client Machines in which the reports are residing on t

    Hi Folks,
    I'm using Developer 6i with Oracle 9i. I can run forms from the clients so that the FMX file is residing on a shared drive on the server, but when I try to run reports which also reside on the shared drive of server, I get error that unable to find the report. Do I need to install report server on the client machine/server or am I missing some basic step here?
    TIA
    Hassan

    Hi,
    There's a whitepaper on the topic of Forms/Reports integration for the web called "Oracle9iAS Forms Services and Reports Services Integration". This should give you the information you are seeking.
    regards,
    Stewart

  • Display the reports under all subfolders at a time in the content area?

    Hi All,
    In SAP EP portal,We have a requirement to display few reports wherein we have 7 roles with the same names but different ID's and they are merged together so that even if the users have 7 roles assigned he will see only 1 tab in the first level navigation and uder that there will  be one folder at the second level.Now the requirement is like this
    1st level navigation : Role Name
    2nd level navigation :Folder Name
    Detailed Navigation : Folder Name
                                     Sub Folder Name
                                     Sub -sub folder1 Name
                                     Reports   --(one or many)
                                     Sub -sub folder2 Name
                                     Reports   --(one or many)
                                     Sub -sub folder3 Name
                                     Reports   --(one or many)
    Under al the sub-sub folders a workset map iview is added to display the reports with a pictogram in the content area.In the detailed navigation, as soon as the user clicks on the Sub folder the user should be able to see the reports under all the Sub-sub folders( Sub-sub folder1,Sub-sub folder2,Sub-sub folder3) .But currently the user has to explicitly click on each of the Sub-sub folders to view the reports(thrice in this case).Plz give a solution in which all the reports under the 3 Sub-sub folders should appear simultaneouly in the content area at a single click on Sub Folder
    Thanks & Regards,
    Sowmya
    Edited by: Sowmya B on Jan 4, 2010 2:14 PM

    Resolved

  • My 2009 macbookpro has begun running very slowly, apps freeze and pages hang ... i've run EtreCheck and there are problems but don't know how to sort

    my 2009 macbookpro has begun running very slowly, apps freeze and pages hang ... i've run EtreCheck and there are problems but don't know how to sort ... ran CleanMyMac and freed up about 30GB of space but didn't help ... ran AdwareMedic so that's been sorted but the other issues that came up on the EtreCheck I need help with however i can't figure out how to paste the results on this page

    thanks thomas ... here it comes
    EtreCheck version: 2.1.5 (108)
    Report generated December 29, 2014 at 5:03:07 PM GMT
    Click the [Support] links for help with non-Apple products.
    Click the [Details] links for more information about that line.
    Click the [Adware] links for help removing adware.
    Hardware Information: ℹ️
        MacBook Pro (17-inch, Early 2009) (Verified)
        MacBook Pro - model: MacBookPro5,2
        1 2.66 GHz Intel Core 2 Duo CPU: 2-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        NVIDIA GeForce 9400M - VRAM: 256 MB
            Color LCD 1920 x 1200
        NVIDIA GeForce 9600M GT - VRAM: 512 MB
    System Software: ℹ️
        OS X 10.9.5 (13F34) - Uptime: 0:5:36
    Disk Information: ℹ️
        FUJITSU MHZ2320BH FFS G1 disk0 : (320.07 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            [redacted]'s world too (disk0s2) / : 319.21 GB (30.39 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
        MATSHITADVD-R   UJ-868 
    USB Information: ℹ️
        Apple Inc. Built-in iSight
        Apple Inc. iPhone
        Logitech USB Receiver
        Apple Inc. BRCM2046 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple, Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
    Configuration files: ℹ️
        /etc/hosts - Count: 29 - Corrupt!
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Library/Application Support/Roxio
        [not loaded]    com.roxio.TDIXController (1.7) [Support]
            /System/Library/Extensions
        [not loaded]    com.kensington.mouseworks.iokit.KensingtonMouseDriver (3.0) [Support]
            /System/Library/Extensions/KensingtonMouseDriver.kext/Contents/PlugIns
        [not loaded]    com.kensington.mouseworks.driver.ADBID32Mouse (3.0) [Support]
        [not loaded]    com.kensington.mouseworks.driver.ADBID32MouseX1 (3.0) [Support]
        [not loaded]    com.kensington.mouseworks.driver.ADBID4Mouse (3.0) [Support]
        [not loaded]    com.kensington.mouseworks.driver.ADBID4MouseX1 (3.0) [Support]
        [not loaded]    com.kensington.mouseworks.driver.KMWBluetoothHIDMouse (3.0) [Support]
        [not loaded]    com.kensington.mouseworks.driver.KMWBluetoothOldHIDMouse (3.0) [Support]
        [not loaded]    com.kensington.mouseworks.driver.KMWUSBHIDMouse (3.0) [Support]
        [not loaded]    com.kensington.mouseworks.driver.USBMouseX1 (3.0) [Support]
        [not loaded]    com.kensington.mouseworks.driver.VirtualMouse (3.0) [Support]
        [not loaded]    com.kensington.mouseworks.driver.VirtualMouseX1 (3.0) [Support]
        [not loaded]    com.kensington.mouseworks.iokit.KensingtonMouseDriverX1 (3.0) [Support]
    Startup Items: ℹ️
        AdobeVersionCueCS2: Path: /Library/StartupItems/AdobeVersionCueCS2
        Firewall: Path: /Library/StartupItems/Firewall
        RetroRun: Path: /Library/StartupItems/RetroRun
        Startup items are obsolete in OS X Yosemite
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Support]
        [loaded]    com.adobe.CS4ServiceManager.plist [Support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Support]
        [invalid?]    com.oracle.java.Java-Updater.plist [Support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Support]
        [invalid?]    com.adobe.SwitchBoard.plist [Support]
        [loaded]    com.adobe.versioncueCS3.plist [Support]
        [loaded]    com.adobe.versioncueCS4.plist [Support]
        [running]    com.atomicbird.macaroni.launchd.plist [Support]
        [loaded]    com.macpaw.CleanMyMac2.Agent.plist [Support]
        [invalid?]    com.oracle.java.Helper-Tool.plist [Support]
        [loaded]    com.prosofteng.DriveGenius.locum.plist [Support]
        [loaded]    com.skype.skypeinstaller.plist [Support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Support]
        [loaded]    com.adobe.ARM.[...].plist [Support]
        [loaded]    com.adobe.ARM.[...].plist [Support]
        [loaded]    com.google.keystone.agent.plist [Support]
        [loaded]    com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist [Support]
        [loaded]    com.macpaw.CleanMyMac2Helper.scheduledScan.plist [Support]
        [loaded]    com.macpaw.CleanMyMac2Helper.trashWatcher.plist [Support]
        [running]    com.prosofteng.DGMonitor.plist [Support]
        [running]    ws.agile.1PasswordAgent.plist [Support]
    User Login Items: ℹ️
        CNQL1210_ButtonManager    ApplicationHidden (/Library/CFMSupport/CNQL1210_ButtonManager.app)
        System Events    ApplicationHidden (/System/Library/CoreServices/System Events.app)
        Mail    Application (/Applications/Mail.app)
        Firefox    Application (/Applications/Firefox.app)
        AdobeResourceSynchronizer    ApplicationHidden (/Applications/Adobe Reader 9/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
        Calendar    Application (/Applications/Calendar.app)
        Skype    Application (/Applications/Skype.app)
        Dropbox    Application (/Applications/Dropbox.app)
        AdobeResourceSynchronizer    ApplicationHidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
        MouseWorks Background    Application (/Library/Application Support/Kensington/MouseWorks.prefPane/Contents/Resources/Support/MouseWorks Background.app)
    Internet Plug-ins: ℹ️
        AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Support]
        Flash Player: Version: 16.0.0.235 - SDK 10.6 [Support]
        EPPEX Plugin: Version: 3.0.0.0 [Support]
        AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Support]
        ContentUploaderPlugin: Version: 1.2 [Support]
        iPhotoPhotocast: Version: 7.0
        RealPlayer Plugin: Version: Unknown [Support]
        PDEPrint: Version: 2.0 [Support]
        DirectorShockwave: Version: 11.5.2r602 [Support]
        PDF Browser Plugin: Version: 2.4.2 - SDK 10.2 [Support]
        FlashPlayer-10.6: Version: 16.0.0.235 - SDK 10.6 [Support]
        QuickTime Plugin: Version: 7.7.3
        CANONiMAGEGATEWAYDL: Version: 3.0.0.2 [Support]
        DivXBrowserPlugin: Version: 1.3 [Support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Support]
        Google Earth Web Plug-in: Version: 6.0 [Support]
        Default Browser: Version: 537 - SDK 10.9
        Flip4Mac WMV Plugin: Version: 3.2.0.16   - SDK 10.8 [Support]
        JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
        OfficeLiveBrowserPlugin: Version: 12.3.6 [Support]
    User internet Plug-ins: ℹ️
        QuickTime Plugin: Version: 6.5.1
        fbplugin_1_0_0: Version: Unknown [Support]
    Safari Extensions: ℹ️
        Ultimate [Installed]
    3rd Party Preference Panes: ℹ️
        ASM  [Support]
        DivX  [Support]
        Flash Player  [Support]
        Flip4Mac WMV  [Support]
        Macaroni  [Support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: OFF
        Auto backup: NO - Auto backup turned off
        Destinations:
            G-DRIVE Mini [Local]
            Total size: 999.86 GB
            Total number of backups: 7
            Oldest backup: 2014-07-09 00:13:07 +0000
            Last backup: 2014-12-10 22:18:57 +0000
            Size of backup disk: Excellent
                Backup size 999.86 GB > (Disk size 0 B X 3)
    Top Processes by CPU: ℹ️
             6%    WindowServer
             3%    firefox
             1%    mds_stores
             0%    mdworker
             0%    Skype
    Top Processes by Memory: ℹ️
        348 MB    firefox
        137 MB    Skype
        122 MB    mds_stores
        120 MB    com.apple.IconServicesAgent
        73 MB    Dropbox
    Virtual Memory Information: ℹ️
        1.26 GB    Free RAM
        1.74 GB    Active RAM
        477 MB    Inactive RAM
        543 MB    Wired RAM
        503 MB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Dec 29, 2014, 04:58:09 PM    Self test - passed
        Dec 29, 2014, 10:58:04 AM    /Library/Logs/DiagnosticReports/Keychain Access_2014-12-29-105804_[redacted].hang
        Dec 29, 2014, 10:54:33 AM    /Library/Logs/DiagnosticReports/Keychain Access_2014-12-29-105433_[redacted].hang
        Dec 29, 2014, 10:52:33 AM    /Library/Logs/DiagnosticReports/Keychain Access_2014-12-29-105233_[redacted].hang
        Dec 29, 2014, 10:50:24 AM    /Library/Logs/DiagnosticReports/Keychain Access_2014-12-29-105024_[redacted].hang
        Dec 29, 2014, 10:50:24 AM    /Library/Logs/DiagnosticReports/Skype_2014-12-29-105024_[redacted].hang

  • CRM ONLINE 2013: On Approval Of Quotation, Run Report, Generate PDF and Send an Email With PDF as attachment

    Hi,
    I am using CRM ONLINE 2013.
    How to automate below process?
    1. On Approval Of Quotation, Run Report.
    2. Generate PDF.
    3. Send an Email With PDF as attachment.
    As i have gone through many forums for this topic, but creating a plugin code for generating Report PDF is not possible in CRM ONLINE.
    So, What is the alternate way to do this..?
    Thanks.

    This is my entire code mentioned below:-
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
        <script type="text/javascript">
            if (typeof (SDK) == "undefined")
            { SDK = { __namespace: true }; }
            SDK.JScriptRESTDataOperations = {
                _context: function () {
                    if (typeof GetGlobalContext != "undefined")
                    { return GetGlobalContext(); }
                    else {
                        if (typeof Xrm != "undefined") {
                            return Xrm.Page.context;
                        else { return new Error("Context is not available."); }
                _getServerUrl: function () {
                    var serverUrl = this._context().getServerUrl()
                    if (serverUrl.match(/\/$/)) {
                        serverUrl = serverUrl.substring(0, serverUrl.length - 1);
                    return serverUrl;
                _ODataPath: function () {
                    return this._getServerUrl() + "/XRMServices/2011/OrganizationData.svc/";
                _errorHandler: function (req) {
                    return new Error("Error : " +
      req.status + ": " +
      req.statusText + ": " +
      JSON.parse(req.responseText).error.message.value);
                _dateReviver: function (key, value) {
                    var a;
                    if (typeof value === 'string') {
                        a = /Date\(([-+]?\d+)\)/.exec(value);
                        if (a) {
                            return new Date(parseInt(value.replace("/Date(", "").replace(")/", ""), 10));
                    return value;
                Create: function (object, type, successCallback, errorCallback) {
                    var req = new XMLHttpRequest();
                    req.open("POST", this._ODataPath() + type + "Set", true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 201) {
                                successCallback(JSON.parse(this.responseText, SDK.JScriptRESTDataOperations._dateReviver).d);
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send(JSON.stringify(object));
                Retrieve: function (id, type, successCallback, errorCallback) {
                    var req = new XMLHttpRequest();
                    req.open("GET", this._ODataPath() + type + "Set(guid'" + id + "')", true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 200) {
                                successCallback(JSON.parse(this.responseText, SDK.JScriptRESTDataOperations._dateReviver).d);
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send();
                Update: function (id, object, type, successCallback, errorCallback) {
                    var req = new XMLHttpRequest();
                    req.open("POST", this._ODataPath() + type + "Set(guid'" + id + "')", true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.setRequestHeader("X-HTTP-Method", "MERGE");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 204 || this.status == 1223) {
                                successCallback();
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send(JSON.stringify(object));
                Delete: function (id, type, successCallback, errorCallback) {
                    var req = new XMLHttpRequest();
                    req.open("POST", this._ODataPath() + type + "Set(guid'" + id + "')", true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.setRequestHeader("X-HTTP-Method", "DELETE");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 204 || this.status == 1223) {
                                successCallback();
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send();
                RetrieveMultiple: function (type, filter, successCallback, errorCallback) {
                    if (filter != null) {
                        filter = "?" + filter;
                    else { filter = ""; }
                    var req = new XMLHttpRequest();
                    req.open("GET", this._ODataPath() + type + "Set" + filter, true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 200) {
                                successCallback(JSON.parse(this.responseText, SDK.JScriptRESTDataOperations._dateReviver).d.results);
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send();
                __namespace: true
        </script>
        <script type="text/javascript">
            //Create Email and link it with Order as Regarding field
            var Xrm;
            var email = new Object();
            var ownerID = "";
            var CustomerId = "";
            if (window.opener) { Xrm = window.opener.Xrm; }
            else if (window.parent) { Xrm = window.parent.Xrm; }
            //Get ownerid who send email of quotation to customer
            function GetOwnerID() {
                var owner = Xrm.Page.getAttribute("ownerid").getValue();
                ownerID = owner[0].id;
                var ownerName = owner[0].name;
                var entityType = owner[0].entityType;
                GetToEmailGUID();
            //Get customerid who receive email of quotation from owner
            function GetToEmailGUID() {
                var Customer = Xrm.Page.getAttribute('customerid').getValue();
                CustomerId = Customer[0].id;
                var CustomerName = Customer[0].name;
                var entityType = Customer[0].entityType;
                //if CustomerId is type of "Account" then get Primary Contact id of that account
                if (entityType == "account") {
                    var contact = Xrm.Page.getAttribute("customerid").getValue();
                    if (contact === null) return;
                    var serverUrl = Xrm.Page.context.getClientUrl();
                    var oDataSelect = serverUrl + "/XRMServices/2011/OrganizationData.svc/AccountSet(guid'" + contact[0].id + "')?$select=PrimaryContactId";
                    var req = new XMLHttpRequest();
                    req.open("GET", oDataSelect, false);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json;charset=utf-8");
                    req.onreadystatechange = function () {
                        if (req.readyState === 4) {
                            if (req.status === 200) {
                                var retrieved = JSON.parse(req.responseText).d;
                                CustomerId = retrieved.PrimaryContactId.Id;
                            else {
                                alert(this.statusText);
                    req.send();
            function CreateEmail() {
                GetOwnerID();
                email.Subject = "Email with Report Attachment";
                //Set The current order as the Regarding object
                email.RegardingObjectId = {
                    Id: Xrm.Page.data.entity.getId(),    //Get the current entity Id , here OrderId
                    LogicalName: Xrm.Page.data.entity.getEntityName()//Get the current entity name, here it will be “salesOrder”
                //Create Email Activity
                SDK.JScriptRESTDataOperations.Create(email, "Email", EmailCallBack, function (error) { alert(error.message); });
            // Email Call Back function
            function EmailCallBack(result) {
                email = result; // Set the email to result to use it later in email attachment for retrieving activity Id
                var activityPartyFrom = new Object();
                // Set the From party of the ActivityParty to relate an entity with Email From field
                activityPartyFrom.PartyId = {
                    Id: CustomerId, //"79EBDD26-FDBE-E311-8986-D89D6765B238",  // id of entity you want to associate this activity with.        
                    LogicalName: "contact"
                // Set the "activity" of the ActivityParty
                activityPartyFrom.ActivityId = {
                    Id: result.ActivityId,
                    LogicalName: "email"
                // Now set the participation type that describes the role of the party on the activity).
                activityPartyFrom.ParticipationTypeMask = { Value: 2 }; // 2 means ToRecipients
                // Create the from ActivityParty for the email
                SDK.JScriptRESTDataOperations.Create(activityPartyFrom, "ActivityParty", ActivityPartyFromCallBack, function (error) { alert(error.message); });
                var activityPartyTo = new Object();
                // Set the From party of the ActivityParty to relate an entity with Email From field
                activityPartyTo.PartyId = {
                    Id: ownerID, //"79EBDD26-FDBE-E311-8986-D89D6765B238",  // id of entity you want to associate this activity with.        
                    LogicalName: "systemuser"
                // Set the "activity" of the ActivityParty  
                activityPartyTo.ActivityId = {
                    Id: result.ActivityId,
                    LogicalName: "email"
                // Now set the participation type that describes the role of the party on the activity).    
                activityPartyTo.ParticipationTypeMask = { Value: 1 }; // 1 means Sender
                // Create the from ActivityParty
                SDK.JScriptRESTDataOperations.Create(activityPartyTo, "ActivityParty", ActivityPartyToCallBack, function (error) { alert(error.message); });
            //ActivityParty From Callback
            function ActivityPartyFromCallBack(result) {
            //ActivityParty To Callback
            function ActivityPartyToCallBack(result) {
                GetReportId('ABM_Infotech_SalesQuote');
            //Create attachment for the created email
            function CreateEmailAttachment() {
                //get reporting session and use the params to convert a report in PDF
                var params = getReportingSession();
                //Email attachment parameters
                var activitymimeattachment = Object();
                activitymimeattachment.ObjectId = Object();
                activitymimeattachment.ObjectId.LogicalName = "email";
                activitymimeattachment.ObjectId.Id = email.ActivityId;
                activitymimeattachment.ObjectTypeCode = "email",
                    activitymimeattachment.Subject = "File Attachment";
                activitymimeattachment.Body = encodePdf(params);
                activitymimeattachment.FileName = "Report1.pdf";
                activitymimeattachment.MimeType = "application/pdf";
                //Attachment call
                SDK.JScriptRESTDataOperations.Create(activitymimeattachment, "ActivityMimeAttachment", ActivityMimeAttachmentCallBack, function (error) { alert(error.message); });
            //ActivityMimeAttachment CallBack function
            function ActivityMimeAttachmentCallBack(result) {
                var features = "location=no,menubar=no,status=no,toolbar=no,resizable=yes";
                var width = "800px";
                var height = "600px";
                window.open(Xrm.Page.context.getServerUrl() + "main.aspx?etc=" + 4202 + "&pagetype=entityrecord&id=" + email.ActivityId, "_blank", features);
                // To open window which works in outlook and IE both
                //openStdWin(Xrm.Page.context.getServerUrl() + "main.aspx?etc=" + 4202 + "&pagetype=entityrecord&id=" + email.ActivityId, "_blank", width,
    height, features);
            //This method will get the reportId based on a report name that will be used in            getReportingSession() function
            function GetReportId(reportName) {
                var oDataSetName = "ReportSet";
                var columns = "ReportId";
                var filter = "Name eq '" + reportName + "'";
                retrieveMultiple(oDataSetName, columns, filter, onSuccess);
            function retrieveMultiple(odataSetName, select, filter, successCallback) {
                var serverUrl = Xrm.Page.context.getServerUrl();
                var ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc";
                var odataUri = serverUrl + ODATA_ENDPOINT + "/" + odataSetName + "?";
                if (select) {
                    odataUri += "$select=" + select + "&";
                if (filter) {
                    odataUri += "$filter=" + filter;
                $.ajax({
                    type: "GET",
                    contentType: "application/json; charset=utf-8",
                    datatype: "json",
                    url: odataUri,
                    beforeSend: function (XMLHttpRequest) {
                        XMLHttpRequest.setRequestHeader("Accept", "application/json");
                    success: function (data) {
                        if (successCallback) {
                            if (data && data.d && data.d.results) {
                                successCallback(data.d.results);
                            else if (data && data.d) {
                                successCallback(data.d);
                            else {
                                successCallback(data);
                    error: function (XmlHttpRequest, errorThrown) {
                        if (XmlHttpRequest && XmlHttpRequest.responseText) {
                            alert("Error while retrieval ; Error – " + XmlHttpRequest.responseText);
            function onSuccess(data) {
                reportId = data[0].ReportId.replace('{', ").replace('}', ");
                CreateEmailAttachment(); // Create Email Attachment
            //Gets the report contents
            function getReportingSession() {
                var pth = Xrm.Page.context.getServerUrl() + "/CRMReports/rsviewer/reportviewer.aspx";
                var retrieveEntityReq = new XMLHttpRequest();
                var Id = Xrm.Page.data.entity.getId();
                var quotationGUID = Id.replace('{', ""); //set this to selected quotation GUID
                quotationGUID = quotationGUID.replace('}', "");
                var reportName = "ABM_Infotech_SalesQuote"; //set this to the report you are trying to download
                var reportID = "751089AA-74B8-E211-B52F-D8D3855B253B"; //set this to the guid of the report you are trying to download
                var rptPathString = ""; //set this to the CRMF_Filtered parameter
                var strParameterXML = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'><entity name='quote'><all-attributes /><filter type='and'><condition
    attribute='quoteid' operator='eq' uitype='quote' value='" + quotationGUID + "' /> </filter></entity></fetch>";
                retrieveEntityReq.open("POST", pth, false);
                retrieveEntityReq.setRequestHeader("Accept", "*/*");
                retrieveEntityReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
                rptPathString = "id=%7B" + reportID + "%7D&uniquename=" + Xrm.Page.context.getOrgUniqueName() + "&iscustomreport=true&reportnameonsrs=&reportName="
    +
                                reportName + "&isScheduledReport=false&p:ABMFilteredQuote=" + strParameterXML;
                //remove the part starting from &p:salesorderid if your report has no parameters
                retrieveEntityReq.send(rptPathString);
                var x = retrieveEntityReq.responseText.indexOf("ReportSession=");
                var ret = new Array();
                ret[0] = retrieveEntityReq.responseText.substr(x + 14, retrieveEntityReq.responseText.indexOf("&", x) - x - 14); //the session id
                x = retrieveEntityReq.responseText.indexOf("ControlID=");
                ret[1] = retrieveEntityReq.responseText.substr(x + 10, retrieveEntityReq.responseText.indexOf("&", x) - x - 10); //the control id
                return ret;
            var bdy = new Array();
            var bdyLen = 0;
            function concat2Bdy(x) {
                bdy[bdyLen] = x;
                bdyLen++;
            function encodePdf(params) {
                bdy = new Array();
                bdyLen = 0;
                var retrieveEntityReq = new XMLHttpRequest();
                var pth = Xrm.Page.context.getServerUrl() + "/Reserved.ReportViewerWebControl.axd?ReportSession=" + params[0] +
                "&Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=" + params[1] +
                "&OpType=Export&FileName=Public&ContentDisposition=OnlyHtmlInline&Format=PDF";
                retrieveEntityReq.open("GET", pth, false);
                retrieveEntityReq.setRequestHeader("Accept", "*/*");
                retrieveEntityReq.send();
                BinaryToArray(retrieveEntityReq.responseBody);
                return encode64(bdy);
            var StringMaker = function () {
                this.parts = [];
                this.length = 0;
                this.append = function (s) {
                    this.parts.push(s);
                    this.length += s.length;
                this.prepend = function (s) {
                    this.parts.unshift(s);
                    this.length += s.length;
                this.toString = function () {
                    return this.parts.join('');
            var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
            function encode64(input) {
                var output = new StringMaker();
                var chr1, chr2, chr3;
                var enc1, enc2, enc3, enc4;
                var i = 0;
                while (i < input.length) {
                    chr1 = input[i++];
                    chr2 = input[i++];
                    chr3 = input[i++];
                    enc1 = chr1 >> 2;
                    enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
                    enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
                    enc4 = chr3 & 63;
                    if (isNaN(chr2)) {
                        enc3 = enc4 = 64;
                    } else if (isNaN(chr3)) {
                        enc4 = 64;
                    output.append(keyStr.charAt(enc1) + keyStr.charAt(enc2) + keyStr.charAt(enc3) + keyStr.charAt(enc4));
                return output.toString();
        </script>
        <script type="text/vbscript">
        Function BinaryToArray(Binary)
               Dim i
               ReDim byteArray(LenB(Binary))
               For i = 1 To LenB(Binary)
                     byteArray(i-1) = AscB(MidB(Binary, i, 1))
                     concat2Bdy(AscB(MidB(Binary, i, 1)))
             Next
              BinaryToArray = byteArray
       End Function     
        </script>
    </head>
    <body>
        <input type="button" onclick="CreateEmail();" value="Attach Report" />
    </body>
    </html>

Maybe you are looking for

  • Tagged PDF files from ColdFusion.

    Does anybody know about the current -- and maybe future -- capabilities of ColdFusion tools that generate PDF files, such as <cfreport...> and <cfdcoument...> tags, to create 'tagged' PDF files? Tagged PDF files are PDF documents that have structural

  • Kernel Panic with Stripes

    I've got a 3 year old 15" macbook pro that went into Kernel Panic with Stripes today. There was nothing plugged in except for a power supply. My wife said it was in sleep mode and then she opened it up and displayed the following screen. /___sbsstati

  • Amount in the tax payment wizard Against PLA remaining for BED is negative

    Hi All, I have made an outgoing payment selecting PLA radio button for BED,Ecess & Hecess in order to deposit the amount againg BED,EcEss,Hecess in PLA account. Now when i am trying to run the tax payment wizard ,system is showing me the -ve amount i

  • Very slow working Satellite L30-10V

    I've had my toshiba just under two years now and for pretty much as long as I remember its been very slow. Last week it died completly and kept telling me there was a harddisk error preventing windows from opening. I did the product recovery on toshi

  • Double click on slider triangle does not reset to default

    When using 1.3.1 with Vista, double clicking on the slider triangles in the Develop module does not return the settings to their default values in the case of magnified images(1:1 say). It works fine when the image is not magnified and also works fin