1. Jochen Peters
  2. Valentina Server
  3. Вторник, Сентябрь 01 2015, 05:18 PM
  4.  Подписаться через email
Help
How i do this on Valentina Reports
Example
If fieldName="C" Then
Label1.Text="Credit"
Else
Label1.Text="Pay Off"
End if
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Hello, Alexis,

I can see two options:

1) The fastest way is to add an Expression, for example:
=IF(fieldName= 'C', 'Credit', 'Pay Off' )

2) Or you can add it to your source query for this report
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
I am confused
is any example of this
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
It's just 2-step operation:
a. Drag Expression control to report
b. Input =IF(fieldName= 'C', 'Credit', 'Pay Off' ) in the dialog which shows up after dragging.

The documentation (with examples and video) for an Expression field:
Ссылки
  1. http://valentina-db.com/docs/dokuwiki/v5/doku.php?id=valentina:products:vstudio:help:report_editor:controls:expression_field:expression_field
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
ok
thanks is working
Комментарий
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