1. Ben Antwi
  2. Valentina Studio
  3. 金, 10月 28 2022, 02:45 PM
  4.  メールで購読
Is it possible to pass value of a variable to Valentina Report? Example item_no = 10 which is not from database but it's just a variable in a python script. Will item_no be referenced as a text field in report editor of Valentina Studio?
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Hello,

Add an Expression control to the report, different types of expression languages can be used

  • Text With Macros: $P(p_item_no)
  • JavaScript: $P('p_item_no')


Define a default value on the Parameters tab

In Python:
report.setParameterValue( 'p_item_no', item_no )
添付ファイル
コメント
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.