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