[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Simple text field question

Posted on 2013-10-29
6
Medium Priority
?
294 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 101

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
[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

 
LVL 2

Author Comment

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

Accepted Solution

by:
5teveo earned 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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 …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

656 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