Pentaho report designer uppercase a fields - pentaho

I'm using Pentaho report designer 5.2 and 6.0
I have a field which contains translations from the resource-file from our DB.
All our translations are lowercased and I want to put some uppercases in my report. For example the first letter of a word.
How would I do this? I can't find any information on Pentaho forums about it.
Nor an option in style/attributes in PRD itself.

is required to do so in report??, can do this by building the field as prayer using SQL, thus would not have to do anything in the report, only use the field, here I leave an example of how you might do it in SQL, this based on the data source sample data, the explanation would be the siquiguiente, take the first character and took him to uppercase, this will concatenate with the rest of the chain and that's it, hope you serve, sorry for my English, esta rusty , regards
the example:
SELECT
"DEPARTMENT_MANAGERS"."REGION",
"DEPARTMENT_MANAGERS"."MANAGER_NAME",
concat(upper(substr(EMAIL ,1,1)),substr(EMAIL,2,length(EMAIL))) FROM
"DEPARTMENT_MANAGERS"

Related

Using Macros to scan .odt file in libreoffice for specific content

Total beginner here when it comes to macros in Libreoffice.
Let's say I have a text (.odt or .doc) that contains words (irrelevant) and two types of information. The information always starts with a "/". Information type 1 looks like /234hdf (numbers and letters) and information type 2 like /02395, so only numbers.
I want to use a script that filters for type 1 information and returns it.
Is using a macro the correct way to filter for this? If so, what language should I use and where do I start?
Thanks in advance!

SAP BusinessObject Webi - Matching values from Excel Data provider with Variable in Universe

I have a simple question yet seems not very feasible to be done in BO, perhaps I am missing something basic. Would greatly appreciate any input from the community!
To start with, I have two data providers, universe and excel, and would like to show all records from the universe based on what is provided in excel.
To illustrate,
I have a list of name in excel , and only this one dimension, no identifier or related data attached to these names.
On the universe side, I only have Firstname and Lastname dimensions but not the complete name.
So in order to match them, I would create a new variable called 'Complete Name', which is the concatenation of both Firstname and Lastname.
My question is, how to link the variable I created with the List of Names in excel provider, so that only the record from the universe side that has matching value with List of Names in excel will show?
NB: I do not have authority to change the universe as it is controlled by other group. My version of webi is SAP BI 4.2
*Also, I notice that I can do the concatenation myself via Free-hand SQL, but then again I have no idea how to filter/match based on the list of names in excel.
Please help! Any clue/advice would be appreciated!
I think need to merge on objects that have values in the same format.
If your version of BusinessObjects is 4.2 SP02 or earlier you will have to do the name concatenation in free-hand SQL and merge that resulting column with List of Names from your spreadsheet. In BusinessObjects 4.2 SP03 the capability to merge on variables was added. I have not worked with that version yet, but as I understand it you could leave you universe query as is and create a variable to concatenate Firstname and Lastname and then merge that with List of Names from the the spreadsheet.
If you are getting "This object is incompatible" or something like that when trying to add dimensions see these links on how to create associated detail objects.

Crystal Reports filter parameter based on value of field

I attempted to find something about this, but I don't feel i know the terminology well enough, and I'm not very familiar with crystal reports so maybe I missed the answer. To the point though.
I am attempting to create a dynamic parameter for a report that only displays values for records that have a a given value in a given field.
So, the way I'm thinking is
If I have a list of computernames in a database and I wanted to display only computernames of the computers containing quad core processors so when using the computername as a parameter I could display only those computers.
{?computername} = {computername} If({dbname.cores} = "quad core")
Obviously that doesn't work, or I wouldn't be asking. Anyone have thoughts on this one? Does this make any sense? I'm not most premium with the crystal reports or sql logic so I apologize for any confusion.

How to check if parts of a string match to a column data in sql table

I want to write a query which checks the input provided by the user with the column data of my table. i tried using LIKE and CONTAINS but it didnt work for me. eg my table data contains "Bar B Q Tonight" and if user enters "BBQ Tonight", how to deal with it? I have enabled full text-indexing for my table too. I am working on sql server 2005 in visual studio. can anybody guide me?
One approach to deal with is to create separate column on your table which will contain popular search tags or keywords, based on that you can show the results to the user.
Synonyms and acronyms are a challenge for information retrieval systems (IR).
Perhaps implement a tiny Acronym Expansion System. Acronyms and expanded terms.
When a user enters such words you need to provide a few suggestions or expanded terms. Like in Google do suggestions or you can show couple of similar terms in return for the query and let the user decide which is relevant.
you need minimum three table as I envisage it but depends on context.
one table contains stop words so you parse each word in the
entered phrase and remove all stop words.
then search individual term in acronyms table and if an
acronym has more than one definitions you can substitute acronym
for each definition and pass it back to user asking which is
relevant. if this is web environment it means list of hyperlinks.

Hit Highlighting Blob Data

Hi ive currently been trying to do some full text searching on some .docx files stored as BLOB data in my database. Ive been trying to bring back a snippet of these documents in a google like fashion. Ive currently been following the example in the Apress Pro Full Text Searching book. However the example doesnt use BLOB data, does anyone know if what im trying to do is possible with this method ? thanks.
Should be possible. Internally SQL server stores the list of occurrence values that correspond to relative offsets of the particular keyword within the document. Please refer to the Occ column in the index structure in this article about full text search internals in MS SQL Server
I am not sure whether you have to implement your own CONTAINS or you can configure SQL server to return the occurrence values to your query. Should you figure it out, please follow this thread up.
Once you have the occurrence values returned in your result set, it is up to your application to get a snippet from the blob.