Tuesday 15 September 2015

How to search record from dynamic data list in Liferay 6.2

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. 
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.
  1. public void SearchDdlRecord(String searchString){
  2. List<DDLRecord> ddlRecordnew = null;
  3. try {
  4. ddlRecordnew = DDLRecordLocalServiceUtil.getDDLRecords(-1, Integer.MAX_VALUE);
  5. if (ddlRecordnew != null) {
  6. StringTokenizer strPermit = null;
  7. 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