Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 20:39

All times are UTC




Post new topic Reply to topic  [ 41 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
PostPosted: 31 Aug 2018, 19:11 
Offline

Joined: 31 Aug 2018, 19:06
Posts: 92
Hi,
I change Displayname in ValueFieldDefs , but not effect in PivotGrid and show fieldname :?:


Top
 Profile  
 
PostPosted: 01 Sep 2018, 11:39 
Offline

Joined: 31 Aug 2018, 19:06
Posts: 92
Also,
Plz explain about sort Value Field column Or Grand Total by code


Top
 Profile  
 
PostPosted: 04 Sep 2018, 20:22 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

ValueFieldDefs is a collection of TPivotFieldValueInfoEh element.
There are no property Displayname in TPivotFieldValueInfoEh but the property exists in TPivotFieldEh of PivotFields collection and there is a problem with DisplayName.
We will fix it at the next build.

About
Quote:
Plz explain about sort Value Field column Or Grand Total by code

Could you rewrite your question with more details.
Do you want to show/hide Grand Total in the code?
And what is the question about "Value Field column"?

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 05 Sep 2018, 08:37 
Offline

Joined: 31 Aug 2018, 19:06
Posts: 92
Thanks,
my second question is exactly:
plz show me(write) demo code for sort ValueFieldDefs(Or Grand total).
I want sort grand total by code(dynamically)
Also,
Plz Guide me about ValueFieldDefs(Or Grand total) Alignment(Text Or Title)


Attachments:
Grand.png
Grand.png [ 1.52 KiB | Viewed 6149 times ]
Top
 Profile  
 
PostPosted: 13 Sep 2018, 03:33 
Offline

Joined: 31 Aug 2018, 19:06
Posts: 92
Has the problem resolved in the new version?(DisplayName)
And I am waiting for your answer(about Sorting), Thanks


Top
 Profile  
 
PostPosted: 17 Sep 2018, 21:55 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

------
We fixed the Displayname error in the build EhLib 9.2 Build 9.2.028.

-----
About sort grand total column.
There are no special function to perform that action.
You should use next tricky code

Code:
procedure TForm1.Button2Click(Sender: TObject);
var
  PvtGridCore: TPivotGridEhCrack;
  ActualGridArrayIndex, ActualGridArrayRowIndex: Integer;
  GridCol, GridRow: Integer;
begin
  PvtGridCore := TPivotGridEhCrack(PivotGridEh1);

  GridCol := PvtGridCore.FullColCount-1;
  GridRow := 2;
  PvtGridCore.VisPivotPosToSrcArrayPos(GridCol, GridRow, ActualGridArrayIndex, ActualGridArrayRowIndex);
  PvtGridCore.FDataSortColNum := ActualGridArrayIndex;
  PvtGridCore.FDataSortSortOrder := soDescEh;

  PvtGridCore.ResortRowSortingTree;
  PvtGridCore.MakeVisPivotGridArray;
  PvtGridCore.InvalidateGrid;
end;

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 24 Sep 2018, 19:21 
Offline

Joined: 31 Aug 2018, 19:06
Posts: 92
I use below code in last build(28):
PivotDataSourceEh1.PivotFields.FindFieldByName('Tedad').DisplayName:= 'ُSample Text';

but not effect in pivotgrid


Top
 Profile  
 
PostPosted: 23 Oct 2018, 09:44 
Offline

Joined: 31 Aug 2018, 19:06
Posts: 92
I am waiting for your answer
Thanks


Top
 Profile  
 
PostPosted: 23 Oct 2018, 15:39 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

Please, try last build - it is EhLib 9.2 Build 9.2.031 now.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 05 Dec 2018, 16:35 
Offline

Joined: 31 Aug 2018, 19:06
Posts: 92
Hi,
I checked with EhLib 9.3 Build 9.3.011, but not work


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 41 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group