1. Mauricio Pulla
  2. Report Editor
  3. 月, 7月 01 2019, 05:18 PM
  4.  メールで購読
It is possible to have page numbers per group

Example
Group Number page
A 1
A 2
...
B 1
B 2
....

I have valentia server 6.0 on linux

Regards
Mauricio
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Hello Mauricio,

No, in version 6.0 it is not possible.

It should be possible using the JavaScript but it was added in 7.0 - I can check it if necessary.
コメント
There are no comments made yet.
Mauricio Pulla 承諾済みの回答
Hello Sergey.

Thanks.

We have version 7, which for certain reasons we have not migrated.
Please, you can review and give an example.

Regards
Mauricio
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
With JavaScript, I was able to print page numbers in group headers but only if it doesn't have new_page option.
コメント
There are no comments made yet.
Mauricio Pulla 承諾済みの回答
Hello Sergey.

Thanks for the review.

We bought Valentina 9, some recommendation to migrate from valentina 6 to valentina 9.

Can this new version do what I need?

Regards
Mauricio
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Hello Mauricio,

As usual - backup the project.
Valentina Server 9 has major changes in protocol, it is necessary to use Valentina Studio and ADKs of this version, too (earlier versions will not connect).

Yes, per my tests it is possible to print own page numbers for each group.

For this:
1. Add expression to the header (exp_group_page)

2. Add pre_build report script (JavaScript):

// Init variables
report.group_start = 1; // Page where the current group started
report.current_group = ''; // Current group name, empty at start


3. Add pre_place expression script:

// Reset group start page if the next group is going to be printed
if( report.current_group != report.cursor.columnValue( 'category' ) )
report.group_start = report.pageCount;

// Assign value to control
report.controls.exp_group_page.label = report.pageCount - report.group_start + 1;


4. Add post_place expression script:

// Update current group name
report.current_group = report.cursor.columnValue( 'category' );
添付ファイル
コメント
There are no comments made yet.
Mauricio Pulla 承諾済みの回答
Hello Sergey.

This week I'm going to migrate and try.

Regards.
Mauricio
コメント
There are no comments made yet.
  • ページ :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories