Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Report Builder - Custom Expression : Substring of a Title

 Our ELM versions are 6.0.6.1 et 7.0.2


We want to create a report with Report Builder, which uses a custom expression.

The data source for this report is "LQE scoped by a configuration".

We want to query a list of DNG artifacts and display, among other attributes, the Artifact Title.

With a custom expression, we would like to display only the first 20 characters of the Title.

Is it possible to use a formulation such as: SUBSTR($Data:Titre$, 1, 20) ?

Thank you for your help.

Regards.

0 votes



One answer

Permanent link
You should be able to use the SPARQL function SUBSTR:

"The function SUBSTR( string, beginposition, stringlength ) returns a substring of a string beginning at the position marked by beginposition, and will have a length as indicated. For instance SUBSTR( ?name,2,3 ) where ?name = "ABCDEFGH" will return "BCD". A substring without length like SUBSTR( ?name,2 ) will return "BCDEFGH". "

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,015

Question asked: Mar 15, 5:42 a.m.

Question was seen: 585 times

Last updated: Mar 15, 9:24 p.m.

Confirmation Cancel Confirm