public void getEmployeesInDept(Integer deptId) { if (deptId == null || deptId == 0) { ViewObjectImpl empDeptVO = this.getEmpDeptVO(); //View Criteria without bind variable ViewCriteria vc = empDeptVO.getViewCriteria("noRowsVC"); empDeptVO.applyViewCriteria(vc); empDeptVO.executeQuery(); } else { ViewObjectImpl empDeptVO = this.getEmpDeptVO(); //View Criteria with bind variable 'Bind_deptId' empDeptVO.setApplyViewCriteriaName("findByDeptId"); empDeptVO.setNamedWhereClauseParam("Bind_deptId", deptId); empDeptVO.executeQuery(); } }
The above method shows how to execute view criterias "noRowsVC"(with no bind variables) and "findByDeptId"(which has a bind variable "Bind_deptId") in EmpDeptVO. The below screenshots show the view criterias in EmpDeptVO.
That's it. The method executes the VC and gets the query results. You can expose this method in client's interface and add this method in jsff pagedef file as a methodAction binding. The later post shows how to pass parameters and call/execute this AMImpl method ( i.e., getEmployeesInDept) in UI project's java bean.
Hi i tried the same but ViewObjectImpl empDeptVO = this.getEmpDeptVO(); returns null for me
ReplyDeleteGreat Article. Thank you for sharing! Really an awesome post for every one.
DeleteA 4.2nW and 18ppm/°C Temperature Coefficient Leakage based Square Root Compensation (LSRC) CMOS Voltage Reference Project For CSE
A CNN based Method for Intent Recognition Using Inertial Measurement Units and Intelligent Lower Limb Prosthesis Project For CSE
A Dementia Classification Framework using Frequency and Time frequency Features based on EEG signals Project For CSE
A Feature Selection Method for High Impedance Fault Detection Project For CSE
A Fuzzy Approach to Text Classification With Two Stage Training for Ambiguous Instances Project For CSE
A Voting Ensemble Classifier for Wafer MapDefect Patterns Identification in SemiconductorManufacturing Project For CSE
Age and Gender Differences in Performance forOperating a Robotic Manipulator Project For CSE
BEEF Balanced English Explanations of Forecasts Project For CSE
Communication Censored ADMM forDecentralized Consensus Optimization Project For CSE
Thanks man.. It helped.. cheers..
ReplyDeleteThanks for the informative share.
ReplyDeleteWeb Design and Development company in Chennai
20170303shizhong
ReplyDeletemichael kors outlet
jordan pas cher
ghd straighteners
jimmy choo
oakley sunglasses
nike air max outlet
coach outlet
michael kors handbags
kd 9 shoes
polo ralph lauren
true religion outlet store
ReplyDeletelouboutin outlet
coach factory outlet online
cheap oakley sunglasses
adidas outlet online
michael kors outlet store
yeezy shoes
cheap oakley sunglasses
nike outlet store
moncler jackets
170511yueqin
michael kors outlet
ReplyDeletekate spade handbags
off white x nike
lebron 13
vapormax
yeezy shoes
balenciaga triple s
supreme clothing
polo ralph lauren
air jordan
balenciaga shoes
ReplyDeletesupreme clothing
curry 6 shoes
jordan shoes
bape
canada goose jacket
golden goose sneakers
supreme outlet
moncler
off white clothing
hermes
ReplyDeletegolden goose sneakers
golden goose
air jordan
yeezy boost 350 v2
kyrie shoes
kobe byrant shoes
a bathing ape
golden goose shoes
lebron 17 shoes
company website see here click this over here now aaa replica bags more info here you could try this out
ReplyDelete