HI Experts,
Actally i have created the one custom component called reports in webtop. after lunching this component , this auditrail report will come in to dropdownlist and will select the name of the report..once if i click the execute button(like in dql editor,in my jsp i have customised the dql_editor.jsp according to my requirement),then the above my dql quries will execute and will return the data into the datagrid on webtop.
Required columns names- User name, - Date of last mywebtop access, - Total numbers of days of mywebtop
For these columns names i am using below queries.
main query
select user_name,'$1$','$2$' from dm_user where r_is_group = FALSE and user_state = 0 and user_name not like 'dm%' order by user_name
sub queries
select time_stamp from dm_audittrail where user_name ='%s' and event_name = 'dm_connect' order by time_stamp desc enable(RETURN_TOP 1)
select distinct DATETOSTRING(time_stamp,'mm/dd/yyyy') from dm_audittrail where user_name ='%s' and event_name in ('dm_connect') and DATEDIFF(day, time_stamp, DATE(TODAY))<=180
i have created index on dm_audittrail table.like bellow.but no luck.
EXECUTE make_index WITH type_name='dm_audittrail',
attribute='event_name',attribute='user_name'
we have three envronments dev ,qa ,production. in dev the report(all my queries returning data into the datagrid on webtop level) is working fine.
in qa and prod is not getting data.it's showing 0 results.
please help.
your help is highly appriciated.
Thanks&Regards
Hari