English 中文(简体)
在JasperServer为多选择学历创造活力
原标题:Generate Dynamic Query for Multi Select Query in JasperServer

I m very new for JasperServer. Now I want to create a complex report that verify the right of Admin User and Normal User.

Example:
I have many branches of company, and I want to create one report that retrieve data only belong to the branch which belong to user.

Scenario:
-Admin User can see data of all branches, so in the Multi-Select Box, should show all Branch Name.
-Normal User can see data of the branch belong to that user, so in the Multi-Select Box, should show only Branch Name that belong to that user.

请告诉我,或给我一个榜样。

Thank so much before hand.
LeeJava

问题回答

你可以把用户名称作为参数。 在变式电解中,你可以使用用户名称来收集所希望的数据。





相关问题
org.xml.sax.SAXParseException with JasperReports [closed]

Sorry for dummy question, but i lost my whole day to start with JasperReport. The problem is that i always receive this exception: "org.xml.sax.SAXParseException: Premature end of file." when i am ...

Unwanted font Helvetica in PDF from Jasper

When I create a PDF from a Jasper Report, the resulting PDF declare to use "Helvetica" font, even if it doesn t contain text. Unfortunately I cannot embed "Helvetica" font, because it is not among the ...

Jasper Reports Excel output

I need to generate a report in Excel format using Jasperreports. I am using iReports 3.7.0 The reports gets generated with no issues except the size of empty cells. Can somebody please tell how to ...

user report generation by various attributes

User table contains the following attributes (dateOfBirth, race, gender, ...). We would like to generate a report in the following format. Year Race All Male Female 2000 Asian 2000 1000 1000 ...

Convert RTF files to DOC

I generate a report in doc format using Jasper, Jasper uses JRRTFExporter to generate doc reports, but wen i try and compare doc reports using POI it throws exception stating some header issues. Is ...

IReport Case in Variable

I write this code in one variable in the IReport $F{wbsWbkRef.wbkStdRef.stdBlRtntp.blCode} != null ? ReportUtil.getFirstEntity($P{JPA_ENTITY_MANAGER}, "SELECT "+ "CASE WHEN std.stdBlRtntp.blCode ...

热门标签