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;

How to search record from dynamic data list in Liferay 6.2

– 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.

Advertisements
How to search record from dynamic data list in Liferay 6.2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s