Throwing User Message on blank report

Hi,
We have to build a XML Publisher report for pulling the invoices which has past due dated. For this the user will be provided with few input parameters to run this report. If the input paramters criteria provided doesn't pull up any records, the user should be throw message "The input paramter doesn't pull up any invoices. Please refine your search criteria". How to achieve this in terms of XML Publisher (The blank pdf should not get generated, but instead message should appear on the screen). Any thoughts?
Cheers,
Mohammadi

You can use Collections to preserve session state values. You can find a number of examples on that in this forum and outside.

Similar Messages

  • Can I validate input parameters and throw a message to user that parameters are invalid?

    Post Author: ak004
    CA Forum: General
    Hi,
    I have a report that accepts input parameters. Can I do a front end validation for these parameters and throw a message to the user that the parameters are invalid? Will this work fin if I deply it in infoview?
    Thanks

    I think I posted this on the wrong forum, I will repost this in the proper forum

  • Error in sql server with a trigger (I want to display a customize message, when the user left a blank field or null) How can I do?

    How I display a customize message(with a trigger)when a user left a blank field? I want to the stop the insert statament if the user left  the status field in blank. I create a trigger but now I can't enter a row, i used an instead trigger
    too but doesn't work. I want to display a customize message when the user left the
    status field in blank or null. 
     I have the following code:
    CREATE TRIGGER [dbo].[BLANKFIELD] 
    ON [dbo].[Status] 
    FOR INSERT 
    AS 
    BEGIN 
    IF (SELECT COUNT(*) FROM inserted WHERE Status IS NULL) =1
     PRINT 'Please Fill the Status  field is required'
    Rollback;
    END 

    I agree with other comments that you should do this with specifying that the column is NOT NULL to prevent it from being NULL and a constraint if you don't want it to be blank (spaces or the empty string - note that the empty string is not the same thing
    as NULL).
    But for completeness, the reason your trigger does not ever allow you to enter a row is the code
    IF (SELECT COUNT(*) FROM inserted WHERE Status IS NULL) =1
    PRINT 'Please Fill the Status field is required'
    Rollback;
    Since you don't have a begin/end block after IF, the only conditionally executed statement is the one immediately following the IF (that is the PRINT).  So the Rollback is always executed whether or not the IF is true and so all updates are rejected.
    So if you were to do this in a trigger you could do something like the following
    CREATE TRIGGER [dbo].[BLANKFIELD]
    ON [dbo].[Status]
    FOR INSERT
    AS
    BEGIN
    IF EXISTS(SELECT * FROM inserted WHERE Status IS NULL)
    BEGIN
    PRINT 'Please Fill the Status field is required';
    Rollback;
    END
    END
    (As José noted, there can be more than one row in the inserted pseudo table, so you don't want to test whether the COUNT = 1, instead just whether one or more rows exist where the Status  is null.  If you want to prevent Status is NULL, or all
    spaces, or the empty string, then your IF statement would be
    IF EXISTS(SELECT * FROM inserted WHERE ISNULL(Status, '') = '')
    Tom

  • 'File in Use' message is received when one user is in the report and another user tries to open the Excel template

    ‘File in Use’ message is received when one user is in the report and another user tried to open the excel template. how to make excel template shared for multiple users so the users don’t see the ‘File in Use’ message?

    Hi Febin,
    In addition to others’ replies, we can create a shared workbook and place it on a network location where several people can
    edit the contents simultaneously. For example, if the people in your work group each handle several projects and need to know the status of each other's projects, the group can use a shared workbook to track the status of the projects. All persons involved
    can then enter the information for their projects in the same workbook.
    Regarding how to do this,
     the following article can be referred to reference.
    Use a shared workbook to collaborate
    http://office.microsoft.com/en-in/excel-help/use-a-shared-workbook-to-collaborate-HP010096833.aspx
    Best regards,
    Frank Shen

  • Error messages in a report

    hi experts
    i am using a report to read the contents of the file from the desktop. the selection screen contains a parameter field for user to input the file path. in the program i am gui_upload to read the contents. if the read is not successfull i am throwing a message like this
    message e345(xyz) with text-001
    no what is happening when i enter an invalid path in the field and execute the program the error message is coming in the status bar, but then the std icons at the top of the screen like back. cancel and exit buttons are not viisble. so i have to again go back to se38 and execute the program. how do i go back to selection screen once an error occurs.
    thanks

    hi
    one more clarification about exit statement. suppose if i have a form like this
    form xxx
    read table xyz with key name = 'abc'.
    if sy-subrc = 0
    exit.
    endif.
    read table xyz wiht key name = 'def'.
    endform.
    now when the sy-subrc equal to 0 whether the control comes out of the form or it comes out of the if condition. i basically want to come out of the form
    thanks

  • LMS 4.2.4 User Tracking End Host Report The system cannot find the path specified

    Hello at all,
    I have a problem when creating a scheduled User Tracking End Host Report.
    I always get the message "The system cannot find the path specified" and the job fails.
    An immediate report is successful.
    I tried to change the "Report Publish Path" from "C:/Program Files (x86)/CSCOpx/" to "C:/PROGRA~2/CSCOpx/", but that did'nt worked.
    Has anybody an idea?
    Regards, Kerstin

    Share the screenshot of the following directory :
    NMSROOT\CSCOpx\campus\etc\cwsi
    In case it is blank, try following :
    1.Stop the services : net stop crmdmgtd 
    2.Take a copy of > C:/Progra~2/campus/etc/users and place it under C:/Progra~2/campus/etc/cwsi
    3.Start the services : net start crmdmgtd
    Please try and let me know the updates.
    -Thanks
    Vinod
    **Encourage Contributors. RATE them.**

  • Help me to schedule blank report

    my requirement is to schedule the report. if report does not give any results(no results) need to deliver empty(blank) spreadsheet.
    can anybody help me to get this done?

    Before I answer your question, why does the user want a blank spreadsheet?
    You can configure Delivers to deliver a message if the report returns no rows. Check out the Delivery Content tab.
    If you insist on a report, you can do this:
    1) Create a dummy OBI report that basically says, "This report ran successfully but produced no records."
    2) Create an ibot for this report, but don't schedule it.
    3) Now on your report, click on the Advanced tab. Click on the second "Add Action" button (the one that Delivers executes when no records are returned..." and select iBot.
    4) Navigate to the ibot created in step 2.
    So whenever your actual report returns no records, a chained iBot will fire that has your "no records" report. The beauty of this is that you can use this ibot for all reports that don't return rows... Again, this is if you need a report delivered no matter what.
    Try it.

  • Display Error Message in BW Report based on Customer Exit Variable

    Hi
    I need to display an error message in the BW report based on the value of a customer exit variable - i was able to do this successfully in BW3.5 using the below code.
      WHEN 'ZUPN'. "Here ZUPN is the customer exit variable
        IF i_step = 1.
          <check for condition -- if successful, variable flag = 1, else variable flag = 0>
          IF flag = 0.
            MESSAGE e157(00). "Error Message
          ENDIF.
        ENDIF.
    I have upgraded my system to BI 7.0 now. Whenever the variable check is not successful, it displays a blank screen instead of the error message in the report. Please advice if we need to change the code and how ??

    Bhanu,
      Thanks for u r reply.This warning message appears every time i execute the report through portal.
    Any idea ?
    Regards
    Mano

  • How to allow normal/regular users to view a report

    I have been compiling reports in MS SQL 2012 Reporting Services.  the URLs is
    http://test_report:80/reports. I have no problem with viewing the reports because I am an admin but normal users are getting access denied.  this is how I assign permission to user.  Open Reporting Services
    Config Mnger --> Connect --> Click on Report Mnger URL --> click on
    http://test_report:80/reports --> Open a another folder called Reports.  In this "Reports" it has many reports.  --> Click on Folder Settings --> Click on Security --> Click on "New Role Assignment"  -->
    In "Group or user name" text box, I entered user network computer login name, such as: domain_name\bambi --> Ensure "Browser" is checked --> Ok.  I send this weblink to users but they cannot open it because of either access denied
    or not have permission. 
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fCorp_Reports%2fReportOfTimeInLieu.  I am unsure why users cannot view my reports.  Please let me know if I had missed any step(s).  I use the Report Builders in Reporting Services
    Config Mnger to compile reports.  Regards,

    so this web link will lead me to Home page:
    http://myservername/Reports/Pages/Folder.aspx.
    at the home page I have folder called Reports: 
    http://myservername/Reports/Pages/Folder.aspx?ItemPath=%2fReports&ViewMode=List
    inside  Reports folder, I have multiple reports, ie: 
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReportOfTimeInLieu,
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReportOfVacationTime,
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReportOfSickDays,
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReportOfConferenceDays
    On Home page I click on Folder Settings --> Security --> New Role Assignment --> Group or User name: domainname\bambi --> Role = Browser
    On Home page I click on Site Settings --> Security --> New Role Assignment -> Group or User name: domainname\bambi --> Role = System User
    On Home page I open Reports folder --> Site Settings --> Security --> new Role Assignment --> Group or User name: domainname\bambi --> Role = System User
    Is this how I enable user bambi to 1) enable to open Reports folder and also browse for reports in Reports folder  2) enable user bambi to execute all reports in Reports folder.
    Problem:  user bambi was able to open Reports folder and see all reports saved in it; however, bambi gets a blank page upon selecting a report and open/run it.  bambi should see company logo and report name.  It was a blank white page.
    What did I do incorrectly?
    Thanks,

  • Missing parameter values message when exporting report

    Post Author: Gr_Pr
    CA Forum: .NET
    Using .NET 2005, CR XI R2, and the Crystal SDK for .NET 2005 to generate reports. Basically CR is my application's reporting tool. So, we create a report in CR XI R2, then distribute that report to our users loading it into the .NET application using the Report Document class.
    We have a small problem.
    Our user's have the ability to use pre-defined 'prompts' that will pass parameters to the reports. Let's say that the prompt will pass in (5) pre-defined parameter values, but the customer wants to run their own 'custom' report using our prompt, but their 'custom' report contains (6) parameters.
    If I let the Report Viewer load the report, the user will be prompted for the missing parameter value that was not supplied by the 'prompt'.
    If I run the report without loading it into the Viewer and try to export the report directly to PDF I receive an error message from CR stating I have 'Missing Parameter Values' then the report errors out.
    Has anyone come across this? Is there something I missed?
    I am not real sure as to why you would be prompted by the Viewer and not by the Export Class. This worked fine when using the RDC component, I was prompted for the missing parameter value by both options.
    Any help would be greatly appreciated.

    Hi,
    The report has it's own ADO Datasource set in crystal reports, so I just pass the log on information to the report object before doing anything else.
    this.DataSourceConnections[0].SetConnection("ServerName", "Database", "sa", "Password");
    I then do a refresh before applying the parameter values (I do this because the user can preview the report more than one time by using a preview button on the parameter form without re-loading the report object)
    this.Refresh();
    Then I set all parameter values followed by setting the recordselection formula.

  • Issue with users trying to save reports to thier Documents on one drive.

    I am working
    on a 2013 SharePoint environment and users who use Power View reports.  I
    have a user who can create reports on a site I have set up (no problems
    there).  They can also save reports to PowerPivot Gallery they have added
    in their Newsfeed for their personal site (no problems here).  The problem
    is when they try to save the report and go to Documents on one Drive it fails
    with below error message.  I am an admin but can save just fine to my
    documents.  I know the error shows an access issue but not sure where or
    how to resolve this issue for users.  <o:p></o:p>
    P.S. the
    issue happens before they even save button it happens when they see the My
    Documents and try to open it.  Again it is there personal SharePoint site
    so not sure why they would not have access.<o:p></o:p>
    SoapAction: ListChildren
    HttpStatus: 500
    ServerErrorCode: rsAccessDenied
    ServerError: <detail><ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">rsAccessDenied</ErrorCode><HttpStatus xmlns="http://www.microsoft.com/sql/reportingservices">400</HttpStatus><Message
    xmlns="http://www.microsoft.com/sql/reportingservices">The permissions granted to user 'HQEAGLEVIEW\levi.bond' are insufficient for performing this operation. ---&gt; Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException:
    The permissions granted to user 'HQEAGLEVIEW\levi.bond' are insufficient for performing this operation.</Message><HelpLink xmlns="http://www.microsoft.com/sql/reportingservices">http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsAccessDenied&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3412.0</HelpLink><ProductName
    xmlns="http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName><ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">11.0.3412.0</ProductVersion><ProductLocaleId
    xmlns="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId><OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem><CountryLocaleId
    xmlns="http://www.microsoft.com/sql/reportingservices">1033</CountryLocaleId><MoreInformation xmlns="http://www.microsoft.com/sql/reportingservices"><Source>ReportingServicesLibrary</Source><Message
    msrs:ErrorCode="rsAccessDenied" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsAccessDenied&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3412.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">The permissions granted to user 'HQEAGLEVIEW\levi.bond' are insufficient for performing this operation.</Message></MoreInformation><Warnings
    xmlns="http://www.microsoft.com/sql/reportingservices" /></detail>
    here is actual screen shot
    <v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f">
     <v:stroke joinstyle="miter">
    <v:formulas>  <v:f eqn="if lineDrawn pixelLineWidth 0">
      <v:f eqn="sum @0 1 0">
      <v:f eqn="sum 0 0 @1">
      <v:f eqn="prod @2 1 2">
      <v:f eqn="prod @3 21600 pixelWidth">
      <v:f eqn="prod @3 21600 pixelHeight">
      <v:f eqn="sum @0 0 1">
      <v:f eqn="prod @6 1 2">
      <v:f eqn="prod @7 21600 pixelWidth">
      <v:f eqn="sum @8 21600 0">
      <v:f eqn="prod @7 21600 pixelHeight">
      <v:f eqn="sum @10 21600 0">
     </v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas>
     <v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f">
     <o:lock aspectratio="t" v:ext="edit">
    </o:lock></v:path></v:stroke></v:shapetype><v:shape alt="" id="Picture_x0020_1" o:spid="_x0000_i1025" style="width:7in;height:426.75pt;" type="#_x0000_t75">
    <v:imagedata o:href="cid:[email protected]" src="file:///C:\Users\KEN~1.CRA\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png">
    </v:imagedata></v:shape>
    Ken Craig

    Hi Ken,
    It's strange that the User Profile Service Application is not available there. Please use PowerShell to check it, and you can run the command below:
    Get-SPServiceApplication | where-object{$_.DisplayName -like 'User Profile*'}
    Please ensure you are connecting to the correct farm, and open PowerShell with administrator permission. Meanwhile, add a test user in your Active Directory, and test to see whether the user's My Site can be created.
    If the User Profile Service Application can be listed by PowerShell, and the new user's My Site can be created, there might be an UI issue in your Central Administration. Otherwise, you may consider to recreate or restore your User Profile Service Application.
    Here are references:
    https://technet.microsoft.com/en-us/library/gg985419.aspx
    http://sharepoint.stackexchange.com/questions/55087/user-profile-service-application-unable-to-create-a-new-user-profile-service-ap
    https://joanneklein.wordpress.com/2011/11/08/recreated-user-profile-service-application-deletes-user-profiles/
    Thanks,
    Reken Liu

  • Search for all user messages doesnot work now ?

    Hello SDNer's,
    I often search my own questions and posts entering the keywords in Search for all user messages. After our forum has been revamped this functionality seems not be working as it used to. When I enter the keywords and Enter it throws me results from Expert Forums instead showing results just from my ID/Username.
    Have anyone noticed this ?
    Please comment Mods.
    Happy New Year to all SDNer's !!!

    User search and monitoring was all disabled due to Privacy issues.

  • How to create a user parameter for a report

    Hi,
    I am writing a report in ORACLE 6.0, and I need to create a user
    parameter for my report.
    My database includes fields: item_id, item_cost, and item_desc.
    What I want to do is: set up a user parameter for item_cost, and
    the report will prompt the user to enter number into this
    parameter, then the report will display item_id and item_desc
    depending the user-entered item_cost.
    thanks.
    Jun

    My SQL code is below:
    select item_id, item_invo, item_desc
    from tb_item
    where item_invo=:p_1
    but I got an error message:
    REP-0788:Warning: The value of restricted LOV parameter p_1 is
    not among the selectedble values.
    Would you help me again? Thanks.
    Jun

  • Exceptions vs user messages

    There is a thing in connection to exception handling in GUI applications that I have been thinking on at some times: Where/how to produce user messages for exceptions that may occur somewhere in the business logic?
    The best guidelines I have read about how to use exceptions in a reasonable way is the chapter about exceptions in the book Effective Java Programming Language Guide. An excellent book for people that like to write high quality code! Some advices state that exceptions should be used for exceptional things that we have to expect and that they should contain information that helps doing debug. And that we should use runtime exceptions for programming errors. This is good! This was a help for me to not hate exceptions as I did before : ) but instead use them to create robust code. But what I not yet understand is where the user messages fit in to this? Or have I not yet found a design for it that I like enough yet. With user messages do I think on clear messages to display to the user, not the type of messages in exceptions that is for developers to support debug.
    If for example a FileNotFoundException is thrown somewhere down in my business logic, an error we must expect because the user may have deleted the file since the last time we used it, where and how do I then produce the exception to be displayed in the GUI?
    Some possible answers ...
    Wrap the exception in a new MyUserException that is used for all exceptional situations that should result in a user message with the user message as the detail message for the exception? I don�t like it. I want specific exceptions for specific error situations and it looks more right to decide whether an exception should be displayed to the user or not in a higher level close to the GUI.
    Put an error code in a MyErrorCodeException and use that for all exception handling. The error code do I then use to pick a localized message from some table. I don�t like to have my own exception hierarchy either. Often are there already a useful exception in the Java API and error codes adds clutter.
    So what should I do with my FileNotFoundException? Just let it pass through all the way up until I can use the failure information in it to compose a user message? This is what I feel most "right" but it is not always that simple as with a exception that so clearly tell what have happened as "FileNotFound"Exception does.
    I want to define my user messages in a properties file and access them from a resource bundle to be able to localize them. But where and how should I map them to thrown exceptions? It would interesting to listen on opions from others about this!

    JonnyAndersson wrote:
    jschell wrote:
    JonnyAndersson wrote:
    If for example a FileNotFoundException is thrown somewhere down in my business logic, an error we must expect because the user may have deleted the file since the last time we used it, where and how do I then produce the exception to be displayed in the GUI?Why is that an exception?If it not where an exception would it be a programming error, which then should cause a runtime exception. This is in line with the guidelines in the excellent book Effective Java Programming Language Guide. Errors you must expect, for example that a user could have deleted the file your business logic is going to read from, should it be announced using checked exceptions. You can't always assume that the file is there in your code. But errors that you could avoid using code should be avoided and if you not follow the rules should a runtime exception be thrown.
    No.
    There is a difference between an exception and a normal process flow. The fact that an expected flow results in you telling the user that something is wrong doesn't make it an exception.
    For example if you are playing a game and your space ship blows up because you overheated the engines then that is not an exception. You programmed the game such that the engines overheating was an expected condition.
    So, again, in your application there are two possibilities when you say that the user deleted the file.
    1. You expect the user to delete the file. Maybe because there is a delete button on a dialog somewhere.
    2. You don't expect the user to delete the file. Just like you don't expect them to delete your jar file.
    The first case is expected behavior. The second isn't.
    They are different so you treat them differently.
    >>
    I want to define my user messages in a properties file and access them from a resource bundle to be able to localize them.That doesn't sound like exceptions to me.The message in exceptions is meant for developers that are tracking what have happened. In the business logic do you not know from where your code is called. Otherwise is it less reusable. But exceptions that have popped up all the way to the user view should be displayed with a message, preferably a localized message, that is understandable for a user that probably not is a developer. And that message is therefore preferably defined in a resource bundle.Definitely not.
    The developers at my company do not speak nor read japanese. So it absolutely pointless to have artifacts that developers must deal with in other languages.
    Conversely when the user incorrectly types their password/user name into the system then the message that pops up must be readable by the users. And the developers should never need to see that because they expect that behavior.
    User messages must originate from known sources. Otherwise you have no possibility of translating it in a usable way and in all likelyhood it won't be useable in the original language either.
    >
    The big question is how to map the defined user messages to thrown (checked) exceptions? A problem is that exceptions seldom contains failure capture information. To create a good user message do I for example need to know which file the user tried to open to be able to notify that it was some problem with that file to let the user have a chance to fix the problem.The big problem is coming up with a consistent normal, error and exception system and recognizing that although developers must deal with and understand all three that users should only be expected to deal with the first two themselves and need not know anymore about the third except how to report it.
    There are any number of variations on the doing this. But again consistency, not methodology, is the real key.

  • User ID is blank in the SAPLOGONTICKET

    Hello All,
    I'm dealing with a very strange issue of SSO between Portal (SP11) and R/3 system. Everything was working fine and we had to restart the Portal system for some reason. After the Portal restart, SSO stopped working. Now i have configured everything again but still with no luck. I'm getting an error message "Name OR password not found" I went to SM50 and took a trace and found out that User ID is blank there.
    Any ideas what could be wrong here.
    Regards
    Vaib

    Dear Vaibhav,
    Could please check the profile parameters in RZ10 Transaction in ur R/3 System. And Systems fields in portal as well.
    Rgds
    PRadeep

Maybe you are looking for

  • Interactive booklet file missing: How do I get it back again?

    I have the album "Highway Companion" Deluxe version by Tom Petty. I recently discovered that there is an interactive booklet that is is a movie file but the file contains no data. It's just a black/blank screen. I checked my purchase history for the

  • Iweb help for my wedding site

    Hi all, I have done a really basic iWeb site for my wedding, but i am looking to put some sort of R.S.V.P. page on there that my guests can use to let us know.  Has anybody seen this done or knows how to do it.  I would want the system only to be vis

  • Stuck on this for 72 hours, please please help, servlet to midlet coms

    this problem is driving me mad, ive spent 3 whole days now and im totally stumped, so i really hope someone here has an idea basically, i have a parsed xml file read into a vector, and now i need to send that vector to my midlet, the question is how,

  • Using paintbrush on Live Paint files

    Is there a special thing that needs to be done to a file before you can use a paint brush on it after it's been converted via the Live trace function? When I try to use the brush the icon gives me the typical "not possible" icon (Ghostbuster's logo).

  • IPhone4 not showing up in iTunes or iPhoto

    I had to have my mac wiped due to multiple kernel panics, but my iTunes library was restored (thanks Apple!), but now iTunes won't recognize my iPhone. I restarted the computer, turned off and on the iPhone, tried both USB ports, and all of my versio