App Engine creates XML report but I cannot access it in Report Manager

Here is my application engine code:
import PSXP_RPTDEFNMANAGER:*;
/* XML Publisher report using query data source */
Local string &sRptDefn = "WAP_XML_JAS2";
Local string &sLangCd = "ENG";
Local date &AsOfDate = %Date;
Local string &sOutFormat = "PDF";
Local string &sPrcsServerName;
Local string &sFolder = "XML PUBLISHER";
Local number &prcsInstId;
Local PSXP_RPTDEFNMANAGER:ReportDefn &oRptDefn;
/* get report definition object */
&oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn(&sRptDefn);
&oRptDefn.Get();
/*generate report*/
&oRptDefn.ProcessReport("", &sLangCd, &AsOfDate, &sOutFormat);
/*publish report */
&oRptDefn.Publish(&sPrcsServerName, "", &sFolder, &prcsInstId);
I see my report in Report Manager but it isn't a hyperlink that I can click on to then open the PDF. However if I run my XML report in the XML Scheduler, I see that report in Report Manager and it is a hyperlink.
Any ideas? Did I miss a line of code i need to be able to access it? When I take the url for the one that works and change the Report ID for the one that doesn't work, I get kicked out of the web (says error has occurred and makes me sign in again).
Thanks!
Jennifer

I was able to get the file to get the hyperlink to appear. I used the following code:
import PSXP_RPTDEFNMANAGER:*;
/* XML Publisher sample report using query data source */
Local PSXP_RPTDEFNMANAGER:ReportDefn &oRptDefn;
/* create report definition */
&oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn("WAP_XML_JAS2");
&oRptDefn.Get();
/* specify output destination when output type is file */
If %OutDestType = 2 Then /* file */
&oRptDefn.OutDestination = %FilePath;
End-If;
/* process report */
&oRptDefn.ProcessReport("", WC_WAPXML1_AET.LANGUAGE_CD, %Date, &oRptDefn.GetOutDestFormatString(%OutDestFormat));
/* send output to destination */
If %OutDestType = 6 Then /* Web */
&oRptDefn.Publish("", "", "", WC_WAPXML1_AET.PROCESS_INSTANCE);
Else
If %OutDestType = 3 Then /* Printer */
&oRptDefn.PrintOutput(%FilePath);
End-If;
End-If;
Of course I had to have the following SQL statement in the first step to populate the state record:
%Select(WC_WAPXML1_AET.OPRID, WC_WAPXML1_AET.RUN_CNTL_ID, WC_WAPXML1_AET.LANGUAGE_CD)
SELECT OPRID
, RUN_CNTL_ID
, LANGUAGE_CD
FROM %Table(PRCSRUNCNTL)
WHERE OPRID = %OperatorId
AND RUN_CNTL_ID = %RunControl
Now I am able to get the report in report manager if it is run to the web, or as a file if that option is chosen on the run control.

Similar Messages

  • I just burned to disc an album of photos I created in Pages but I cannot open the file on the disc because "the format is not valid".  What does this mean and how do I correct it ?

    I just burned to disc an album of photos I created in Pages but I cannot open the file on the disc because "the format is not valid".  What does this mean and how do I correct it ?

    There are numerous thread about the same matter in this forum
    I hope you'll find your answer
    https://discussions.apple.com/search.jspa?resultTypes=&dateRange=all&peopleEnabl ed=true&q=the+format+is+not+valid&containerType=14&container=2084&username=&rank By=relevance&numResults=15

  • HT2534 my app store is working perfectly fine in my i3gs but i cannot access itunes in my 3gs device

    i have itunes and app store in my 3gs device , appstore is working fine but i cannot access itunes  when i open it it
    only shows two options itunes u and podcasts nothing else
    i want to how can i download or listen music or watch videos in my 3gs device using itunes
    I am waiting for your reply
    Thanking you
    Avisha manav
    9810923788

    settigns>itunes and app store to make sure you are signed in.. If  you are, you will see your account name..... anyhow, click your account name, sign out and sign back in
    also go to to settings>general>reset and reset network settings... if that doesnt work settings>general>reset and reset all settings!
    one of those shall work. The last step would be to restore your device (apple.com/support) HT1414

  • I can see my apps on Itunes but I cannot access them.

    I can see my apps on the computer screen but they are transparent. The pointer device does not work on them and they are not listed in my library in Itunes. My library shows that I have no apps at all.
    Each app works on the phone but I cannot delete any apps, nor load apps via the computer. In fact none of the links - music, video, photos in Itunes when viewing or sync my Iphone work. They are all there on the screen but it looks as though a transparent film is covering everything. This has never happened before and is a recent problem. I would like some help in resolving this issue.

    On your iPhone, go to Settings > General > Restrictions.
    Is Restrictions enabled?
    If so, is Installing Apps and Deleting Apps enabled as a Restriction?
    If yes, turn Installing Apps and Deleting Apps off as a Restriction.

  • My ipod says is has wi fi but i cannot access the app store or anything else online

    My ipod says I have wi fi but I cannot access anything online.  It worked for a long time then quit. I have already reset everything and started over and I still cannot get it to work???

    First off, make sure you can access the internet from your computer.  If that does not work then you have issues with either the router or you Internet Service Provider.
    If you can surf the web, try accessing the Apps Store from iTunes on your computer, not your iPod.
    If you can get to the Apps Store via iTunes, try again from your iPod.  If that does not work you may have to restore....

  • TS3988 I had an email address created with icloud but I cannot get it no my new devise can I get help please

    I had an email address @me.com but I cannot access it so I need help to locate/access it again

    If you send yourself a message to the same [email protected] what happens?

  • HT201077 Why can't I access my iCloud albums from apps on my mobile devices?When I go to access my albums from any app on my phone or iPad, I cannot access the iCloud albums, only the albums synced with iTunes/iPhoto manually.  This is frustrating because

    When I go to access my albums from any app on my phone or iPad, I cannot access the iCloud albums, only the albums synced with iTunes/iPhoto manually.  This is frustrating because I cannot add to those albums from mobile device, I have to add to them during a Mac sync.  I would like to be able to use my iCloud albums to organize my photos but if I cannot access them from apps it seems pointless.  I will end up having to maintain both an iCloud library and a separate iPhoto library which is more work that seems necessary.  I want everything easy to organize and access.  It seems like in this age where most people are more likely to use their mobile devices than their Macs (and some do not even own Macs) that there should be a mobile solution.  Hopefully I am simply without a clue and you folks can help me out with a fix or a source of info as a solution.  I have not found answers yet.

    gail from maine wrote:
    Hi keriah,
    When you go to Settings>Pages, do you have the "Use iCloud" option turned on?
    Cheers,
    GB
    That was it!  Thanks!!!

  • Is there any way to recover files when the back up catalog has been deleted accidently.  I can see a preview of the photos, but I cannot access or edit them.  They say "the folder cannot be located" and "the photo is missing".  I have gone through multipl

    I can see a preview of the photos, but I cannot access or edit them.  They say "the folder cannot be located" and "the photo is missing".  I have gone through multiple Adobe tutorials to try and recover them to no avail.  Any tips?

    Backup catalogs wouldn't have helped with this problem anyway, but naturally, you shouldn't delete backup catalogs for a while.
    The solution to reconnecting the folders is given here: Adobe Lightroom - Find moved or missing files and folders

  • Adobe Flash Player, version 10.1.102.64 installed, but I cannot access FP dependent applications

    Adobe Flash Player, version 10.1.102.64 is installed, but I cannot access FP dependent applications (such as those on Facebook.)
    I used the link you previously  provided  http://www.adobe.com/products/flashplayer/fp_distribution3.html
    to  download the FP .exe and it worked for 2 days, but is no longer working and I'm getting the same message for both  Mozilla & IE. The only things I recall doing prior to FP not working again was 1) sign up for G Mail & 2) I used Save As to dwld a number of Images from Google.  I also rolled back my PC a day, but that has not fixed the issue.  I get the error both in IE & Mozilla.
    I've reviewed HK Local Machine/Software/Adobe, but there is no file folder for Flash Player under HK  HKEY_LOCAL_MACHINE/Software/Adobe {though there are folders for Shockwave, etc.)  Does anyone know the KEYS for Flash  Player, that I could add manually?
    System Information:
    Win XP Home, SP 2
    IE 8.0.6001.18702
    Mozilla 3.6.12
    Flash Player 10.1.102.64
    Thanks for any & all help!
    Sidney

    Can you see the Flash animation at http://www.adobe.com/software/flash/about/ ?
    Does it show some version information under it?
    Is Shockwave Flash object enabled in IE and FF?
    What files do you have in C:\Windows\system32\Macromed\Flash?
    Do you know that XP SP2 is no longer a supported OS?

  • I have 4 emails in junk folder, but I cannot access them, all i get is a "no message " sign

    I have four messages in my junk folder but I cannot access them, when i click
    on the folder I get "No message selected"
    Help

    You will need to erase the HDD and start over by reinstalling the OS and setting the Mac up as a new one with your own Apple ID.
    Linc gives you a few options how;
    https://discussions.apple.com/message/25672158

  • I'm trying to connect to my work's VPN.  I am connected to the VPN, but I cannot access the server. I keep getting a message that says the server may not exist or is unavailable.  I know that's not the case because my coworkers are connected. Can someone

    I'm trying to connect to my work's VPN.  I am connected to the VPN, but I cannot access the server. I keep getting a message that says the server may not exist or is unavailable.  I know that’s not the case because my coworkers are connected. Can someone please help me? 

    I have the same problem. It is only with tv shows and only with programs I have downloaded after the software update.
    Apple support sent me the above link too....but it doesn't solve the problem...my computer is authorized and the content is in my library and will play on my Mac air, but it will not sync the tv shows, it keeps saying my computer isn't authorized for it.
    No answers here, but you are definitely not alone with this issue.

  • How do we change itune and icloud accounts?  My wife and I have seperate accounts but she cannot access hes, only mine.  This causes many issues like facetime, text etc. Do we have to reset her devices and start fresh?

    How do we change itune and icloud accounts?  My wife and I have separate accounts but she cannot access hes, only mine.  This causes many issues like face time, text etc. Do we have to reset her devices and start fresh?

    I think this may be the answer.
    http://support.apple.com/kb/HT5621

  • Installed Genuine Fractals 6 into CS5. But I cannot access it in Photoshop. What to do?

    Installed Genuine Fractals 6 into CS5. But I cannot access it in Photoshop. What to do?
    I have dragged the plug ins into photoshop but nothing seems to work.
    I reinstalled photoshop; reinstalled Genuine Fractals, search every menu option, no mention of Genuine Fractals in Photoshop shows up. It is supposed to be a plug in.
    OnOne suggests either
    1) going to Window, extensions, to find it, or
    2) going to File, Automate to find it
    When I do either of these, I still see no access to Genuine Fractals.
    Help!

    My extensive testing and side-by-side comparisons between the results achieved by Genuine Fractals and by Photoshop's Bicubic Smoother math in CS4 have left me thoroughly convinced that Photoshop Bicubic Smoother produces superior results.  I would not expect that function to have deteriorated in the least in CS5.
    It is true that earlier, before Bicubic Smoother was introduced, Genuine Fractals did provide a genuine advantage.  But those days are gone.
    Do your own testing.  I'm confident you'll leave Genuine Fractals behind.
    Wo Tai Lao Le
    我太老了

  • ICloud works on my iPhone but I cannot access my mail from my macbook.

    iCloud works on my iPhone but I cannot access my mail from my macbook. I keep getting a server error message;
    There may be a problem with the mail server or network. Verify the settings for account “iCloud” or try again.
    The server returned the error: The iCloud IMAP server “p03-imap.mail.me.com” doesn’t support External (TLS client Certificate) authentication. Verify your account settings and try again.
    I've done everything possible and nothing seems to work. Any suggestions.?????

    Have you tried to completely sign out of iCloud and then adding it back again? By the way, a software update to the latest version of OSX could also help to fix it (think about it, because Mavericks is a free upgrade).

  • Ios7 now installed on my iphone 4S, emails show up but I cannot access them, message says cannot get mail - server failed.  Why is this happening?

    My message titles appear but I cannot access them since they are greyed out.  Message in front says server failed.  Messages accessable on regular computer, why the problem?  Yesterday I installed ios7 on my iphone 4s..

    I have this question too!  I updated my Iphone iOS software last night and this morning, I cannot access my mail as it says that I cannot connect to the server.  On both my Iphone and Macbook, when I open mail- it says that the server rejected my password for ICloud.  I can also log in to ICloud online, so I know that it isn't my password- HOWEVER, when I try to access mail through the cloud online, it tells me that it is unable to obtain my mail.  Is there an iCloud server problem currently?  Is it a software problem?   Please help with any suggestions!  Thanks in advance.

Maybe you are looking for