Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

Report customization process

$
0
0
Hi,

I need some customization work for the report. Here I explain the step one by one.

I have a table definition with index tctls903.log as shown in the attachment(screen2.png).

I maintain a session in order to store the users who are currently logged in LN.
The session is attached as (screen1.png).

I developed a report for count the number of users who are logged in LN for every day as shown(screen3.png). When I click the "Total Logged User" check box, I need to get the result as follows.

2017-11-9------- 2
2017-11-10------- 2
2017-11-11------- 1
2017-11-12------- 2
2017-11-13------- 3

But I got the result for first day as follows
2017-11-9------- 2

So how can I got the count for each and every day...

My script is as follows.
unction counter.user()
{
select distinct tctls903.logg
from tctls903
where tctls903._index1 inrange {:logg.f} and {:logg.t}
as set with 1 rows
selectdo
select count(*):counter
from (select distinct tctls903.user
from tctls903
where tctls903._index1 inrange {:logg.f} and {:logg.t}) get_distinct_so
selectdo
rprt_send()
endselect
endselect
}

Can you please assist me that how to find the count of users who logged in every day....
Thanks in advance,
Regards,
Pralash

Attached Images
File Type: png screen1.PNG (50.9 KB)
File Type: png screen2.PNG (50.5 KB)
File Type: png screen3.PNG (25.4 KB)

Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>