on 03-12-2014 9:21 AM
I have tried using UseCount of DatabaseFieldDefinition, but always return 1.
See this KB
You would need your SAP account credentials id to see this kb.
- Bhushan
Senior Engineer
SAP Active Global Support
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
Getting started and moving ahead with Crystal Reports .NET applications.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the basic code to list all DB fields from report.
// To return all of the fields in a specified table.
Tables boTables = boReportClientDocument.DatabaseController.Database.Tables;
CrystalDecisions.ReportAppServer.DataDefModel.Table boTable = (CrystalDecisions.ReportAppServer.DataDefModel.Table) boTables.FindTableByAlias(tableName);
// Get all of the fields for the specified table.
Fields boFields = boTable.DataFields;
for (int i = 0; i < boFields.Count; i++)
{
DBField boDBField = (DBField) boFields[i];
Response.Write(boDBField.get_DisplayName(CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, 0));
}
Thanks,
Bhushan
I think we'll need more info on what it is you want. E.g.; you say:
i need is to know the datafields that are used
This will give you the names of the fields:
Response.Write(boDBField.get_DisplayName(CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, 0));
If you do not want names of fields, what is it yo are looking for?
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.