1. Emilio Robles
  2. Valentina Reports ADK
  3. 月, 8月 31 2020, 11:33 AM
  4.  メールで購読
Hi.
Is there a way to query the parameters of a project from xojo?
I have not found a way to do it with the vProject and vReport objects.

Maybe with javascript using vReport.runscript ()?

I need to know the parameters that are defined (interactive) to ask the user before launching the report.

Thanks.
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Yes, I think we can add method to return XML definition of the report parameters
コメント
There are no comments made yet.
Ruslan Zasukhin 承諾済みの回答
Sergey,

so is this a good idea to extend API?
コメント
There are no comments made yet.
Emilio Robles 承諾済みの回答
Hello Sergey. Thanks for the reply.

I have finally used an invisible expression within the report where I describe the parameters used.
From xojo I read the value of the expression and build the form to ask the user.

e.g.

params = myReport.RunScript("report.controls.params.label")


So I can change reports without having to deploy an update to my app.

It would be useful to get this information directly with the API. ;)
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Hello Emilio,

No, currently there are only two methods regarging parameters in the API - VReport.SetParameterValue( paramName, value ) and VReport.ParameterValue( paramName ).

It is necessary to avoid hardcoded parameter names in Xojo code and get information about parameters from the report, right?
コメント
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