简体   繁体   English

使用Crystal Reports解析字段名称

[英]Parsing field name using Crystal Reports

I have a customer who really wants to keep a very long naming convention during a migration to a new database. 我有一个客户真的想在迁移到新数据库期间保持很长的命名约定。 The new database uses Crystal Reports for reporting. 新数据库使用Crystal Reports进行报告。 I have gotten an ok to shorten the naming convention somewhat to "shortened name-date" with all of the other pertinent information parsed out into new fields. 我已经可以将命名约定略微缩短为“缩短名称日期”,并将所有其他相关信息解析到新字段中。

However, one of the users who does a lot of the reporting has now said that one of the most tedious parts of her job was parsing out the old names so she could have a simple, high level, parent name for executive reports. 但是,执行大量报告的一位用户现在说,她工作中最繁琐的部分之一是解析旧名称,以便她可以为执行报告使用一个简单的高级父名称。 With the new naming convention, she will still need to parse the field to get just the shortened name as her executive-level parent name. 使用新的命名约定,她仍将需要解析该字段以仅获得简称作为其执行级别的父名称。 If I can't manage to get the ok to drop the date from this field, can Crystal reports be used to parse the field at the "-" similar to parsing the data using Excel? 如果我无法确定是否可以从该字段中删除日期,是否可以像使用Excel解析数据一样,使用Crystal报表在“-”处解析该字段? What I'm looking for is that her reports would have a formula that generates the executive-level short name behind the scenes so she doesn't have to think about it. 我要寻找的是她的报告将具有一个公式,可以在幕后产生高管级别的简称,因此她不必考虑它。

The date already exists in a date field, so parsing out the date from the name would not change other report functionality. 该日期字段中已经存在该日期,因此从名称中解析日期不会更改其他报表功能。 Ideally, I would want to enter the data already separated out and concatenate fields per each user's particular needs, but I may not be able to do. 理想情况下,我想输入已经分开的数据,并根据每个用户的特定需求连接字段,但是我可能做不到。 Any info would be much appreciated. 任何信息将不胜感激。

Thank you. 谢谢。

我想您正在寻找...

Split({fieldname},"-")[1]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM