Solved

How to Bold a formula within another formula

Posted on 2016-10-31
4
36 Views
Last Modified: 2016-10-31
How can I bold {@DisplayPersonQualifier} results within another formula.

Formula: DisplayPersonwithQualifier

{@DisplayPersonQualifier} & ' - ' & {@DisplayPerson}
0
Comment
Question by:MikeM670
  • 2
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 41867423
Without resorting to HTML or RTF coding, it is not possible.

That said there is a way to do it

Add a text box to the report
Drag  the {@DisplayPersonQualifier} formula into the textbox
Type the "  -  " in the text box
Drag the {@DisplayPerson} formula into the textbox

Right click the textbox
Click FORMAT TEXT
You can now format each individual part of the text box independently so the first part can be bold

mlmcc
0
 

Author Comment

by:MikeM670
ID: 41867647
Hi mlmcc,

I was hoping for a more elegant solution but maybe I should of asked this instead.  Below is the
DisplayPersonQualifier formula's code.  Would it be possible to do the "Bolding" within this formula before it is called by the DisplayPersonwithQualifier?  I have tried various approaches but nothing would work.



local stringvar Qualifier1;
local stringvar Qualifier2;
local stringvar Qualifier3;

if not(isnull({CasePerson.Qualifier1})) and trim({CasePerson.Qualifier1}) <> ""
then Qualifier1 := ProperCase ({CasePerson.Qualifier1});

if not(isnull({CasePerson.Qualifier2})) and trim({CasePerson.Qualifier2}) <> ""
then Qualifier2 := ', ' & ProperCase({CasePerson.Qualifier2});

if not(isnull({CasePerson.Given3})) and trim({CasePerson.Given3}) <> ""
then Qualifier3 := ', ' & ProperCase({CasePerson.Given3});

Qualifier1 & '' &  Qualifier2 & '' & Qualifier3;
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 41867657
The only way would be to use HTML encoding

Not sure which part you want bold

Change last line to

'<b>' & Qualifier1 & '</b>' &  Qualifier2 & '' & Qualifier3;

Right click the object on the report
Click FORMAT FIELD
On the PARAGRAPH tab
Set TEXT INTERPRETATION to HTML

mlmcc
0
 

Author Comment

by:MikeM670
ID: 41867672
Once again you provided the solution and I've learned a new feature using HTML!!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question