1. Mauricio Pulla
  2. Report Editor
  3. Monday, July 01 2019, 05:18 PM
  4.  Subscribe via email
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
Comment
There are no comments made yet.
Sergey Pashkov Accepted Answer
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.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Report Editor
  3. # 1
Mauricio Pulla Accepted Answer
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
Comment
There are no comments made yet.
  1. more than a month ago
  2. Report Editor
  3. # 2
Sergey Pashkov Accepted Answer
With JavaScript, I was able to print page numbers in group headers but only if it doesn't have new_page option.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Report Editor
  3. # 3
Mauricio Pulla Accepted Answer
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
Comment
There are no comments made yet.
  1. more than a month ago
  2. Report Editor
  3. # 4
Sergey Pashkov Accepted Answer
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' );
Attachments (5)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Report Editor
  3. # 5
Mauricio Pulla Accepted Answer
Hello Sergey.

This week I'm going to migrate and try.

Regards.
Mauricio
Comment
There are no comments made yet.
  1. 4 weeks ago
  2. Report Editor
  3. # 6
  • Page :
  • 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. 0 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories
Omegabundle
  1. 0 subcategories