Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Hide report for wrong parameters in Birt Report viewer
Hide report for wrong parameters in Birt Report viewer [message #736776] Fri, 14 October 2011 06:18 Go to next message
Anurag  is currently offline Anurag
Messages: 47
Registered: September 2011
Member
I want Birt Report viewer to show a blank report & show some message such as "Access Denied" if parameters are wrong.

This is my form:

<form name="input" action="http://115.248.229.54:8888/birt/run?__report=RoleBasedAccess.rptdesign" method="post">
   <input type="hidden" name="__report" value="RoleBasedAccess.rptdesign" />
   User: <input type="text" name="__user" />
   <input type="submit" value="Submit" />
</form>


Say user is 'admin', I want to show report, if not I want Birt Report viewer to show a blank report & show some message such as "Access Denied".

Thank you,

Anurag

[Updated on: Fri, 14 October 2011 06:20]

Report message to a moderator

Re: Hide report for wrong parameters in Birt Report viewer [message #737062 is a reply to message #736776] Fri, 14 October 2011 12:04 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

How do you know if the parameters are wrong?

Jason

On 10/14/2011 6:18 AM, Anurag wrote:
> I want Birt Report viewer to show a blank report & show some message
> such as "Access Denied" if parameters are wrong.
>
> This is my form:
>
>
> <form name="input"
> action="http://115.248.229.54:8888/birt/run?__report=RoleBasedAccess.rptdesign"
> method="post">
> <input type="hidden" name="__report" value="RoleBasedAccess.rptdesign" />
> User: <input type="text" name="__user" />
> <input type="submit" value="Submit" />
> </form>
>
>
> Thank you,
>
> Anurag
Previous Topic:Word doc has unwanted empty paragraphs
Next Topic:Setting report width to 100% of page
Goto Forum:
  


Current Time: Wed Jul 30 03:19:06 EDT 2014

Powered by FUDForum. Page generated in 0.02052 seconds