Solved

Simple text field question

Posted on 2013-10-29
6
284 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
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.

 
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

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

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…
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 tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 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

15 Experts available now in Live!

Get 1:1 Help Now