The parameter list in the report

Common questions about 1C:Query language, Query builder tool and Data composition schema

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 22, 2013
Company:

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

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

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?

 
#3
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 22, 2013
Company:

It's Managed report form.

 
#4
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

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.

Download 1Cv8.dt (15.54 KB)
 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.