3 Common SQL Script

1. Enable sql log

Configuration file:ecology\WEB-INF\prop\weaver_isSqlLog.properties

2. Get file path on server with doc id

select  filerealpath from  imagefile t1,docimagefile t2 
where t1.imagefileid=t2imagefileid  and t2.docid= Docment ID

3. Get month in the date

doFieldSQL("select RIGHT(SUBSTRING('Field id',0,8),2)  ")

4. Query workflow where operator is matrix

select a.workflowname Workflow,a.version Version,c.nodename Node,d.groupname Group,g.name Matrix
from workflow_base a
inner join workflow_flownode b on a.id=b.workflowid  and b.NODETYPE<>0 --Not creator
inner join workflow_nodebase c on b.nodeid = c.id --and  c.IsFreeNode is null
inner join workflow_nodegroup d on c.id=d.nodeid
inner join workflow_groupdetail e on d.id=e.groupid
inner join workflow_groupdetail_matrix f on f.groupdetailid = e.id
inner join matrixinfo g on g.id = f.matrix
where e.type=99  --Matrix type
and a.isvalid = '1' --Valid workflow
and f.matrix in (6)  --id
order by a.workflowname,c.nodename,d.groupname

5. Get last month

6. Query all workflow and corresponding nodes that have a detailed horizontal scroll bar enabled

7. Query which workflow with detail table (only for new forms)

8. Change website icon

Change favicon.ico in e-cology root directory

9. Get all workflow configure with Overtime

10. Query all completed workflow

11. Show node submit time on the form

How to get node id base on workflow id

12. Query all delete workflow but message not deleted

13. Export organization structure

14. Query the time consumption of all nodes

15. Add placeholder in textbox

16. Check date and time

17. Query all users who did not login to system

18. Workflow process log

19. Get exit condition

20. Check any statement make CPU usage too high

20.1 Check field linkage = assign field

20.2 check field attribute

Last updated