004k Set The View Criteria of a View Object - at runtime

Опубликовано: 05 Август 2026
на канале: Stuart Fleming
2,250
7

In this video I show how to programmatically create a view criteria that is created at runtime. This is done at the view object, application module and also at on the form by referencing the bindings.
ViewCriteria vc = this.createViewCriteria();
vc.resetCriteria();
ViewCriteriaRow vcr1 = vc.createViewCriteriaRow();
vcr1.setAttribute("DepartmentId", "=" + DeptId);
vc.add(vcr1);
this.applyViewCriteria(vc);
this.executeQuery();