EhLib.Com https://forum.ehlib.com/en/ |
|
Displayname for ValueFieldDefs in PivotDataSourceEh https://forum.ehlib.com/en/viewtopic.php?f=5&t=839 |
Page 4 of 5 |
Author: | jsm [ 19 Nov 2022, 05:58 ] |
Post subject: | Re: Displayname for ValueFieldDefs in PivotDataSourceEh |
Has the problem resolved in the new version?(DisplayName) And I am waiting for your answer(about Sorting), Thanks I think this is the problem of other people with about 10,000 Views |
Author: | EhLibSupport [ 19 Nov 2022, 23:56 ] | ||
Post subject: | Re: Displayname for ValueFieldDefs in PivotDataSourceEh | ||
Hello I tested next code: Code: procedure TForm1.bAddFieldsClick(Sender: TObject); begin MemTableEh1.Open; PivotDataSourceEh1.PivotFields.RebuildPivotFields; bAddFields.Caption := 'Recreate fields from DataSet'; PivotDataSourceEh1.PivotFields.FindFieldByName('ShipVIA').DisplayName := 'ShipVIA My Name'; end; in EhLib\Demos\PivotGridEh.SimpleDemo EhLib 10.2 Build 10.2.035 and it works. Check, please.
|
Author: | jsm [ 20 Nov 2022, 05:02 ] |
Post subject: | Re: Displayname for ValueFieldDefs in PivotDataSourceEh |
I mean ValueFieldDefs fields nd also sorting by manual |
Author: | EhLibSupport [ 20 Nov 2022, 15:24 ] |
Post subject: | Re: Displayname for ValueFieldDefs in PivotDataSourceEh |
I don't see the exact code, but you probably mean TCollectionItem.DisplayName Code: PivotDataSourceEh1.ValueFieldDefs[0].DisplayName := 'Test'; The TCollectionItem.DisplayName property is not a property for changing the display value for TPivotFieldEh. To change the TPivotFieldEh in the PivotDataSourceEh1.ValueFieldDefs collection, you need to use the following code. Code: PivotDataSourceEh1.ValueFieldDefs[0].PivotField.DisplayName := 'Test'; TCollectionItem.DisplayName is a low level property for displaying the collection item name at Design-Time. |
Author: | jsm [ 22 Nov 2022, 04:56 ] |
Post subject: | Re: Displayname for ValueFieldDefs in PivotDataSourceEh |
I checked, but unfortunately it was not done |
Author: | jsm [ 11 Apr 2023, 06:18 ] |
Post subject: | Re: Displayname for ValueFieldDefs in PivotDataSourceEh |
It was not possible to change the title of the field. Is it possible to change the Alignment of the fields? |
Author: | EhLibSupport [ 14 Apr 2023, 11:26 ] |
Post subject: | Re: Displayname for ValueFieldDefs in PivotDataSourceEh |
Hello Can you describe exactly where you want to change the alignment? In what component. Or draw on a screenshot. |
Author: | jsm [ 14 Apr 2023, 16:16 ] | ||
Post subject: | Re: Displayname for ValueFieldDefs in PivotDataSourceEh | ||
Hi,
|
Author: | jsm [ 15 Jul 2023, 08:58 ] |
Post subject: | Re: Displayname for ValueFieldDefs in PivotDataSourceEh |
Hello, Can I Change "AmEx" value title from last picture(sign by red circle)? |
Author: | EhLibSupport [ 15 Jul 2023, 15:46 ] |
Post subject: | Re: Displayname for ValueFieldDefs in PivotDataSourceEh |
Hello jsm. You cannot replace text for axis values in this version of the library. You need to change the values in the original DataSet. Can you describe examples in which cases you may need this substitution? |
Page 4 of 5 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |