How to hide or show column in Pentaho report based on condition - reporting

How can I show or Hide column based on condition.
For example I have column name employees and there is parameter called $country(drop down list). I want that employee column only show on report when country US or Canada is chosen by user else that column does not show on report. How to add that condition on visible property of column. Is there any other steps as well to attain these results?
Thanks.

let's say if you are using text-field do display employee name,in style tab of text-field there is a property called visible,by default it will be true,click on plus sign of that property and you can right you condition there, like below
=IF([country]="US";"true";"false")

Related

Oracle Apex IG Dynamic Cascaded Select List Column displaying ID instead of text after saving

In interactive grid, PayToType is select list column and "Pay To Account" is another Column which load dynamically list depend on "PayToType" selection with the help of function Returning SQL Query.
In "Pay To Account" IG Column set the property Parent Columns is "PayToType" under the Cascading List of Values for dynamically loading the relevant list accordingly.
every things look fine, but "Pay To Account" IG Column shows ID instead of selected item text when data load from the table.
I Think "Pay To Account" dynamic list not invoke once data load from the database.

Not showing List of Values Field in my Oracle Apex form

There is no option of List of Values between Validation And link field. I want to create LOV in Particular column
There won't be any unless you modify item type to one that actually contains list of values, such as
Select List
Popup LoV
Shuttle item

Visual Studio 2013 Report RDLC with related datasets

I currently have two tables in a database "customer" and "pricelist" where a customer can have multiple pricelist items linked to their ID.
I'm trying to build a report in VS2013 where it lists all customers [alphabetically], then all of their pricelist items [alphabetically], then page break between each customer.
I've tried setting it up to use a dataset of each table, which doesn't let me group them together, and I've also tried joining the two tables into one view which was the closest I had gotten. The problem was that for each item, it printed the customer name and a page break, because of the inner join i was doing where each record has the customer name on it.
Please help me figure this out! I just want to be able to display the data as such;
CUSTOMER NAME
.........ITEM 1.....PRICE
.........ITEM 2.....PRICE
.........ETC
PAGE BREAK
CUSTOMER NAME
.........ITEM 1.....PRICE
.........ETC.
To group data in a report:
Click the Design tab.
If you do not see the Row Groups pane , right-click the design surface and click view and then click Grouping.
From the Report Data pane, drag the Date field to the Row Groups pane. Place it above the row called (Details). Note that the row handle now has a bracket in it, to show a group. The table now also has two Date columns -- one on either side of a vertical dotted line.
From the Report Data pane, drag the Order field to the Row Groups pane. Place it below Date and above (Details).
Note that the row handle now has two brackets in it, to show two groups. The table now has two Order columns, too.
Delete the original Date and Order columns to the right of the double line. This removes this individual record values so that only the group value is displayed. Select the column handles for the two columns, right-click and click Delete Columns.
Switch to the Preview tab to preview the report. It should look similar to the following illustration:
The answer was retrieved from this MSDN page

How to hide rows if one of the cells is a duplicate of the one above it

I'm trying to filter a contact list that contains each contact's name, company, email address, etc. As it currently is, the contacts are sorted by their company name and I have various contacts from the same company. I want to be able to have only one contact from each company.
Here's how the Google spreadsheet looks: . The company names appear in column G. Notice how "23andMe" appears several times? This is because the first 5 contacts work at 23andMe. I only want to have 1 of those contacts from that company in this list. Throughout the rest of the spreadsheet, I have numerous contacts at the same company.
How can I view only one contact per company? Should the formula hide the row if the cell in column G (the company column) is a duplicate of the cell above it? If so, what is this formula?
One method would be to use a helper column, and then apply the filter tool to the data. So something like this in row 1 of a spare column:
=ArrayFormula(IF(ROW(G:G)=1,"Display",IFERROR(ROW(G:G)=MATCH(G:G,G:G,0))))
which will apply TRUE and FALSE values according to whether that row should be hidden or not. Apply the filter (funnel icon second from the right on the toolbar) to the whole data set, and you can toggle the "Display" column to only displaying TRUE values.

How to change the relationship field in Pyrostreams entry form

I'm using Pyrostreams and I have 2 streams:
Cities &
Rooms
Rooms have a relationship field: City. When I output an entry form for Rooms I see a dropdown with all cities, but only their id's are shown. How can I show a specific field in the dropdowns of relationships (such as city_name)?
From Adam Fairholm on the forum of PyroCMS:
You need to set the title column of the stream by going into the field
you want to show and choosing Make Field the Title Column. This only
works for fields that have text to display, obviously, since it needs
to be shown in a drop down.

Resources