Hello Guy's
Some time many of us faces difficultly in searching record from dynamic data list in Liferay 6.2, so for your help below I am mentioning how you can do this-
Here I have created two methods for search record from dynamic data list in liferay 6.2.
Some time many of us faces difficultly in searching record from dynamic data list in Liferay 6.2, so for your help below I am mentioning how you can do this-
Here I have created two methods for search record from dynamic data list in liferay 6.2.
ddlRecordnew.get(i).getField("firstName").getValue()
Here :
"ddlRecordnew" is instance of List<DDLRecord> and "firstName" is field name of data list in dynamic data list.
So now :
ddlRecordnew.get(i).getField("FieldName").getValue()
Following method print the matched record from searchString to database.
Here :
"ddlRecordnew" is instance of List<DDLRecord> and "firstName" is field name of data list in dynamic data list.
So now :
ddlRecordnew.get(i).getField("FieldName").getValue()
Following method print the matched record from searchString to database.
- public void SearchDdlRecord(String searchString){
- List<DDLRecord> ddlRecordnew = null;
- try {
- ddlRecordnew = DDLRecordLocalServiceUtil.getDDLRecords(-1, Integer.MAX_VALUE);
- if (ddlRecordnew != null) {
- StringTokenizer strPermit = null;
- String ptype = null;
- Read full Blog at: How to search record from dynamic data list in Liferay 6.2
You can check more informative blogs and tutorials at java development blogs section and can also browse the java questions and answers forum for posting and viewing latest questions on Java development.
Apart from this, If you have any Php issue, you can post it at Php developer forum.
No comments:
Post a Comment