Example #1
0
        private void BindLog()
        {
            var logEntries = new WorkflowLogService(new RockContext()).Queryable("CreatedByPersonAlias.Person")
                             .Where(l => l.WorkflowId == Workflow.Id)
                             .OrderBy(l => l.LogDateTime)
                             .ToList();

            gLog.DataSource = logEntries;
            gLog.DataBind();
        }
Example #2
0
        private void BindLog()
        {
            var logEntries = new WorkflowLogService(new RockContext()).Queryable("CreatedByPersonAlias.Person")
                             .Where(l => l.WorkflowId == Workflow.Id)
                             .OrderBy(l => l.Id) // Do not sort by DateTime as many actions can occur in the same millisecond.
                             .ToList();

            gLog.DataSource = logEntries;
            gLog.DataBind();
        }
        private void BindLog()
        {
            var logEntries = new WorkflowLogService( new RockContext() ).Queryable( "CreatedByPersonAlias.Person" )
                .Where( l => l.WorkflowId == Workflow.Id )
                .OrderBy( l => l.LogDateTime)
                .ToList();

            gLog.DataSource = logEntries;
            gLog.DataBind();
        }