Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Query language and DCS > The parameter list in the report

Forum

Search UsersRules
The parameter list in the report
#1
Just came
Points:: 0
Joined:: Nov 22, 2013

Hello,

I want to take the parameter list, which in created by user in the report.

(maybe as an array)

For use in the module, running queries...


Regards

Profile
#2
Guest
Points::
Joined::

Hello, Sorry for the long answer.
If you are trying to get parameters that user have set in the report that is created using the Data composition schema? And if the report form is generated automatically?

Profile
#3
Just came
Points:: 0
Joined:: Nov 22, 2013

It's Managed report form.

Profile
#4
Guest
Points::
Joined::

You can intercept the report creation and get parameters from Settings, FixedSettings, and UserSettings properties of SettingsComposer object in OnComposeResult of the report object module. See more details in Filter a report by coding topic.

Code
Procedure OnComposeResult(ResultDocument, DetailsData, StandardProcessing)
   UserMessage = New UserMessage();
   UserMessage.Text = String(ThisObject.SettingsComposer.UserSettings.Items[0].Value);
   UserMessage.Message();
EndProcedure

See the example in the attached file.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.