I have created several drilldown reports within my report unit and one of them is based on number of transactions (drilldown for more detail).
I want the drilldown to only be available when the number of transactions is greater than or equal to one.
Can this currently be done?
You could have two fields stacked on top of one another, one with the hyperlink and one without. Set your expression to show the field without the hyperlink when transactions < 1, and show the field with the hyperlink when transactions >= 1.
Make HyperlinkExpression return null. This works for me.
http://community.jaspersoft.com/questions/520247/conditionally-display-link
JasperSoft Reports 6.12.2
Place Text field stacked on top of one another.
Add Print when Expression to display on condition.
In Hyperlink Settings
If do not want to display link then set Link Target : Self and Link Type : None
Else Link Target : Blank and Link Type : Reference and use Hyperlink Expression as per your need.
Related
I have a Google Sheet in which there are multiple tabs. In one tab, I want to setup a conditional formatting rule to change the font colour of the entries which are referring to another tab in the same spreadsheet.
My goal is that when the references are replaced with updated data, the colour will be representative of the "new" data versus the estimated data (on the other tab).
In my current attempts, all of the "functions" in the conditional page use the evaluated value of the reference, not the reference itself.
Found a solution! Might not be the most elegant but it is working.
When setting up the conditional-formatting, I selected the cells I needed and chose "Custom Formula" and used:
= ISNUMBER(SEARCH("!", FORMULATEXT(C11)) )
I believe it works as the FORUMLATEXT gets the actual link not the data and the (probably not portable) reference to another page always has a ! in it separating the tab-name from the cell.
The issue I was stuck on was that SEARCH raises an error if the thing is not found but returns a number if it is.
So the ISNUMBER() wrapper handles the error by returning 0 on the not-found case but 1 when the character is found in the reference text.
I have a label field in JIRA called 'assets'. As labels can be manually added its easy to add a 'wrong label', thus we have a set of defined valid labels.
valid labels = (one, two, three)
The JQL I currently use is: "assets" NOT IN (one, two, three)
This works fine if ie. assets = (red, blue) etc. but if the asset fild contains one of the valid labels it does not show. ie. asset = (one, blue) is not shown, but in fact I would like it to show.
How can I create a JQL that checks that all labels in a field is contained in a set?
Unfortunately, there is no way to do that with just standard JQL.
You can accomplish this using the Script Runner add-on though. It allows you to implement your own custom JQL function in Groovy using the JIRA Java API, so you can add whatever logic you desire.
Some interesting links:
Script Runner add-on
Custom JQL functions
I have a Count query that uses multiple criteria to produce a result looking like:
count ID
1 "abc"
4 "bcd"
5 "def"
1 "cde"
This shows how many times the ID appears in a given database. The datasource is through an odbc connection that updates automatically. So the ID values change everytime it is opened. I would like to try to turn the unique ID or the associated count into a hyperlink that when clicked will return all information involved in the count (*note the database has much more information associated with the ID's than is counted, a date range of the previous three months is applied.) Can this be done simply?
Database format:
ID Instance Device DateBeg DateEnd
Thanks in advance,
LP
The short version -
This should be simple to do using a report (but could also be done using a form I will be explaining how to do a report for this version). You would just make a report that includes all of your fields then call the report on click. It is important to mention that you will need to view the query via a form to make this work.
A more detailed version -
The first step will be to make a form based on your query (you will not be able to do this directly from a query). To do this select your query then click on the create tab then click Multiple Items Form. Adjust as needed.
Then create a report that shows ALL of the records how you want it to display. (I will call it rpt_ViewDetails) (we will limit later)
When you are done adjusting click on the field that contains the "abc" etc. results (if this is a calculated field it will be more complicated.) I will call this field "Criteria" for the example. Go to the events tab on the property sheet (in design view). use the On Dbl Click event and go to code builder.
This is what the code would look like (place in between the private sub.... and the end sub lines of code):
DoCmd.OpenReport "frm_ViewDetails", acViewNormal, , "[Criteria] = " & Me.Critera
Let me know if you have any trouble with this, also let me know if the structure is different than I am assuming, I will need a more detailed report of what the query is doing if this is the case, what the structure of the database is etc.
Show / Hide Fields in Pentaho Report Based on User Input.
Version : Pentaho RD version : 5.2.0.0-209
Efforts :
I have used the banding element and the functionality formula to 'invisible consumes space'
I have used two bands one within another, with different layouts 'block' and 'row' to remove both spaces for invisible elements (in rows and columns).
Result :
It is giving appropriate result and working fine in Pentaho Report Desinger tool itself while updating Query to fetch any field either col1,col2 etc...
- It removes the hiding empty column space from row and column both. Agreed with that.
*Problem :
It still shows the blank Invisible Consumes column Space when doing that .prpt report integration in web application. eg. Grails
Please help me to come out from the problem.
Thanks.
I have a number field called Days and an editable names field called Names ( which allows multiple values ).
Let say that Days=1 and Names=Mike/Rock, Tom/Rock, Dean/Rock.
I want to display them in a column view like this:
1
Mike
Tom
Dean
I tried it with #NewLine, but no luck for me.
I also created a computed (hidden) field test with the following formula as default value:
#Text(Days)+#NewLine+#Implode(#Name([CN];Names);#NewLine)
It seems to be the wanted form for me, but when I just put test in a column default value, it shows nothing.
I appreciate your time.
Try to set your test field to #text(days):Names. This should create a multi-value field (as opposed to a single string which your test formula produces).
Then, set the multi-value separator of the column style to Newline, and adjust the number of rows to match the expected number of values.
In a view we get only one row for one document. Multiple values are therefore shown in one row only with multi value separator.
Eclipse view may perhaps help.