1. Emilio Robles
  2. Valentina Reports ADK
  3. Monday, August 31 2020, 11:33 AM
  4.  Subscribe via email
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.
Comment
There are no comments made yet.
Sergey Pashkov Accepted Answer
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?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 1
Emilio Robles Accepted Answer
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. ;)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 2
Ruslan Zasukhin Accepted Answer
Sergey,

so is this a good idea to extend API?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 3
Sergey Pashkov Accepted Answer
Yes, I think we can add method to return XML definition of the report parameters
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 4
  • 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. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories