Solved

How to Bold a formula within another formula

Posted on 2016-10-31
4
30 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now