1. Lynn Fredricks
  2. Announcements & News
  3. Четверг, Октябрь 01 2020, 05:18 AM
  4.  Подписаться через email
The Valentina Studio team has produced a very useful example project that brings together three key Paradigma Software technologies to demonstrate a forms based solution: ValentinaDB, Valentina Forms and Valentina Reports.

You can download the base project as well as the example database at the link below. You can use this as a basis for your own projects and easily enough use some other database, such as SQLite or PostgreSQL instead of ValentinaDB. All together, this illustrates Valentina Forms features such as:

  • Table and form-like data layouts
  • Valentina Report generation and how to trigger the report from a form
  • Exporting a Report to file on disk
  • Viewing a Report in a web browser
  • Generating a Report as a PDF
  • Sending Report in an email
  • Creating custom form preferences
  • Use of utility and startup scripts
  • Use of Image and Image - Field controls

If you have any version of Valentina Studio, you can 'use' the project to interact with the forms, enter data and perform many of the report functions. Valentina Studio Free acts as a free client for this purpose.

If you have Valentina Studio Pro, you can open up and dig into the scripts of the forms, open up and modify the reports or whatever else you might want to do.

Updates to the Project
If you find any issues with the project, feel free to reply here and let us know. If you also have a feature request for the project, we'd like to hear it as well.
Ссылки
  1. https://valentina-db.com/docs/dokuwiki/v10/doku.php?id=valentina:products:vstudio:examples:forms:car_catalogs
Комментарий
There are no comments made yet.
Kevin Ответ принят
Thank you for providing these examples.

When I open the car_catalog, the startup script opens the Car List form. The Add button on the Car List form does not open a form; it acts as if there isn't a script associated with it. The other buttons are functional.

If I close out the Car List form and directly open (via Execute) the Car List form, the Add button is functional.

After adding a record (via clicking on the Add button on the Car List form), I noticed one is not brought to the record (via scrollToBottom) one entered but the second to last one. The record is present ... one just needs to scroll one record down.

Kevin

Valentina Studio Pro 10.5.1 (64-bit)
Windows 10 Version 2004
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Hello Kevin,

Thank you, fixed add button and updated the project.
We'll check scrollToBottom on Windows (can't reproduce on macOS)
Комментарий
There are no comments made yet.
Kevin Ответ принят
>We'll check scrollToBottom on Windows

On the original project, I added a button to the Car List form with the following script:

this.tvCars.scrollToBottom();

It works.

I had tried a few things yesterday in the Add script and they didn't work. A new day and this worked:

import '/add_car' as dlg

if( dlg.exec() )
this.tvCars.reload();
this.tvCars.scrollToBottom();
Комментарий
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