Solved

Simple text field question

Posted on 2013-10-29
6
283 Views
Last Modified: 2013-10-29
Hi, I haven't used CR for years and have completely forgotten how to do this.

I have a field on the report which prints a user ID.
This at the moment just dumps first initial and surname like as it is stored in the DB e.g. "auser"

Instead, I would like it to display "A User"

Thanks.
0
Comment
Question by:scribla
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:5teveo
ID: 39608616
Try somehting like this...

I used string... just alter to variable of type string
 
Uppercase(Left('auser',1)) + ' ' + Propercase(Right('auser',length('auser')-1))
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39608627
What version of Crystal?

As I recall ProperCase was added in the newer versions so you may have to do this as

Uppercase(Left({YourField},1)) + ' ' + Upppercase(Mid({YourField},2,1))  + Mid({YourField},3)

mlmcc
0
 
LVL 2

Author Comment

by:scribla
ID: 39608648
Ok, I need a little help here.
At the moment it looks like a text box called "Approver" when I hover on it it says "UDEF_PR_NARRATIVE.Approver (String)"

So to do the above, would I right click that box > format field, and on the Common Tab, click on the X-2 box in the section at the bottom that says "Display String" ?
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 2

Author Comment

by:scribla
ID: 39608650
Oh sorry CRv10 btw.
0
 
LVL 8

Accepted Solution

by:
5teveo earned 500 total points
ID: 39608677
Create a new formula Field and name it 'Approver' - (any name will do) then

Add formula below.... afterwards drop this formula on report.

Uppercase(Left({UDEF_PR_NARRATIVE.Approver},1)) + ' ' + Propercase(Right({UDEF_PR_NARRATIVE.Approver},length({UDEF_PR_NARRATIVE.Approver})-1))
0
 
LVL 2

Author Closing Comment

by:scribla
ID: 39608784
Perfect, bang on!

Thanks.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

13 Experts available now in Live!

Get 1:1 Help Now