Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Report parameters use general function error

Forum

Search UsersRules
Report parameters use general function error
#1
Active user
Points:: 0
Joined:: Mar 29, 2016

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.

Profile
#2
Administrator
Points:: 0
Joined:: Oct 3, 2019

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

Profile
#3
Active user
Points:: 0
Joined:: Mar 29, 2016

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).

Profile
#4
Active user
Points:: 0
Joined:: Mar 29, 2016

Dear Mr. Aleksandr,

When answer my question?

Profile
#5
Administrator
Points:: 0
Joined:: Oct 3, 2019

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.

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.