Jasper reports Parameter Form - jasper-reports

Im pretty new to JasperReport Server. I have had success using JasperReport Sever 4.7(Community edition) and calling jasper reports (using jasperviewer)from within a java application.
My problem is:
1. To create my own parameter form which pops up when a user clicks a button linking to a jasper report.
User to be able to enters the desired parameters (preferably selectable from a list) then when the user presses enter or ok on this page, it passes the values to the jasper report accordingly.
Any assistance would be highly appreciated.

For the first, when you create your report and save in your Jasper repository -
Just right-clik the report folder (the one containing your Main.jrxml) and click on Properties. A dialog box appears.
Go to Other tab. Next to Controls Layout label there will be a drop-down box. Select Pop-up Screen on that. Your job is done.
For the second, you can definitely have a select list. There are two ways to generate values for the list - by using a query or entering manually. The steps are:
In your report folder in the repository, under your main.jrxml file there will be an Input Controls folder. Right click on it and click on Create a local input control. A dialog box will appear.
On the General tab give the ID and name for the input control (ID must match to your respective parameter name).
Go to Input Control Details tab. Select type as "Single Select Query" or "Single Select List of Values" as per your requirements. Enter the query or values and your job is done.

Related

Editable text box on MS Access 2010 - Behavior correct?

I have a continuous form which displays an overview/summary of my data. A user can select a row and click a button I created in the footer to open another form which has all the detail for that particular record and be able to edit it. This works fine. However I would also like for certain fields to be editable from the continuous form. I enabled two fields I would like users to edit directly (One is a combo box selection and the other a text box) When users click the combo box for any record it works fine and they can go back to the same record and select another value if they wish. All great but the text box behaves rather differently - The text box will allow the user to initially enter a value but after entry the box appears disabled and the only way to change the initial data entry is to go into the detail form which still works. Why can't users change the text box from the continuous form after an initial entry?
I found the issue!
There was a conditional filter on that particular field

sharepoint online, set edit item view as default instead new item view

I am working in a small SharePoint project to let school students pre-order the lunch online.
the main idea is the student can login to a school site, fill an order form.
I try use a list form to do it, just simply put a InfoPath form as web part on the home page.
When students open the site, he can fill the order form directly.
but the problem is the default view of this web part is always the new item form. so when a student already make the order, then login to site again,
how can I let him see his order and edit it instead a new order form.
another way may be use the form library, but i don't know how can i transfer the filed from the form to a list. because at last we still need a list instead a bunch of documents to get the summary of order.
Thank you for help.
Perhaps you can use a custom list and show that on the homepage?
A 'custom list' by default only has a title column but by adding more columns through the list settings you automatically add form fields on its new item form.
Since you are creating an order form you might want to hide the title column. Go to the settings of the list, then advanced settings, allow editing of content types. Then back in the list settings click the 'item' content type, then the title column then click the radio button for hidden.

Is there a parameter that can be passed through URL so that Input control screen doesn't load ? (JasperReports)

The short Version:
Im looking for a varuble I can pass along with a hyperling so that the input control screen isn't loaded (something like this ...&loadInputControl=false )
The long version:
I have a drill down report (lets say reportONE) with input controls that need to be populated
When report is run the 1st time the input control screen appears and after the user enters and runs the report, the user can then drill down to the drill down report (let say reportTWO)
Once in the drill down report (reportTWO) the user can click a back link wich takes the user back to the 1st report (reportONE)
What is currently happening is the 1st report (reportONE) input control is loaded with the parameters sent from the drill down report (reportTWO)
But what I want is for the report to automatically run when it is called from the drill down report (reportTWO) a.k.a skip the input control screen
EXTRA:
I'm using iReport 5.0.0
I'm using hyperlinks to drill down/up to the report
If i disable the "Always prompt" option for input controls then the user won't see the input controll screen the 1st time the report is run
Simplest solution what i have been doing in my reports,just create a separate folder for down/up reports and copy all the drill down/up reports under this directory and disable the "Always prompt" for these reports only and hyper linked with the drill/up reports.

Pop up a .aspx page from my own project using crystal repot

i want to Pop up a .aspx page from my own project using crystal repot object
e.g there is an text object on crystal report VIEW ATTACHMENTS , if user click this , a .aspx page should be pop up showing some attachments etc
right click on the text object, click on Format Editor, and go to the Hyperlink tab. Select the "A Website on the Internet" in the "Hyperlink type:" area. Add the hyperlink to the "Hyperlink Information:" area. If you need multiple hyperlinks based on different criteria you will need to set up a formula.

Returning back to the original report via a return link button in the linked report with multiselect params in the main report

I am working with ssrs reports. I have a summary and a detailed report. The detailed report is linked to the summary report. Now the user wants to have a "Return to Summary Report" link in the detailed report.
My main problem is I have multiselect parameters in the Summary report. I know the solution if I have single select parameters. In that case I can create a textbox with text decorated as link button and in the Action property of the textbox I choose Jump to report and provide paramaters which I get from the previous report. This method works for single select parameters in the summary but I dont know how to handle the multi select.
Also we do not have the small button that ssrs provides to go back to reports. So thats not an option I can use.
Any ideas will be appreciated.
In the Action property Ihad to select the "Jump to URL" option and put this in the textbox for Jump to URL:
="javascript: history.go(-1)"
Here is whre you have to place javascript:history.back(1)
right click on the report
click insert -> textbox
once the text box is created
right click and choose "Text box properties"
click "Action" property
choose Go to URL option button
copy and past javascript:history.back(1)
(Note: it is case sensitive, you don't need to put quotation mark")
then click ok and this should be working in IE