Report parameters use general function error

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 5
Joined: Mar 29, 2016
Company: DND YAZILIM LTD.

Hi everyone, (Esselamunaleykum)

I created a new infobase and added invoce document, report.

I want to filter invoice date on report, but i dont want use chose date parameter.

I added date parameter and this parameters is not showing. I added 'year' (number) parameter and i added general module convert to date.

But i give expression error. How can i fix that error?

Here .dt (infobase file) : https://yadi.sk/d/2utq-7r__k9CFQ

Pictures

https://yadi.sk/i/K9oLNjjafE_aUw

https://yadi.sk/i/po0rLfwSdmj3MQ

https://yadi.sk/i/7Moft0JQtMPQiQ

https://yadi.sk/i/gWQ3Z036bfEk4g

Thanks.

 
#2
People who like this:0Yes/0No
Administrator
Rating: 12
Joined: Oct 3, 2019
Company:

Dear Mr. Bayraktar,

not very clear what you want to do...

Do you have a report and want to display a list of invoices in this report, while invoices should be selected by date?

Why don't you want to use the default "Date" parameter?

Aleksandr

 
#3
People who like this:0Yes/0No
Active user
Rating: 5
Joined: Mar 29, 2016
Company: DND YAZILIM LTD.

Dear Mr. Aleksandr,

Q: Do you have a report and want to display a list of invoices in this report, while invoices should be selected by date? - YES

My client can not use date format (01.05.2020). They can use year and month selection values. For example:

Year: 2020, Month: May (Choosen value)

I must do change these selected values to date format (01.05.2020).

 
#4
People who like this:0Yes/0No
Active user
Rating: 5
Joined: Mar 29, 2016
Company: DND YAZILIM LTD.

Dear Mr. Aleksandr,

When answer my question?

 
#5
People who like this:0Yes/0No
Administrator
Rating: 12
Joined: Oct 3, 2019
Company:

Hello Mr. Bayraktar,

you could use the Date() function, which converts the year, month, and so on to a date value. This is how it looks:

Code
fullDate = Date(2021, 2, 1);


In this case, the date value will be as follows: 2/1/2021 12:00:00 AM

Also see the attachment please, I made a small example to make it clearer for you.

 
Subscribe
Be the first to know tips & trick 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.